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.BoundedHilbert.DegreeLocus |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Hilbert.Truncation |
| 3 | |
| 4 | /-! # Degree Rank Profile -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Polynomial.DegreeRankProfile.GradedHilbert |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The relation-rank profile determined by the Hilbert polynomial. Its |
| 11 | realizability is verified against actual homogeneous quotients. -/ |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | def polynomialDegreeRankProfile (n N : ℕ) (P : Polynomial ℚ) (d : ℕ) : ℕ := |
| 16 | Fintype.card (Homogeneous.CoordinateBasis.GradedHilbert.DegreeIndex.{u} n (d + N)) - (P.eval ((d + N : ℕ) : ℚ)).num.toNat |
| 17 | |
| 18 | variable {K : Type u} [Field K] {n : ℕ} |
| 19 | |
| 20 | theorem hilbertFunction_le_degreeIndex (I : Ideal (Hilbert.Polynomial.GradedHilbert.CoordinateRing K n)) (d : ℕ) : |
| 21 | Hilbert.Polynomial.GradedHilbert.hilbertFunction I d ≤ Fintype.card (Homogeneous.CoordinateBasis.GradedHilbert.DegreeIndex.{u} n d) := by |
| 22 | have h := Submodule.finrank_quotient_le (Hilbert.Polynomial.GradedHilbert.degreeRelations I d) |
| 23 | rw [Module.finrank_eq_card_basis (Homogeneous.CoordinateBasis.GradedHilbert.coordinateDegreeBasis K n d)] at h |
| 24 | exact h |
| 25 | |
| 26 | theorem polynomialDegreeRankProfile_add (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) |
| 27 | (hI : Hilbert.Polynomial.GradedHilbert.IsSaturated I.toIdeal) (P : Polynomial ℚ) (hP : Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal P) |
| 28 | (N : ℕ) (hN : Hilbert.Truncation.GradedHilbert.hilbertParameterDegree.{u} n P ≤ N) (d : ℕ) : |
| 29 | Hilbert.Polynomial.GradedHilbert.hilbertFunction I.toIdeal (d + N) + polynomialDegreeRankProfile.{u} n N P d = |
| 30 | Fintype.card (Homogeneous.CoordinateBasis.GradedHilbert.DegreeIndex.{u} n (d + N)) := by |
| 31 | have h := (Hilbert.Truncation.GradedHilbert.hilbertParameterDegree_spec n P K I hI hP).2 (d + N) |
| 32 | (hN.trans (Nat.le_add_left N d)) |
| 33 | unfold polynomialDegreeRankProfile |
| 34 | rw [← h] |
| 35 | simp only [Rat.num_natCast, Int.toNat_natCast] |
| 36 | exact Nat.add_sub_of_le (hilbertFunction_le_degreeIndex I.toIdeal (d + N)) |
| 37 | |
| 38 | theorem polynomialDegreeRankProfile_realizes (I : HomogeneousIdeal (Hilbert.Polynomial.GradedHilbert.grading K n)) |
| 39 | (hI : Hilbert.Polynomial.GradedHilbert.IsSaturated I.toIdeal) (P : Polynomial ℚ) (hP : Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.toIdeal P) |
| 40 | (N : ℕ) (hN : Hilbert.Truncation.GradedHilbert.hilbertParameterDegree.{u} n P ≤ N) : |
| 41 | BoundedHilbert.DegreeLocus.GradedHilbert.RankProfileRealizes.{u} n N (polynomialDegreeRankProfile.{u} n N P) P := by |
| 42 | refine ⟨Finite.PolynomialTest.GradedHilbert.hilbertPolynomial_natDegree_le I P hP, fun i => ?_⟩ |
| 43 | have h := polynomialDegreeRankProfile_add I hI P hP N hN (BoundedHilbert.DegreeLocus.GradedHilbert.hilbertTestDegree n N i) |
| 44 | rw [BoundedHilbert.DegreeLocus.GradedHilbert.hilbertTestDegree_add] at h |
| 45 | have he : Fintype.card (Homogeneous.CoordinateBasis.GradedHilbert.DegreeIndex.{u} n (Bounded.GeneratorFunction.GradedHilbert.generatorHilbertFunctionBound n N + i.val)) - |
| 46 | polynomialDegreeRankProfile.{u} n N P (BoundedHilbert.DegreeLocus.GradedHilbert.hilbertTestDegree n N i) = |
| 47 | Hilbert.Polynomial.GradedHilbert.hilbertFunction I.toIdeal (Bounded.GeneratorFunction.GradedHilbert.generatorHilbertFunctionBound n N + i.val) := by omega |
| 48 | rw [he] |
| 49 | exact (Hilbert.Truncation.GradedHilbert.hilbertParameterDegree_spec n P K I hI hP).2 _ |
| 50 | (hN.trans ((Local.RankTest.GradedHilbert.generatorHilbertFunctionBound_ge n N).trans (Nat.le_add_right _ _))) |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Polynomial.DegreeRankProfile.GradedHilbert |