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.AB |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Products |
| 3 | import Mathlib.CategoryTheory.Abelian.GrothendieckAxioms.Basic |
| 4 | import Mathlib.Algebra.Homology.HomologicalComplexAbelian |
| 5 | import Mathlib.Algebra.Homology.Functor |
| 6 | import Mathlib.CategoryTheory.Adjunction.Additive |
| 7 | |
| 8 | /-! # Product Quasi Iso -/ |
| 9 | |
| 10 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Module.ProductQuasiIso.ModuleProductQuasiIso |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! Products of module complexes preserve objectwise quasi-isomorphisms. |
| 15 | This supplies the product step for the rows of the native Cech comparison. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 18 | |
| 19 | universe u v |
| 20 | variable (R : Type u) [CommRing R] (ι : Type) |
| 21 | |
| 22 | local instance limits : HasLimitsOfSize.{0, 0} (ModuleCat.{max u v} R) := |
| 23 | ModuleCat.hasLimitsOfSize.{0, 0, max u v, u} |
| 24 | |
| 25 | local instance exactLimits : HasExactLimitsOfShape (Discrete ι) (ModuleCat.{max u v} R) := |
| 26 | HasExactLimitsOfShape.domain_of_functor (Discrete ι) |
| 27 | (forget₂ (ModuleCat.{max u v} R) AddCommGrpCat.{max u v}) |
| 28 | |
| 29 | abbrev product : (Discrete ι ⥤ ModuleCat.{max u v} R) ⥤ ModuleCat.{max u v} R := lim |
| 30 | |
| 31 | local instance constAdditive : |
| 32 | (Functor.const (Discrete ι) : ModuleCat.{max u v} R ⥤ Discrete ι ⥤ ModuleCat.{max u v} R).Additive where |
| 33 | map_add := by intros; rfl |
| 34 | |
| 35 | instance additive : (product.{u, v} R ι).Additive := by |
| 36 | dsimp only [product] |
| 37 | exact (constLimAdj (J := Discrete ι) (C := ModuleCat.{max u v} R)).right_adjoint_additive |
| 38 | |
| 39 | instance preservesHomology : (product.{u, v} R ι).PreservesHomology := by |
| 40 | dsimp only [product] |
| 41 | infer_instance |
| 42 | |
| 43 | variable {K L : CochainComplex (Discrete ι ⥤ ModuleCat.{max u v} R) ℕ} (a : K ⟶ L) |
| 44 | |
| 45 | theorem quasiIso (ha : ∀ i : Discrete ι, |
| 46 | QuasiIso ((((evaluation (Discrete ι) (ModuleCat.{max u v} R)).obj i).mapHomologicalComplex (.up ℕ)).map a)) : |
| 47 | QuasiIso (((product.{u, v} R ι).mapHomologicalComplex (.up ℕ)).map a) := by |
| 48 | let h : QuasiIso a := (HomologicalComplex.quasiIso_iff_evaluation a).mpr ha |
| 49 | infer_instance |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Module.ProductQuasiIso.ModuleProductQuasiIso |