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.DegreewiseRelations |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Homogeneous.IdealIncidence |
| 3 | |
| 4 | /-! # Graded Ideal Reconstruction -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.GradedIdealReconstruction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Actual reconstruction of a homogeneous ideal from degree submodules satisfying |
| 12 | the variable-multiplication incidences. Every prescribed degree is recovered, |
| 13 | and extracting degree relations from homogeneous ideals gives the inverse. |
| 14 | -/ |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | variable (R : Type u) [CommRing R] (σ : Type v) |
| 19 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 20 | |
| 21 | structure GradedIdealRelations where |
| 22 | piece : ∀ d, Submodule R (MvPolynomial.homogeneousSubmodule σ R d) |
| 23 | variable_mul : ∀ d i, piece d ≤ (piece (d + 1)).comap (Homogeneous.MultiplicationMatrices.homogeneousMultiplyX R σ d i) |
| 24 | |
| 25 | variable {R σ} |
| 26 | |
| 27 | namespace GradedIdealRelations |
| 28 | |
| 29 | theorem ext {D E : GradedIdealRelations R σ} (h : D.piece = E.piece) : D = E := by |
| 30 | cases D |
| 31 | cases E |
| 32 | cases h |
| 33 | rfl |
| 34 | |
| 35 | variable (D : GradedIdealRelations R σ) |
| 36 | |
| 37 | def toIdeal : Ideal (MvPolynomial σ R) where |
| 38 | carrier := DegreewiseRelations.degreewiseRelationsSubmodule D.piece |
| 39 | zero_mem' := (DegreewiseRelations.degreewiseRelationsSubmodule D.piece).zero_mem |
| 40 | add_mem' := (DegreewiseRelations.degreewiseRelationsSubmodule D.piece).add_mem |
| 41 | smul_mem' q _p hp := DegreewiseRelations.degreewiseRelations_mul D.piece D.variable_mul hp q |
| 42 | |
| 43 | def toHomogeneousIdeal : HomogeneousIdeal (MvPolynomial.homogeneousSubmodule σ R) := |
| 44 | ⟨D.toIdeal, by |
| 45 | intro d p hp |
| 46 | rw [Homogeneous.ComponentMultiplication.homogeneous_decompose_eq_component] |
| 47 | exact DegreewiseRelations.degreewiseRelations_component D.piece hp d⟩ |
| 48 | |
| 49 | theorem toHomogeneousIdeal_degree (d : ℕ) : |
| 50 | Homogeneous.IdealIncidence.homogeneousDegreeRelations D.toHomogeneousIdeal d = D.piece d := by |
| 51 | apply Submodule.ext |
| 52 | intro p |
| 53 | exact DegreewiseRelations.degreewiseRelations_mem_homogeneous D.piece p |
| 54 | |
| 55 | end GradedIdealRelations |
| 56 | |
| 57 | def homogeneousIdealRelations (I : HomogeneousIdeal (MvPolynomial.homogeneousSubmodule σ R)) : |
| 58 | GradedIdealRelations R σ where |
| 59 | piece := Homogeneous.IdealIncidence.homogeneousDegreeRelations I |
| 60 | variable_mul := Homogeneous.IdealIncidence.homogeneousDegreeRelations_multiply I |
| 61 | |
| 62 | theorem homogeneousIdealRelations_reconstruct |
| 63 | (I : HomogeneousIdeal (MvPolynomial.homogeneousSubmodule σ R)) : |
| 64 | (homogeneousIdealRelations I).toHomogeneousIdeal = I := by |
| 65 | apply HomogeneousIdeal.ext |
| 66 | apply Ideal.ext |
| 67 | intro p |
| 68 | exact (MvPolynomial.mem_iff_homogeneousComponent_mem I.isHomogeneous p).symm |
| 69 | |
| 70 | def homogeneousIdealRelationsEquiv : |
| 71 | HomogeneousIdeal (MvPolynomial.homogeneousSubmodule σ R) ≃ GradedIdealRelations R σ where |
| 72 | toFun := homogeneousIdealRelations |
| 73 | invFun := GradedIdealRelations.toHomogeneousIdeal |
| 74 | left_inv := homogeneousIdealRelations_reconstruct |
| 75 | right_inv D := by |
| 76 | apply GradedIdealRelations.ext |
| 77 | funext d |
| 78 | exact D.toHomogeneousIdeal_degree d |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.GradedIdealReconstruction |