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.Length |
| 2 | import Mathlib.RingTheory.Support |
| 3 | import Mathlib.Algebra.Module.LocalizedModule.Exact |
| 4 | |
| 5 | /-! # Localized Module Length -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.LocalizedModuleLength.Constructions |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Local lengths of actual localized modules form an additive |
| 12 | invariant of short exact sequences. Infinite lengths remain in ENat. -/ |
| 13 | |
| 14 | universe u v |
| 15 | variable (R : Type u) [CommRing R] |
| 16 | |
| 17 | def localLength (M : Type v) [AddCommGroup M] [Module R M] (p : PrimeSpectrum R) : ℕ∞ := |
| 18 | Module.length (Localization.AtPrime p.asIdeal) (LocalizedModule p.asIdeal.primeCompl M) |
| 19 | |
| 20 | variable {R} {M N L : Type v} [AddCommGroup M] [Module R M] |
| 21 | [AddCommGroup N] [Module R N] [AddCommGroup L] [Module R L] |
| 22 | |
| 23 | theorem localLength_equiv (e : M ≃ₗ[R] N) (p : PrimeSpectrum R) : |
| 24 | localLength R M p = localLength R N p := |
| 25 | (LinearEquiv.ofBijective (LocalizedModule.map p.asIdeal.primeCompl e.toLinearMap) |
| 26 | ⟨LocalizedModule.map_injective _ _ e.injective, |
| 27 | LocalizedModule.map_surjective _ _ e.surjective⟩).length_eq |
| 28 | |
| 29 | theorem localLength_eq_zero (p : PrimeSpectrum R) (hp : p ∉ Module.support R M) : |
| 30 | localLength R M p = 0 := by |
| 31 | let := Module.notMem_support_iff.mp hp |
| 32 | exact Module.length_eq_zero |
| 33 | |
| 34 | theorem localLength_subsingleton [Subsingleton M] (p : PrimeSpectrum R) : |
| 35 | localLength R M p = 0 := by |
| 36 | apply localLength_eq_zero |
| 37 | rw [Module.support_eq_empty] |
| 38 | exact Set.notMem_empty _ |
| 39 | |
| 40 | theorem localLength_additivity (f : M →ₗ[R] N) (g : N →ₗ[R] L) |
| 41 | (hf : Function.Injective f) (hg : Function.Surjective g) (hfg : Function.Exact f g) |
| 42 | (p : PrimeSpectrum R) : |
| 43 | localLength R N p = localLength R M p + localLength R L p := |
| 44 | Module.length_eq_add_of_exact (LocalizedModule.map p.asIdeal.primeCompl f) |
| 45 | (LocalizedModule.map p.asIdeal.primeCompl g) |
| 46 | (LocalizedModule.map_injective _ _ hf) (LocalizedModule.map_surjective _ _ hg) |
| 47 | (LocalizedModule.map_exact _ f g hfg) |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.AlgebraicGeometry.CycleClass.Thom.LocalizedModuleLength.Constructions |