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 Mathlib.RingTheory.MvPolynomial.Ideal |
| 2 | import Mathlib.RingTheory.Regular.Flat |
| 3 | import Mathlib.Data.List.Nodup |
| 4 | |
| 5 | /-! # Polynomial Regular Sequence -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.PolynomialRegularSequence.Constructions |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Distinct polynomial coordinates form a regular sequence. The proof |
| 12 | uses the monomial coefficients of the actual polynomial ring, and flat |
| 13 | base change supplies regular equations in geometric coordinate rings. -/ |
| 14 | |
| 15 | open RingTheory.Sequence |
| 16 | |
| 17 | variable {R σ : Type*} [CommRing R] |
| 18 | |
| 19 | theorem mem_span_X_of_mul_mem (s : Set σ) (j : σ) (hj : j ∉ s) |
| 20 | (f : MvPolynomial σ R) |
| 21 | (hf : MvPolynomial.X j * f ∈ Ideal.span (MvPolynomial.X '' s)) : |
| 22 | f ∈ Ideal.span (MvPolynomial.X '' s) := by |
| 23 | classical |
| 24 | apply MvPolynomial.mem_ideal_span_X_image.mpr |
| 25 | intro m hm |
| 26 | have hmul : m + Finsupp.single j 1 ∈ (MvPolynomial.X j * f).support := by |
| 27 | rw [MvPolynomial.mem_support_iff, mul_comm (MvPolynomial.X j) f, |
| 28 | MvPolynomial.coeff_mul_X] |
| 29 | exact MvPolynomial.mem_support_iff.mp hm |
| 30 | obtain ⟨i, hi, hmi⟩ := MvPolynomial.mem_ideal_span_X_image.mp hf _ hmul |
| 31 | have hij : i ≠ j := fun h => hj (h ▸ hi) |
| 32 | refine ⟨i, hi, ?_⟩ |
| 33 | simpa only [Finsupp.add_apply, Finsupp.single_eq_of_ne hij, add_zero] using hmi |
| 34 | |
| 35 | theorem variable_regular_mod_other_variables (s : Set σ) (j : σ) (hj : j ∉ s) : |
| 36 | IsSMulRegular (MvPolynomial σ R ⧸ Ideal.span (MvPolynomial.X (R := R) '' s)) |
| 37 | (MvPolynomial.X j : MvPolynomial σ R) := by |
| 38 | apply (isSMulRegular_quotient_iff_mem_of_smul_mem _ _).mpr |
| 39 | intro f hf |
| 40 | exact mem_span_X_of_mul_mem s j hj f hf |
| 41 | |
| 42 | theorem ideal_ofList_variables (ls : List σ) : |
| 43 | Ideal.ofList (ls.map (MvPolynomial.X : σ → MvPolynomial σ R)) = |
| 44 | Ideal.span (MvPolynomial.X '' {j | j ∈ ls}) := by |
| 45 | apply congrArg Ideal.span |
| 46 | ext f |
| 47 | simp |
| 48 | |
| 49 | theorem variables_weaklyRegular (ls : List σ) (hl : ls.Nodup) : |
| 50 | IsWeaklyRegular (MvPolynomial σ R) (ls.map (MvPolynomial.X (R := R))) := by |
| 51 | constructor |
| 52 | intro i hi |
| 53 | have hi' : i < ls.length := by simpa only [List.length_map] using hi |
| 54 | rw [List.getElem_map, ← List.map_take] |
| 55 | have he : (Ideal.ofList ((ls.take i).map (MvPolynomial.X (R := R))) • |
| 56 | ⊤ : Submodule (MvPolynomial σ R) (MvPolynomial σ R)) = |
| 57 | Ideal.span (MvPolynomial.X (R := R) '' {j | j ∈ ls.take i}) := by |
| 58 | change Ideal.ofList ((ls.take i).map (MvPolynomial.X (R := R))) * |
| 59 | (⊤ : Ideal (MvPolynomial σ R)) = _ |
| 60 | rw [Ideal.mul_top, ideal_ofList_variables] |
| 61 | rw [he] |
| 62 | apply variable_regular_mod_other_variables |
| 63 | intro hh |
| 64 | obtain ⟨j, hj, hej⟩ := List.mem_take_iff_getElem.mp hh |
| 65 | have hji := hl.getElem_inj_iff.mp hej |
| 66 | omega |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.CycleClass.Thom.PolynomialRegularSequence.Constructions |