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.Polynomial.VariableRegularity |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Regular.SequenceBasic |
| 3 | import Mathlib.Data.List.Nodup |
| 4 | |
| 5 | /-! # Variable Sequence -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Polynomial.VariableSequence |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A list of distinct polynomial variables is a regular sequence. This supplies actual regular parameters before localization, over every nonzero coefficient ring. -/ |
| 12 | universe u v |
| 13 | variable {R : Type u} [CommRing R] {ι : Type v} |
| 14 | |
| 15 | theorem variable_list_ideal (xs : List ι) : |
| 16 | Regular.SequenceBasic.Ideal.ofList (xs.map (MvPolynomial.X : ι → MvPolynomial ι R)) = |
| 17 | Ideal.span (MvPolynomial.X '' {i | i ∈ xs}) := by |
| 18 | apply congrArg Ideal.span |
| 19 | ext p |
| 20 | exact List.mem_map |
| 21 | |
| 22 | theorem variable_list_weakly_regular (xs : List ι) (hxs : xs.Nodup) : |
| 23 | Regular.SequenceBasic.RingTheory.Sequence.IsWeaklyRegular (MvPolynomial ι R) (xs.map (MvPolynomial.X : ι → MvPolynomial ι R)) := by |
| 24 | classical |
| 25 | constructor |
| 26 | intro i hi |
| 27 | have hi' : i < xs.length := by simpa only [List.length_map] using hi |
| 28 | have hfresh : xs[i] ∉ {j | j ∈ xs.take i} := by |
| 29 | intro hmem |
| 30 | obtain ⟨k, hk, heq⟩ := List.mem_iff_getElem.mp hmem |
| 31 | have hki : k < i := by |
| 32 | simpa only [List.length_take, Nat.min_eq_left (Nat.le_of_lt hi')] using hk |
| 33 | have hk' : k < xs.length := lt_trans hki hi' |
| 34 | have heq' : xs[k] = xs[i] := by simpa only [List.getElem_take] using heq |
| 35 | exact (Nat.ne_of_lt hki) (hxs.getElem_inj_iff.mp heq') |
| 36 | rw [List.getElem_map, ← List.map_take, variable_list_ideal, Ideal.smul_eq_mul, Ideal.mul_top] |
| 37 | exact VariableRegularity.fresh_variable_smul_regular_quotient (R := R) {j | j ∈ xs.take i} xs[i] hfresh |
| 38 | |
| 39 | theorem variable_list_regular [Nontrivial R] (xs : List ι) (hxs : xs.Nodup) : |
| 40 | Regular.SequenceBasic.RingTheory.Sequence.IsRegular (MvPolynomial ι R) (xs.map (MvPolynomial.X : ι → MvPolynomial ι R)) := by |
| 41 | refine ⟨variable_list_weakly_regular xs hxs, ?_⟩ |
| 42 | rw [Ideal.smul_eq_mul, Ideal.mul_top, variable_list_ideal] |
| 43 | intro htop |
| 44 | have hle : Ideal.span (MvPolynomial.X '' {i | i ∈ xs}) ≤ |
| 45 | RingHom.ker (MvPolynomial.eval₂Hom (RingHom.id R) (fun _ : ι => 0)) := by |
| 46 | apply Ideal.span_le.mpr |
| 47 | rintro _ ⟨i, _, rfl⟩ |
| 48 | simp |
| 49 | have hone : (1 : MvPolynomial ι R) ∈ |
| 50 | RingHom.ker (MvPolynomial.eval₂Hom (RingHom.id R) (fun _ : ι => 0)) := |
| 51 | hle (htop ▸ (show (1 : MvPolynomial ι R) ∈ (⊤ : Ideal (MvPolynomial ι R)) from trivial)) |
| 52 | simp at hone |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Polynomial.VariableSequence |