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.NumberTheory.PadicHodge.IntegralComparison.Smooth.CoordinateRegularity |
| 2 | import Mathlib.RingTheory.Regular.RegularSequence |
| 3 | import Mathlib.Data.List.OfFn |
| 4 | |
| 5 | /-! # Regular Sequence -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.RegularSequence.CoordinateRegularity |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Regular sequences supplied by dual coordinates over an arbitrary base. -/ |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | theorem ofList_ofFn (A : Type*) [CommRing A] {r : ℕ} (z : Fin r → A) : |
| 16 | Ideal.ofList (List.ofFn z) = Ideal.span (Set.range z) := by |
| 17 | unfold Ideal.ofList |
| 18 | congr 1 |
| 19 | ext a |
| 20 | exact List.mem_ofFn' z a |
| 21 | |
| 22 | theorem ofList_take_ofFn (A : Type*) [CommRing A] {r : ℕ} (z : Fin r → A) |
| 23 | (j : Fin r) : |
| 24 | Ideal.ofList ((List.ofFn z).take j) = |
| 25 | Ideal.span (z '' {i : Fin r | i < j}) := by |
| 26 | unfold Ideal.ofList |
| 27 | congr 1 |
| 28 | ext a |
| 29 | simp only [Set.mem_ofPred_eq, List.mem_take_iff_getElem, List.length_ofFn, |
| 30 | List.getElem_ofFn, Set.mem_image] |
| 31 | constructor |
| 32 | · rintro ⟨i, hi, rfl⟩ |
| 33 | exact ⟨⟨i, (Nat.lt_min.mp hi).2⟩, (Nat.lt_min.mp hi).1, rfl⟩ |
| 34 | · rintro ⟨i, hi, rfl⟩ |
| 35 | exact ⟨i.val, Nat.lt_min.mpr ⟨hi, i.isLt⟩, rfl⟩ |
| 36 | |
| 37 | theorem family_isWeaklyRegular {k A : Type u} |
| 38 | [CommRing k] [CommRing A] [Algebra k A] [Algebra.Smooth k A] {r : ℕ} |
| 39 | (z : Fin r → A) (D : Fin r → Derivation k A A) |
| 40 | (hD : ∀ i j, D i (z j) = if i = j then 1 else 0) : |
| 41 | RingTheory.Sequence.IsWeaklyRegular A (List.ofFn z) := by |
| 42 | refine ⟨fun i hi => ?_⟩ |
| 43 | have hir : i < r := by simpa only [List.length_ofFn] using hi |
| 44 | have h := CoordinateRegularity.family_coordinate_regular_mod_preceding z D hD ⟨i, hir⟩ |
| 45 | rw [← ofList_take_ofFn A z ⟨i, hir⟩] at h |
| 46 | rw [Ideal.smul_eq_mul, Ideal.mul_top] |
| 47 | simp only [List.getElem_ofFn] |
| 48 | intro x y hxy |
| 49 | apply h.left |
| 50 | simpa only [← Ideal.Quotient.algebraMap_eq, Algebra.smul_def] using hxy |
| 51 | |
| 52 | theorem family_isRegular {k A : Type u} |
| 53 | [CommRing k] [CommRing A] [Algebra k A] [Algebra.Smooth k A] {r : ℕ} |
| 54 | (z : Fin r → A) (D : Fin r → Derivation k A A) |
| 55 | (hD : ∀ i j, D i (z j) = if i = j then 1 else 0) |
| 56 | (hproper : Ideal.span (Set.range z) ≠ ⊤) : |
| 57 | RingTheory.Sequence.IsRegular A (List.ofFn z) := by |
| 58 | refine ⟨family_isWeaklyRegular z D hD, ?_⟩ |
| 59 | rw [Ideal.smul_eq_mul, Ideal.mul_top, ofList_ofFn] |
| 60 | exact hproper.symm |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.RegularSequence.CoordinateRegularity |