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.AlgebraicGeometry.Modules.Tilde |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.Limits |
| 3 | import Mathlib.CategoryTheory.Limits.Preserves.FunctorCategory |
| 4 | |
| 5 | /-! # Module Locality -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.ModuleLocality |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Localization of module-sheaf descent for PoincareBundle |
| 13 | |
| 14 | Restriction to an open subscheme preserves finite limits, hence the |
| 15 | equalizers used to define invariant sheaves. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable {X Y : Scheme.{u}} (f : X ⟶ Y) [IsOpenImmersion f] |
| 23 | |
| 24 | /-- Geometric restriction preserves finite limits of module sheaves. -/ |
| 25 | theorem restrict_preservesFiniteLimits : |
| 26 | PreservesFiniteLimits (Scheme.Modules.restrictFunctor f) := by |
| 27 | let G : TopCat.Presheaf AddCommGrpCat.{u} Y ⥤ TopCat.Presheaf AddCommGrpCat.{u} X := |
| 28 | (Functor.whiskeringLeft _ _ _).obj f.opensFunctor.op |
| 29 | have : PreservesFiniteLimits G := by |
| 30 | constructor |
| 31 | intro J _ _ |
| 32 | exact whiskeringLeft_preservesLimitsOfShape J f.opensFunctor.op |
| 33 | have : PreservesFiniteLimits (Scheme.Modules.restrictFunctor f ⋙ |
| 34 | Scheme.Modules.toPresheaf X) := |
| 35 | comp_preservesFiniteLimits (Scheme.Modules.toPresheaf Y) G |
| 36 | exact preservesFiniteLimits_of_reflects_of_preserves |
| 37 | (Scheme.Modules.restrictFunctor f) (Scheme.Modules.toPresheaf X) |
| 38 | |
| 39 | /-- Open-immersion pullback preserves finite limits. -/ |
| 40 | theorem pullback_preservesFiniteLimits : |
| 41 | PreservesFiniteLimits (Scheme.Modules.pullback f) := by |
| 42 | have := restrict_preservesFiniteLimits f |
| 43 | exact preservesFiniteLimits_of_natIso (Scheme.Modules.restrictFunctorIsoPullback f) |
| 44 | |
| 45 | /-- The invariant equalizer commutes with restriction to an open subscheme. -/ |
| 46 | def restrictEqualizerIso {M N : Y.Modules} (a b : M ⟶ N) : |
| 47 | (Scheme.Modules.restrictFunctor f).obj (equalizer a b) ≅ |
| 48 | equalizer ((Scheme.Modules.restrictFunctor f).map a) |
| 49 | ((Scheme.Modules.restrictFunctor f).map b) := by |
| 50 | have := restrict_preservesFiniteLimits f |
| 51 | exact PreservesEqualizer.iso (Scheme.Modules.restrictFunctor f) a b |
| 52 | |
| 53 | variable {f} |
| 54 | |
| 55 | /-- A morphism of module sheaves is an isomorphism if it is an isomorphism |
| 56 | on some open neighborhood of every point. -/ |
| 57 | theorem isIso_of_locally_isIso {M N : Y.Modules} (a : M ⟶ N) |
| 58 | (h : ∀ y : Y, ∃ U : Y.Opens, y ∈ U ∧ |
| 59 | IsIso ((Scheme.Modules.restrictFunctor U.ι).map a)) : IsIso a := by |
| 60 | let b : (⟨M.presheaf, M.isSheaf⟩ : TopCat.Sheaf AddCommGrpCat.{u} Y) ⟶ |
| 61 | (⟨N.presheaf, N.isSheaf⟩ : TopCat.Sheaf AddCommGrpCat.{u} Y) := ⟨a.mapPresheaf⟩ |
| 62 | have hb : ∀ y : Y, IsIso ((TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} y).map b.hom) := by |
| 63 | intro y |
| 64 | obtain ⟨U, hy, ha⟩ := h y |
| 65 | let z : U := ⟨y, hy⟩ |
| 66 | have hlocal : IsIso (((Scheme.Modules.restrictFunctor U.ι) ⋙ |
| 67 | Scheme.Modules.toPresheaf U ⋙ TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} z).map a) := |
| 68 | @Functor.map_isIso _ _ _ _ _ _ |
| 69 | (Scheme.Modules.toPresheaf U ⋙ TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} z) |
| 70 | ((Scheme.Modules.restrictFunctor U.ι).map a) ha |
| 71 | exact (NatIso.isIso_map_iff (Scheme.Modules.restrictStalkNatIso U.ι z) a).mp hlocal |
| 72 | have hbIso : IsIso b := TopCat.Presheaf.isIso_of_stalkFunctor_map_iso b |
| 73 | have : IsIso ((Scheme.Modules.toPresheaf Y).map a) := |
| 74 | @Functor.map_isIso _ _ _ _ _ _ (TopCat.Sheaf.forget AddCommGrpCat.{u} Y) b hbIso |
| 75 | exact isIso_of_reflects_iso a (Scheme.Modules.toPresheaf Y) |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.ModuleLocality |