Repository navigation
Milestone
Description
Child of #27; plan and rationale in this comment.
Scope
Remove the handwritten Lean libraries from the release tree. Their content becomes native core-module/1 LexLean source (SPEC §17.10), and the Lean the verifier compiles is generated from it by the compiler.
language/preservation-1.2/library/LexLeanPreservation/*.lean(13 modules, 934 registered declarations);compiler/proofs/LexLeanCertification/*.lean(13 modules, 107 registered declarations).
Work
- A one-time lossless exporter, run by the pinned Lean over the elaborated environments, outside the release tree and recoverable from a commit (the Atlas precedent,
examples/uor-atlas/MIGRATION.md). - Extend the core-module schema, linking, and both backends only where the libraries need a construct it lacks (each extension registered under R3 with its own scenario and test).
- The libraries become language data of the embedded compiler project: native
.lex.texmodules, with the library registry (declarations and their exact axioms) checked against the generated Lean's axiom audit. - The verifier stages the Lean generated from the native modules, not a committed
.leanfile; certificates A, B, E and the production corpora elaborate against it unchanged. - Re-point every gate that reads the library text (statement vocabulary, correspondence audit,
SP-04,GC-09, shipped-module and registry checks) at the native source or its generated artifact. - A permanent condition, in the manner of
VR-19, that no independently authored Lean implementation of these libraries exists in the release tree.
DoD
- No handwritten Lean contains the preservation or certification libraries.
- The library source is ordinary closed
.lex.texthat can be snapshotted like any project, content-addressed and reproducible. - Every registered declaration, with its exact axioms, is unchanged, and generated modules import only
Initand the generated graph. - Editing generated Lean cannot become authoritative: regeneration restores it, and a planted source-versus-generated drift is caught.
Acceptance criteria
- Equivalence evidence: re-exporting the regenerated environments equals the original export declaration by declaration (types, values, reducibility, attributes), recorded in a migration record.
- Lean elaboration,
leancheckerreplay and the exact axiom audit pass for the generated libraries, and for the certificates of every production corpus built on them. - Planted defects (a changed declaration, an added axiom, a stale generated module, a handwritten
.leanfile reintroduced) each turn a named gate red. - Public compatibility: languages 1.0 and 1.1 are byte-identical; language 1.2 identities are regenerated and the change is recorded.
- Full
just vvpasses.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsDone
Activity
wip(#79): preservation library as native core-module/2 sources (stage…
wip(#79): Lean-printed axiom sets, complete library audit, vocabulary…
chore(#79): migration oracle checkpoint for the preservation library
wip(#79): regenerated language-1.2 locks and goldens, revised decoder…
wip(#79): migration record with the equivalence evidence; verified re…
wip(#79): depth-bounded core-module rendering, regenerated fixtures a…
wip(#79): inlining, sparse casesOn, and grind state in core-module/2;…
wip(#79): re-exported library data with inlining, sparse, and grind s…
wip(#79): sparse casesOn constants are made public or private as thei…
wip(#79): each sparse casesOn is made in its own realization, as the …
chore(#79): migration oracle checkpoint for the preservation library …
wip(#79): oracle removed after its final checkpoint; migration record…
wip(#79): fixture expectations, verified records, and Rust package fi…
wip(#79): repository gate fixes: row total, forbidden token, 1.2-only…
12 remaining items
wip(#79): README capability claim covers GC-11
wip(#79): GC-11 holds the permanent no-handwritten-Lean condition ove…
docs(#79): certification migration record names its oracle checkpoint…
chore(#79): migration oracle checkpoint for the certification library
wip(#79): certification library native; GC-09 re-pointed, GC-11 added
wip(#79): certification library reproducibility check, manifest state…
wip(#79): oracle removed after its checkpoint; migration record, chan…
wip(#79): README capability claim covers GC-11
wip(#79): GC-11 holds the permanent no-handwritten-Lean condition ove…
docs(#79): certification migration record names its oracle checkpoint…
docs(#79): certification migration record names the oracle checkpoint…
Merge pull request #86 from UOR-Foundation/claude/trusting-ramanujan-…
Merge origin/main (the certification library, #79) into the rust-std …