Expand description
Lean 4 code generator — Phase 7 of the pipeline.
Generates Lean 4 source files from YAML kernel contracts:
- Definition files with kernel functions as Lean
defoverℝ - Theorem stubs with
sorryfor each proof obligation that has aleanblock - Import structure based on Mathlib dependencies
Also provides lean_status for reporting proof status across contracts.
Structs§
- Lean
File - A generated Lean 4 file.
- Lean
Status Report - Status report for Lean proofs in a single contract.
- Obligation
Status - Status of a single obligation’s Lean proof.
Functions§
- format_
status_ report - Format a
LeanStatusReportas a human-readable table. - generate_
lean_ files - Generate Lean 4 source files from a contract.
- lean_
status - Report Lean proof status for a contract.