Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The blowup Picard lattice and the 272727 classes

Definition
blowup_lattice_27

by LG · Nov 20, 2026 · Mathlib 0df444a (Lean v4.33.1)

algebraic-geometrycubic-surfacespicard-lattice

This file models the Picard lattice of X=Blp1,…,p6P2X=\mathrm{Bl}_{p_1,\dots,p_6}\mathbb{P}^2X=Blp1​,…,p6​​P2, the blowup of the projective plane at six sufficiently general points, purely as an abelian group with a bilinear form.

Following the source, every class is written D=aL−∑i=16biEiD=aL-\sum_{i=1}^6 b_iE_iD=aL−∑i=16​bi​Ei​, where LLL is the class of a line avoiding the six points and EiE_iEi​ is the exceptional divisor over pip_ipi​. It is represented by the coordinate pair (a,b)∈Z×(Fin 6→Z)(a,b)\in\mathbb{Z}\times(\mathrm{Fin}\,6\to\mathbb{Z})(a,b)∈Z×(Fin6→Z) (BlLattice). The intersection pairing is

(a,b)⋅(a′,b′)=aa′−∑i=16bibi′,(a,b)\cdot(a',b')=aa'-\sum_{i=1}^6 b_ib_i',(a,b)⋅(a′,b′)=aa′−i=1∑6​bi​bi′​,

which encodes the source's rules L2=1L^2=1L2=1, L⋅Ei=0L\cdot E_i=0L⋅Ei​=0, Ei⋅Ej=0E_i\cdot E_j=0Ei​⋅Ej​=0 for i≠ji\ne ji=j, and Ei2=−1E_i^2=-1Ei2​=−1.

Named classes: classL =L=L=L; classE i =Ei=E_i=Ei​ (whose bbb-coordinate is −1-1−1 at iii, since D=aL−∑biEiD=aL-\sum b_iE_iD=aL−∑bi​Ei​); classH =H=3L−∑iEi=H=3L-\sum_iE_i=H=3L−∑i​Ei​, the hyperplane class of the cubic embedding; classK =KX=−3L+∑iEi=K_X=-3L+\sum_iE_i=KX​=−3L+∑i​Ei​, the canonical class; lineClass i j =L−Ei−Ej=L-E_i-E_j=L−Ei​−Ej​, the class of the line through pip_ipi​ and pjp_jpj​; and conicClass i =2L−∑k≠iEk=2L-\sum_{k\ne i}E_k=2L−∑k=i​Ek​, the class of the conic through the five points other than pip_ipi​.

the27 is the finite set of the 272727 classes exhibited by the source: the 666 exceptional divisors, the 151515 pair-lines (one for each unordered pair {i,j}\{i,j\}{i,j}), and the 666 five-point conics.

Formalization Note. This is a concrete lattice, not a geometric blowup: it carries exactly the intersection rules the source uses and no further axioms. The sign convention D=aL−∑biEiD=aL-\sum b_iE_iD=aL−∑bi​Ei​ means the exceptional class EiE_iEi​ has bi=−1b_i=-1bi​=−1; the classification theorems instead assume bi≥0b_i\ge0bi​≥0 with a>0a>0a>0, matching the source's treatment of the non-exceptional classes.

Definition code
import Mathlib

open Finset

namespace CubicSurface27

/-- The Picard lattice of the blowup of ℙ² at six points, in the source's coordinates:
the class D = a·L − ∑ i, b i • E i is represented by the pair (a, b). -/
abbrev BlLattice := ℤ × (Fin 6 → ℤ)

/-- The intersection pairing, determined by L² = 1, L·Eᵢ = 0, Eᵢ·Eⱼ = 0 (i ≠ j), Eᵢ² = −1. -/
def inter (D D' : BlLattice) : ℤ :=
  D.1 * D'.1 - ∑ i : Fin 6, D.2 i * D'.2 i

/-- The class of a line in ℙ² meeting none of the six points. -/
def classL : BlLattice := (1, fun _ => 0)

/-- The exceptional divisor over the i-th point (its b-coordinate is −1 at i). -/
def classE (i : Fin 6) : BlLattice := (0, fun j => if j = i then -1 else 0)

/-- The hyperplane class of the cubic embedding: H = 3L − E₁ − ⋯ − E₆. -/
def classH : BlLattice := (3, fun _ => 1)

/-- The canonical class of the blowup: K = −3L + E₁ + ⋯ + E₆. -/
def classK : BlLattice := (-3, fun _ => -1)

/-- The class of the line through points i and j: L − Eᵢ − Eⱼ. -/
def lineClass (i j : Fin 6) : BlLattice := (1, fun k => if k = i ∨ k = j then 1 else 0)

/-- The class of the conic through the five points other than i: 2L − ∑ k ≠ i, Eₖ. -/
def conicClass (i : Fin 6) : BlLattice := (2, fun k => if k = i then 0 else 1)

/-- The 27 classes of the source's count: 6 exceptional divisors, 15 pair-lines,
6 five-point conics. -/
def the27 : Finset BlLattice :=
  (univ.image classE) ∪
  ((univ.filter (fun p : Fin 6 × Fin 6 => p.1 < p.2)).image (fun p => lineClass p.1 p.2)) ∪
  (univ.image conicClass)

end CubicSurface27
Source
Jack Huizenga, answer to "In Algebraic Geometry, why are there exactly 27 straight lines on a smooth cubic surface?", Quora (author: Jack Huizenga, Penn State). Archived 2026-11-20 at https://perma.cc/38AQ-6ZCM (snapshot of https://suosuo.de/uu0jlKJ). Part I, 'Blowup description of a cubic surface' (intersection rules 1–4, H = 3L − E₁ − ⋯ − E₆, K_X = −3L + E₁ + ⋯ + E₆) and 'Counting lines' items 1–3 (the three families of classes).
Human review
  • Endorsed by Shuze Chen · Nov 21, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Nov 21, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me