Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Linear.FormFunction |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.HyperplaneDegreeEquivalence |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Saturation.Polynomial |
| 4 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Hilbert.Truncation |
| 5 | |
| 6 | /-! # Hyperplane Polynomial -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.HyperplanePolynomial.GradedHilbert |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Regular hyperplane sections have the finite-difference Hilbert polynomial. -/ |
| 13 | |
| 14 | open _root_.MvPolynomial |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | def hilbertDifference (P : Polynomial ℚ) : Polynomial ℚ := |
| 19 | P - P.comp (Polynomial.X - 1) |
| 20 | |
| 21 | theorem hilbertDifference_eval (P : Polynomial ℚ) (d : ℚ) : |
| 22 | (hilbertDifference P).eval d = P.eval d - P.eval (d - 1) := by |
| 23 | simp only [hilbertDifference, Polynomial.eval_sub, Polynomial.eval_comp, Polynomial.eval_X, |
| 24 | Polynomial.eval_one] |
| 25 | |
| 26 | variable {K : Type u} [Field K] {n : ℕ} |
| 27 | |
| 28 | theorem linearForm_hasHilbertPolynomial (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) |
| 29 | (l : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n) (hl : l.IsHomogeneous 1) |
| 30 | (hreg : ∀ f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K n, l * f ∈ I.toIdeal → f ∈ I.toIdeal) |
| 31 | (P : Polynomial ℚ) (hP : Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal P) : |
| 32 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial (Linear.FormQuotient.GradedHilbert.linearFormQuotientIdeal I l hl).toIdeal (hilbertDifference P) := by |
| 33 | obtain ⟨N, hN⟩ := hP |
| 34 | refine ⟨N + 1, fun d hd => ?_⟩ |
| 35 | have hd0 : 1 ≤ d := by omega |
| 36 | have h := Linear.FormFunction.GradedHilbert.linearForm_hilbertFunction I l hl hreg (d - 1) |
| 37 | rw [Nat.sub_add_cancel hd0] at h |
| 38 | have h' : (Hilbert.Polynomial.GradedHilbert.hilbertFunction I.toIdeal (d - 1) : ℚ) + |
| 39 | (Hilbert.Polynomial.GradedHilbert.hilbertFunction (Linear.FormQuotient.GradedHilbert.linearFormQuotientIdeal I l hl).toIdeal d : ℚ) = |
| 40 | (Hilbert.Polynomial.GradedHilbert.hilbertFunction I.toIdeal d : ℚ) := by exact_mod_cast h |
| 41 | rw [hN (d - 1) (by omega), hN d (by omega), Nat.cast_sub hd0, Nat.cast_one] at h' |
| 42 | rw [hilbertDifference_eval] |
| 43 | linarith |
| 44 | |
| 45 | theorem coordinateHyperplane_hasHilbertPolynomial |
| 46 | (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K (n + 1))) |
| 47 | (hreg : ∀ f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K (n + 1), X 0 * f ∈ I.toIdeal → f ∈ I.toIdeal) |
| 48 | (P : Polynomial ℚ) (hP : Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal P) : |
| 49 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial (Coordinate.Hyperplane.GradedHilbert.coordinateHyperplaneIdeal I).toIdeal (hilbertDifference P) := by |
| 50 | obtain ⟨N, hN⟩ := linearForm_hasHilbertPolynomial I (X 0) (isHomogeneous_X K 0) hreg P hP |
| 51 | exact ⟨N, fun d hd => (congrArg (fun a : ℕ => (a : ℚ)) (HyperplaneDegreeEquivalence.GradedHilbert.coordinateHyperplane_hilbertFunction I d)).symm.trans |
| 52 | (hN d hd)⟩ |
| 53 | |
| 54 | theorem saturated_coordinateHyperplane_hasHilbertPolynomial |
| 55 | (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K (n + 1))) |
| 56 | (hreg : ∀ f : Hilbert.Polynomial.GradedHilbert.CoordinateRing K (n + 1), X 0 * f ∈ I.toIdeal → f ∈ I.toIdeal) |
| 57 | (P : Polynomial ℚ) (hP : Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal P) : |
| 58 | Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial (Projective.Saturation.GradedHilbert.projectiveSaturation (Coordinate.Hyperplane.GradedHilbert.coordinateHyperplaneIdeal I)).toIdeal (hilbertDifference P) := |
| 59 | (Saturation.Polynomial.GradedHilbert.projectiveSaturation_hasHilbertPolynomial_iff _ _).mpr (coordinateHyperplane_hasHilbertPolynomial I hreg P hP) |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.HyperplanePolynomial.GradedHilbert |