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.Module.ProductScalarKernel |
| 2 | import Mathlib.Algebra.Module.LocalizedModule.Away |
| 3 | import Mathlib.Data.Fintype.Order |
| 4 | |
| 5 | /-! # Product Localization -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.ProductLocalization |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Finite categorical products preserve denominator clearing and the |
| 12 | power-torsion kernel property of localization maps. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 14 | universe u v w |
| 15 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Module.ProductScalarKernel |
| 16 | variable {R : Type u} [CommRing R] (r : R) {ι : Type v} [Finite ι] |
| 17 | (M N : ι → ModuleCat.{max v w} R) [HasProduct M] [HasProduct N] |
| 18 | (q : ∀ i, M i ⟶ N i) |
| 19 | |
| 20 | theorem surj (h : ∀ i (y : N i), ∃ (a : ℕ) (x : M i), r^a • y = q i x) |
| 21 | (y : (∏ᶜ N : ModuleCat.{max v w} R)) : |
| 22 | ∃ (a : ℕ) (x : (∏ᶜ M : ModuleCat.{max v w} R)), r^a • y = Limits.Pi.map q x := by |
| 23 | choose a x hx using fun i => h i (Pi.π N i y) |
| 24 | obtain ⟨b, hb⟩ := Finite.exists_le a |
| 25 | obtain ⟨v, hv⟩ := IntegralComparison.Module.ProductScalarKernel.exists_coordinates M (fun i => r^(b-a i) • x i) |
| 26 | refine ⟨b, v, IntegralComparison.Module.ProductScalarKernel.element_ext N _ _ (fun i => ?_)⟩ |
| 27 | rw [map_smul] |
| 28 | have hm := ConcreteCategory.congr_hom (Pi.map_π q i) v |
| 29 | change Pi.π N i (Limits.Pi.map q v) = q i (Pi.π M i v) at hm |
| 30 | rw [hm, hv, map_smul, ← hx, ← mul_smul, ← pow_add, Nat.sub_add_cancel (hb i)] |
| 31 | |
| 32 | theorem kernel (h : ∀ i (x : M i), q i x = 0 → ∃ a : ℕ, r^a • x = 0) |
| 33 | (x : (∏ᶜ M : ModuleCat.{max v w} R)) (hx : Limits.Pi.map q x = 0) : |
| 34 | ∃ a : ℕ, r^a • x = 0 := by |
| 35 | have hi (i : ι) : q i (Pi.π M i x) = 0 := |
| 36 | (ConcreteCategory.congr_hom (Pi.map_π q i) x).symm.trans |
| 37 | ((congrArg (Pi.π N i) hx).trans (Pi.π N i).hom.map_zero) |
| 38 | choose a ha using fun i => h i _ (hi i) |
| 39 | obtain ⟨b, hb⟩ := Finite.exists_le a |
| 40 | refine ⟨b, IntegralComparison.Module.ProductScalarKernel.element_ext M _ _ (fun i => ?_)⟩ |
| 41 | rw [map_smul, map_zero, ← Nat.sub_add_cancel (hb i), pow_add, mul_smul, ha, smul_zero] |
| 42 | |
| 43 | end |
| 44 | |
| 45 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.ProductLocalization |