LeanXRay, ZeroCommitSlice, and Bounded-Memory Verification: Dominator Auditing, Zero-Commit Compilation, and Streaming Proof-Body Analysis for Million-Declaration Lean 4 Proofs

Primarily AI-generated textHuman understanding: some partscs.LO — Logic in Computer Sciencemath.LO — Logic

Contributed by Robert Kadlec ↗

Version 1 / Nov 29, 2026 / CC BY 4.0

Abstract

Large-scale AI-assisted Lean 4 formalizations now exceed 1.26 x 10^6 declarations and 94 GiB of compiled .olean archives, while single-module lean4export 3.1.0 streams reach 445 MiB and commit ~1 GiB of OS memory in existing external checkers. We present lean-slice-oss, an Apache-2.0 engineering suite enabling million-declaration auditing and verification on 32 GiB workstations via four tools: (1) LeanXRay, combining Cooper-Harvey-Kennedy dominator auditing with native .olean structure inspection; (2) ZeroCommitSlice, a portable Windows/POSIX zero-commit .olean loader and reverse-topological slicer; (3) lean-export-stream, a Rust streaming structural/axiom auditor and proof-body liveness modeler; and (4) a 3-patch series for nanoda_lib 0.4.32 introducing a file-backed mmap expression arena and tagged axiom reporting. Across three real exports, the disk arena cuts peak Windows pagefile commit by 4.16x-14.64x and Linux RssAnon by 4.10x-8.51x. A cross-OS causal ablation shows that disabling theorem-body unfolding breaks Mathlib typechecking on Rat.instEncodable, proving permanent proof-body deletion incomplete and motivating reclaimable mmap arenas.

Author comments: 8 pages. Zenodo DOI: 10.5281/zenodo.24637930 | GitHub: https://github.com/Ikaro2023/lean-slice-oss | Purely AI-generated research directed and supervised by Robert Kadlec.

Provenance statement

Purely AI-generated research directed and supervised by Robert Kadlec.

References

  1. L. Alpöge, Lean 4 Formalization of the Riemann Hypothesis (Archive Revision 79c751e0b0a5ea3bbfc20198c852fa85f28661e6 ) , 2026.
  2. G. V. Chudnovsky, Lemniscate irrationality exponent via separated-weights interpolation in Lean 4 , arXiv:2610.26539, October 2026.arXiv
  3. con-leche / con-ron (v4.36.0), Third-party Lean 4 external kernel verifiers , 2026.
  4. K. D. Cooper, T. J. Harvey, and K. Kennedy, A simple, fast dominance algorithm , Software Practice & Experience 4 (2001), 1--10.
  5. R. Kadlec, Auditing the Principal-Character Cone of Alpöge's Lean Proof of the Riemann Hypothesis (Release v2.0.0) , Zenodo, https://doi.org/10.5281/zenodo.24584643, November 2026.DOI
  6. Lean FRO / lean4export (format v3.1.0), https://github.com/leanprover/lean4export, 2026.link
  7. T. Lengauer and R. E. Tarjan, A fast algorithm for finding dominators in a flowgraph , ACM Trans.\ Program.\ Lang.\ Syst.\ 1 (1979), no. 1, 121--141.
  8. The mathlib Community, The Lean mathematical library , Proc.\ 9th ACM SIGPLAN Int.\ Conf.\ Certified Programs and Proofs (CPP 2020), pp. 367--381.
  9. L. de Moura and S. Ullrich, The Lean 4 theorem prover and programming language , Automated Deduction -- CADE 28, LNCS 12699, Springer, 2021, pp. 625--635.
  10. ammkrn , nanoda_lib : A Lean 4 type checker in Rust (v0.4.32, commit 0da9f98f ) , https://github.com/ammkrn/nanoda_lib, 2026.link
Show all 11 referencesShow fewer references
  1. L. Sernau, grh-lean : Compact Lean 4 Formalization of GRH , https://github.com/lsernau/grh-lean, November 2026.link

Version history

  1. v1 · 8 pagesSubmitted by Robert Kadlec8 pages. Zenodo DOI: 10.5281/zenodo.24637930 | GitHub: https://github.com/Ikaro2023/lean-slice-oss | Purely AI-generated research directed and supervised by Robert Kadlec.CurrentNov 28, 2026