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.AbelianModuli.HilbertConstruction.SaturatedFlatIdeals |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Uniform.GeneratedReconstruction |
| 3 | |
| 4 | /-! # Rank Necessity -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! An actual field Hilbert ideal forces the finite numerical rank test used by the parameter construction. -/ |
| 11 | |
| 12 | universe u |
| 13 | |
| 14 | variable {K : Type u} [Field K] {n N : ℕ} {P : Polynomial ℚ} |
| 15 | |
| 16 | theorem SaturatedFlatIdeals.SaturatedFlatHilbertIdeal.generatedRankTest (I : SaturatedFlatIdeals.SaturatedFlatHilbertIdeal K n P) |
| 17 | (hI : HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial I.ideal.toIdeal P) (hN : HilbertScheme.Presentations.Uniform.FamilyCoordinates.GradedHilbert.uniformHilbertFamilyDegree.{u} n P ≤ N) : |
| 18 | Generated.RankTests.GeneratedHilbertRankTest n P N := by |
| 19 | let B := max N (Truncated.PolynomialTest.truncatedHilbertTestBound n N) |
| 20 | let D := I.generatedData N hN B |
| 21 | have hNB : N ≤ B := Nat.le_max_left _ _ |
| 22 | have hs : HilbertScheme.Presentations.Projective.Saturation.GradedHilbert.projectiveSaturation D.val.generatedIdeal = I.ideal := |
| 23 | Uniform.GeneratedReconstruction.uniformGeneratedTruncation_saturation I.ideal I.saturated P I.hilbert N hN B hNB |
| 24 | have hD : HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial D.val.generatedIdeal.toIdeal P := by |
| 25 | apply (HilbertScheme.Presentations.Saturation.Polynomial.GradedHilbert.projectiveSaturation_hasHilbertPolynomial_iff D.val.generatedIdeal P).mp |
| 26 | rw [hs] |
| 27 | exact hI |
| 28 | have ht := (D.val.generated_hilbertPolynomial_finite_test N hNB D.property (Nat.le_max_right _ _) P).mp hD |
| 29 | refine ⟨ht.1, ?_⟩ |
| 30 | intro i |
| 31 | have hi := ht.2 i |
| 32 | rw [Uniform.GeneratedCoordinates.generatedHilbertRanks, ite_eq_right (Nat.not_lt.mpr |
| 33 | ((Generated.RankTests.generatedHilbertTestDegree_ge n N).trans (Nat.le_add_right _ _)))] at hi |
| 34 | exact hi |
| 35 | |
| 36 | end |
| 37 | |
| 38 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |