Metraipolis › archive › dc_bcf1b401a87b

A Trust Ledger and an Execution Check for CPG-Based C-to-Lean 4 Autoformalization: Separating Declined from Silently Incorrect Translations — arXiv:2609.38237

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.38237
License (as archived)
CC0-1.0
Archived
2026-10-07T13:43:22.198Z
SHA-256 of the archived text
466a49d27c7242c1a1395469d560e2f3d9d9999fbda2e507f56b88b3f3e66339
Stable URL of this page
https://metraipolis.com/documento/dc_bcf1b401a87b

How to cite

A Trust Ledger and an Execution Check for CPG-Based C-to-Lean 4 Autoformalization: Separating Declined from Silently Incorrect Translations — arXiv:2609.38237 — arXiv (en), https://arxiv.org/abs/2609.38237 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_bcf1b401a87b (Metraipolis archive dc_bcf1b401a87b, sha256 466a49d27c7242c1a1395469d560e2f3d9d9999fbda2e507f56b88b3f3e66339)
BibTeX
@misc{dcbcf1b401a87b,
  title = {A Trust Ledger and an Execution Check for CPG-Based C-to-Lean 4 Autoformalization: Separating Declined from Silently Incorrect Translations — arXiv:2609.38237},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.38237},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_bcf1b401a87b; sha256 466a49d27c7242c1a1395469d560e2f3d9d9999fbda2e507f56b88b3f3e66339},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.38237. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Verifying large C codebases requires translating them into formally checkable semantics, but most autoformalization work reports a single aggregate success rate that conflates two different failure modes: code the translator declined to handle and code the translator translated incorrectly. We present a deterministic code-property-graph (CPG)-based exporter that translates C source into a small Lean~4 core semantics under a three-tier correctness discipline: hole-free, call-closed, and dynamic-hole-risk, that keeps these modes distinct. Applied to a re-export of the SQLite source tree (8{,}602 functions, over 1.5~million AST nodes), the exporter translates 5{,}222 functions (60.7\%) hole-free, of which only 2{,}134 (24.8\%) are call-closed, a $2.4\times$ gap a single rate would hide. Both figures are reported in a full per-construct trust ledger rather than a single score. Our main contribution is methodological: a protocol for separating constructs that are fundamentally unresolvable by whole-program static analysis (such as public API boundaries) from constructs that only look that way. For example, we retracted our own ``impossible'' classification of function-pointer/vtable dispatch after tracing a concrete counterexample in the target codebase. Separately, a search for ``more holes closed'' surfaced a latent silent-wrong-answer bug: a translation that succeeded with an incorrect result rather than declining, a failure mode we argue is more dangerous than any hole, and one a hole-count-only evaluation would never surface.

Tema degli esploratori: fiducia digitale e crittografia (retro-catalogo arXiv: annunci del 2026-10-01 in cs.CR).
Categorie arXiv: Programming Languages (cs.PL) ; Cryptography and Security (cs.CR).
Pagina del lavoro: https://arxiv.org/abs/2609.38237 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-07T13:16:25.245Z dalla pagina https://arxiv.org/catchup/cs.CR/2026-10-01?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).