Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Cauchy–Schwarz bound a<3a < 3a<3 for (−1)(-1)(−1)-classes

Proved
CubicSurface27.cauchy_schwarz_bound

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

algebraic-geometrycubic-surfacesinteger-arithmetic

The exhaustiveness step of the count. Let D=aL−∑i=16biEiD=aL-\sum_{i=1}^6 b_iE_iD=aL−∑i=16​bi​Ei​ be the class of an irreducible rational curve other than the exceptional divisors, so a>0a>0a>0 and bi≥0b_i\ge0bi​≥0 are integers. Self-intersection −1-1−1 gives a2−∑ibi2=−1a^2-\sum_i b_i^2=-1a2−∑i​bi2​=−1; the adjunction formula with KX=−3L+∑iEiK_X=-3L+\sum_iE_iKX​=−3L+∑i​Ei​ gives 3a−∑ibi=13a-\sum_i b_i=13a−∑i​bi​=1.

Cauchy–Schwarz applied to (1,…,1)(1,\dots,1)(1,…,1) and (b1,…,b6)(b_1,\dots,b_6)(b1​,…,b6​) yields (∑ibi)2≤6∑ibi2(\sum_i b_i)^2\le 6\sum_i b_i^2(∑i​bi​)2≤6∑i​bi2​. Substituting ∑ibi=3a−1\sum_i b_i=3a-1∑i​bi​=3a−1 and ∑ibi2=a2+1\sum_i b_i^2=a^2+1∑i​bi2​=a2+1 gives

(3a−1)2≤6(a2+1),i.e.3a2−6a−5≤0,(3a-1)^2\le 6(a^2+1),\qquad\text{i.e.}\qquad 3a^2-6a-5\le0,(3a−1)2≤6(a2+1),i.e.3a2−6a−5≤0,

whence a<3a<3a<3. This item states the final bound a<3a<3a<3 under the two numerical conditions.

Formalization Note. Pure integer arithmetic; the geometric origin of the two hypotheses (self-intersection and adjunction) is recorded in the source and is not assumed here.

Preamble
import Mathlib
open Finset
Formal statement
namespace CubicSurface27

theorem cauchy_schwarz_bound (a : ℤ) (b : Fin 6 → ℤ)
    (ha : 0 < a) (hb : ∀ i, 0 ≤ b i)
    (hself : a ^ 2 - ∑ i : Fin 6, (b i) ^ 2 = -1)
    (hadj : 3 * a - ∑ i : Fin 6, b i = 1) :
    a < 3 := 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 I, 'Counting lines', the exhaustiveness paragraph: D = aL − ΣbᵢEᵢ with a > 0, bᵢ ≥ 0, the equalities a² − Σbᵢ² = −1 and 3a − Σbᵢ = 1, Cauchy–Schwarz, and the conclusion a < 3.
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