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.Algebra.Category.ModuleCat.Limits |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Products |
| 3 | import Mathlib.Algebra.Category.ModuleCat.EpiMono |
| 4 | |
| 5 | /-! # Product Surjectivity -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.Module.ProductSurjectivity.ModuleProductSurjectivity |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Surjectivity of products of module maps |
| 13 | |
| 14 | Componentwise preimages assemble in the actual categorical product. |
| 15 | This applies in the larger coefficient universe used by native sheaves. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 19 | |
| 20 | universe u v w |
| 21 | |
| 22 | variable {R : Type u} [Ring R] {ι : Type v} |
| 23 | (A B : ι → ModuleCat.{max v w} R) [HasProduct A] [HasProduct B] |
| 24 | (f : ∀ i, A i ⟶ B i) |
| 25 | |
| 26 | theorem surjective (hf : ∀ i, Function.Surjective (f i)) : |
| 27 | Function.Surjective (Limits.Pi.map f) := by |
| 28 | intro z |
| 29 | let y : ∀ i, A i := fun i => (hf i (Pi.π B i z)).choose |
| 30 | have hy : ∀ i, f i (y i) = Pi.π B i z := fun i => (hf i (Pi.π B i z)).choose_spec |
| 31 | refine ⟨(ModuleCat.piIsoPi A).inv y, ?_⟩ |
| 32 | apply Concrete.limit_ext (Discrete.functor B) |
| 33 | intro i |
| 34 | have hm := congrArg (fun g => g ((ModuleCat.piIsoPi A).inv y)) (Pi.map_π f i.as) |
| 35 | have hp := congrArg (fun g => g y) (ModuleCat.piIsoPi_inv_kernel_ι A i.as) |
| 36 | exact hm.trans ((congrArg (f i.as) hp).trans (hy i.as)) |
| 37 | |
| 38 | theorem epi (hf : ∀ i, Epi (f i)) : Epi (Limits.Pi.map f) := |
| 39 | (ModuleCat.epi_iff_surjective _).mpr |
| 40 | (surjective A B f (fun i => (ModuleCat.epi_iff_surjective (f i)).mp (hf i))) |
| 41 | |
| 42 | end |
| 43 | |
| 44 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.Module.ProductSurjectivity.ModuleProductSurjectivity |