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.InjectiveCoefficientDuality |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 3 | import Mathlib.Algebra.Homology.ShortComplex.ExactFunctor |
| 4 | |
| 5 | /-! # Exact Module Dual Functor -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ExactModuleDualFunctor |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The ordinary coefficient dual as an exact contravariant functor when |
| 12 | the coefficient ring is injective over itself. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable (R : Type u) [CommRing R] |
| 19 | |
| 20 | def functor : (ModuleCat.{u} R)ᵒᵖ ⥤ ModuleCat.{u} R where |
| 21 | obj M := ModuleCat.of R (Module.Dual R M.unop) |
| 22 | map f := ModuleCat.ofHom f.unop.hom.dualMap |
| 23 | map_id M := by |
| 24 | ext φ x |
| 25 | rfl |
| 26 | map_comp f g := by |
| 27 | ext φ x |
| 28 | rfl |
| 29 | |
| 30 | instance : (functor R).Additive where |
| 31 | map_add := by |
| 32 | intro X Y f g |
| 33 | apply ModuleCat.hom_ext |
| 34 | apply LinearMap.ext |
| 35 | intro φ |
| 36 | apply LinearMap.ext |
| 37 | intro x |
| 38 | exact φ.map_add _ _ |
| 39 | |
| 40 | theorem map_exact [Module.Injective R R] |
| 41 | (S : ShortComplex ((ModuleCat.{u} R)ᵒᵖ)) (h : S.Exact) : |
| 42 | (S.map (functor R)).Exact := by |
| 43 | apply (ShortComplex.ShortExact.moduleCat_exact_iff_function_exact _).mpr |
| 44 | exact InjectiveCoefficientDuality.dual_exact S.g.unop.hom S.f.unop.hom |
| 45 | ((ShortComplex.ShortExact.moduleCat_exact_iff_function_exact S.unop).mp h.unop) |
| 46 | |
| 47 | instance [Module.Injective R R] : (functor R).PreservesHomology := |
| 48 | Functor.preservesHomology_of_map_exact (functor R) (map_exact R) |
| 49 | |
| 50 | instance [Module.Injective R R] : PreservesFiniteLimits (functor R) := |
| 51 | Functor.preservesFiniteLimits_of_preservesHomology (functor R) |
| 52 | |
| 53 | instance [Module.Injective R R] : PreservesFiniteColimits (functor R) := |
| 54 | Functor.preservesFiniteColimits_of_preservesHomology (functor R) |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ExactModuleDualFunctor |