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.CycleClass.Thom.LocalizedPrimeLength |
| 2 | import Mathlib.RingTheory.Ideal.MinimalPrime.Basic |
| 3 | import Mathlib.Algebra.BigOperators.Group.List.Lemmas |
| 4 | |
| 5 | /-! # Prime Filtration Multiplicity -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.PrimeFiltrationMultiplicity.Constructions |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! At a minimal support prime, the number of repeated copies of that |
| 12 | prime in a filtration is exactly the actual localized module length. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | |
| 16 | open OAI.AlgebraicGeometry.CycleClass.Thom.LocalizedModuleLength.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.LocalizedPrimeLength.Constructions |
| 17 | |
| 18 | universe u v |
| 19 | variable (R : Type u) [CommRing R] |
| 20 | (M : Type v) [AddCommGroup M] [Module R M] [Module.Finite R M] |
| 21 | (p : PrimeSpectrum R) (hp : p.asIdeal ∈ (Module.annihilator R M).minimalPrimes) |
| 22 | |
| 23 | include hp |
| 24 | |
| 25 | theorem factor_not_le (q : PrimeSpectrum R) |
| 26 | (hq : Module.support R (R ⧸ q.asIdeal) ⊆ Module.support R M) (hne : q ≠ p) : |
| 27 | ¬ q.asIdeal ≤ p.asIdeal := by |
| 28 | intro hle |
| 29 | have hqm : q ∈ Module.support R M := hq (by |
| 30 | rw [Module.mem_support_iff_of_finite, Ideal.annihilator_quotient]) |
| 31 | have he : p.asIdeal ≤ q.asIdeal := hp.2 ⟨q.isPrime, Module.mem_support_iff_of_finite.mp hqm⟩ hle |
| 32 | exact hne (PrimeSpectrum.ext (le_antisymm hle he)) |
| 33 | |
| 34 | theorem sum_localLength_eq_count (ps : List (PrimeSpectrum R)) |
| 35 | (hs : ∀ q ∈ ps, Module.support R (R ⧸ q.asIdeal) ⊆ Module.support R M) : |
| 36 | (ps.map (fun q => LocalizedModuleLength.Constructions.localLength R (R ⧸ q.asIdeal) p)).sum = (ps.count p : ℕ∞) := by |
| 37 | classical |
| 38 | induction ps with |
| 39 | | nil => simp only [List.map_nil, List.sum_nil, List.count_nil, Nat.cast_zero] |
| 40 | | cons q qs ih => |
| 41 | have hi := ih (fun a ha => hs a (List.mem_cons_of_mem q ha)) |
| 42 | rw [List.map_cons, List.sum_cons, hi] |
| 43 | by_cases hq : q = p |
| 44 | · subst q |
| 45 | rw [LocalizedPrimeLength.Constructions.localLength_self] |
| 46 | simp only [List.count_cons_self, Nat.cast_add, Nat.cast_one, add_comm] |
| 47 | · rw [LocalizedPrimeLength.Constructions.localLength_prime_of_not_le R p q (factor_not_le R M p hp q |
| 48 | (hs q (List.mem_cons_self)) hq), zero_add] |
| 49 | simp only [List.count_cons_of_ne hq] |
| 50 | |
| 51 | theorem localLength_eq_count (ps : List (PrimeSpectrum R)) |
| 52 | (hs : ∀ q ∈ ps, Module.support R (R ⧸ q.asIdeal) ⊆ Module.support R M) |
| 53 | (hl : LocalizedModuleLength.Constructions.localLength R M p = (ps.map (fun q => LocalizedModuleLength.Constructions.localLength R (R ⧸ q.asIdeal) p)).sum) : |
| 54 | LocalizedModuleLength.Constructions.localLength R M p = (ps.count p : ℕ∞) := |
| 55 | hl.trans (sum_localLength_eq_count R M p hp ps hs) |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.CycleClass.Thom.PrimeFiltrationMultiplicity.Constructions |