Research paper · about
Closing the Specification-to-Binary Trust Gap: Zero-Axiom Rust-to-Lean Functional Extraction and Six-Kernel Proof Replay
Translating Real Rust Code Into Math Checked by Six Independent Judges
Hand-writing a math model beside your code leaves room for copy-paste drift, and trusting one proof checker risks a tool bug—extracting the real Rust compiler tree into Lean and replaying every theorem across six independent checkers closes both gaps.
Formal proofs can still fail in production through two subtle trust gaps: hand-transcribed mathematical models that omit real Rust integer overflow or negative-remainder branches, and proofs that rely on vacuous preconditions, compiler-trusting reflection (ofReduceBool), or a single proof-checking kernel. Combining Inria Charon + Aeneas zero-axiom functional extraction, paired +1-step failure witnesses, and six-kernel independent declaration replay closes both gaps at multi-repository scale.
In plain words
- Instead of writing a separate idealized math sketch by hand, we extract the real
#![no_std]#![forbid(unsafe_code)]Rust compilerMIRdirectly intoLean 4viaCharonandAeneas(WaiosRingsVerify_Aeneas.lean,0external axioms across all7functions). - Every constructive choice-free safety bound (
0sorry,0Classical.choice,0ofReduceBool) is paired with an explicit+1-step counterexample (16,777,217RNErounding witness;±1,890,071,541RRNSd_H = 2witness; and9-tap-145,161DSP48E2crosstalk witness), making vacuous theorems impossible. - All
58,649declarations pass6 / 6independent checkers (Lean 4.36.0 paranoid,lean4lean,nanoda,con-leche --verified,con-ron --verified, andLean default), anchoringJouleBit-LUT6kernels that cut realornith-1.0-9BZen 5RAPLreported_jby3.55×–4.37×.
Interactive bridge & companion studies
See how zero-axiom extraction and six-kernel verification integrate into gate-first Spec ⊥ Impl software factories and replication kits: