Closing the Specification-to-Binary Trust Gap: Zero-Axiom Rust-to-Lean Functional Extraction and Six-Kernel Proof Replay

Plain-Words Quick Guide (30 sec) 📐 Charon/Aeneas Rust→Lean + 6-Kernel Sandboxed Replay (148 / 226 / 6,900+ Proofs)

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.

Think of it like: Think of scanning the actual steel bridge beams directly from the factory floor rather than trusting an early pencil sketch—and then having six rival engineering firms verify every load calculation inside sealed rooms.
And (Setup)
Machine-checked theorems in Lean 4 give strong assurance about security boundaries, numeric exactness, and microkernel isolation.
But (Problem)
Two subtle trust gaps remain in ordinary formal verification: a human-written Lean specification can drift away from the shipping Rust code, and a single proof kernel or shortcut tactic (like `CVE-2026-72844` / `ofReduceBool`) can harbor a soundness bug.
Therefore (Result)
We extract production `#![no_std]` Rust crates directly through Inria `Charon` and `Aeneas` into pure Lean 4 functions, pair safety theorems with constructive `sat`/`unsat` boundary witnesses to forbid vacuous hypotheses, and replay all `148` hardware/Horizon H63 Quad-Stack theorems (`41 + 107`, including `10` Liquid Silicon theorems, plus `226` `lut-adapt` v4.0 theorems and `6,900+` fleet theorem constants) across `6/6` independent sandboxed Lean `4.36.0` kernels with `0` `sorry`, `0` `Classical.choice`, and `0` custom axioms.
Key Result:`148` hardware-invariance & Horizon H63 Quad-Stack theorems (`41 + 107`), `226` `lut-adapt` theorems, and `6,900+` fleet theorem constants mechanically checked across `6/6` independent `bubblewrap`-sandboxed Lean `4.36.0` kernels with `0` `sorry`, `0` `Classical.choice`, `0` `ofReduceBool`, and `0` custom axioms (`unmetered` formal verification). ▶ Watch 15s Plain Film →

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

  1. Instead of writing a separate idealized math sketch by hand, we extract the real #![no_std] #![forbid(unsafe_code)] Rust compiler MIR directly into Lean 4 via Charon and Aeneas (WaiosRingsVerify_Aeneas.lean, 0 external axioms across all 7 functions).
  2. Every constructive choice-free safety bound (0 sorry, 0 Classical.choice, 0 ofReduceBool) is paired with an explicit +1-step counterexample (16,777,217 RNE rounding witness; ±1,890,071,541 RRNS d_H = 2 witness; and 9-tap -145,161 DSP48E2 crosstalk witness), making vacuous theorems impossible.
  3. All 58,649 declarations pass 6 / 6 independent checkers (Lean 4.36.0 paranoid, lean4lean, nanoda, con-leche --verified, con-ron --verified, and Lean default), anchoring JouleBit-LUT6 kernels that cut real ornith-1.0-9B Zen 5 RAPL reported_j by 3.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: