Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Cayley–Salmon: a smooth cubic surface has exactly 272727 lines

Open
CubicSurface27.twenty_seven_lines

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

algebraic-geometrycubic-surfacesenumerative-geometry

The Cayley–Salmon theorem, the capstone of the source: every smooth cubic surface over C\mathbb{C}C contains exactly 272727 lines.

Precisely, let FFF be a homogeneous cubic form in four variables over C\mathbb{C}C whose zero locus V(F)⊂P3V(F)\subset\mathbb{P}^3V(F)⊂P3 is smooth (the Jacobian criterion: at every nonzero point of the affine cone over V(F)V(F)V(F) some partial derivative of FFF is nonzero). Then the set of lines on V(F)V(F)V(F) — the 222-dimensional linear subspaces of C4\mathbb{C}^4C4 on which FFF vanishes identically — is finite of cardinality 272727:

#{lines on V(F)}=27.\#\{\text{lines on }V(F)\}=27.#{lines on V(F)}=27.

This is the basic discrete invariant of a cubic surface, anchoring its description as the blowup of P2\mathbb{P}^2P2 at six points and the E6E_6E6​ Weyl-group action on the lines.

Formalization Note. The count is Set.ncard (linesOf F). The theorem quantifies over all smooth cubic forms, with no genericity hypothesis beyond smoothness; it is the source's final Theorem ("If XXX is smooth, then sFs_FsF​ has transverse zeroes. Therefore XXX contains exactly 27 lines").

Preamble
import Mathlib
import Definitions.Def_cubic_surface_27_layer
Formal statement
namespace CubicSurface27

theorem twenty_seven_lines (F : MvPolynomial (Fin 4) ℂ)
    (hF : IsCubicForm F) (hsm : IsSmoothCubic F) :
    (linesOf F).ncard = 27 := by sorry

end CubicSurface27
Source
Jack Huizenga, answer to "In Algebraic Geometry, why are there exactly 27 straight lines on a smooth cubic surface?", Quora. Archived 2026-11-20 at https://perma.cc/38AQ-6ZCM (snapshot of https://suosuo.de/uu0jlKJ). Part II, final Theorem: 'If X is smooth, then s_F has transverse zeroes. Therefore X contains exactly 27 lines.' (Also Part I: 'A general smooth cubic surface contains exactly 27 lines.')
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