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.Colimits |
| 2 | import Mathlib.Algebra.Category.ModuleCat.FilteredColimits |
| 3 | import Mathlib.Algebra.Module.LinearMap.Rat |
| 4 | import Mathlib.CategoryTheory.Abelian.Exact |
| 5 | import Mathlib.Algebra.Homology.Functor |
| 6 | import Mathlib.Topology.Sheaves.Abelian |
| 7 | import Mathlib.Topology.Sheaves.Flasque |
| 8 | import Mathlib.CategoryTheory.Sites.LeftExact |
| 9 | import Mathlib.CategoryTheory.Limits.Preserves.FunctorCategory |
| 10 | |
| 11 | /-! # Rational Sheaf Forget -/ |
| 12 | |
| 13 | namespace OAI.AlgebraicTopology.DeRham.Comparison.RationalSheafForget |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | /-! |
| 18 | # Forgetting rational scalars on actual sheaves and cochain complexes |
| 19 | |
| 20 | The functor is literal postcomposition by `ModuleCat ℚ ⥤ AddCommGrpCat`. |
| 21 | It preserves finite limits and epimorphisms, hence homology. Sections commute |
| 22 | with it by their actual evaluation definitions. These facts do not assume |
| 23 | that the global-sections functor is exact. |
| 24 | -/ |
| 25 | |
| 26 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite _root_.TopologicalSpace |
| 27 | |
| 28 | set_option backward.defeqAttrib.useBackward true |
| 29 | set_option backward.isDefEq.respectTransparency false |
| 30 | set_option backward.isDefEq.respectTransparency.types false |
| 31 | |
| 32 | universe u |
| 33 | |
| 34 | /-- The ordinary forgetful functor on rational modules. -/ |
| 35 | abbrev rationalForget : ModuleCat.{u,0} ℚ ⥤ AddCommGrpCat.{u} := |
| 36 | forget₂ (ModuleCat.{u,0} ℚ) AddCommGrpCat.{u} |
| 37 | |
| 38 | /-- Additive maps between rational modules are automatically rational-linear. -/ |
| 39 | instance rationalForget_full : rationalForget.Full where |
| 40 | map_surjective {M N} f := by |
| 41 | let a : M →+ N := f.hom |
| 42 | exact ⟨ModuleCat.ofHom a.toRatLinearMap, rfl⟩ |
| 43 | |
| 44 | instance rationalModules_haveLimits : |
| 45 | HasLimitsOfSize.{u,u} (ModuleCat.{u,0} ℚ) := |
| 46 | ModuleCat.hasLimitsOfSize.{u,u,u,0} |
| 47 | |
| 48 | instance rationalModules_forgetFiltered : |
| 49 | PreservesFilteredColimits (forget (ModuleCat.{u,0} ℚ)) := |
| 50 | Limits.comp_preservesFilteredColimits rationalForget (forget AddCommGrpCat.{u}) |
| 51 | |
| 52 | /-- Forgetting rational scalars is literal composition of each sheaf with the |
| 53 | ordinary forgetful functor. -/ |
| 54 | def rationalSheafForget (X : TopCat.{u}) : |
| 55 | TopCat.Sheaf (ModuleCat.{u,0} ℚ) X ⥤ TopCat.Sheaf AddCommGrpCat.{u} X := |
| 56 | sheafCompose (Opens.grothendieckTopology X) rationalForget |
| 57 | |
| 58 | @[simp] |
| 59 | theorem rationalSheafForget_obj_obj (X : TopCat.{u}) |
| 60 | (F : TopCat.Sheaf (ModuleCat.{u,0} ℚ) X) : |
| 61 | ((rationalSheafForget X).obj F).obj = F.obj ⋙ rationalForget := rfl |
| 62 | |
| 63 | instance rationalSheafForget_additive (X : TopCat.{u}) : |
| 64 | (rationalSheafForget X).Additive where |
| 65 | map_add := rfl |
| 66 | |
| 67 | instance rationalSheafForget_faithful (X : TopCat.{u}) : |
| 68 | (rationalSheafForget X).Faithful := |
| 69 | inferInstanceAs (sheafCompose (Opens.grothendieckTopology X) rationalForget).Faithful |
| 70 | |
| 71 | instance rationalSheafForget_full (X : TopCat.{u}) : |
| 72 | (rationalSheafForget X).Full := |
| 73 | inferInstanceAs (sheafCompose (Opens.grothendieckTopology X) rationalForget).Full |
| 74 | |
| 75 | /-- Limits of sheaves are detected on their underlying presheaves. -/ |
| 76 | instance rationalSheafForget_preservesFiniteLimits (X : TopCat.{u}) : |
| 77 | PreservesFiniteLimits (rationalSheafForget X) where |
| 78 | preservesFiniteLimits J _ _ := by |
| 79 | have : PreservesLimitsOfShape J |
| 80 | (rationalSheafForget X ⋙ TopCat.Sheaf.forget AddCommGrpCat.{u} X) := by |
| 81 | change PreservesLimitsOfShape J |
| 82 | (sheafToPresheaf (Opens.grothendieckTopology X) (ModuleCat.{u,0} ℚ) ⋙ |
| 83 | (Functor.whiskeringRight (Opens X)ᵒᵖ (ModuleCat.{u,0} ℚ) |
| 84 | AddCommGrpCat.{u}).obj rationalForget) |
| 85 | have : PreservesLimitsOfShape J |
| 86 | (sheafToPresheaf (Opens.grothendieckTopology X) (ModuleCat.{u,0} ℚ)) := by |
| 87 | infer_instance |
| 88 | have : PreservesLimitsOfShape J |
| 89 | ((Functor.whiskeringRight (Opens X)ᵒᵖ (ModuleCat.{u,0} ℚ) |
| 90 | AddCommGrpCat.{u}).obj rationalForget) := by |
| 91 | infer_instance |
| 92 | infer_instance |
| 93 | exact preservesLimitsOfShape_of_reflects_of_preserves |
| 94 | (rationalSheafForget X) (TopCat.Sheaf.forget AddCommGrpCat.{u} X) |
| 95 | |
| 96 | /-- Forgetting scalars leaves the local preimage condition unchanged, and so |
| 97 | preserves epimorphisms of actual sheaves. -/ |
| 98 | instance rationalSheafForget_preservesEpimorphisms (X : TopCat.{u}) : |
| 99 | (rationalSheafForget X).PreservesEpimorphisms where |
| 100 | preserves {F G} f hf := by |
| 101 | apply (TopCat.Sheaf.isLocallySurjective_iff_epi ((rationalSheafForget X).map f)).mp |
| 102 | have h := (TopCat.Sheaf.isLocallySurjective_iff_epi f).mpr hf |
| 103 | constructor |
| 104 | intro U s |
| 105 | exact h.imageSieve_mem s |
| 106 | |
| 107 | /-- The genuine rational-to-additive sheaf functor is exact. -/ |
| 108 | instance rationalSheafForget_preservesHomology (X : TopCat.{u}) : |
| 109 | (rationalSheafForget X).PreservesHomology := |
| 110 | Functor.preservesHomology_of_preservesEpis_and_kernels (rationalSheafForget X) |
| 111 | |
| 112 | /-- Flasqueness survives forgetting the rational module structure. -/ |
| 113 | instance rationalSheafForget_isFlasque {X : TopCat.{u}} |
| 114 | (F : TopCat.Sheaf (ModuleCat.{u,0} ℚ) X) [TopCat.Sheaf.IsFlasque F] : |
| 115 | TopCat.Sheaf.IsFlasque ((rationalSheafForget X).obj F) where |
| 116 | epi i := by |
| 117 | change Epi (rationalForget.map (F.obj.map i)) |
| 118 | infer_instance |
| 119 | |
| 120 | /-- Apply the actual sheaf forgetful functor in every cochain degree. -/ |
| 121 | def rationalSheafForgetComplex {X : TopCat.{u}} |
| 122 | (K : CochainComplex (TopCat.Sheaf (ModuleCat.{u,0} ℚ) X) ℕ) : |
| 123 | CochainComplex (TopCat.Sheaf AddCommGrpCat.{u} X) ℕ := |
| 124 | ((rationalSheafForget X).mapHomologicalComplex (ComplexShape.up ℕ)).obj K |
| 125 | |
| 126 | /-- Exactness gives the canonical comparison of genuine homology sheaves. -/ |
| 127 | def rationalSheafForgetHomologyIso {X : TopCat.{u}} |
| 128 | (K : CochainComplex (TopCat.Sheaf (ModuleCat.{u,0} ℚ) X) ℕ) (n : ℕ) : |
| 129 | (rationalSheafForgetComplex K).homology n ≅ |
| 130 | (rationalSheafForget X).obj (K.homology n) := |
| 131 | (K.sc n).mapHomologyIso (rationalSheafForget X) |
| 132 | |
| 133 | /-- The homology-sheaf comparison commutes with actual cochain maps. -/ |
| 134 | theorem rationalSheafForgetHomologyIso_naturality {X : TopCat.{u}} |
| 135 | {K L : CochainComplex (TopCat.Sheaf (ModuleCat.{u,0} ℚ) X) ℕ} |
| 136 | (f : K ⟶ L) (n : ℕ) : |
| 137 | HomologicalComplex.homologyMap |
| 138 | (((rationalSheafForget X).mapHomologicalComplex (ComplexShape.up ℕ)).map f) n ≫ |
| 139 | (rationalSheafForgetHomologyIso L n).hom = |
| 140 | (rationalSheafForgetHomologyIso K n).hom ≫ |
| 141 | (rationalSheafForget X).map (HomologicalComplex.homologyMap f n) := |
| 142 | ShortComplex.mapHomologyIso_hom_naturality |
| 143 | ((HomologicalComplex.shortComplexFunctor _ _ n).map f) (rationalSheafForget X) |
| 144 | |
| 145 | /-- Forgetting rational scalars both preserves and detects sheaf exactness. -/ |
| 146 | theorem rationalSheafForgetComplex_exactAt_iff {X : TopCat.{u}} |
| 147 | (K : CochainComplex (TopCat.Sheaf (ModuleCat.{u,0} ℚ) X) ℕ) (n : ℕ) : |
| 148 | (rationalSheafForgetComplex K).ExactAt n ↔ K.ExactAt n := |
| 149 | (K.sc n).exact_map_iff_of_faithful (rationalSheafForget X) |
| 150 | |
| 151 | /-- Rational-valued sections on an actual open set. -/ |
| 152 | def rationalSheafSections {X : TopCat.{u}} (U : Opens X) : |
| 153 | TopCat.Sheaf (ModuleCat.{u,0} ℚ) X ⥤ ModuleCat.{u,0} ℚ := |
| 154 | TopCat.Sheaf.forget (ModuleCat.{u,0} ℚ) X ⋙ |
| 155 | (evaluation (Opens X)ᵒᵖ (ModuleCat.{u,0} ℚ)).obj (op U) |
| 156 | |
| 157 | /-- Additive-group-valued sections on the same actual open set. -/ |
| 158 | def additiveSheafSections {X : TopCat.{u}} (U : Opens X) : |
| 159 | TopCat.Sheaf AddCommGrpCat.{u} X ⥤ AddCommGrpCat.{u} := |
| 160 | TopCat.Sheaf.forget AddCommGrpCat.{u} X ⋙ |
| 161 | (evaluation (Opens X)ᵒᵖ AddCommGrpCat.{u}).obj (op U) |
| 162 | |
| 163 | instance rationalSheafSections_additive {X : TopCat.{u}} (U : Opens X) : |
| 164 | (rationalSheafSections U).Additive where |
| 165 | map_add := rfl |
| 166 | |
| 167 | instance additiveSheafSections_additive {X : TopCat.{u}} (U : Opens X) : |
| 168 | (additiveSheafSections U).Additive where |
| 169 | map_add := rfl |
| 170 | |
| 171 | /-- Taking sections commutes with forgetting scalars by evaluation. -/ |
| 172 | def rationalSheafForgetSectionsIso {X : TopCat.{u}} (U : Opens X) : |
| 173 | rationalSheafForget X ⋙ additiveSheafSections U ≅ |
| 174 | rationalSheafSections U ⋙ rationalForget := |
| 175 | NatIso.ofComponents (fun _ => Iso.refl _) (by |
| 176 | intro F G f |
| 177 | change rationalForget.map (f.hom.app (op U)) ≫ 𝟙 _ = |
| 178 | 𝟙 _ ≫ rationalForget.map (f.hom.app (op U)) |
| 179 | simp only [Category.comp_id, Category.id_comp]) |
| 180 | |
| 181 | /-- The actual rational complex of sections on an open set. -/ |
| 182 | def rationalSheafSectionsComplex {X : TopCat.{u}} (U : Opens X) |
| 183 | (K : CochainComplex (TopCat.Sheaf (ModuleCat.{u,0} ℚ) X) ℕ) : |
| 184 | CochainComplex (ModuleCat.{u,0} ℚ) ℕ := |
| 185 | ((rationalSheafSections U).mapHomologicalComplex (ComplexShape.up ℕ)).obj K |
| 186 | |
| 187 | /-- The actual additive complex of sections on an open set. -/ |
| 188 | def additiveSheafSectionsComplex {X : TopCat.{u}} (U : Opens X) |
| 189 | (K : CochainComplex (TopCat.Sheaf AddCommGrpCat.{u} X) ℕ) : |
| 190 | CochainComplex AddCommGrpCat.{u} ℕ := |
| 191 | ((additiveSheafSections U).mapHomologicalComplex (ComplexShape.up ℕ)).obj K |
| 192 | |
| 193 | /-- The sections comparison commutes with the actual cochain differentials. -/ |
| 194 | def rationalSheafForgetSectionsComplexIso {X : TopCat.{u}} (U : Opens X) |
| 195 | (K : CochainComplex (TopCat.Sheaf (ModuleCat.{u,0} ℚ) X) ℕ) : |
| 196 | additiveSheafSectionsComplex U (rationalSheafForgetComplex K) ≅ |
| 197 | ((rationalForget.mapHomologicalComplex (ComplexShape.up ℕ)).obj |
| 198 | (rationalSheafSectionsComplex U K)) := |
| 199 | HomologicalComplex.Hom.isoOfComponents (fun _ => Iso.refl _) (by |
| 200 | intro i j _ |
| 201 | change rationalForget.map ((K.d i j).hom.app (op U)) ≫ 𝟙 _ = |
| 202 | 𝟙 _ ≫ rationalForget.map ((K.d i j).hom.app (op U)) |
| 203 | simp only [Category.comp_id, Category.id_comp]) |
| 204 | |
| 205 | /-- The section-complex comparison is natural in the rational sheaf complex. -/ |
| 206 | theorem rationalSheafForgetSectionsComplexIso_naturality {X : TopCat.{u}} |
| 207 | (U : Opens X) |
| 208 | {K L : CochainComplex (TopCat.Sheaf (ModuleCat.{u,0} ℚ) X) ℕ} (f : K ⟶ L) : |
| 209 | ((additiveSheafSections U).mapHomologicalComplex (ComplexShape.up ℕ)).map |
| 210 | (((rationalSheafForget X).mapHomologicalComplex (ComplexShape.up ℕ)).map f) ≫ |
| 211 | (rationalSheafForgetSectionsComplexIso U L).hom = |
| 212 | (rationalSheafForgetSectionsComplexIso U K).hom ≫ |
| 213 | (rationalForget.mapHomologicalComplex (ComplexShape.up ℕ)).map |
| 214 | (((rationalSheafSections U).mapHomologicalComplex (ComplexShape.up ℕ)).map f) := by |
| 215 | apply HomologicalComplex.Hom.ext |
| 216 | funext n |
| 217 | change rationalForget.map ((f.f n).hom.app (op U)) ≫ 𝟙 _ = |
| 218 | 𝟙 _ ≫ rationalForget.map ((f.f n).hom.app (op U)) |
| 219 | simp only [Category.comp_id, Category.id_comp] |
| 220 | |
| 221 | /-- Forgetting scalars commutes with the ordinary homology of a rational |
| 222 | cochain complex because the ordinary module forgetful functor is exact. -/ |
| 223 | def rationalForgetHomologyIso |
| 224 | (K : CochainComplex (ModuleCat.{u,0} ℚ) ℕ) (n : ℕ) : |
| 225 | ((rationalForget.mapHomologicalComplex (ComplexShape.up ℕ)).obj K).homology n ≅ |
| 226 | rationalForget.obj (K.homology n) := |
| 227 | (K.sc n).mapHomologyIso rationalForget |
| 228 | |
| 229 | /-- Ordinary homology commutes naturally with forgetting rational scalars. -/ |
| 230 | theorem rationalForgetHomologyIso_naturality |
| 231 | {K L : CochainComplex (ModuleCat.{u,0} ℚ) ℕ} (f : K ⟶ L) (n : ℕ) : |
| 232 | HomologicalComplex.homologyMap |
| 233 | ((rationalForget.mapHomologicalComplex (ComplexShape.up ℕ)).map f) n ≫ |
| 234 | (rationalForgetHomologyIso L n).hom = |
| 235 | (rationalForgetHomologyIso K n).hom ≫ |
| 236 | rationalForget.map (HomologicalComplex.homologyMap f n) := |
| 237 | ShortComplex.mapHomologyIso_hom_naturality |
| 238 | ((HomologicalComplex.shortComplexFunctor _ _ n).map f) rationalForget |
| 239 | |
| 240 | /-- The comparison on homology of sections is induced by the actual complex |
| 241 | comparison and the exact module forgetful functor. -/ |
| 242 | def rationalSectionsForgetHomologyIso {X : TopCat.{u}} (U : Opens X) |
| 243 | (K : CochainComplex (TopCat.Sheaf (ModuleCat.{u,0} ℚ) X) ℕ) (n : ℕ) : |
| 244 | rationalForget.obj ((rationalSheafSectionsComplex U K).homology n) ≅ |
| 245 | (additiveSheafSectionsComplex U (rationalSheafForgetComplex K)).homology n := |
| 246 | (rationalForgetHomologyIso (rationalSheafSectionsComplex U K) n).symm ≪≫ |
| 247 | (HomologicalComplex.homologyFunctor AddCommGrpCat.{u} (ComplexShape.up ℕ) n).mapIso |
| 248 | (rationalSheafForgetSectionsComplexIso U K).symm |
| 249 | |
| 250 | end |
| 251 | |
| 252 | end OAI.AlgebraicTopology.DeRham.Comparison.RationalSheafForget |