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.GradedIdealReconstruction |
| 2 | import Mathlib.RingTheory.Finiteness.Basic |
| 3 | |
| 4 | /-! # Graded Relations -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | If variable multiplication generates every degree above a bound, the |
| 12 | reconstructed ideal is generated by the relations in degrees up to that bound. |
| 13 | The generation hypothesis is explicit; no uniform bound is asserted here. |
| 14 | -/ |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | variable {R : Type u} [CommRing R] {σ : Type v} |
| 19 | |
| 20 | variable (D : GradedIdealReconstruction.GradedIdealRelations R σ) |
| 21 | |
| 22 | def GradedIdealReconstruction.GradedIdealRelations.lowDegreeRelations (B : ℕ) : Submodule R (MvPolynomial σ R) := |
| 23 | ⨆ d : Fin (B + 1), (D.piece d).map (MvPolynomial.homogeneousSubmodule σ R d).subtype |
| 24 | |
| 25 | def GradedIdealReconstruction.GradedIdealRelations.lowDegreeIdeal (B : ℕ) : Ideal (MvPolynomial σ R) := |
| 26 | Ideal.span (D.lowDegreeRelations B : Set (MvPolynomial σ R)) |
| 27 | |
| 28 | theorem GradedIdealReconstruction.GradedIdealRelations.lowDegreeIdeal_le (B : ℕ) : D.lowDegreeIdeal B ≤ D.toIdeal := by |
| 29 | apply Ideal.span_le.mpr |
| 30 | change D.lowDegreeRelations B ≤ D.toIdeal.restrictScalars R |
| 31 | apply iSup_le |
| 32 | intro d |
| 33 | rintro _ ⟨p, hp, rfl⟩ |
| 34 | exact (DegreewiseRelations.degreewiseRelations_mem_homogeneous D.piece p).mpr hp |
| 35 | |
| 36 | theorem GradedIdealReconstruction.GradedIdealRelations.piece_le_lowDegreeIdeal (B : ℕ) |
| 37 | (hgen : ∀ d, B ≤ d → D.piece (d + 1) = |
| 38 | ⨆ i : σ, (D.piece d).map (Homogeneous.MultiplicationMatrices.homogeneousMultiplyX R σ d i)) (d : ℕ) : |
| 39 | D.piece d ≤ ((D.lowDegreeIdeal B).restrictScalars R).comap |
| 40 | (MvPolynomial.homogeneousSubmodule σ R d).subtype := by |
| 41 | induction d using Nat.strong_induction_on with |
| 42 | | h d ih => |
| 43 | by_cases hd : d ≤ B |
| 44 | · intro p hp |
| 45 | apply Ideal.subset_span |
| 46 | exact (le_iSup (fun e : Fin (B + 1) => |
| 47 | (D.piece e).map (MvPolynomial.homogeneousSubmodule σ R e).subtype) |
| 48 | ⟨d, Nat.lt_succ_of_le hd⟩) ⟨p, hp, rfl⟩ |
| 49 | · obtain ⟨e, rfl⟩ := Nat.exists_eq_succ_of_ne_zero |
| 50 | (show d ≠ 0 by omega) |
| 51 | rw [hgen e (by omega)] |
| 52 | apply iSup_le |
| 53 | intro i |
| 54 | rintro _ ⟨p, hp, rfl⟩ |
| 55 | exact (D.lowDegreeIdeal B).mul_mem_left (MvPolynomial.X i) |
| 56 | (ih e (Nat.lt_succ_self e) hp) |
| 57 | |
| 58 | theorem GradedIdealReconstruction.GradedIdealRelations.lowDegreeIdeal_eq (B : ℕ) |
| 59 | (hgen : ∀ d, B ≤ d → D.piece (d + 1) = |
| 60 | ⨆ i : σ, (D.piece d).map (Homogeneous.MultiplicationMatrices.homogeneousMultiplyX R σ d i)) : |
| 61 | D.lowDegreeIdeal B = D.toIdeal := by |
| 62 | apply le_antisymm (D.lowDegreeIdeal_le B) |
| 63 | intro p hp |
| 64 | rw [← MvPolynomial.sum_homogeneousComponent p] |
| 65 | apply Ideal.sum_mem |
| 66 | intro d _hd |
| 67 | exact D.piece_le_lowDegreeIdeal B hgen d (hp d) |
| 68 | |
| 69 | theorem GradedIdealReconstruction.GradedIdealRelations.lowDegreeRelations_fg (B : ℕ) (hfg : ∀ d ≤ B, (D.piece d).FG) : |
| 70 | (D.lowDegreeRelations B).FG := by |
| 71 | apply Submodule.fg_iSup |
| 72 | intro d |
| 73 | exact (hfg d (Nat.le_of_lt_succ d.isLt)).map _ |
| 74 | |
| 75 | theorem GradedIdealReconstruction.GradedIdealRelations.lowDegreeIdeal_fg (B : ℕ) (hfg : ∀ d ≤ B, (D.piece d).FG) : |
| 76 | (D.lowDegreeIdeal B).FG := |
| 77 | (D.lowDegreeRelations_fg B hfg).span |
| 78 | |
| 79 | theorem GradedIdealReconstruction.GradedIdealRelations.toIdeal_fg_of_generated (B : ℕ) |
| 80 | (hgen : ∀ d, B ≤ d → D.piece (d + 1) = |
| 81 | ⨆ i : σ, (D.piece d).map (Homogeneous.MultiplicationMatrices.homogeneousMultiplyX R σ d i)) |
| 82 | (hfg : ∀ d ≤ B, (D.piece d).FG) : D.toIdeal.FG := by |
| 83 | rw [← D.lowDegreeIdeal_eq B hgen] |
| 84 | exact D.lowDegreeIdeal_fg B hfg |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |