2.2. The Palomar contract
A reader who wants to trust Theorem 1.1 should not have to read 2000 lines of proof. The Palomar format reduces what must be read to one short file, and makes a tool check everything else.
2.2.1. Three files
-
Challenge.leanis the audit surface. It imports only Mathlib, spells out every definition used by the advertised statements (here: the pencil, smoothness, lines, and the lattice notions of Section 2), and states the advertised theorems with a deliberatesorry. -
Solution.leanimports the development — not the challenge — and thereby provides declarations with the same names. -
comparator.jsonlists the names to compare and the axioms that are permitted.
lake comparator (shipped with the Lean toolchain from v4.35.0-rc2 on) then checks that every
listed definition is the same in both files, that every listed theorem has the same type in
both files, that the solution's proofs are accepted by Lean's kernel and by independent kernels,
and that they use no axioms beyond the permitted ones. The configuration, as it is on disk:
{
"challenge_module": "Challenge",
"solution_module": "Solution",
"theorem_names": [
"Quintic85.isSmooth_iff",
"Quintic85.ncard_lines",
"Quintic85.Lattice.isSaturated_of_prime_check",
"Quintic85.Lattice.eq_of_saturated"
],
"definition_names": [
"Quintic85.F",
"Quintic85.IsSmooth",
"Quintic85.IsLineOn",
"Quintic85.Lattice.IsOverlattice",
"Quintic85.Lattice.IsIntegral",
"Quintic85.Lattice.IsEven",
"Quintic85.Lattice.IsSaturated",
"Quintic85.Lattice.perp"
],
"permitted_axioms": ["propext", "Quot.sound", "Classical.choice"],
"enable_nanoda": true
}The challenge, as it is on disk — this is the part of the formalization that a referee has to read:
module
public import Mathlib.Algebra.MvPolynomial.PDeriv
public import Mathlib.LinearAlgebra.FiniteDimensional.Basic
public import Mathlib.Data.Set.Card
public import Mathlib.FieldTheory.IsAlgClosed.Basic
public import Mathlib.LinearAlgebra.BilinearMap
public import Mathlib.Algebra.Group.Subgroup.ZPowers.Basic
public import Mathlib.Data.Nat.Prime.Defs
@[expose] public section
/-!
# Yu–Zhu, *A smooth quintic surface with 85 lines and Picard number 43* — statements
Source: Xun Yu, Zigang Zhu, arXiv:2609.26862v1 (22 Sep 2026). This file is the audit surface:
every definition used by an advertised theorem is spelled out here, and every advertised theorem
is stated with a deliberate `sorry`. The proofs are in `Solution.lean` (which imports the
development `Quintic85`, not this file); Comparator checks that names, types and definitions agree.
## Conventions
Homogeneous coordinates `x₁, x₂, x₃, x₄` of `ℙ³` are the variables `X 0, X 1, X 2, X 3`. A
point of `ℙ³` is a nonzero vector of `K⁴ = Fin 4 → K`; a line of `ℙ³` is a two-dimensional
subspace of `K⁴`. The paper works over `ℂ`; we state the results over an arbitrary
algebraically closed field `K` of characteristic zero (`ℂ` being an instance).
## Advertised results
* `Quintic85.isSmooth_iff` — **Lemma 3.1**: `X_t` is smooth iff `t ∉ {0, 1}`.
* `Quintic85.ncard_lines` — **Theorem 1.1**: for `t ∉ {0, 1}` the surface `X_t` contains exactly
85 lines.
* `Quintic85.Lattice.isSaturated_of_prime_check` — **Lemma 2.6** (direction used in the paper).
* `Quintic85.Lattice.eq_of_saturated` — **Corollary 2.5**, with the geometric inputs
(Propositions 2.2 and 2.3 of the paper, which rest on Voisin's and Feyzbakhsh–Thomas'
results) as explicit hypotheses.
-/
namespace Quintic85
open MvPolynomial
variable {K : Type*} [Field K]
/-- The quintic form `F_t ∈ K[x₁, x₂, x₃, x₄]` of Yu–Zhu, eq. (3.1); `xᵢ` is `X (i - 1)`. -/
noncomputable def F (t : K) : MvPolynomial (Fin 4) K :=
(X 2 - X 3) * (X 0 ^ 4 - 3 * X 1 ^ 4) - 6 * (X 2 + X 3) * X 0 ^ 2 * X 1 ^ 2 +
X 2 * X 3 * (X 3 ^ 3 - C t * X 2 ^ 3)
/-- `X_t = V(F_t) ⊂ ℙ³` is smooth (Jacobian criterion): at every nonzero vector where `F_t`
vanishes, some partial derivative of `F_t` is nonzero. -/
def IsSmooth (t : K) : Prop :=
∀ x : Fin 4 → K, x ≠ 0 → eval x (F t) = 0 → ∃ i, eval x (pderiv i (F t)) ≠ 0
/-- A line of `ℙ³` lying on `X_t`: a two-dimensional subspace `W ⊆ K⁴` on which `F_t` vanishes. -/
def IsLineOn (t : K) (W : Submodule K (Fin 4 → K)) : Prop :=
Module.finrank K W = 2 ∧ ∀ w ∈ W, eval w (F t) = 0
/-- **Lemma 3.1** (Yu–Zhu). Over an algebraically closed field of characteristic zero, the
surface `X_t` is smooth if and only if `t ∉ {0, 1}`. -/
theorem isSmooth_iff [CharZero K] [IsAlgClosed K] (t : K) : IsSmooth t ↔ t ≠ 0 ∧ t ≠ 1 := by
sorry
/-- **Theorem 1.1** (Yu–Zhu). Over an algebraically closed field of characteristic zero, for every
`t ∉ {0, 1}` the smooth quintic surface `X_t` contains exactly 85 lines. -/
theorem ncard_lines [CharZero K] [IsAlgClosed K] (t : K) (ht0 : t ≠ 0) (ht1 : t ≠ 1) :
{W : Submodule K (Fin 4 → K) | IsLineOn t W}.ncard = 85 := by
sorry
end Quintic85
namespace Quintic85.Lattice
section Overlattice
variable {V : Type*} [AddCommGroup V]
/-- `A` is an *overlattice* of `N`: `N ⊆ A`, and the quotient `A / N` is torsion, i.e. some
positive multiple `m a` of every `a ∈ A` lies in `N`. For lattices (finitely generated `A`) this
says exactly that `N` has finite index in `A`. (If `N` is a nondegenerate lattice, as in the
paper, and `A` is integral, then `A ⊆ N^∨ ∩ ℚN` is automatically finitely generated.) -/
def IsOverlattice (N A : AddSubgroup V) : Prop :=
N ≤ A ∧ ∀ a ∈ A, ∃ m : ℕ, 0 < m ∧ (m : ℤ) • a ∈ N
end Overlattice
variable {V : Type*} [AddCommGroup V] [Module ℚ V] (B : LinearMap.BilinForm ℚ V)
/-- `A` is *integral* (for the form `B`): all products `x · y = B x y` of vectors `x, y ∈ A` are
integers. -/
def IsIntegral (A : AddSubgroup V) : Prop := ∀ x ∈ A, ∀ y ∈ A, ∃ z : ℤ, B x y = z
/-- `A` is *even* (for the form `B`): all squares `x² = B x x` of vectors `x ∈ A` are even
integers. -/
def IsEven (A : AddSubgroup V) : Prop := ∀ x ∈ A, ∃ z : ℤ, B x x = 2 * z
/-- **Definition 2.1** (Yu–Zhu): `N` is *`d`-saturated* if every even overlattice `A ⊋ N`
(that is: `A` is an overlattice of `N`, `A` is integral and even, and `A ≠ N`) contains a vector
`x ∈ A \ N` with `x² ≥ -2(d - 2)`.
In the paper `d ≥ 5` and `N` is an even negative definite lattice; these standing assumptions are
not needed to state (or to use) the condition, so they are not part of the definition. -/
def IsSaturated (d : ℕ) (N : AddSubgroup V) : Prop :=
∀ A : AddSubgroup V, IsOverlattice N A → IsIntegral B A → IsEven B A → N ≠ A →
∃ x ∈ A, x ∉ N ∧ -(2 * ((d : ℚ) - 2)) ≤ B x x
/-- The *orthogonal complement* `h^⊥ = {x ∈ V | x · h = 0}` of a vector `h ∈ V`, as an additive
subgroup of `V`. (For a symmetric form, as in the paper, the order of the two arguments of `B`
does not matter.) -/
def perp (h : V) : AddSubgroup V where
carrier := {x | B x h = 0}
add_mem' {x y} hx hy := by
change B x h = 0 at hx
change B y h = 0 at hy
change B (x + y) h = 0
rw [LinearMap.map_add₂, hx, hy, add_zero]
zero_mem' := by
change B 0 h = 0
exact LinearMap.map_zero₂ B h
neg_mem' {x} hx := by
change B x h = 0 at hx
change B (-x) h = 0
rw [LinearMap.map_neg₂, hx, neg_zero]
/-- **Lemma 2.6** (Yu–Zhu), the direction used in the paper: if for every prime `p` and every
isotropic element `y` of order `p` of the discriminant group `N^∨ / N` (that is: `y ∉ N`,
`p y ∈ N`, `y · n ∈ ℤ` for `n ∈ N`, `y² ∈ 2ℤ`) there is a vector `x ∈ (N + ℤ y) \ N` with
`x² ≥ -2(d - 2)`, then `N` is `d`-saturated. -/
theorem isSaturated_of_prime_check (d : ℕ) (N : AddSubgroup V)
(hcheck : ∀ (p : ℕ), p.Prime → ∀ y : V, y ∉ N → (p : ℤ) • y ∈ N →
(∀ n ∈ N, ∃ z : ℤ, B y n = z) → (∃ z : ℤ, B y y = 2 * z) →
∃ x ∈ N ⊔ AddSubgroup.zmultiples y, x ∉ N ∧ -(2 * ((d : ℚ) - 2)) ≤ B x x) :
IsSaturated B d N := by
sorry
/-- **Corollary 2.5** (Yu–Zhu), in lattice-theoretic form. `NS` plays the role of the
Néron–Severi lattice of a smooth surface `X ⊂ ℙ³` of degree `d`, `h` that of the hyperplane class,
and `M ⊆ NS` that of a sublattice of full rank `ρ(X)` containing the classes of all lines.
The hypotheses `hprop22` and `hprop23` are Propositions 2.2 and 2.3 of the paper (the latter
combined with `S_X ⊆ M`); `heven` is the evenness of `h^⊥` (adjunction). -/
theorem eq_of_saturated (d : ℕ) (NS M : AddSubgroup V) (h : V)
(hNS : IsIntegral B NS) (hM : IsOverlattice M NS)
(hL : ∃ L ∈ M, B L h = 1) (hhNS : h ∈ NS)
(heven : IsEven B (NS ⊓ perp B h))
(hprop22 : ∀ D ∈ NS, B D h = 0 → D ≠ 0 → B D D ≤ -(2 * ((d : ℚ) - 2)))
(hprop23 : ∀ D ∈ NS, B D h = 0 → B D D = -(2 * ((d : ℚ) - 2)) → D ∈ M)
(hsat : IsSaturated B d (M ⊓ perp B h)) :
M = NS := by
sorry
end Quintic85.LatticeAnd the solution:
module public import Quintic85 /-! # Proved solution The declarations named in `comparator.json` are proved in the development `Quintic85` (`Quintic85.Smooth`, `Quintic85.Lines`, `Quintic85.Lattice`), imported here. This module does not import `Challenge`. Comparator compares the types of the advertised theorems and the definitions they use with the Mathlib-only `Challenge.lean`, then checks the proofs with Lean's kernel and the toolchain's independent kernels, allowing only the axioms `propext`, `Classical.choice` and `Quot.sound`. -/
2.2.2. The challenge statements are the library's statements
The signature blocks in Part I for Quintic85.isSmooth_iff,
Quintic85.ncard_lines, Quintic85.Lattice.isSaturated_of_prime_check and
Quintic85.Lattice.eq_of_saturated are written exactly as in Challenge.lean, and Verso
compared each of them with the compiled declaration while building this page — the same agreement
that the comparator establishes at the level of the kernel. The same holds for the definitions:
the challenge's text of Quintic85.F was confirmed by rfl in
the section on the pencil, and the two geometric definitions unfold to the
challenge's text:
example {K : Type*} [Field K] (t : K) :
Quintic85.IsSmooth t ↔
∀ x : Fin 4 → K, x ≠ 0 → MvPolynomial.eval x (Quintic85.F t) = 0 →
∃ i, MvPolynomial.eval x (MvPolynomial.pderiv i (Quintic85.F t)) ≠ 0 :=
Iff.rfl
example {K : Type*} [Field K] (t : K) (W : Submodule K (Fin 4 → K)) :
Quintic85.IsLineOn t W ↔
Module.finrank K W = 2 ∧ ∀ w ∈ W, MvPolynomial.eval w (Quintic85.F t) = 0 :=
Iff.rfl
Two features of the statements deserve a sentence each.
-
The field. The paper works over
\mathbb{C}. The challenge quantifies over every algebraically closed fieldKof characteristic zero;\mathbb{C}is an instance, so the formal statement is (slightly) stronger, and nothing in the proof uses analysis. -
Lines. A line is a two-dimensional subspace of
K^4on whichF_tvanishes identically — set-theoretic containment of the projective line inX_t, which is what "line onX_t" means. The count is a count of distinct subspaces, i.e. of distinct lines.