Formalization project for mathematics around
The current active proof-following track is:
- arXiv:2009.12982, Quantum soundness of the classical low individual degree test (LDT).
The in-repo paper source mirror lives at references/ldt-paper/.
When working on the active track, consult these locations in this order:
references/ldt-paper/— in-repo TeX source mirror for the paper. This is the mathematical ground truth.blueprint/src/chapter/— active, dependency-tracked LaTeX blueprint with Lean cross-references (\lean{},\leanok).MIPStarRE/— Lean scaffold that matches the blueprint. Declarations inMIPStarRE.LDT.*are cross-referenced from the blueprint.
Supporting notes:
audits/2026-03-20_ldt-source-map.md— source-file / theorem-ownership mapaudits/2026-03-20_ldt-blueprint-dependency-review.md— dated dependency-review snapshot (context, not canonical)
The blueprint is organized by theorem ownership and proof dependency, not by raw TeX input order.
MIPStarRE/
├── Quantum/ # Reusable matrix / measurement infrastructure
│ ├── FiniteHilbert.lean
│ ├── FiniteMatrix.lean
│ ├── Measurement.lean
│ └── ProjectorONB.lean
└── LDT/ # Low individual degree test (12 submodules)
├── Basic/ # Parameters, operators, distributions, submeasurements
├── Test/ # Test definitions & main theorem
├── Preliminaries/
├── MakingMeasurementsProjective/
├── MainInductionStep/
├── ExpansionHypercubeGraph/
├── GlobalVariance/
├── SelfImprovement/
├── CommutativityPoints/
├── Commutativity/
├── Pasting/
└── Tactic/ # Project-local tactics & simp sets
Each LDT submodule typically contains Defs.lean and Theorems.lean (larger
submodules split these across subdirectories). The root module MIPStarRE.lean
re-exports MIPStarRE.Quantum and MIPStarRE.LDT.
Top-level directories:
MIPStarRE/— Lean source (see above)blueprint/src/— active LDT blueprint (chapters underblueprint/src/chapter/)references/ldt-paper/— in-repo TeX source for the LDT paperdocs/— contributor guides, style, naming, proof integrity, CI notesaudits/— dated chapter-by-chapter dependency-scouting reports
The source-file order is not the proof-dependency order. The recommended implementation order is:
- Sections 3–4: test setup and preliminaries
- Section 5: making measurements projective
- Sections 7–8: expansion and global variance
- Section 9: self-improvement
- Sections 10–11: commutativity
- Section 12: pasting
- Section 6: main induction wrapper
Toolchain: See lean-toolchain and lakefile.toml for the pinned Lean and Mathlib versions.
From the repo root:
# First-time setup: fetch the Mathlib cache, then build
lake exe cache get
lake build
# Type-check a single file (fastest iteration loop)
lake env lean MIPStarRE/LDT/SelfImprovement/Defs.lean
# Check declarations referenced from the blueprint
lake exe checkdecls blueprint/lean_declsBlueprint commands (from the repo root, with leanblueprint on your PATH):
leanblueprint pdf # PDF output
leanblueprint web # HTML outputStart with docs/CONTRIBUTING.md for PR/issue conventions and the review checklist. Key references:
Mathlib-derived references:
| File | Purpose |
|---|---|
docs/style.md |
Mathlib code style (line length, indentation, tactic formatting) |
docs/naming.md |
Mathlib naming conventions (70+ rules, symbol dictionary) |
docs/doc.md |
Mathlib documentation standards (module headers, docstrings) |
docs/pr-review.md |
Mathlib PR review guide |
MIPStarRE-local references:
| File | Purpose |
|---|---|
docs/CONTRIBUTING.md |
PR format, issue templates, label taxonomy, review checklist |
docs/PROOF_INTEGRITY.md |
Blocker / warning patterns for proof correctness |
docs/mathematical_language.md |
Project-local mathematical language rules for Lean names and documentation |
docs/blueprint_style_guide.md |
Blueprint notation and section conventions |
docs/ci-automation.md |
CI/CD workflow details |
audits/ |
Chapter-by-chapter Mathlib dependency scouting reports |
When adding or completing a declaration, update the corresponding blueprint entry in blueprint/src/chapter/: add \lean{DeclName} and \leanok for new results, or \leanok on \begin{proof} for newly proven results.