# Quintic85 — Yu–Zhu's 85 lines in Lean (Palomar format) A Lean 4 formalization of the elementary core of Xun Yu, Zigang Zhu, *A smooth quintic surface with 85 lines and Picard number 43*, arXiv:2609.26862v1. | paper | Lean | status | |---|---|---| | Lemma 3.1: `X_t` smooth ⇔ `t ∉ {0,1}` | `Quintic85.isSmooth_iff` | proved | | Theorem 1.1: exactly 85 lines for every `t ∉ {0,1}` | `Quintic85.ncard_lines` | proved (any alg. closed field of char 0) | | Definition 2.1, Lemma 2.6 | `Quintic85.Lattice.IsSaturated`, `isSaturated_of_prime_check` | proved (direction used) | | Corollary 2.5 | `Quintic85.Lattice.eq_of_saturated` | proved; Props 2.2, 2.3 are explicit hypotheses | | Theorems 1.2, 1.3, Section 5 | — | not formalized (re-computed in Magma, `../magma/`) | | *(not in the paper)* `X_{-1/8}` has exactly one line over `ℚ` | `Quintic85.Rational.lines_rat` | proved (by-product of `lines_eq`, which needs only char 0) | * `Challenge.lean` — the audit surface (Mathlib-only imports, deliberate `sorry`s). * `Solution.lean` — imports the development; `comparator.json` names the compared declarations. * `Quintic85/` — `Defs`, `Smooth`, `Cert` (generated from Magma by `../tools/cert2lean.py`), `Roots`, `Spans`, `Families`, `Lines`, `Lattice`, `GrindDemo` (the key eliminations re-proved by `grind` with no certificate at all) and `Rational` (the lines of `X_{-1/8}` over `ℚ`). * `AxiomAudit.lean` + `Audit.lean` — the build fails unless every `Quintic85.*` declaration uses only `propext`, `Classical.choice`, `Quot.sound` (248 declarations at the last build). * `verification/logs/` — the build log, the comparator log and the exact toolchain/Mathlib revisions of the last verification run (see `verification/README.md`). * `scripts/verify-comparator.sh` — `lake comparator --paranoid` (6 kernels). * `demo/LiveDemo.lean` — the live demo for the talk (`tools/wmi.sh demo` from the repository root). Toolchain `leanprover/lean4:v4.35.0`, Mathlib `v4.35.0` (Palomar requires ≥ v4.35.0-rc2). ## Build locally (interactive work, the live demo) From `formal/` (≈ 1.8 GB in `formal/.lake`; the build takes ≈ 16 s on an M4 laptop): ```bash export MATHLIB_NO_CACHE_ON_UPDATE=1 MATHLIB_CACHE_DIR=$PWD/.lake/mathlib-cache elan toolchain install $(cat lean-toolchain) mkdir -p .lake/packages && python3 ../tools/remote/shallow_deps.py lake-manifest.json .lake/packages lake exe cache get $(grep -rhoE "^(public )?(meta )?import (all )?Mathlib\.[A-Za-z0-9_.]+" --include='*.lean' --exclude-dir=.lake . | sed -E 's/.*import (all )?//' | sort -u) rm -f $MATHLIB_CACHE_DIR/*.ltar lake build # incl. the axiom audit lake env lean demo/LiveDemo.lean # or open the folder formal/ in VS Code ``` ## Build and verify (WMI cluster; the reference runs) From the repository root: ```bash tools/wmi.sh setup # once: toolchain + shallow dependency clones on /work tools/wmi.sh cache Mathlib.Algebra.MvPolynomial.PDeriv ... # once: Mathlib oleans for the import closure tools/wmi.sh build # full build incl. the axiom audit tools/wmi.sh run 'Q85_NO_SANDBOX=1 bash scripts/verify-comparator.sh' # lake comparator --paranoid ``` On a machine with `bubblewrap`, `scripts/verify-comparator.sh` runs the sandboxed comparator exactly as Palomar does (after `lake exe cache get`).