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.ChangeOfRingsExact |
| 2 | import Mathlib.RingTheory.Flat.Basic |
| 3 | |
| 4 | /-! # Flat Scalar -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.FlatScalar.FlatScalarExtension |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The scalar-extension functor uses the given algebra structure and preserves homology for flat coefficients. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | universe u v |
| 16 | |
| 17 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] |
| 18 | |
| 19 | def moduleFunctor : ModuleCat.{max u v} R ⥤ ModuleCat.{max u v} S where |
| 20 | obj M := ModuleCat.of S (S ⊗[R] M) |
| 21 | map f := ModuleCat.ofHom (f.hom.baseChange S) |
| 22 | map_id _ := ModuleCat.hom_ext LinearMap.baseChange_id |
| 23 | map_comp f g := ModuleCat.hom_ext (LinearMap.baseChange_comp (A := S) f.hom g.hom) |
| 24 | |
| 25 | instance additive : (moduleFunctor.{u, v} R S).Additive where |
| 26 | map_add {_M _N} f g := ModuleCat.hom_ext (LinearMap.baseChange_add (A := S) f.hom g.hom) |
| 27 | |
| 28 | variable [Module.Flat R S] |
| 29 | |
| 30 | theorem map_exact (C : ShortComplex (ModuleCat.{max u v} R)) (hC : C.Exact) : |
| 31 | (C.map (moduleFunctor R S)).Exact := by |
| 32 | rw [ShortComplex.ShortExact.moduleCat_exact_iff_function_exact] at hC ⊢ |
| 33 | change Function.Exact (C.f.hom.baseChange S) (C.g.hom.baseChange S) |
| 34 | exact Module.Flat.lTensor_exact S hC |
| 35 | |
| 36 | instance finiteLimits : PreservesFiniteLimits (moduleFunctor.{u, v} R S) := by |
| 37 | have h : PreservesFiniteLimits (moduleFunctor.{u, v} R S) ∧ |
| 38 | PreservesFiniteColimits (moduleFunctor.{u, v} R S) := |
| 39 | ((Functor.exact_tfae (moduleFunctor.{u, v} R S)).out 2 4).mp (map_exact R S) |
| 40 | exact h.1 |
| 41 | |
| 42 | instance finiteColimits : PreservesFiniteColimits (moduleFunctor.{u, v} R S) := by |
| 43 | have h : PreservesFiniteLimits (moduleFunctor.{u, v} R S) ∧ |
| 44 | PreservesFiniteColimits (moduleFunctor.{u, v} R S) := |
| 45 | ((Functor.exact_tfae (moduleFunctor.{u, v} R S)).out 2 4).mp (map_exact R S) |
| 46 | exact h.2 |
| 47 | |
| 48 | instance preservesHomology : (moduleFunctor.{u, v} R S).PreservesHomology := |
| 49 | Functor.preservesHomologyOfExact _ |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.NumberTheory.PadicHodge.GeometricComparison.FlatScalar.FlatScalarExtension |