On the paper by Xun Yu and Zigang Zhu: a pencil of quintic surfaces in which every smooth member carries exactly 85 lines, a member with Picard number 43 — and a machine-checked proof of the line count in Lean 4, with the computer algebra re-done in Magma.
Faculty of Mathematics and Computer Science · Adam Mickiewicz University in Poznań
The paper rewritten for the seminar: statements, proof ideas, what was verified and how, the findings register and exercises. Typeset in LaTeX (7 pages); the single mathematical source of truth for everything on this page.
Read the digest (PDF) →Seminar notes as a Jupyter Book: the arguments of the paper written out, with the computations executed when the book is built.
Open the notes →The reveal.js deck for the 90-minute talk.
View the slides →Lean 4 + Mathlib in the Palomar-registry format: Lemma 3.1 and Theorem 1.1 fully proved; the lattice criterion of Section 2 with Propositions 2.2 and 2.3 as explicit hypotheses. Challenge.lean is the short file to audit.
The paper and the formal statements in one document generated with Verso, the statements read directly from the Lean library.
Open the document →Exact re-computations in Magma: the certificates behind Theorem 1.1 (re-checked by Lean), the 85 lines of \(X_{-1/8}\) in \(\mathbb{Q}(i,\sqrt[4]{2},\sqrt[4]{3})\), the elliptic quotient \(Y\) with its L-function mod 13, the symmetry groups and Section 5.
Scripts and transcripts →SFARA — Seminarium z form automorficznych i rozmaitości abelowych (seminar on automorphic forms and abelian varieties), Faculty of Mathematics and Computer Science, Adam Mickiewicz University in Poznań.
How many lines can a smooth surface of degree \(d\) in \(\mathbb{P}^3\) contain? Every smooth cubic surface contains exactly 27 lines, and the maximum for smooth quartics is 64: Schur found a quartic with 64 lines in 1882, Segre claimed in 1943 that this is the maximum, and the flaw in the argument was found and corrected by Rams and Schütt. For quintics the answer is unknown. Rams and Schütt proved that a smooth quintic contains at most 127 lines, while the best examples, the Fermat and Barth quintics, had 75.
In a paper posted in September 2026, Xun Yu and Zigang Zhu construct a pencil of quintic surfaces \(X_t\) in which every smooth member contains exactly 85 lines. One member, \(X_{-1/8}\), also breaks the record for the Picard number of a smooth quintic (43, against 41 for the Barth quintic and the Hodge bound 45), and its Néron–Severi group is generated by the 85 lines and four conics — proved with a new lattice-theoretic notion, \(d\)-saturated lattices.
I will explain the geometry behind these results and report on a formalization of their elementary core in Lean 4. The smoothness criterion (Lemma 3.1) and the count of exactly 85 lines for every \(t \notin \{0, 1\}\) (Theorem 1.1) are now machine-checked, over every algebraically closed field of characteristic 0: Magma finds the algebraic certificates and Lean checks them. The Picard number rests on Hodge theory, an elliptic surface and reduction modulo 13; there the computations were re-done in Magma. The checks found no mathematical error — some imprecise wording, one implicit hypothesis, one strengthening and one supplement (findings F1–F9 below); the exact Magma re-verification of Sections 3–5 agrees with the paper everywhere.
Two records for smooth quintic surfaces in \(\mathbb{P}^3\), and explicit generators of a Néron–Severi group of rank 43.
The pencil (Yu–Zhu, eq. (3.1)): \(X_t = V(F_t) \subset \mathbb{P}^3\) with
For every \(t \notin \{0, 1\}\) the surface \(X_t\) is smooth and contains exactly 85 lines: \(L_1 = V(x_3, x_4)\), the 20 lines meeting it (four in each of the planes \(x_3 = 0\) and \(x_4 = \mu x_3\), \(\mu(\mu^3 - t) = 0\)) and 64 lines skew to it. Lean
\(X_{-1/8}\) has Picard number 43 (Hodge bound \(h^{1,1} = 45\)). Lower bound: the 85 lines and four conics span a lattice of rank 43. Upper bound: Shioda's inequality for a quotient by \(\mathbb{Z}/4\), an elliptic surface \(Y\), and reduction modulo 13: \(\rho \le 45 + 4 - 34 + 28 = 43\).
\(\mathrm{NS}(X_{-1/8})\) is generated by the classes of the 85 lines and four conics \(C_1, \dots, C_4\): the lattice \(N = M \cap h^\perp\) is 5-saturated, so Corollary 2.5 gives \(M = \mathrm{NS}\) (\(\operatorname{rk} M = 43\), \(\operatorname{disc} M = 2^{18}\cdot 3^7\)).
| smooth surface in \(\mathbb{P}^3\) | previous record | Yu–Zhu 2026 | known upper bound |
|---|---|---|---|
| lines on a quintic | 75 (Fermat and Barth quintics) | 85 | 127 (Rams–Schütt 2020) |
| Picard number of a quintic | 41 (Barth quintic; Rams–Schütt 2014) | 43 | 45 \(= h^{1,1}\) (Hodge) |
| pairwise skew lines on a quintic | 19 | 24 | 30 \(= 2d(d-2)\) (Miyaoka 1984) |
| lines on a surface of degree 10 | 300 | 356 | — |
| pairwise skew lines, degree 10 | 84 | 112 | 160 \(= 2d(d-2)\) (Miyaoka 1984) |
For comparison: every smooth cubic contains exactly 27 lines; a smooth quartic at most 64 (Schur 1882, Segre 1943, Rams–Schütt 2015). The skew-line and degree-10 records come from the further examples of Section 5 (quintics with 79 lines; a surface of degree 10 with 356 lines). Sources: the paper's introduction and the digest, §0–1 and §7.
Approximate timing.
grind without certificates; the axiom audit and six kernels; what stays a hypothesis.How each claim of the paper was checked here — the three worlds of the project, as in the digest.
The paper and the digest: what is claimed and why. The deep inputs — Voisin's and Feyzbakhsh–Thomas' bound, Shioda's inequality, specialization — stay on paper.
ρ(X) ≤ 45 + 2r − b₂(Y) + ρ(Y)Exact computer algebra: finds certificates, verifies the explicit lines, Kodaira fibres and L-functions. Exact, but we trust the implementation.
(Q, Q′, R) ∩ ℚ[t] = (t² − t)Proofs checked by a small kernel — and by five more kernels. Every Magma certificate is re-verified; axioms only propext, Classical.choice, Quot.sound.
| claim (paper) | Lean | Magma | numerical | notes |
|---|---|---|---|---|
| Lemma 3.1: \(X_t\) is smooth iff \(t \notin \{0,1\}\) | proved | — | — | Quintic85.isSmooth_iff; over any algebraically closed field of characteristic 0; F3 |
| Theorem 1.1: exactly 85 lines on \(X_t\) for every \(t \notin \{0,1\}\) | proved | certificates | — | Quintic85.ncard_lines; 26 identities found by Magma and re-checked by Lean (Cert.lean); the key eliminations re-proved by grind with no certificate (GrindDemo.lean); F1, F2, F7 |
| “exactly 16 solutions \((\lambda, u)\)” for each good pair | proved | exact | — | elimination ideal of \((Q, Q', R)\) is \((t^2 - t)\); SymPy: \(\operatorname{disc} Q_r \equiv -6^6\,t^2(t-1)^2 \pmod{R(r)}\) (F1) |
| the explicit 85 lines of \(X_{-1/8}\): on \(X\), distinct, each meets 20 others, intersection matrix of rank 39 | not yet | exact | 50 digits | exactly in \(\mathbb{Q}(i, \sqrt[4]{2}, \sqrt[4]{3})\), degree 32 (magma/out/04_lines_exact.out); no typo (F6) |
| Definition 2.1; Lemma 2.6 (the direction used) | proved | — | — | IsSaturated, isSaturated_of_prime_check |
| Corollary 2.5: the NS criterion | proved | — | — | eq_of_saturated, with Propositions 2.2, 2.3, evenness of \(h^\perp\) and \(h \in \mathrm{NS}\) as explicit hypotheses (F4) |
| Propositions 2.2 (Feyzbakhsh–Thomas, Voisin) and 2.3 | hypotheses | — | — | not checked wall-crossing, Voisin's restriction estimates, Bertini, Castelnuovo |
| Theorem 1.2, lower bound: four conics on \(X_{-1/8}\), the 89 curves span rank 43 | — | exact | \(C_1 \subset X\) | rank 43; the new intersection numbers by two independent exact methods (magma/out/05_ns_lattice.out); 50-digit screen of \(C_1\) (artifacts/computational/) |
| Theorem 1.2, upper bound: \(Y\) has fibres \(5I_0^* + I_4 + 2I_1\), good reduction at 13, Mordell–Weil rank over \(\overline{\mathbb{F}}_{13}(t)\) at most 3 | — | exact | — | L-function \((x-1)^2(x+1)\cdot\)(sextic) (F5); \(r = 2\) also confirmed (07_aut.out); the Weierstrass model of \(Y\) and Shioda's inequality: not checked |
| Theorem 1.3: \(\operatorname{disc} M\), the discriminant group, 5-saturation | — | exact | — | \(\operatorname{disc} M = 2^{18}\cdot 3^7\), \(N^\vee/N\) as claimed, \(n_6(N) = 5440\); all 639 + 364 isotropic subgroups have a witness \(x^2 \ge -6\), re-checked in pure Python (magma/check_witnesses.py); report artifacts/mathematical/magma-verification.md |
| Remark 3.2: \(G_{48} \cong \mathrm{SL}(2,3) \rtimes C_2\) preserves every \(X_t\), \(G_{96}\) preserves \(X_{-1}\) | — | exact | — | orders 48 and 96; \(A_3\) preserves \(X_t\) only for \(t = -1\); \(G_{48}\) acts faithfully on the 85 lines of \(X_{-1/8}\) (magma/out/07_aut.out) |
| Remark 4.1: the 85 lines of \(X_{-1}\) span a lattice of rank 39 | — | exact | — | intersection matrix computed after reduction mod 73 (07_aut.out); \(\rho(X_{-1}) = 39\) and generation by lines: not checked |
| Section 5: \(Y_t\) smooth iff \(t \notin \{-5,-1,1,\tfrac54\}\); 79, 61, 55 and 43 lines; 21 and 24 pairwise skew lines; degree 10: 356 lines, 112 pairwise skew | — | exact | — | all counts as in the paper (magma/out/08_section5.out); smoothness and skewness in degree 10 via reduction mod \(p\) |
| Not in the paper: over \(\mathbb{Q}\), \(L_1\) is the only line of \(X_{-1/8}\) | proved | — | — | Quintic85.Rational.lines_rat, a by-product of F7: none of the auxiliary quartics has a rational root |
The Lean build. Lean 4.35.0 and Mathlib v4.35.0 (Palomar requires at least v4.35.0-rc2).
sorrys of Challenge.lean;Quintic85 use only propext, Classical.choice, Quot.sound (evidence: formal/verification/README.md);lake comparator --paranoid accepts the solution with 6 kernels: the Lean default and paranoid kernels, lean4lean, nanoda, con-leche and con-ron (run without the bubblewrap sandbox on the WMI cluster, which has none);linear_combination) and once by Lean's grind with no certificate at all.Logs of the last run: formal/verification/ (build.log, comparator.log, versions.txt).
What the formalization and the re-computations found in the paper (digest, §8). None of the findings affects a result.
| # | place | finding | kind |
|---|---|---|---|
| F1 | Thm 1.1, “clearly there are exactly 16 solutions” | True for every \(t \notin \{0,1\}\): modulo \(R(r)\) the discriminant of \(Q_r\) is \(-46656\,t^2(t-1)^2 = -6^6\,t^2(t-1)^2\); proved in Lean. | confirmed |
| F2 | Thm 1.1, “from this and \(t \neq 0\) we get \(a_{11}a_{12}a_{21}a_{22} \neq 0\)” | The case \(a_{12} = a_{22} = 0\) is excluded by the constant term 1 of (3.6), not by \(t \neq 0\). | wording |
| F3 | Lemma 3.1, case “exactly one of \(x_1, x_2\) is zero” | Needs \(x_1x_2 = 0\) to kill the \(x_1^2x_2^2\) term before \(F = c^5(1-t)\); implicit. | wording |
| F4 | Corollary 2.5 | Uses \(h \in \mathrm{NS}(X)\) to make \((D' \cdot h)\) an integer; necessary in the abstract lattice form (automatic on a surface). | implicit hypothesis |
| F5 | Thm 1.2, “the rank of the Mordell–Weil lattice of \(Y \otimes \overline{\mathbb{F}}_{13}\) is at most 3” | Correct as the geometric bound (reciprocal roots \(13\zeta\): \(\zeta = 1\) twice, \(\zeta = -1\) once); the rank over \(\mathbb{F}_{13}(t)\) itself is at most 2. | wording |
| F6 | the explicit list of the 85 lines | No typo: every listed line lies on \(X_{-1/8}\) (50-digit screen, and exactly in Magma). | confirmed |
| F7 | Thm 1.1, the classification of the lines | The explicit description of the lines (Quintic85.lines_eq) holds over any field of characteristic 0 with \(t \notin \{0,1\}\): the \(K\)-rational lines of \(X_t\) are exactly the listed ones with parameters in \(K\). Algebraic closure is only needed to count roots. Found because the linter flagged [IsAlgClosed K] as unused. Consequence, proved in Lean: over \(\mathbb{Q}\), \(L_1\) is the only line of \(X_{-1/8}\). | strengthening |
| F8 | Thm 1.2 “\(C_j = \sigma^{j-1}(C_1)\)”; Remark 3.2 “\(\mathrm{SL}(2,3) \rtimes C_2\)”; Thm 5.1, the roots \(b_1, b_2\) | Each admits two readings (two sets of four conics; several groups of order 48 of this shape; the order of \(b_1, b_2\)). All readings were checked in Magma: the same rank, \(\operatorname{disc} M\) and \(N^\vee/N\); \(G_{48}\) is SmallGroup(48,33); the lines are pairwise skew either way. | wording |
| F9 | Remark 4.1 (\(X_{-1}\)) | Supplement (Magma): the 85 lines of \(X_{-1}\) span rank 39 and \(S_X \cap h^\perp\) passes the saturation test of Lemma 2.6, so \(\mathrm{NS}(X_{-1})\) is generated by lines provided \(\rho(X_{-1}) = 39\) (not checked). | supplement |
From the repository root. Lean runs on the laptop for interactive work and the live demo (a partial Mathlib cache in formal/.lake, see formal/README.md) and on the WMI UAM cluster through tools/wmi.sh (rsync + srun) for the reference verification runs; Magma runs on the faculty's Magma host through tools/magma_run.sh.
# once: toolchain and shallow dependency clones on /work, then Mathlib oleans for the needed modules tools/wmi.sh setup tools/wmi.sh cache Mathlib.Algebra.MvPolynomial.PDeriv … # full build of the default targets, including the axiom audit (Audit.lean) tools/wmi.sh build # lake comparator --paranoid (6 kernels); no bubblewrap on the cluster, hence no sandbox tools/wmi.sh run 'Q85_NO_SANDBOX=1 bash scripts/verify-comparator.sh' # the live demo of the talk: locally (VS Code on formal/, or the command line, about 4 s) ... (cd formal && lake env lean demo/LiveDemo.lean) # ... or on a compute node (about 6 s, WMI network) tools/wmi.sh demo
The command that regenerates the logs in formal/verification/logs/ is in formal/verification/README.md; the runbook is MAINTENANCE.md.
tools/magma_run.sh magma/02_lines_certificates.m --timeout 1200 > magma/out/02_lines_certificates.out tools/magma_run.sh magma/03_good_pair_small.m --timeout 600 > magma/out/03_good_pair_small.out # Magma finds, Lean checks: turn the certificates into formal/Quintic85/Cert.lean python3 -I tools/cert2lean.py magma/out/02_lines_certificates.out magma/out/03_good_pair_small.out \ > formal/Quintic85/Cert.lean tools/magma_run.sh magma/04_lines_exact.m > magma/out/04_lines_exact.out # the 85 lines, exactly tools/magma_run.sh magma/06_elliptic_quotient.m > magma/out/06_elliptic_quotient.out
uv run --no-project --with mpmath --with numpy python -I artifacts/computational/check_listing_numeric.py uv run --no-project --with numpy --with matplotlib --with pillow --with mpmath python -I scripts/generate_hero.py
The paper, the literature it builds on (from its bibliography), and the tools.
lake comparator)
lean4lean
nanoda
Magma computational algebra system
Jupyter Book
The picture in the header is the result of a computation, not a drawing.
It is the incidence graph of the 85 lines on the smooth quintic surface \(X_{-1/8} \subset \mathbb{P}^3\): each dot is one line, and two dots are joined when the two lines meet. The lines are computed from the explicit equations listed in Section 3 of the paper, in 50-digit arithmetic. Two lines meet exactly when the \(4 \times 4\) determinant of their spanning vectors vanishes; with the spanning vectors normalized, every such determinant here is either below \(10^{-50}\) or above \(0.06\), so there is no doubt which pairs meet. Every line meets exactly 20 others — 850 meeting pairs in all — and the incidence matrix agrees entry by entry with the one Magma computes exactly.
\(L_1\) sits in the centre, joined to the 20 lines it meets on the inner ring. These lie in the five planes through \(L_1\) that contain further lines, four in each; the four lines of one plane pass through a common vertex and meet each other, so they sit at the corners of a square and are joined by arcs. The 64 lines skew to \(L_1\) form the outer ring; each of them meets exactly one line of each of the five planes, and 15 other skew lines. The substitution \((x_3, x_4) \mapsto (i x_3, i x_4)\) multiplies \(F_t\) by \(i\), so it maps the surface to itself: it fixes \(L_1\) and the 20 lines meeting it and permutes the 64 skew lines in 16 cycles of length 4. The members of each cycle are placed a quarter turn apart, so this symmetry is the rotation by 90° and the web of curves between skew lines is exactly 4-fold symmetric.
Each edge is a gradient between the colours of its two ends — the three colours of the page, amber, indigo and green, with white for \(L_1\) — and light adds up where edges cross. The image was generated by a Python script (mpmath, NumPy, Pillow), which first checks all of the above and that the intersection matrix of the lines (\(L^2 = -3\) on the diagonal) has rank 39.