exaspec / Documentation
leanexe documents
Leanexe compiles programs written in a first-order subset of Lean and proves that the compiled code computes the Lean definition. These technical reports describe its compiler, its targets, its numerical library, its guarantees, and its verification knowledge bases. Each report links to the leanexe sources that it cites, at the commit that it names.
- Core leanexe: a verified compiler for a subset of Lean (PDF, 27 November 2026): the verified compiler from the Lean subset to a WebAssembly module and the theorem that each module receives.
- Leanexe's targets: composed theorems in stated semantics, with exact trusted bases (PDF, 27 November 2026): each target's theorem, the semantics in which it holds, and the items that it takes without proof.
- Leanexe's numerical library: proved accuracy for compiled floating-point code (PDF, 27 November 2026): the binary64 functions and the kernel-checked theorems that bound the accuracy of their compiled code.
- Leanexe's guarantees: kernel-checked theorems and their written assumptions (PDF, 27 November 2026): what leanexe's theorems cover, what they trust, and the checks that guard both.
- Leanexe's verification knowledge bases: reviewed entries whose cited declarations a checker resolves (PDF, 27 November 2026): the knowledge bases that record what agents and people learn while proving theorems about leanexe programs.