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.Affine.ModuleHomology |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.PreservesHomology |
| 3 | import Mathlib.CategoryTheory.Functor.ReflectsIso.Balanced |
| 4 | import Mathlib.CategoryTheory.Limits.Preserves.FunctorCategory |
| 5 | import Mathlib.Algebra.Category.Grp.Limits |
| 6 | |
| 7 | /-! # Exact Open Restriction -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ExactOpenRestriction |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Restriction of module sheaves to an open subscheme preserves genuine |
| 14 | homology: it preserves limits as a sheaf pushforward and colimits as the |
| 15 | left adjoint to extension along the open immersion. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable {X Y : Scheme.{u}} (f : X ⟶ Y) [IsOpenImmersion f] |
| 24 | |
| 25 | instance additive : (Scheme.Modules.restrictFunctor f).Additive where |
| 26 | map_add := rfl |
| 27 | |
| 28 | instance preservesFiniteLimits : PreservesFiniteLimits (Scheme.Modules.restrictFunctor f) := by |
| 29 | let G := Scheme.Modules.toPresheaf X |
| 30 | let H := Scheme.Modules.toPresheaf Y |
| 31 | have : PreservesLimits H := inferInstanceAs (PreservesLimits (Scheme.Modules.toPresheaf Y)) |
| 32 | have : PreservesFiniteLimits H := inferInstance |
| 33 | have : PreservesFiniteLimits |
| 34 | ((Functor.whiskeringLeft X.Opensᵒᵖ Y.Opensᵒᵖ AddCommGrpCat.{u}).obj f.opensFunctor.op) := |
| 35 | inferInstance |
| 36 | have : ReflectsFiniteLimits G := |
| 37 | { reflects := fun _ => reflectsLimitsOfShape_of_reflectsIsomorphisms } |
| 38 | have : PreservesFiniteLimits (Scheme.Modules.restrictFunctor f ⋙ G) := by |
| 39 | change PreservesFiniteLimits (H ⋙ (Functor.whiskeringLeft _ _ _).obj f.opensFunctor.op) |
| 40 | infer_instance |
| 41 | exact preservesFiniteLimits_of_reflects_of_preserves _ G |
| 42 | |
| 43 | instance preservesFiniteColimits : PreservesFiniteColimits (Scheme.Modules.restrictFunctor f) := |
| 44 | inferInstance |
| 45 | |
| 46 | instance preservesHomology : (Scheme.Modules.restrictFunctor f).PreservesHomology := inferInstance |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ExactOpenRestriction |