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 | /- |
| 2 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/ForMathlib/SheafCechInjectiveComparison.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.SheafCohomology.Cech.InjectiveAugmentation |
| 8 | |
| 9 | /-! # Injective Comparison -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.SheafCohomology.Cech.InjectiveComparison.TopCat.Sheaf |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open _root_.TopCat |
| 16 | open _root_.TopCat.Sheaf |
| 17 | |
| 18 | /-! |
| 19 | # Degree-one Cech comparison through an injective bicomplex |
| 20 | |
| 21 | Construct the horizontal edge from global sections of the chosen injective |
| 22 | resolution. For an actual cover, left exactness of global sections transfers |
| 23 | the sheaf-level Cech resolution to exact low rows, so the horizontal and |
| 24 | vertical edge quasi-isomorphisms identify degree-one Cech homology with |
| 25 | genuine sheaf cohomology. The augmented native short complex, its exactness, |
| 26 | and monicity of its augmentation are public because the project-level |
| 27 | degree-zero Cech comparison consumes precisely this left-exact boundary. |
| 28 | -/ |
| 29 | |
| 30 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 31 | |
| 32 | universe u |
| 33 | |
| 34 | variable {X : TopCat.{u}} |
| 35 | variable {ι : Type u} (U : ι → Opens X) |
| 36 | |
| 37 | noncomputable local instance : (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).Additive := |
| 38 | (CategoryTheory.constantSheafΓAdj |
| 39 | (Opens.grothendieckTopology X) AddCommGrpCat.{u}).right_adjoint_additive |
| 40 | |
| 41 | noncomputable local instance : |
| 42 | (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).PreservesZeroMorphisms := |
| 43 | Functor.preservesZeroMorphisms_of_additive (F := GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) |
| 44 | |
| 45 | /-- Global sections applied degreewise to the chosen injective resolution. -/ |
| 46 | private noncomputable def cechInjectiveResolutionGlobalSectionsComplex |
| 47 | (F : Sheaf AddCommGrpCat.{u} X) : |
| 48 | CochainComplex AddCommGrpCat.{u} ℕ := |
| 49 | ((GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).mapHomologicalComplex (.up ℕ)).obj |
| 50 | (injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F)).cocomplex |
| 51 | |
| 52 | private noncomputable def cechInjectiveResolutionGlobalSectionsMap |
| 53 | {F G : Sheaf AddCommGrpCat.{u} X} |
| 54 | (phi : (injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F)).cocomplex ⟶ |
| 55 | (injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf G)).cocomplex) : |
| 56 | cechInjectiveResolutionGlobalSectionsComplex F ⟶ |
| 57 | cechInjectiveResolutionGlobalSectionsComplex G := |
| 58 | ((GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).mapHomologicalComplex (.up ℕ)).map phi |
| 59 | |
| 60 | @[simp] |
| 61 | private theorem cechInjectiveResolutionGlobalSectionsMap_f |
| 62 | {F G : Sheaf AddCommGrpCat.{u} X} |
| 63 | (phi : (injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F)).cocomplex ⟶ |
| 64 | (injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf G)).cocomplex) (q : ℕ) : |
| 65 | (cechInjectiveResolutionGlobalSectionsMap phi).f q = |
| 66 | (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).map (phi.f q) := |
| 67 | rfl |
| 68 | |
| 69 | /-- The row augmentation from global sections of the resolution to native |
| 70 | Cech degree zero. -/ |
| 71 | private noncomputable def cechInjectiveResolutionHorizontalAugmentation |
| 72 | (F : Sheaf AddCommGrpCat.{u} X) (q : ℕ) : |
| 73 | (cechInjectiveResolutionGlobalSectionsComplex F).X q ⟶ |
| 74 | ((InjectiveBicomplex.TopCat.Sheaf.cechInjectiveResolutionBicomplex U F).X q).X 0 := |
| 75 | GlobalSections.TopCat.Sheaf.cechGlobalSectionsAugmentation |
| 76 | ((injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F)).cocomplex.X q) U |
| 77 | |
| 78 | @[simp] |
| 79 | private theorem cechInjectiveResolutionHorizontalAugmentation_eq |
| 80 | (F : Sheaf AddCommGrpCat.{u} X) (q : ℕ) : |
| 81 | cechInjectiveResolutionHorizontalAugmentation U F q = |
| 82 | GlobalSections.TopCat.Sheaf.cechGlobalSectionsAugmentation |
| 83 | ((injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F)).cocomplex.X q) U := |
| 84 | rfl |
| 85 | |
| 86 | private theorem cechInjectiveResolutionHorizontalAugmentation_comm |
| 87 | (F : Sheaf AddCommGrpCat.{u} X) (q q' : ℕ) |
| 88 | (_ : (ComplexShape.up ℕ).Rel q q') : |
| 89 | cechInjectiveResolutionHorizontalAugmentation U F q ≫ |
| 90 | ((InjectiveBicomplex.TopCat.Sheaf.cechInjectiveResolutionBicomplex U F).d q q').f 0 = |
| 91 | (cechInjectiveResolutionGlobalSectionsComplex F).d q q' ≫ |
| 92 | cechInjectiveResolutionHorizontalAugmentation U F q' := by |
| 93 | let I := injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F) |
| 94 | change GlobalSections.TopCat.Sheaf.cechGlobalSectionsAugmentation (I.cocomplex.X q) U ≫ |
| 95 | ((cechComplexFunctor U).map (I.cocomplex.d q q').hom).f 0 = |
| 96 | (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).map (I.cocomplex.d q q') ≫ |
| 97 | GlobalSections.TopCat.Sheaf.cechGlobalSectionsAugmentation (I.cocomplex.X q') U |
| 98 | exact GlobalSections.TopCat.Sheaf.cechGlobalSectionsAugmentation_naturality |
| 99 | (U := U) (F := I.cocomplex.X q) (I.cocomplex.d q q') |
| 100 | |
| 101 | private theorem cechInjectiveResolutionHorizontalAugmentation_comp_d |
| 102 | (F : Sheaf AddCommGrpCat.{u} X) (q : ℕ) : |
| 103 | cechInjectiveResolutionHorizontalAugmentation U F q ≫ |
| 104 | ((InjectiveBicomplex.TopCat.Sheaf.cechInjectiveResolutionBicomplex U F).X q).d 0 1 = 0 := by |
| 105 | let I := injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F) |
| 106 | change GlobalSections.TopCat.Sheaf.cechGlobalSectionsAugmentation (I.cocomplex.X q) U ≫ |
| 107 | ((cechComplexFunctor U).obj (I.cocomplex.X q).obj).d 0 1 = 0 |
| 108 | exact GlobalSections.TopCat.Sheaf.cechGlobalSectionsAugmentation_comp_d (I.cocomplex.X q) U |
| 109 | |
| 110 | /-- The native Cech short complex augmented by global sections. -/ |
| 111 | noncomputable def cechGlobalSectionsNativeShortComplex |
| 112 | (F : Sheaf AddCommGrpCat.{u} X) : |
| 113 | ShortComplex AddCommGrpCat.{u} := |
| 114 | ShortComplex.mk (GlobalSections.TopCat.Sheaf.cechGlobalSectionsAugmentation F U) |
| 115 | (((cechComplexFunctor U).obj F.obj).d 0 1) |
| 116 | (GlobalSections.TopCat.Sheaf.cechGlobalSectionsAugmentation_comp_d F U) |
| 117 | |
| 118 | private noncomputable def cechGlobalSectionsMappedAugmentedShortComplex |
| 119 | (F : Sheaf AddCommGrpCat.{u} X) : |
| 120 | ShortComplex AddCommGrpCat.{u} := |
| 121 | ShortComplex.mk |
| 122 | ((GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).map (Augmentation.TopCat.Sheaf.cechAugmentation F U)) |
| 123 | ((GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).map (SheafDifferential.TopCat.Sheaf.cechDifferential F U 0)) |
| 124 | (by |
| 125 | have hzero : Augmentation.TopCat.Sheaf.cechAugmentation F U ≫ SheafDifferential.TopCat.Sheaf.cechDifferential F U 0 = 0 := |
| 126 | Augmentation.TopCat.Sheaf.cechAugmentation_comp F U |
| 127 | calc |
| 128 | _ = (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).map |
| 129 | (Augmentation.TopCat.Sheaf.cechAugmentation F U ≫ SheafDifferential.TopCat.Sheaf.cechDifferential F U 0) := |
| 130 | ((GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).map_comp _ _).symm |
| 131 | _ = (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).map 0 := |
| 132 | congrArg (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).map hzero |
| 133 | _ = 0 := (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).map_zero _ _) |
| 134 | |
| 135 | private theorem cechGlobalSections_map_augmented_exact_and_mono |
| 136 | (F : Sheaf AddCommGrpCat.{u} X) (hU : ⨆ i, U i = ⊤) : |
| 137 | (cechGlobalSectionsMappedAugmentedShortComplex U F).Exact ∧ |
| 138 | Mono ((GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).map (Augmentation.TopCat.Sheaf.cechAugmentation F U)) := by |
| 139 | let S := Augmentation.TopCat.Sheaf.cechAugmentedShortComplex F U |
| 140 | have hS : S.Exact := ZeroExact.TopCat.Sheaf.cechAugmentedShortComplex_exact F U hU |
| 141 | have hmono : Mono S.f := by |
| 142 | change Mono (Augmentation.TopCat.Sheaf.cechAugmentation F U) |
| 143 | exact Resolution.TopCat.Sheaf.cechAugmentation_mono F U hU |
| 144 | have hmap := (((Functor.preservesFiniteLimits_tfae |
| 145 | (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X)).out 4 2 rfl rfl).mp |
| 146 | (inferInstance : PreservesFiniteLimits (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X))) |
| 147 | S ⟨hS, hmono⟩ |
| 148 | refine ⟨?_, by simpa [S, Augmentation.TopCat.Sheaf.cechAugmentedShortComplex] using hmap.2⟩ |
| 149 | have hex := (ShortComplex.ab_exact_iff _).mp hmap.1 |
| 150 | rw [ShortComplex.ab_exact_iff] |
| 151 | intro x hx |
| 152 | exact hex x hx |
| 153 | |
| 154 | /-- The native Cech short complex augmented by global sections is exact for an |
| 155 | open cover. -/ |
| 156 | theorem cechGlobalSectionsNativeShortComplex_exact |
| 157 | (F : Sheaf AddCommGrpCat.{u} X) (hU : ⨆ i, U i = ⊤) : |
| 158 | (cechGlobalSectionsNativeShortComplex U F).Exact := by |
| 159 | let S := Augmentation.TopCat.Sheaf.cechAugmentedShortComplex F U |
| 160 | have hmap := cechGlobalSections_map_augmented_exact_and_mono U F hU |
| 161 | have hcomm := (GlobalSections.TopCat.Sheaf.cechGlobalSectionsComplexIso F U).hom.comm 0 1 |
| 162 | change (GlobalSections.TopCat.Sheaf.cechGlobalSectionsXIso F U 0).hom ≫ |
| 163 | ((cechComplexFunctor U).obj F.obj).d 0 1 = |
| 164 | (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).map (SheafDifferential.TopCat.Sheaf.cechDifferential F U 0) ≫ |
| 165 | (GlobalSections.TopCat.Sheaf.cechGlobalSectionsXIso F U 1).hom at hcomm |
| 166 | let e : cechGlobalSectionsMappedAugmentedShortComplex U F ≅ |
| 167 | cechGlobalSectionsNativeShortComplex U F := |
| 168 | ShortComplex.isoMk (Iso.refl _) |
| 169 | (GlobalSections.TopCat.Sheaf.cechGlobalSectionsXIso F U 0) |
| 170 | (GlobalSections.TopCat.Sheaf.cechGlobalSectionsXIso F U 1) |
| 171 | (by |
| 172 | change 𝟙 _ ≫ ((GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).map |
| 173 | (Augmentation.TopCat.Sheaf.cechAugmentation F U) ≫ |
| 174 | (GlobalSections.TopCat.Sheaf.cechGlobalSectionsXIso F U 0).hom) = |
| 175 | (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).map (Augmentation.TopCat.Sheaf.cechAugmentation F U) ≫ |
| 176 | (GlobalSections.TopCat.Sheaf.cechGlobalSectionsXIso F U 0).hom |
| 177 | rw [Category.id_comp]) hcomm |
| 178 | exact ShortComplex.exact_of_iso e hmap.1 |
| 179 | |
| 180 | /-- The native Cech augmentation on global sections is monic for an open cover. -/ |
| 181 | theorem cechGlobalSectionsAugmentation_mono |
| 182 | (F : Sheaf AddCommGrpCat.{u} X) (hU : ⨆ i, U i = ⊤) : |
| 183 | Mono (GlobalSections.TopCat.Sheaf.cechGlobalSectionsAugmentation F U) := by |
| 184 | have hmap := cechGlobalSections_map_augmented_exact_and_mono U F hU |
| 185 | let : Mono ((GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).map |
| 186 | (Augmentation.TopCat.Sheaf.cechAugmentation F U)) := hmap.2 |
| 187 | change Mono ((GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).map (Augmentation.TopCat.Sheaf.cechAugmentation F U) ≫ |
| 188 | (GlobalSections.TopCat.Sheaf.cechGlobalSectionsXIso F U 0).hom) |
| 189 | infer_instance |
| 190 | |
| 191 | /-- The horizontal edge from global sections of the injective resolution to |
| 192 | the total injective Cech bicomplex. -/ |
| 193 | private noncomputable def cechInjectiveResolutionHorizontalEdge |
| 194 | (F : Sheaf AddCommGrpCat.{u} X) : |
| 195 | cechInjectiveResolutionGlobalSectionsComplex F ⟶ |
| 196 | (InjectiveBicomplex.TopCat.Sheaf.cechInjectiveResolutionBicomplex U F).total (.up ℕ) := |
| 197 | (UpNatHorizontalEdge.HomologicalComplex₂.totalUpNatHorizontalEdge (InjectiveBicomplex.TopCat.Sheaf.cechInjectiveResolutionBicomplex U F)) |
| 198 | (cechInjectiveResolutionGlobalSectionsComplex F) |
| 199 | (cechInjectiveResolutionHorizontalAugmentation U F) |
| 200 | (cechInjectiveResolutionHorizontalAugmentation_comm U F) |
| 201 | (cechInjectiveResolutionHorizontalAugmentation_comp_d U F) |
| 202 | |
| 203 | @[simp] |
| 204 | private theorem cechInjectiveResolutionHorizontalEdge_f |
| 205 | (F : Sheaf AddCommGrpCat.{u} X) (q : ℕ) : |
| 206 | (cechInjectiveResolutionHorizontalEdge U F).f q = |
| 207 | cechInjectiveResolutionHorizontalAugmentation U F q ≫ |
| 208 | (InjectiveBicomplex.TopCat.Sheaf.cechInjectiveResolutionBicomplex U F).ιTotal |
| 209 | (.up ℕ) q 0 q rfl := by |
| 210 | rfl |
| 211 | |
| 212 | private theorem cechInjectiveResolutionHorizontalEdge_naturality |
| 213 | {F G : Sheaf AddCommGrpCat.{u} X} (f : F ⟶ G) |
| 214 | (phi : InjectiveResolution.Hom |
| 215 | (injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F)) |
| 216 | (injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf G)) f) : |
| 217 | cechInjectiveResolutionGlobalSectionsMap phi.hom ≫ |
| 218 | cechInjectiveResolutionHorizontalEdge U G = |
| 219 | cechInjectiveResolutionHorizontalEdge U F ≫ |
| 220 | InjectiveAugmentation.TopCat.Sheaf.cechInjectiveResolutionTotalMap U phi.hom := by |
| 221 | apply HomologicalComplex.Hom.ext |
| 222 | funext q |
| 223 | have hAug : |
| 224 | cechInjectiveResolutionHorizontalAugmentation U F q ≫ |
| 225 | ((InjectiveBicomplex.TopCat.Sheaf.cechInjectiveResolutionBicomplexMap U phi.hom).f q).f 0 = |
| 226 | (cechInjectiveResolutionGlobalSectionsMap phi.hom).f q ≫ |
| 227 | cechInjectiveResolutionHorizontalAugmentation U G q := by |
| 228 | rw [InjectiveBicomplex.TopCat.Sheaf.cechInjectiveResolutionBicomplexMap_f_f, |
| 229 | cechInjectiveResolutionGlobalSectionsMap_f, |
| 230 | cechInjectiveResolutionHorizontalAugmentation_eq, |
| 231 | cechInjectiveResolutionHorizontalAugmentation_eq] |
| 232 | exact GlobalSections.TopCat.Sheaf.cechGlobalSectionsAugmentation_naturality |
| 233 | (U := U) (f := phi.hom.f q) |
| 234 | simp only [HomologicalComplex.comp_f, |
| 235 | cechInjectiveResolutionHorizontalEdge_f] |
| 236 | rw [Category.assoc, InjectiveAugmentation.TopCat.Sheaf.cechInjectiveResolutionTotalMap, |
| 237 | HomologicalComplex₂.ιTotal_map] |
| 238 | simp only [← Category.assoc] |
| 239 | rw [hAug] |
| 240 | |
| 241 | private theorem cechInjectiveResolution_row_exactAt_one |
| 242 | (F : Sheaf AddCommGrpCat.{u} X) (hU : ⨆ i, U i = ⊤) : |
| 243 | (ShortComplex.mk |
| 244 | (((InjectiveBicomplex.TopCat.Sheaf.cechInjectiveResolutionBicomplex U F).X 0).d 0 1) |
| 245 | (((InjectiveBicomplex.TopCat.Sheaf.cechInjectiveResolutionBicomplex U F).X 0).d 1 2)).Exact := by |
| 246 | apply (HomologicalComplex.exactAt_iff' |
| 247 | ((InjectiveBicomplex.TopCat.Sheaf.cechInjectiveResolutionBicomplex U F).X 0) |
| 248 | 0 1 2 (by simp) (by simp)).1 |
| 249 | exact InjectiveBicomplex.TopCat.Sheaf.cechInjectiveResolutionBicomplex_row_exactAt_one U F hU 0 |
| 250 | |
| 251 | /-- For a genuine cover, the horizontal edge is a quasi-isomorphism in degree |
| 252 | one. -/ |
| 253 | private theorem cechInjectiveResolutionHorizontalEdge_quasiIsoAt_one |
| 254 | (F : Sheaf AddCommGrpCat.{u} X) (hU : ⨆ i, U i = ⊤) : |
| 255 | QuasiIsoAt (cechInjectiveResolutionHorizontalEdge U F) 1 := by |
| 256 | let I := injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F) |
| 257 | let : Mono (cechInjectiveResolutionHorizontalAugmentation U F 1) := by |
| 258 | change Mono (GlobalSections.TopCat.Sheaf.cechGlobalSectionsAugmentation (I.cocomplex.X 1) U) |
| 259 | exact cechGlobalSectionsAugmentation_mono U (I.cocomplex.X 1) hU |
| 260 | let : Mono (cechInjectiveResolutionHorizontalAugmentation U F 2) := by |
| 261 | change Mono (GlobalSections.TopCat.Sheaf.cechGlobalSectionsAugmentation (I.cocomplex.X 2) U) |
| 262 | exact cechGlobalSectionsAugmentation_mono U (I.cocomplex.X 2) hU |
| 263 | apply NatHorizontalEdgeOne.HomologicalComplex₂.totalUpNatHorizontalEdge_quasiIsoAt_one |
| 264 | · change (cechGlobalSectionsNativeShortComplex U |
| 265 | (I.cocomplex.X 0)).Exact |
| 266 | exact cechGlobalSectionsNativeShortComplex_exact U (I.cocomplex.X 0) hU |
| 267 | · change (cechGlobalSectionsNativeShortComplex U |
| 268 | (I.cocomplex.X 1)).Exact |
| 269 | exact cechGlobalSectionsNativeShortComplex_exact U (I.cocomplex.X 1) hU |
| 270 | · exact cechInjectiveResolution_row_exactAt_one U F hU |
| 271 | |
| 272 | private noncomputable def cechInjectiveResolutionVerticalHomologyIso |
| 273 | (F : Sheaf AddCommGrpCat.{u} X) |
| 274 | (hH : ∀ i : ι, Subsingleton (CategoryTheory.Sheaf.H |
| 275 | ((TopCatRestrict.TopCat.Sheaf.restrict AddCommGrpCat (U i).isOpenEmbedding).obj F) 1)) : |
| 276 | ((cechComplexFunctor U).obj F.obj).homology 1 ≅ |
| 277 | ((InjectiveBicomplex.TopCat.Sheaf.cechInjectiveResolutionBicomplex U F).total (.up ℕ)).homology 1 := by |
| 278 | letI : QuasiIsoAt (InjectiveAugmentation.TopCat.Sheaf.cechInjectiveResolutionVerticalEdge U F) 1 := |
| 279 | InjectiveAugmentation.TopCat.Sheaf.cechInjectiveResolutionVerticalEdge_quasiIsoAt_one U F hH |
| 280 | exact asIso (HomologicalComplex.homologyMap |
| 281 | (InjectiveAugmentation.TopCat.Sheaf.cechInjectiveResolutionVerticalEdge U F) 1) |
| 282 | |
| 283 | @[simp] |
| 284 | private theorem cechInjectiveResolutionVerticalHomologyIso_hom |
| 285 | (F : Sheaf AddCommGrpCat.{u} X) |
| 286 | (hH : ∀ i : ι, Subsingleton (CategoryTheory.Sheaf.H |
| 287 | ((TopCatRestrict.TopCat.Sheaf.restrict AddCommGrpCat (U i).isOpenEmbedding).obj F) 1)) : |
| 288 | (cechInjectiveResolutionVerticalHomologyIso U F hH).hom = |
| 289 | HomologicalComplex.homologyMap |
| 290 | (InjectiveAugmentation.TopCat.Sheaf.cechInjectiveResolutionVerticalEdge U F) 1 := |
| 291 | rfl |
| 292 | |
| 293 | private noncomputable def cechInjectiveResolutionHorizontalHomologyIso |
| 294 | (F : Sheaf AddCommGrpCat.{u} X) (hU : ⨆ i, U i = ⊤) : |
| 295 | (cechInjectiveResolutionGlobalSectionsComplex F).homology 1 ≅ |
| 296 | ((InjectiveBicomplex.TopCat.Sheaf.cechInjectiveResolutionBicomplex U F).total (.up ℕ)).homology 1 := by |
| 297 | letI : QuasiIsoAt (cechInjectiveResolutionHorizontalEdge U F) 1 := |
| 298 | cechInjectiveResolutionHorizontalEdge_quasiIsoAt_one U F hU |
| 299 | exact asIso (HomologicalComplex.homologyMap |
| 300 | (cechInjectiveResolutionHorizontalEdge U F) 1) |
| 301 | |
| 302 | @[simp] |
| 303 | private theorem cechInjectiveResolutionHorizontalHomologyIso_hom |
| 304 | (F : Sheaf AddCommGrpCat.{u} X) (hU : ⨆ i, U i = ⊤) : |
| 305 | (cechInjectiveResolutionHorizontalHomologyIso U F hU).hom = |
| 306 | HomologicalComplex.homologyMap |
| 307 | (cechInjectiveResolutionHorizontalEdge U F) 1 := |
| 308 | rfl |
| 309 | |
| 310 | private noncomputable def cechHomologyOneRightDerivedIso_of_subsingleton_H |
| 311 | (F : Sheaf AddCommGrpCat.{u} X) (hU : ⨆ i, U i = ⊤) |
| 312 | (hH : ∀ i : ι, Subsingleton (CategoryTheory.Sheaf.H |
| 313 | ((TopCatRestrict.TopCat.Sheaf.restrict AddCommGrpCat (U i).isOpenEmbedding).obj F) 1)) : |
| 314 | ((cechComplexFunctor U).obj F.obj).homology 1 ≅ |
| 315 | ((GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).rightDerived 1).obj (Compat.TopCat.Sheaf.toSiteSheaf F) := |
| 316 | cechInjectiveResolutionVerticalHomologyIso U F hH ≪≫ |
| 317 | (cechInjectiveResolutionHorizontalHomologyIso U F hU).symm ≪≫ |
| 318 | ((injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F)).isoRightDerivedObj |
| 319 | (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) 1).symm |
| 320 | |
| 321 | @[simp] |
| 322 | private theorem cechHomologyOneRightDerivedIso_of_subsingleton_H_hom |
| 323 | (F : Sheaf AddCommGrpCat.{u} X) (hU : ⨆ i, U i = ⊤) |
| 324 | (hH : ∀ i : ι, Subsingleton (CategoryTheory.Sheaf.H |
| 325 | ((TopCatRestrict.TopCat.Sheaf.restrict AddCommGrpCat (U i).isOpenEmbedding).obj F) 1)) : |
| 326 | (cechHomologyOneRightDerivedIso_of_subsingleton_H U F hU hH).hom = |
| 327 | (cechInjectiveResolutionVerticalHomologyIso U F hH).hom ≫ |
| 328 | ((cechInjectiveResolutionHorizontalHomologyIso U F hU).inv ≫ |
| 329 | ((injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F)).isoRightDerivedObj |
| 330 | (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) 1).inv) := |
| 331 | rfl |
| 332 | |
| 333 | /-- Degree-one homology of an acyclic-cover Cech complex computes genuine |
| 334 | sheaf cohomology. In total degree one only `H¹` of the individual cover |
| 335 | members is required. -/ |
| 336 | noncomputable def cechHomologyOneIsoOfSubsingletonH |
| 337 | (F : Sheaf AddCommGrpCat.{u} X) (hU : ⨆ i, U i = ⊤) |
| 338 | (hH : ∀ i : ι, Subsingleton (CategoryTheory.Sheaf.H |
| 339 | ((TopCatRestrict.TopCat.Sheaf.restrict AddCommGrpCat (U i).isOpenEmbedding).obj F) 1)) : |
| 340 | ((cechComplexFunctor U).obj F.obj).homology 1 ≅ |
| 341 | (CategoryTheory.Sheaf.functorH |
| 342 | (Opens.grothendieckTopology X) 1).obj F := |
| 343 | cechHomologyOneRightDerivedIso_of_subsingleton_H U F hU hH ≪≫ |
| 344 | (Compat.TopCat.Sheaf.H.addEquivRightDerivedGlobalSections F 1).symm.toAddCommGrpIso |
| 345 | |
| 346 | @[simp] |
| 347 | private theorem cechHomologyOneIsoOfSubsingletonH_hom |
| 348 | (F : Sheaf AddCommGrpCat.{u} X) (hU : ⨆ i, U i = ⊤) |
| 349 | (hH : ∀ i : ι, Subsingleton (CategoryTheory.Sheaf.H |
| 350 | ((TopCatRestrict.TopCat.Sheaf.restrict AddCommGrpCat (U i).isOpenEmbedding).obj F) 1)) : |
| 351 | (cechHomologyOneIsoOfSubsingletonH U F hU hH).hom = |
| 352 | (cechHomologyOneRightDerivedIso_of_subsingleton_H U F hU hH).hom ≫ |
| 353 | (Compat.TopCat.Sheaf.H.addEquivRightDerivedGlobalSections F 1).symm.toAddCommGrpIso.hom := |
| 354 | rfl |
| 355 | |
| 356 | private theorem isoSquare_inv_naturality |
| 357 | {A B C D : AddCommGrpCat.{u}} (e : A ≅ B) (e' : C ≅ D) |
| 358 | (f : A ⟶ C) (g : B ⟶ D) (h : f ≫ e'.hom = e.hom ≫ g) : |
| 359 | g ≫ e'.inv = e.inv ≫ f := by |
| 360 | rw [e'.comp_inv_eq, Category.assoc, h] |
| 361 | simp |
| 362 | |
| 363 | private theorem cechInjectiveResolutionDerived_naturality |
| 364 | {F G : Sheaf AddCommGrpCat.{u} X} (f : F ⟶ G) |
| 365 | (phi : InjectiveResolution.Hom |
| 366 | (injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F)) |
| 367 | (injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf G)) f) : |
| 368 | HomologicalComplex.homologyMap |
| 369 | (cechInjectiveResolutionGlobalSectionsMap phi.hom) 1 ≫ |
| 370 | ((injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf G)).isoRightDerivedObj |
| 371 | (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) 1).inv = |
| 372 | ((injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F)).isoRightDerivedObj |
| 373 | (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) 1).inv ≫ |
| 374 | ((GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).rightDerived 1).map f := by |
| 375 | let hGlobalSectionsAdditive : (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).Additive := |
| 376 | (CategoryTheory.constantSheafΓAdj |
| 377 | (Opens.grothendieckTopology X) AddCommGrpCat.{u}).right_adjoint_additive |
| 378 | have h := @InjectiveResolution.isoRightDerivedObj_inv_naturality |
| 379 | _ _ _ _ _ _ _ _ _ f |
| 380 | (injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F)) |
| 381 | (injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf G)) phi.hom |
| 382 | phi.ι_f_zero_comp_hom_f_zero (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) |
| 383 | hGlobalSectionsAdditive 1 |
| 384 | exact h.symm |
| 385 | |
| 386 | private theorem cechHomologyOneRightDerivedIso_of_subsingleton_H_naturality |
| 387 | {F G : Sheaf AddCommGrpCat.{u} X} (f : F ⟶ G) |
| 388 | (hU : ⨆ i, U i = ⊤) |
| 389 | (hF : ∀ i : ι, Subsingleton (CategoryTheory.Sheaf.H |
| 390 | ((TopCatRestrict.TopCat.Sheaf.restrict AddCommGrpCat (U i).isOpenEmbedding).obj F) 1)) |
| 391 | (hG : ∀ i : ι, Subsingleton (CategoryTheory.Sheaf.H |
| 392 | ((TopCatRestrict.TopCat.Sheaf.restrict AddCommGrpCat (U i).isOpenEmbedding).obj G) 1)) : |
| 393 | HomologicalComplex.homologyMap |
| 394 | ((cechComplexFunctor U).map f.hom) 1 ≫ |
| 395 | (cechHomologyOneRightDerivedIso_of_subsingleton_H U G hU hG).hom = |
| 396 | (cechHomologyOneRightDerivedIso_of_subsingleton_H U F hU hF).hom ≫ |
| 397 | ((GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).rightDerived 1).map f := by |
| 398 | let IF := injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf F) |
| 399 | let IG := injectiveResolution (Compat.TopCat.Sheaf.toSiteSheaf G) |
| 400 | let phi : InjectiveResolution.Hom IF IG f := |
| 401 | { hom := InjectiveResolution.desc f IG IF |
| 402 | ι_f_zero_comp_hom_f_zero := by |
| 403 | change IF.ι.f 0 ≫ (InjectiveResolution.desc f IG IF).f 0 = |
| 404 | f ≫ IG.ι.f 0 |
| 405 | exact InjectiveResolution.desc_commutes_zero f IG IF } |
| 406 | let verticalF := InjectiveAugmentation.TopCat.Sheaf.cechInjectiveResolutionVerticalEdge U F |
| 407 | let verticalG := InjectiveAugmentation.TopCat.Sheaf.cechInjectiveResolutionVerticalEdge U G |
| 408 | let horizontalF := cechInjectiveResolutionHorizontalEdge U F |
| 409 | let horizontalG := cechInjectiveResolutionHorizontalEdge U G |
| 410 | let totalMap := InjectiveAugmentation.TopCat.Sheaf.cechInjectiveResolutionTotalMap U phi.hom |
| 411 | let sectionsMap := cechInjectiveResolutionGlobalSectionsMap phi.hom |
| 412 | have hvertical : |
| 413 | HomologicalComplex.homologyMap ((cechComplexFunctor U).map f.hom) 1 ≫ |
| 414 | (cechInjectiveResolutionVerticalHomologyIso U G hG).hom = |
| 415 | (cechInjectiveResolutionVerticalHomologyIso U F hF).hom ≫ |
| 416 | HomologicalComplex.homologyMap totalMap 1 := by |
| 417 | rw [cechInjectiveResolutionVerticalHomologyIso_hom, |
| 418 | cechInjectiveResolutionVerticalHomologyIso_hom] |
| 419 | rw [← HomologicalComplex.homologyMap_comp, |
| 420 | ← HomologicalComplex.homologyMap_comp] |
| 421 | exact congrArg (fun g ↦ HomologicalComplex.homologyMap g 1) |
| 422 | (InjectiveAugmentation.TopCat.Sheaf.cechInjectiveResolutionVerticalEdge_naturality U f phi).symm |
| 423 | have hhorizontal : |
| 424 | HomologicalComplex.homologyMap sectionsMap 1 ≫ |
| 425 | (cechInjectiveResolutionHorizontalHomologyIso U G hU).hom = |
| 426 | (cechInjectiveResolutionHorizontalHomologyIso U F hU).hom ≫ |
| 427 | HomologicalComplex.homologyMap totalMap 1 := by |
| 428 | rw [cechInjectiveResolutionHorizontalHomologyIso_hom, |
| 429 | cechInjectiveResolutionHorizontalHomologyIso_hom] |
| 430 | rw [← HomologicalComplex.homologyMap_comp, |
| 431 | ← HomologicalComplex.homologyMap_comp] |
| 432 | exact congrArg (fun g ↦ HomologicalComplex.homologyMap g 1) |
| 433 | (cechInjectiveResolutionHorizontalEdge_naturality U f phi) |
| 434 | have htotal := isoSquare_inv_naturality |
| 435 | (cechInjectiveResolutionHorizontalHomologyIso U F hU) |
| 436 | (cechInjectiveResolutionHorizontalHomologyIso U G hU) |
| 437 | (HomologicalComplex.homologyMap sectionsMap 1) |
| 438 | (HomologicalComplex.homologyMap totalMap 1) hhorizontal |
| 439 | have hderived : |
| 440 | HomologicalComplex.homologyMap sectionsMap 1 ≫ |
| 441 | (IG.isoRightDerivedObj (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) 1).inv = |
| 442 | (IF.isoRightDerivedObj (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) 1).inv ≫ |
| 443 | ((GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).rightDerived 1).map f := by |
| 444 | exact cechInjectiveResolutionDerived_naturality f phi |
| 445 | have hmiddle : |
| 446 | HomologicalComplex.homologyMap totalMap 1 ≫ |
| 447 | ((cechInjectiveResolutionHorizontalHomologyIso U G hU).inv ≫ |
| 448 | (IG.isoRightDerivedObj (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) 1).inv) = |
| 449 | (cechInjectiveResolutionHorizontalHomologyIso U F hU).inv ≫ |
| 450 | ((IF.isoRightDerivedObj (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) 1).inv ≫ |
| 451 | ((GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X).rightDerived 1).map f) := by |
| 452 | calc |
| 453 | _ = (HomologicalComplex.homologyMap totalMap 1 ≫ |
| 454 | (cechInjectiveResolutionHorizontalHomologyIso U G hU).inv) ≫ |
| 455 | (IG.isoRightDerivedObj (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) 1).inv := |
| 456 | (Category.assoc _ _ _).symm |
| 457 | _ = ((cechInjectiveResolutionHorizontalHomologyIso U F hU).inv ≫ |
| 458 | HomologicalComplex.homologyMap sectionsMap 1) ≫ |
| 459 | (IG.isoRightDerivedObj (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) 1).inv := by |
| 460 | rw [htotal] |
| 461 | _ = (cechInjectiveResolutionHorizontalHomologyIso U F hU).inv ≫ |
| 462 | (HomologicalComplex.homologyMap sectionsMap 1 ≫ |
| 463 | (IG.isoRightDerivedObj (GlobalSectionsFunctor.TopCat.Sheaf.globalSectionsFunctor X) 1).inv) := |
| 464 | Category.assoc _ _ _ |
| 465 | _ = _ := congrArg |
| 466 | (fun g ↦ (cechInjectiveResolutionHorizontalHomologyIso U F hU).inv ≫ g) |
| 467 | hderived |
| 468 | rw [cechHomologyOneRightDerivedIso_of_subsingleton_H_hom, |
| 469 | cechHomologyOneRightDerivedIso_of_subsingleton_H_hom] |
| 470 | simp only [← Category.assoc] |
| 471 | rw [hvertical] |
| 472 | simp only [Category.assoc] |
| 473 | rw [hmiddle] |
| 474 | rfl |
| 475 | |
| 476 | /-- The degree-one Cech comparison is natural in the coefficient sheaf. -/ |
| 477 | theorem cechHomologyOneIsoOfSubsingletonH_naturality |
| 478 | {F G : Sheaf AddCommGrpCat.{u} X} (f : F ⟶ G) |
| 479 | (hU : ⨆ i, U i = ⊤) |
| 480 | (hF : ∀ i : ι, Subsingleton (CategoryTheory.Sheaf.H |
| 481 | ((TopCatRestrict.TopCat.Sheaf.restrict AddCommGrpCat (U i).isOpenEmbedding).obj F) 1)) |
| 482 | (hG : ∀ i : ι, Subsingleton (CategoryTheory.Sheaf.H |
| 483 | ((TopCatRestrict.TopCat.Sheaf.restrict AddCommGrpCat (U i).isOpenEmbedding).obj G) 1)) : |
| 484 | HomologicalComplex.homologyMap |
| 485 | ((cechComplexFunctor U).map f.hom) 1 ≫ |
| 486 | (cechHomologyOneIsoOfSubsingletonH U G hU hG).hom = |
| 487 | (cechHomologyOneIsoOfSubsingletonH U F hU hF).hom ≫ |
| 488 | (CategoryTheory.Sheaf.functorH |
| 489 | (Opens.grothendieckTopology X) 1).map f := by |
| 490 | rw [cechHomologyOneIsoOfSubsingletonH_hom, |
| 491 | cechHomologyOneIsoOfSubsingletonH_hom] |
| 492 | simp only [← Category.assoc] |
| 493 | rw [cechHomologyOneRightDerivedIso_of_subsingleton_H_naturality |
| 494 | U f hU hF hG] |
| 495 | simp only [Category.assoc] |
| 496 | congr 1 |
| 497 | ext x |
| 498 | exact Compat.TopCat.Sheaf.H.addEquivRightDerivedGlobalSections_symm_naturality f 1 x |
| 499 | |
| 500 | end |
| 501 | |
| 502 | end OAI.AlgebraicGeometry.SheafCohomology.Cech.InjectiveComparison.TopCat.Sheaf |