A Trust Ledger and an Execution Check for CPG-Based C-to-Lean 4 Autoformalization:\\ Separating Declined from\\Silently Incorrect Translations
Ishan K SingavarapuManish Bhatt
Ishan K Singavarapu
Manish Bhatt
+2
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—so that translations the exporter declined and translations it got silently wrong are not conflated into one aggregate rate. On a re-export of SQLite (8,602 functions, over 1.5 million AST nodes), 5,222 functions (60.7%) are hole-free but only 2,134 (24.8%) are call-closed, a $2.4\times$ gap a single score would hide, reported in a per-construct trust ledger. The main contribution is methodological: a protocol separating constructs fundamentally unresolvable by whole-program static analysis from those that merely appear so, illustrated by retracting an "impossible" classification of function-pointer/vtable dispatch after tracing a concrete counterexample. A search for more holes closed also surfaced a latent silent-wrong-answer bug, a failure mode the authors argue is more dangerous than any hole and one hole-count-only evaluation would never uncover.

OpenReview ·
· September 11, 2026