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 | Copyright 2026 The Formal Conjectures Authors. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | This file has been modified. |
| 16 | -/ |
| 17 | import Mathlib.LinearAlgebra.Dual.Lemmas |
| 18 | import Mathlib.Topology.ShrinkingLemma |
| 19 | import OAI.Algebra.Homology.KernelAcyclic |
| 20 | import OAI.AlgebraicTopology.Sheaf.FlasqueAcyclic |
| 21 | import OAI.Algebra.Homology.LinearDualHomotopy |
| 22 | import OAI.AlgebraicTopology.Singular.CohomologyTo |
| 23 | import OAI.AlgebraicTopology.Singular.SheafCochainDescent |
| 24 | import OAI.AlgebraicTopology.Singular.ExcisionField |
| 25 | import OAI.Topology.Foundations.ChartedSpaceParacompact |
| 26 | |
| 27 | /-! # Sheaf Subdivision Cochain -/ |
| 28 | |
| 29 | namespace OAI.AlgebraicTopology.Singular.SheafSubdivisionCochain |
| 30 | |
| 31 | noncomputable section |
| 32 | |
| 33 | open _root_.AlgebraicTopology |
| 34 | |
| 35 | /-! |
| 36 | # Global and locally defined singular cochains |
| 37 | |
| 38 | The definitions in this file, and the lemmas about them, are reached from the statement of the |
| 39 | conjecture only through proofs, so the statement never inspects them: by proof irrelevance |
| 40 | nothing about how they were built can change what it asserts. |
| 41 | -/ |
| 42 | |
| 43 | section |
| 44 | |
| 45 | open _root_.CategoryTheory Limits _root_.TopologicalSpace |
| 46 | open scoped Simplicial |
| 47 | |
| 48 | universe u |
| 49 | |
| 50 | /-- The domains of a covering sieve, regarded as open subsets of the covered open set. -/ |
| 51 | def coveringSieveOpenFamilyOn (X : TopCat.{u}) {U : Opens X} |
| 52 | (S : (Opens.grothendieckTopology X).Cover U) : S.Arrow → Set U := |
| 53 | fun I ↦ Subtype.val ⁻¹' (I.Y : Set X) |
| 54 | |
| 55 | lemma coveringSieveOpenFamilyOn_isOpen (X : TopCat.{u}) {U : Opens X} |
| 56 | (S : (Opens.grothendieckTopology X).Cover U) (I : S.Arrow) : |
| 57 | IsOpen (coveringSieveOpenFamilyOn X S I) := |
| 58 | I.Y.isOpen.preimage continuous_subtype_val |
| 59 | |
| 60 | /-- The domains of a covering sieve cover the covered open set. -/ |
| 61 | lemma coveringSieveOpenFamilyOn_iUnion (X : TopCat.{u}) {U : Opens X} |
| 62 | (S : (Opens.grothendieckTopology X).Cover U) : |
| 63 | ⋃ I, coveringSieveOpenFamilyOn X S I = Set.univ := by |
| 64 | apply Set.eq_univ_of_forall |
| 65 | intro x |
| 66 | obtain ⟨V, f, hf, hx⟩ := |
| 67 | ((Opens.mem_grothendieckTopology X).mp S.2) x.1 x.2 |
| 68 | exact Set.mem_iUnion.mpr |
| 69 | ⟨GrothendieckTopology.Cover.Arrow.mk V f hf, hx⟩ |
| 70 | |
| 71 | /-- On a paracompact Hausdorff open set, a covering sieve admits an open refinement whose |
| 72 | closures are locally finite and remain subordinate to the original sieve members. -/ |
| 73 | theorem exists_coveringSieve_locallyFinite_closedRefinement |
| 74 | (X : TopCat.{u}) {U : Opens X} [ParacompactSpace U] [T2Space U] |
| 75 | (S : (Opens.grothendieckTopology X).Cover U) : |
| 76 | ∃ W : S.Arrow → Set U, |
| 77 | (∀ I, IsOpen (W I)) ∧ ⋃ I, W I = Set.univ ∧ |
| 78 | LocallyFinite (fun I ↦ closure (W I)) ∧ |
| 79 | ∀ I, closure (W I) ⊆ coveringSieveOpenFamilyOn X S I := by |
| 80 | obtain ⟨V, hVopen, hVcover, hVfinite, hVsub⟩ := precise_refinement |
| 81 | (coveringSieveOpenFamilyOn X S) |
| 82 | (coveringSieveOpenFamilyOn_isOpen X S) |
| 83 | (coveringSieveOpenFamilyOn_iUnion X S) |
| 84 | obtain ⟨W, hWcover, hWopen, hWsub⟩ := |
| 85 | exists_iUnion_eq_closure_subset hVopen hVfinite.point_finite hVcover |
| 86 | refine ⟨W, hWopen, hWcover, ?_, fun I ↦ (hWsub I).trans (hVsub I)⟩ |
| 87 | exact (hVfinite.subset fun I ↦ subset_closure.trans (hWsub I)).closure |
| 88 | |
| 89 | variable (R : Type u) [CommRing R] (X : TopCat.{u}) |
| 90 | |
| 91 | /-- The singular chain complex of the top open subset of `X`. -/ |
| 92 | abbrev TopOpenSingularChainComplex : ChainComplex (ModuleCat.{u} R) ℕ := |
| 93 | (SheafCochain.openSingularChainComplexFunctor R X).obj ⊤ |
| 94 | |
| 95 | /-- The inclusion of the top open subset into `X` identifies their singular chain complexes. -/ |
| 96 | noncomputable def topOpenSingularChainComplexIso : |
| 97 | SheafSubdivisionCochain.TopOpenSingularChainComplex R X ≅ Cohomology.SingularChainComplex R X := |
| 98 | ((singularChainComplexFunctor (ModuleCat.{u} R)).obj (ModuleCat.of R R)).mapIso |
| 99 | (Opens.inclusionTopIso X) |
| 100 | |
| 101 | /-- Ordinary singular cochains and top-open singular cochains are isomorphic as cochain |
| 102 | complexes. -/ |
| 103 | noncomputable def singularCochainComplexIsoTopOpen : |
| 104 | (Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex (Cohomology.SingularChainComplex R X)) ≅ |
| 105 | (Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex (TopOpenSingularChainComplex R X)) := |
| 106 | Algebra.Homology.LinearDual.HomologicalComplex.linearDualIso (topOpenSingularChainComplexIso R X) |
| 107 | |
| 108 | /-- The singular-cochain presheaf complex evaluated on the top open subset. -/ |
| 109 | def globalRawSingularCochainComplex : CochainComplex AddCommGrpCat ℕ := |
| 110 | (((evaluation (Opens X)ᵒᵖ AddCommGrpCat).obj (.op ⊤)).mapHomologicalComplex |
| 111 | (ComplexShape.up ℕ)).obj (SheafCochain.singularCochainPresheafComplex R X) |
| 112 | |
| 113 | /-- Top-open singular cochains, with their scalar structure forgotten. -/ |
| 114 | def topOpenForgottenSingularCochainComplex : CochainComplex AddCommGrpCat ℕ := |
| 115 | ((forget₂ (ModuleCat.{u} R) AddCommGrpCat).mapHomologicalComplex |
| 116 | (ComplexShape.up ℕ)).obj |
| 117 | (Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex (TopOpenSingularChainComplex R X)) |
| 118 | |
| 119 | set_option backward.isDefEq.respectTransparency false in |
| 120 | /-- Evaluation of the cochain presheaf and forgetting the scalar structure on top-open cochains |
| 121 | have the same underlying additive groups. -/ |
| 122 | def globalRawSingularCochainAddEquiv (n : ℕ) : |
| 123 | (globalRawSingularCochainComplex R X).X n ≃+ |
| 124 | (topOpenForgottenSingularCochainComplex R X).X n where |
| 125 | toFun x := x |
| 126 | invFun x := x |
| 127 | left_inv _ := rfl |
| 128 | right_inv _ := rfl |
| 129 | map_add' _ _ := rfl |
| 130 | |
| 131 | /-- The degreewise additive-group isomorphism between the two presentations of top-open |
| 132 | cochains. -/ |
| 133 | def globalRawSingularCochainXIso (n : ℕ) : |
| 134 | (globalRawSingularCochainComplex R X).X n ≅ |
| 135 | (topOpenForgottenSingularCochainComplex R X).X n := |
| 136 | (globalRawSingularCochainAddEquiv R X n).toAddCommGrpIso |
| 137 | |
| 138 | set_option backward.isDefEq.respectTransparency false in |
| 139 | /-- Evaluating the raw cochain presheaf on the top open agrees, as a complex of additive groups, |
| 140 | with forgetting the scalar structure on the top-open linear-dual complex. -/ |
| 141 | def globalRawSingularCochainComplexIso : |
| 142 | globalRawSingularCochainComplex R X ≅ |
| 143 | topOpenForgottenSingularCochainComplex R X := |
| 144 | HomologicalComplex.Hom.isoOfComponents |
| 145 | (globalRawSingularCochainXIso R X) (by |
| 146 | intro i j hij |
| 147 | obtain rfl := hij |
| 148 | ext x |
| 149 | dsimp only [globalRawSingularCochainComplex, |
| 150 | topOpenForgottenSingularCochainComplex] |
| 151 | rw [Functor.mapHomologicalComplex_obj_d, |
| 152 | Functor.mapHomologicalComplex_obj_d, |
| 153 | SheafCochain.singularCochainPresheafComplex_d, |
| 154 | Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex_d_succ] |
| 155 | dsimp [globalRawSingularCochainXIso, |
| 156 | globalRawSingularCochainAddEquiv, |
| 157 | SheafSubdivisionCochain.TopOpenSingularChainComplex, SheafCochain.singularCochainCoboundary] |
| 158 | rfl) |
| 159 | |
| 160 | @[simp] |
| 161 | lemma globalRawSingularCochainComplexIso_hom_f_apply (n : ℕ) |
| 162 | (x : (globalRawSingularCochainComplex R X).X n) : |
| 163 | (globalRawSingularCochainComplexIso R X).hom.f n x = x := |
| 164 | rfl |
| 165 | |
| 166 | /-- Let `X` be a topological space and `R` a commutative ring. Apply the first plus construction to |
| 167 | each presheaf `U ↦ C^n(U;R)` of singular cochains: its sections are compatible families over |
| 168 | open covers, with families identified when they agree on a common refinement. The induced |
| 169 | singular coboundaries make these presheaves into this nonnegative cochain complex. -/ |
| 170 | def singularCochainPlusPresheafComplex : |
| 171 | CochainComplex (TopCat.Presheaf AddCommGrpCat X) ℕ := |
| 172 | ((Opens.grothendieckTopology X).plusFunctor AddCommGrpCat).mapHomologicalComplex |
| 173 | (ComplexShape.up ℕ) |>.obj (SheafCochain.singularCochainPresheafComplex R X) |
| 174 | |
| 175 | /-- The degreewise first-plus unit on the singular-cochain presheaf complex. -/ |
| 176 | def singularCochainToPlusPresheafComplex : |
| 177 | SheafCochain.singularCochainPresheafComplex R X ⟶ singularCochainPlusPresheafComplex R X := |
| 178 | (NatTrans.mapHomologicalComplex |
| 179 | ((Opens.grothendieckTopology X).toPlusNatTrans AddCommGrpCat) |
| 180 | (ComplexShape.up ℕ)).app (SheafCochain.singularCochainPresheafComplex R X) |
| 181 | |
| 182 | @[simp] |
| 183 | lemma singularCochainToPlusPresheafComplex_f (n : ℕ) : |
| 184 | (singularCochainToPlusPresheafComplex R X).f n = |
| 185 | (Opens.grothendieckTopology X).toPlus (SheafCochain.singularCochainPresheaf R X n) := |
| 186 | rfl |
| 187 | |
| 188 | /-- The singular-cochain presheaf complex after applying the plus construction twice |
| 189 | degreewise. Every term of this complex is a sheaf. -/ |
| 190 | def singularCochainPlusPlusPresheafComplex : |
| 191 | CochainComplex (TopCat.Presheaf AddCommGrpCat X) ℕ := |
| 192 | (((Opens.grothendieckTopology X).sheafification |
| 193 | AddCommGrpCat).mapHomologicalComplex |
| 194 | (ComplexShape.up ℕ)).obj (SheafCochain.singularCochainPresheafComplex R X) |
| 195 | |
| 196 | /-- The degreewise second-plus unit on the singular-cochain complex. -/ |
| 197 | def singularCochainPlusToPlusPlusPresheafComplex : |
| 198 | singularCochainPlusPresheafComplex R X ⟶ |
| 199 | singularCochainPlusPlusPresheafComplex R X := |
| 200 | (NatTrans.mapHomologicalComplex |
| 201 | (Functor.whiskerLeft |
| 202 | ((Opens.grothendieckTopology X).plusFunctor AddCommGrpCat) |
| 203 | ((Opens.grothendieckTopology X).toPlusNatTrans AddCommGrpCat)) |
| 204 | (ComplexShape.up ℕ)).app (SheafCochain.singularCochainPresheafComplex R X) |
| 205 | |
| 206 | @[simp] |
| 207 | lemma singularCochainPlusToPlusPlusPresheafComplex_f (n : ℕ) : |
| 208 | (singularCochainPlusToPlusPlusPresheafComplex R X).f n = |
| 209 | (Opens.grothendieckTopology X).toPlus |
| 210 | ((Opens.grothendieckTopology X).plusObj |
| 211 | (SheafCochain.singularCochainPresheaf R X n)) := |
| 212 | rfl |
| 213 | |
| 214 | /-- The degreewise double-plus comparison from raw singular cochains. -/ |
| 215 | def singularCochainToPlusPlusPresheafComplex : |
| 216 | SheafCochain.singularCochainPresheafComplex R X ⟶ |
| 217 | singularCochainPlusPlusPresheafComplex R X := |
| 218 | singularCochainToPlusPresheafComplex R X ≫ |
| 219 | singularCochainPlusToPlusPlusPresheafComplex R X |
| 220 | |
| 221 | set_option backward.isDefEq.respectTransparency false in |
| 222 | @[simp] |
| 223 | lemma singularCochainToPlusPlusPresheafComplex_f (n : ℕ) : |
| 224 | (singularCochainToPlusPlusPresheafComplex R X).f n = |
| 225 | (Opens.grothendieckTopology X).toSheafify |
| 226 | (SheafCochain.singularCochainPresheaf R X n) := by |
| 227 | change (Opens.grothendieckTopology X).toPlus |
| 228 | (SheafCochain.singularCochainPresheaf R X n) ≫ |
| 229 | (Opens.grothendieckTopology X).toPlus |
| 230 | ((Opens.grothendieckTopology X).plusObj |
| 231 | (SheafCochain.singularCochainPresheaf R X n)) = _ |
| 232 | rw [← (Opens.grothendieckTopology X).plusMap_toPlus |
| 233 | (SheafCochain.singularCochainPresheaf R X n)] |
| 234 | rfl |
| 235 | |
| 236 | /-- The underlying presheaf complex of the chosen degreewise sheafification. -/ |
| 237 | def forgottenSingularCochainSheafComplex : |
| 238 | CochainComplex (TopCat.Presheaf AddCommGrpCat X) ℕ := |
| 239 | ((TopCat.Sheaf.forget AddCommGrpCat X).mapHomologicalComplex |
| 240 | (ComplexShape.up ℕ)).obj (SheafCochain.singularCochainSheafComplex R X) |
| 241 | |
| 242 | /-- Double-plus sheafification agrees with Mathlib's chosen sheafification, compatibly with the |
| 243 | singular coboundary. -/ |
| 244 | def singularCochainPlusPlusPresheafComplexIsoSheafComplex : |
| 245 | singularCochainPlusPlusPresheafComplex R X ≅ |
| 246 | forgottenSingularCochainSheafComplex R X := |
| 247 | (NatIso.mapHomologicalComplex |
| 248 | (plusPlusFunctorIsoSheafification |
| 249 | (Opens.grothendieckTopology X) AddCommGrpCat) |
| 250 | (ComplexShape.up ℕ)).app (SheafCochain.singularCochainPresheafComplex R X) |
| 251 | |
| 252 | /-- Flasqueness descends along a pointwise epimorphism of additive presheaves. -/ |
| 253 | lemma presheaf_isFlasque_of_epi |
| 254 | {P Q : TopCat.Presheaf AddCommGrpCat X} (f : P ⟶ Q) |
| 255 | [P.IsFlasque] [∀ U, Epi (f.app U)] : Q.IsFlasque where |
| 256 | epi {U V} i := by |
| 257 | have hcomp : Epi (f.app U ≫ Q.map i) := by |
| 258 | rw [← f.naturality i] |
| 259 | infer_instance |
| 260 | exact CategoryTheory.epi_of_epi (f.app U) (Q.map i) |
| 261 | |
| 262 | /-- Every degree of the first-plus singular-cochain complex is a flasque presheaf. -/ |
| 263 | instance singularCochainPlusPresheafComplex_isFlasque (n : ℕ) : |
| 264 | TopCat.Presheaf.IsFlasque ((singularCochainPlusPresheafComplex R X).X n) := by |
| 265 | change TopCat.Presheaf.IsFlasque |
| 266 | ((Opens.grothendieckTopology X).plusObj |
| 267 | (SheafCochain.singularCochainPresheaf R X n)) |
| 268 | infer_instance |
| 269 | |
| 270 | /-- Evaluation of the first-plus singular-cochain complex on the top open subset. -/ |
| 271 | def globalSingularCochainPlusComplex : CochainComplex AddCommGrpCat ℕ := |
| 272 | ((evaluation (Opens X)ᵒᵖ AddCommGrpCat).obj (.op ⊤)).mapHomologicalComplex |
| 273 | (ComplexShape.up ℕ) |>.obj (singularCochainPlusPresheafComplex R X) |
| 274 | |
| 275 | /-- Evaluation on the top open subset of the degreewise first-plus comparison. -/ |
| 276 | def topOpenToGlobalSingularCochainPlusComplex : |
| 277 | globalRawSingularCochainComplex R X ⟶ |
| 278 | globalSingularCochainPlusComplex R X := |
| 279 | (((evaluation (Opens X)ᵒᵖ AddCommGrpCat).obj (.op ⊤)).mapHomologicalComplex |
| 280 | (ComplexShape.up ℕ)).map (singularCochainToPlusPresheafComplex R X) |
| 281 | |
| 282 | /-- Evaluation of the double-plus singular-cochain complex on the top open subset. -/ |
| 283 | def globalSingularCochainPlusPlusComplex : CochainComplex AddCommGrpCat ℕ := |
| 284 | ((evaluation (Opens X)ᵒᵖ AddCommGrpCat).obj (.op ⊤)).mapHomologicalComplex |
| 285 | (ComplexShape.up ℕ) |>.obj (singularCochainPlusPlusPresheafComplex R X) |
| 286 | |
| 287 | /-- Global sections of the chosen singular-cochain sheaf complex. -/ |
| 288 | def globalSingularCochainSheafComplex : CochainComplex AddCommGrpCat ℕ := |
| 289 | ((evaluation (Opens X)ᵒᵖ AddCommGrpCat).obj (.op ⊤)).mapHomologicalComplex |
| 290 | (ComplexShape.up ℕ) |>.obj (forgottenSingularCochainSheafComplex R X) |
| 291 | |
| 292 | /-- The double-plus model and the chosen singular-cochain sheaf complex have isomorphic global |
| 293 | section complexes. -/ |
| 294 | def globalSingularCochainPlusPlusComplexIsoSheafComplex : |
| 295 | globalSingularCochainPlusPlusComplex R X ≅ |
| 296 | globalSingularCochainSheafComplex R X := |
| 297 | (((evaluation (Opens X)ᵒᵖ AddCommGrpCat).obj (.op ⊤)).mapHomologicalComplex |
| 298 | (ComplexShape.up ℕ)).mapIso |
| 299 | (singularCochainPlusPlusPresheafComplexIsoSheafComplex R X) |
| 300 | |
| 301 | /-- Evaluation on the top open subset of the degreewise second-plus comparison. -/ |
| 302 | def globalSingularCochainPlusToPlusPlusComplex : |
| 303 | globalSingularCochainPlusComplex R X ⟶ |
| 304 | globalSingularCochainPlusPlusComplex R X := |
| 305 | (((evaluation (Opens X)ᵒᵖ AddCommGrpCat).obj (.op ⊤)).mapHomologicalComplex |
| 306 | (ComplexShape.up ℕ)).map (singularCochainPlusToPlusPlusPresheafComplex R X) |
| 307 | |
| 308 | /-- Evaluation on the top open subset of the degreewise double-plus comparison. -/ |
| 309 | def topOpenToGlobalSingularCochainPlusPlusComplex : |
| 310 | globalRawSingularCochainComplex R X ⟶ |
| 311 | globalSingularCochainPlusPlusComplex R X := |
| 312 | topOpenToGlobalSingularCochainPlusComplex R X ≫ |
| 313 | globalSingularCochainPlusToPlusPlusComplex R X |
| 314 | |
| 315 | /-- The comparison from ordinary singular cochains to global sections of the chosen |
| 316 | singular-cochain sheaf complex. -/ |
| 317 | def topOpenToGlobalSingularCochainSheafComplex : |
| 318 | globalRawSingularCochainComplex R X ⟶ |
| 319 | globalSingularCochainSheafComplex R X := |
| 320 | topOpenToGlobalSingularCochainPlusPlusComplex R X ≫ |
| 321 | (globalSingularCochainPlusPlusComplexIsoSheafComplex R X).hom |
| 322 | |
| 323 | /-- Every global section of the first-plus term is represented by an ordinary cochain. -/ |
| 324 | lemma topOpenToGlobalSingularCochainPlusComplex_surjective (n : ℕ) : |
| 325 | Function.Surjective |
| 326 | ((topOpenToGlobalSingularCochainPlusComplex R X).f n) := |
| 327 | SheafCochainDescent.singularCochain_toPlus_exists_rep R X ⊤ n |
| 328 | |
| 329 | /-- The map from top-open cochains to global first-plus cochains is degreewise an epimorphism. -/ |
| 330 | instance topOpenToGlobalSingularCochainPlusComplex_epi_f (n : ℕ) : |
| 331 | Epi ((topOpenToGlobalSingularCochainPlusComplex R X).f n) := by |
| 332 | rw [AddCommGrpCat.epi_iff_surjective] |
| 333 | exact topOpenToGlobalSingularCochainPlusComplex_surjective R X n |
| 334 | |
| 335 | set_option backward.isDefEq.respectTransparency false in |
| 336 | /-- A singular cochain maps to zero in the first plus construction exactly when it vanishes |
| 337 | after restriction along every arrow of some covering sieve. -/ |
| 338 | lemma singularCochain_toPlus_eq_zero_iff (V : Opens X) (n : ℕ) |
| 339 | (φ : SheafCochain.OpenCochains R X (.op V) n) : |
| 340 | ((Opens.grothendieckTopology X).toPlus |
| 341 | (SheafCochain.singularCochainPresheaf R X n)).app (.op V) φ = 0 ↔ |
| 342 | ∃ S : (Opens.grothendieckTopology X).Cover V, |
| 343 | ∀ I : S.Arrow, |
| 344 | (SheafCochain.singularCochainPresheaf R X n).map I.f.op φ = 0 := by |
| 345 | let J := Opens.grothendieckTopology X |
| 346 | let P := SheafCochain.singularCochainPresheaf R X n |
| 347 | rw [← map_zero (ConcreteCategory.hom ((J.toPlus P).app (.op V)))] |
| 348 | constructor |
| 349 | · intro h |
| 350 | simp only [GrothendieckTopology.Plus.toPlus_eq_mk] at h |
| 351 | rw [GrothendieckTopology.Plus.eq_mk_iff_exists] at h |
| 352 | obtain ⟨S, h₁, h₂, hS⟩ := h |
| 353 | refine ⟨S, fun I ↦ ?_⟩ |
| 354 | apply_fun fun e ↦ e I at hS |
| 355 | simpa [Meq.refine, Meq.mk, P] using hS |
| 356 | · rintro ⟨S, hS⟩ |
| 357 | simp only [GrothendieckTopology.Plus.toPlus_eq_mk] |
| 358 | rw [GrothendieckTopology.Plus.eq_mk_iff_exists] |
| 359 | refine ⟨S, homOfLE le_top, homOfLE le_top, ?_⟩ |
| 360 | ext I |
| 361 | simpa [Meq.refine, Meq.mk, P] using hS I |
| 362 | |
| 363 | set_option backward.isDefEq.respectTransparency false in |
| 364 | /-- Raw representatives of a matching family of first-plus singular cochains agree on some |
| 365 | neighborhood of every point of a pairwise overlap. -/ |
| 366 | lemma exists_open_eq_of_plus_matchingFamily |
| 367 | {U : Opens X} (S : (Opens.grothendieckTopology X).Cover U) (n : ℕ) |
| 368 | (s : Meq ((Opens.grothendieckTopology X).plusObj |
| 369 | (SheafCochain.singularCochainPresheaf R X n)) S) |
| 370 | (φ : ∀ I : S.Arrow, SheafCochain.OpenCochains R X (.op I.Y) n) |
| 371 | (hφ : ∀ I : S.Arrow, |
| 372 | ((Opens.grothendieckTopology X).toPlus |
| 373 | (SheafCochain.singularCochainPresheaf R X n)).app (.op I.Y) (φ I) = s I) |
| 374 | (I J : S.Arrow) (x : X) (hxI : x ∈ I.Y) (hxJ : x ∈ J.Y) : |
| 375 | ∃ (V : Opens X) (a : V ⟶ I.Y) (b : V ⟶ J.Y), x ∈ V ∧ |
| 376 | (SheafCochain.singularCochainPresheaf R X n).map a.op (φ I) = |
| 377 | (SheafCochain.singularCochainPresheaf R X n).map b.op (φ J) := by |
| 378 | let eI : I.Y ⊓ J.Y ⟶ I.Y := homOfLE inf_le_left |
| 379 | let eJ : I.Y ⊓ J.Y ⟶ J.Y := homOfLE inf_le_right |
| 380 | let rel : S.Relation := GrothendieckTopology.Cover.Relation.mk' |
| 381 | { Z := I.Y ⊓ J.Y |
| 382 | g₁ := eI |
| 383 | g₂ := eJ } |
| 384 | have hplus := s.condition rel |
| 385 | let η := (Opens.grothendieckTopology X).toPlus |
| 386 | (SheafCochain.singularCochainPresheaf R X n) |
| 387 | have hplus' : |
| 388 | η.app (.op (I.Y ⊓ J.Y)) |
| 389 | ((SheafCochain.singularCochainPresheaf R X n).map eI.op (φ I)) = |
| 390 | η.app (.op (I.Y ⊓ J.Y)) |
| 391 | ((SheafCochain.singularCochainPresheaf R X n).map eJ.op (φ J)) := by |
| 392 | calc |
| 393 | _ = ((Opens.grothendieckTopology X).plusObj |
| 394 | (SheafCochain.singularCochainPresheaf R X n)).map eI.op |
| 395 | (η.app (.op I.Y) (φ I)) := by |
| 396 | simpa only [ConcreteCategory.comp_apply] using |
| 397 | ConcreteCategory.congr_hom (η.naturality eI.op) (φ I) |
| 398 | _ = ((Opens.grothendieckTopology X).plusObj |
| 399 | (SheafCochain.singularCochainPresheaf R X n)).map eI.op (s I) := by rw [hφ I] |
| 400 | _ = ((Opens.grothendieckTopology X).plusObj |
| 401 | (SheafCochain.singularCochainPresheaf R X n)).map eJ.op (s J) := hplus |
| 402 | _ = ((Opens.grothendieckTopology X).plusObj |
| 403 | (SheafCochain.singularCochainPresheaf R X n)).map eJ.op |
| 404 | (η.app (.op J.Y) (φ J)) := by rw [hφ J] |
| 405 | _ = η.app (.op (I.Y ⊓ J.Y)) |
| 406 | ((SheafCochain.singularCochainPresheaf R X n).map eJ.op (φ J)) := by |
| 407 | simpa only [ConcreteCategory.comp_apply] using |
| 408 | (ConcreteCategory.congr_hom (η.naturality eJ.op) (φ J)).symm |
| 409 | let δ : SheafCochain.OpenCochains R X (.op (I.Y ⊓ J.Y)) n := |
| 410 | (SheafCochain.singularCochainPresheaf R X n).map eI.op (φ I) - |
| 411 | (SheafCochain.singularCochainPresheaf R X n).map eJ.op (φ J) |
| 412 | have hδplus : |
| 413 | ((Opens.grothendieckTopology X).toPlus |
| 414 | (SheafCochain.singularCochainPresheaf R X n)).app (.op (I.Y ⊓ J.Y)) δ = 0 := by |
| 415 | rw [map_sub, hplus', sub_self] |
| 416 | obtain ⟨T, hT⟩ := |
| 417 | (singularCochain_toPlus_eq_zero_iff R X (I.Y ⊓ J.Y) n δ).mp hδplus |
| 418 | obtain ⟨V, f, hf, hxV⟩ := |
| 419 | ((Opens.mem_grothendieckTopology X).mp T.2) x ⟨hxI, hxJ⟩ |
| 420 | let A : T.Arrow := GrothendieckTopology.Cover.Arrow.mk V f hf |
| 421 | refine ⟨V, f ≫ eI, f ≫ eJ, hxV, ?_⟩ |
| 422 | have hz := hT A |
| 423 | rw [map_sub, sub_eq_zero] at hz |
| 424 | simpa only [δ, Functor.map_comp, op_comp, |
| 425 | ConcreteCategory.comp_apply] using hz |
| 426 | |
| 427 | section RationalCover |
| 428 | |
| 429 | variable {κ : Type} (Y : TopCat.{0}) (U : κ → Set Y) |
| 430 | |
| 431 | /-- The family of open subsets appearing as the domains of the arrows in a covering sieve of the |
| 432 | top open subset. -/ |
| 433 | def coveringSieveOpenFamily |
| 434 | (S : (Opens.grothendieckTopology Y).Cover (⊤ : Opens Y)) : S.Arrow → Set Y := |
| 435 | fun I ↦ I.Y |
| 436 | |
| 437 | /-- Restriction of rational singular cochains to chains subordinate to a family of subsets. -/ |
| 438 | def rationalCochainRestrictionToCoverSmall : |
| 439 | (Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex ((TopCat.toSSet.obj Y).chainComplex |
| 440 | (ModuleCat.of ℚ ℚ))) ⟶ |
| 441 | (Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex (ExcisionField.CoverSmallRationalSingularChainComplex Y U)) := |
| 442 | Algebra.Homology.LinearDual.HomologicalComplex.linearDualMap (ExcisionField.coverSmallRationalSingularChainInclusion Y U) |
| 443 | |
| 444 | /-- The chain map from one member of a family into the cover-small rational chains. -/ |
| 445 | def coverMemberToSmallRationalSingularChains (j : κ) : |
| 446 | (TopCat.toSSet.obj (TopCat.of (U j))).chainComplex (ModuleCat.of ℚ ℚ) ⟶ |
| 447 | ExcisionField.CoverSmallRationalSingularChainComplex Y U := |
| 448 | SSet.chainComplexMap (ExcisionCoverSmall.coverMemberToSmallSingularSet Y U j) (ModuleCat.of ℚ ℚ) |
| 449 | |
| 450 | /-- Restriction to cover-small rational chains is surjective in every cochain degree. -/ |
| 451 | lemma rationalCochainRestrictionToCoverSmall_surjective (n : ℕ) : |
| 452 | Function.Surjective ((rationalCochainRestrictionToCoverSmall Y U).f n) := by |
| 453 | apply LinearMap.dualMap_surjective_of_injective |
| 454 | rw [← ModuleCat.mono_iff_injective] |
| 455 | exact Functor.map_mono |
| 456 | (HomologicalComplex.eval (ModuleCat ℚ) (ComplexShape.down ℕ) n) |
| 457 | (ExcisionField.coverSmallRationalSingularChainInclusion Y U) |
| 458 | |
| 459 | /-- Restriction to cover-small rational chains is an epimorphism of cochain complexes. -/ |
| 460 | instance rationalCochainRestrictionToCoverSmall_epi : |
| 461 | Epi (rationalCochainRestrictionToCoverSmall Y U) := |
| 462 | HomologicalComplex.epi_of_epi_f _ fun n ↦ by |
| 463 | rw [ModuleCat.epi_iff_surjective] |
| 464 | exact rationalCochainRestrictionToCoverSmall_surjective Y U n |
| 465 | |
| 466 | /-- An open cover gives a homotopy equivalence from all rational cochains to its cover-small |
| 467 | cochains. -/ |
| 468 | def rationalCochainHomotopyEquivCoverSmall |
| 469 | (hUopen : ∀ i, IsOpen (U i)) (hUcover : ⋃ i, U i = Set.univ) : |
| 470 | HomotopyEquiv |
| 471 | (Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex ((TopCat.toSSet.obj Y).chainComplex |
| 472 | (ModuleCat.of ℚ ℚ))) |
| 473 | (Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex (ExcisionField.CoverSmallRationalSingularChainComplex Y U)) := |
| 474 | Algebra.Homology.LinearDualHomotopy.HomologicalComplex.linearDualHomotopyEquiv |
| 475 | (ExcisionField.coverSmallRationalChainHomotopyEquiv_of_openCover Y U hUopen hUcover) |
| 476 | |
| 477 | /-- The map from top-open cochains to global first-plus cochains is an epimorphism of complexes. |
| 478 | -/ |
| 479 | instance topOpenToGlobalSingularCochainPlusComplex_epi : |
| 480 | Epi (topOpenToGlobalSingularCochainPlusComplex R X) := |
| 481 | HomologicalComplex.epi_of_epi_f _ fun _ ↦ inferInstance |
| 482 | |
| 483 | /-- Restriction from cochains on the top open subset to chains subordinate to a family of |
| 484 | subsets. -/ |
| 485 | def topOpenRationalCochainRestrictionToCoverSmall : |
| 486 | (Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex (TopOpenSingularChainComplex ℚ Y)) ⟶ |
| 487 | (Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex (ExcisionField.CoverSmallRationalSingularChainComplex Y U)) := |
| 488 | (singularCochainComplexIsoTopOpen ℚ Y).inv ≫ |
| 489 | rationalCochainRestrictionToCoverSmall Y U |
| 490 | |
| 491 | instance topOpenRationalCochainRestrictionToCoverSmall_epi : |
| 492 | Epi (topOpenRationalCochainRestrictionToCoverSmall Y U) := by |
| 493 | apply HomologicalComplex.epi_of_epi_f _ fun n ↦ ?_ |
| 494 | rw [ModuleCat.epi_iff_surjective] |
| 495 | have h₁ : Function.Surjective |
| 496 | ((singularCochainComplexIsoTopOpen ℚ Y).inv.f n) := by |
| 497 | rw [← ModuleCat.epi_iff_surjective] |
| 498 | infer_instance |
| 499 | have h₂ := rationalCochainRestrictionToCoverSmall_surjective Y U n |
| 500 | intro z |
| 501 | obtain ⟨y, hy⟩ := h₂ z |
| 502 | obtain ⟨x, hx⟩ := h₁ y |
| 503 | refine ⟨x, ?_⟩ |
| 504 | change (rationalCochainRestrictionToCoverSmall Y U).f n |
| 505 | ((singularCochainComplexIsoTopOpen ℚ Y).inv.f n x) = z |
| 506 | rw [hx, hy] |
| 507 | |
| 508 | end RationalCover |
| 509 | |
| 510 | variable {R : Type u} [CommRing R] {X : TopCat.{u}} |
| 511 | |
| 512 | /-- Regard an open subset of an open subspace as an open subset of the ambient space. -/ |
| 513 | def ambientOpen (U : Opens X) (V : Opens U) : Opens X := |
| 514 | ⟨Subtype.val '' (V : Set U), |
| 515 | U.isOpen.isOpenMap_subtype_val (V : Set U) V.isOpen⟩ |
| 516 | |
| 517 | @[simp] |
| 518 | lemma mem_ambientOpen_iff (U : Opens X) (V : Opens U) (x : U) : |
| 519 | (x.1 : X) ∈ ambientOpen U V ↔ x ∈ V := by |
| 520 | refine ⟨fun ⟨y, hy, hxy⟩ ↦ ?_, fun hx ↦ ⟨x, hx, rfl⟩⟩ |
| 521 | have h : y = x := Subtype.ext hxy |
| 522 | exact show x ∈ (V : Set U) from h ▸ hy |
| 523 | |
| 524 | lemma ambientOpen_le (U : Opens X) (V : Opens U) : ambientOpen U V ≤ U := by |
| 525 | rintro x ⟨y, -, rfl⟩ |
| 526 | exact y.2 |
| 527 | |
| 528 | /-- The sieve generated by an indexed family of open subsets of a fixed open set. -/ |
| 529 | def openFamilySieve {U : Opens X} {I : Type*} (V : I → Opens X) : Sieve U where |
| 530 | arrows W f := ∃ i, W ≤ V i |
| 531 | downward_closed := by |
| 532 | rintro A B f ⟨i, hi⟩ g |
| 533 | exact ⟨i, g.le.trans hi⟩ |
| 534 | |
| 535 | /-- A pointwise covering family defines a covering sieve. -/ |
| 536 | lemma openFamilySieve_mem {U : Opens X} {I : Type*} (V : I → Opens X) |
| 537 | (hV : ∀ i, V i ≤ U) (hcover : ∀ x ∈ U, ∃ i, x ∈ V i) : |
| 538 | openFamilySieve V ∈ Opens.grothendieckTopology X U := by |
| 539 | intro x hx |
| 540 | obtain ⟨i, hxi⟩ := hcover x hx |
| 541 | exact ⟨V i, homOfLE (hV i), ⟨i, le_rfl⟩, hxi⟩ |
| 542 | |
| 543 | set_option backward.isDefEq.respectTransparency false in |
| 544 | /-- On a paracompact Hausdorff open set, every section of the second plus construction of the |
| 545 | singular-cochain presheaf lifts to the first plus construction. This is the precise hypothesis |
| 546 | under which the usually quoted flasqueness argument is valid; it is false on arbitrary spaces. -/ |
| 547 | theorem singularCochain_plusToPlus_surjective_on |
| 548 | (U : Opens X) [ParacompactSpace U] [T2Space U] (n : ℕ) : |
| 549 | Function.Surjective |
| 550 | (((Opens.grothendieckTopology X).toPlus |
| 551 | ((Opens.grothendieckTopology X).plusObj |
| 552 | (SheafCochain.singularCochainPresheaf R X n))).app (.op U)) := by |
| 553 | classical |
| 554 | let J := Opens.grothendieckTopology X |
| 555 | let P := SheafCochain.singularCochainPresheaf R X n |
| 556 | intro y |
| 557 | obtain ⟨S, s, rfl⟩ := GrothendieckTopology.Plus.exists_rep y |
| 558 | choose φ hφ using fun I : S.Arrow ↦ |
| 559 | SheafCochainDescent.singularCochain_toPlus_exists_rep R X I.Y n (s I) |
| 560 | obtain ⟨W, hWopen, hWcover, hWfinite, hWsub⟩ := |
| 561 | exists_coveringSieve_locallyFinite_closedRefinement X S |
| 562 | have hWmem (x : U) : ∃ I : S.Arrow, x ∈ W I := by |
| 563 | have hx : x ∈ ⋃ I, W I := by rw [hWcover]; trivial |
| 564 | simpa only [Set.mem_iUnion] using hx |
| 565 | choose b hb using hWmem |
| 566 | have hbY (x : U) : (x.1 : X) ∈ (b x).Y := |
| 567 | hWsub (b x) (subset_closure (hb x)) |
| 568 | have hlocalEq (x : U) (I : S.Arrow) (hxI : x ∈ closure (W I)) : |
| 569 | ∃ (V : Opens X) (a : V ⟶ (b x).Y) (c : V ⟶ I.Y), |
| 570 | (x.1 : X) ∈ V ∧ |
| 571 | P.map a.op (φ (b x)) = P.map c.op (φ I) := |
| 572 | exists_open_eq_of_plus_matchingFamily R X S n s φ hφ |
| 573 | (b x) I x.1 (hbY x) (hWsub I hxI) |
| 574 | let E (x : U) (I : S.Arrow) : Opens X := |
| 575 | if h : x ∈ closure (W I) then (hlocalEq x I h).choose else ⊤ |
| 576 | have hE (x : U) (I : S.Arrow) (hxI : x ∈ closure (W I)) : |
| 577 | ∃ (a : E x I ⟶ (b x).Y) (c : E x I ⟶ I.Y), |
| 578 | (x.1 : X) ∈ E x I ∧ |
| 579 | P.map a.op (φ (b x)) = P.map c.op (φ I) := by |
| 580 | rw [show E x I = (hlocalEq x I hxI).choose by simp [E, hxI]] |
| 581 | exact (hlocalEq x I hxI).choose_spec |
| 582 | let Nset (x : U) : Set U := |
| 583 | W (b x) ∩ |
| 584 | (⋂ I ∈ {I | x ∈ closure (W I)}, |
| 585 | Subtype.val ⁻¹' (E x I : Set X)) ∩ |
| 586 | (⋂ (I : S.Arrow) (_ : x ∉ closure (W I)), (closure (W I))ᶜ) |
| 587 | have hNset_mem (x : U) : Nset x ∈ nhds x := by |
| 588 | have hWnhds : W (b x) ∈ nhds x := (hWopen (b x)).mem_nhds (hb x) |
| 589 | have hfinite : {I | x ∈ closure (W I)}.Finite := |
| 590 | hWfinite.point_finite x |
| 591 | have hEqnhds : |
| 592 | (⋂ I ∈ {I | x ∈ closure (W I)}, |
| 593 | Subtype.val ⁻¹' (E x I : Set X)) ∈ nhds x := by |
| 594 | refine (Filter.biInter_mem hfinite).2 (fun I hIx ↦ ?_) |
| 595 | exact ((E x I).isOpen.preimage continuous_subtype_val).mem_nhds |
| 596 | ((hE x I hIx).choose_spec.choose_spec.1) |
| 597 | have hAvoid : |
| 598 | (⋂ (I : S.Arrow) (_ : x ∉ closure (W I)), (closure (W I))ᶜ) ∈ nhds x := |
| 599 | hWfinite.iInter_compl_mem_nhds (fun I ↦ isClosed_closure) x |
| 600 | exact Filter.inter_mem (Filter.inter_mem hWnhds hEqnhds) hAvoid |
| 601 | let Nsub (x : U) : Opens U := |
| 602 | ⟨interior (Nset x), isOpen_interior⟩ |
| 603 | have hxNsub (x : U) : x ∈ Nsub x := |
| 604 | mem_interior_iff_mem_nhds.mpr (hNset_mem x) |
| 605 | let N (x : U) : Opens X := ambientOpen U (Nsub x) |
| 606 | have hxN (x : U) : (x.1 : X) ∈ N x := |
| 607 | (mem_ambientOpen_iff U (Nsub x) x).2 (hxNsub x) |
| 608 | have hN_le_U (x : U) : N x ≤ U := ambientOpen_le U (Nsub x) |
| 609 | have hNsub_Nset (x : U) : (Nsub x : Set U) ⊆ Nset x := |
| 610 | interior_subset |
| 611 | have hN_le_component (x : U) : N x ≤ (b x).Y := by |
| 612 | intro z hz |
| 613 | obtain ⟨zU, hzN, rfl⟩ := hz |
| 614 | have hzW : zU ∈ W (b x) := (hNsub_Nset x hzN).1.1 |
| 615 | exact hWsub (b x) (subset_closure hzW) |
| 616 | have hN_le_E (x : U) (I : S.Arrow) (hxI : x ∈ closure (W I)) : |
| 617 | N x ≤ E x I := by |
| 618 | intro z hz |
| 619 | obtain ⟨zU, hzN, rfl⟩ := hz |
| 620 | have hzEq := (hNsub_Nset x hzN).1.2 |
| 621 | exact Set.mem_iInter₂.mp hzEq I hxI |
| 622 | have hN_meets_W (x : U) (I : S.Arrow) |
| 623 | (hmeet : ((Nsub x : Set U) ∩ W I).Nonempty) : |
| 624 | x ∈ closure (W I) := by |
| 625 | by_contra hxI |
| 626 | obtain ⟨z, hzN, hzW⟩ := hmeet |
| 627 | have hzAvoid := (hNsub_Nset x hzN).2 |
| 628 | have hznot : z ∉ closure (W I) := Set.mem_iInter₂.mp hzAvoid I hxI |
| 629 | exact hznot (subset_closure hzW) |
| 630 | let iNU (x : U) : N x ⟶ U := homOfLE (hN_le_U x) |
| 631 | let iNB (x : U) : N x ⟶ (b x).Y := homOfLE (hN_le_component x) |
| 632 | let φN (x : U) : SheafCochain.OpenCochains R X (.op (N x)) n := |
| 633 | P.map (iNB x).op (φ (b x)) |
| 634 | have hφN (x z : U) : |
| 635 | P.map (homOfLE (inf_le_left : N x ⊓ N z ≤ N x)).op (φN x) = |
| 636 | P.map (homOfLE (inf_le_right : N x ⊓ N z ≤ N z)).op (φN z) := by |
| 637 | apply (SheafCochainDescent.singularCochainEquivSimplexFunction R X (.op (N x ⊓ N z)) n).injective |
| 638 | ext r |
| 639 | let q : ↑(N x ⊓ N z) := |
| 640 | (TopCat.of ↑(N x ⊓ N z)).toSSetObjEquiv |
| 641 | (Opposite.op (SimplexCategory.mk n)) r (Classical.arbitrary _) |
| 642 | have hmeet : ((Nsub x : Set U) ∩ W (b z)).Nonempty := by |
| 643 | let qU : U := ⟨q.1, hN_le_U x q.2.1⟩ |
| 644 | refine ⟨qU, ?_, ?_⟩ |
| 645 | · exact (mem_ambientOpen_iff U (Nsub x) qU).1 q.2.1 |
| 646 | · exact (hNsub_Nset z |
| 647 | ((mem_ambientOpen_iff U (Nsub z) qU).1 q.2.2)).1.1 |
| 648 | have hxz : x ∈ closure (W (b z)) := hN_meets_W x (b z) hmeet |
| 649 | obtain ⟨a, c, -, heq⟩ := hE x (b z) hxz |
| 650 | let l : N x ⊓ N z ⟶ N x := homOfLE inf_le_left |
| 651 | let rgt : N x ⊓ N z ⟶ N z := homOfLE inf_le_right |
| 652 | let k : N x ⊓ N z ⟶ E x (b z) := |
| 653 | homOfLE (inf_le_left.trans (hN_le_E x (b z) hxz)) |
| 654 | have hleft : l ≫ iNB x = k ≫ a := Subsingleton.elim _ _ |
| 655 | have hright : rgt ≫ iNB z = k ≫ c := Subsingleton.elim _ _ |
| 656 | have hleftOp : (iNB x).op ≫ l.op = a.op ≫ k.op := by |
| 657 | simpa only [op_comp] using congrArg Quiver.Hom.op hleft |
| 658 | have hrightOp : (iNB z).op ≫ rgt.op = c.op ≫ k.op := by |
| 659 | simpa only [op_comp] using congrArg Quiver.Hom.op hright |
| 660 | have hres : P.map l.op (φN x) = P.map rgt.op (φN z) := by |
| 661 | dsimp only [φN] |
| 662 | calc |
| 663 | P.map l.op (P.map (iNB x).op (φ (b x))) = |
| 664 | P.map ((iNB x).op ≫ l.op) (φ (b x)) := by |
| 665 | rw [P.map_comp, ConcreteCategory.comp_apply] |
| 666 | _ = P.map (a.op ≫ k.op) (φ (b x)) := by rw [hleftOp] |
| 667 | _ = P.map k.op (P.map a.op (φ (b x))) := by |
| 668 | rw [P.map_comp, ConcreteCategory.comp_apply] |
| 669 | _ = P.map k.op (P.map c.op (φ (b z))) := congrArg _ heq |
| 670 | _ = P.map (c.op ≫ k.op) (φ (b z)) := by |
| 671 | rw [P.map_comp, ConcreteCategory.comp_apply] |
| 672 | _ = P.map ((iNB z).op ≫ rgt.op) (φ (b z)) := by rw [hrightOp] |
| 673 | _ = P.map rgt.op (P.map (iNB z).op (φ (b z))) := by |
| 674 | rw [P.map_comp, ConcreteCategory.comp_apply] |
| 675 | exact congrArg |
| 676 | (fun θ ↦ SheafCochainDescent.singularCochainToSimplexFunction R X (.op (N x ⊓ N z)) n θ r) |
| 677 | hres |
| 678 | obtain ⟨ψ, hψ⟩ := SheafCochainDescent.exists_openCochain_of_compatibleOnSimplexBasis R X |
| 679 | (U := .op U) (fun x : U ↦ .op (N x)) (fun x ↦ (iNU x).op) n φN (by |
| 680 | intro x z sx sz hs |
| 681 | obtain ⟨r, hrs, hrz⟩ := SheafCochainDescent.exists_openSimplex_inf_of_eq X (iNU x) (iNU z) n sx sz hs |
| 682 | have heval := congrArg |
| 683 | (fun θ ↦ SheafCochainDescent.singularCochainToSimplexFunction R X (.op (N x ⊓ N z)) n θ r) |
| 684 | (hφN x z) |
| 685 | have hl := congrFun (SheafCochainDescent.singularCochainToSimplexFunction_naturality R X |
| 686 | (homOfLE inf_le_left).op n (φN x)) r |
| 687 | have hr := congrFun (SheafCochainDescent.singularCochainToSimplexFunction_naturality R X |
| 688 | (homOfLE inf_le_right).op n (φN z)) r |
| 689 | calc |
| 690 | SheafCochainDescent.singularCochainToSimplexFunction R X (.op (N x)) n (φN x) sx = |
| 691 | SheafCochainDescent.singularCochainToSimplexFunction R X (.op (N x)) n (φN x) |
| 692 | (SheafCochainDescent.openSimplexMap X (homOfLE inf_le_left).op n r) := |
| 693 | congrArg _ hrs.symm |
| 694 | _ = SheafCochainDescent.singularCochainToSimplexFunction R X (.op (N x ⊓ N z)) n |
| 695 | (P.map (homOfLE inf_le_left).op (φN x)) r := hl.symm |
| 696 | _ = SheafCochainDescent.singularCochainToSimplexFunction R X (.op (N x ⊓ N z)) n |
| 697 | (P.map (homOfLE inf_le_right).op (φN z)) r := heval |
| 698 | _ = SheafCochainDescent.singularCochainToSimplexFunction R X (.op (N z)) n (φN z) |
| 699 | (SheafCochainDescent.openSimplexMap X (homOfLE inf_le_right).op n r) := hr |
| 700 | _ = SheafCochainDescent.singularCochainToSimplexFunction R X (.op (N z)) n (φN z) sz := |
| 701 | congrArg _ hrz) |
| 702 | let t : ToType ((J.plusObj P).obj (.op U)) := (J.toPlus P).app (.op U) ψ |
| 703 | have htN (x : U) : |
| 704 | (J.plusObj P).map (iNU x).op t = |
| 705 | (J.plusObj P).map (iNB x).op (s (b x)) := by |
| 706 | let η := J.toPlus P |
| 707 | calc |
| 708 | (J.plusObj P).map (iNU x).op t = |
| 709 | η.app (.op (N x)) (P.map (iNU x).op ψ) := |
| 710 | (ConcreteCategory.congr_hom (η.naturality (iNU x).op) ψ).symm |
| 711 | _ = η.app (.op (N x)) (φN x) := congrArg _ (hψ x) |
| 712 | _ = η.app (.op (N x)) (P.map (iNB x).op (φ (b x))) := rfl |
| 713 | _ = (J.plusObj P).map (iNB x).op |
| 714 | (η.app (.op (b x).Y) (φ (b x))) := |
| 715 | ConcreteCategory.congr_hom (η.naturality (iNB x).op) (φ (b x)) |
| 716 | _ = (J.plusObj P).map (iNB x).op (s (b x)) := |
| 717 | congrArg _ (hφ (b x)) |
| 718 | refine ⟨t, ?_⟩ |
| 719 | rw [GrothendieckTopology.Plus.toPlus_mk S t] |
| 720 | congr 1 |
| 721 | apply Meq.ext |
| 722 | intro I |
| 723 | apply GrothendieckTopology.Plus.sep P |
| 724 | ⟨openFamilySieve |
| 725 | (fun x : I.Y ↦ N ⟨x.1, I.f.le x.2⟩ ⊓ I.Y), |
| 726 | openFamilySieve_mem _ (fun _ ↦ inf_le_right) (by |
| 727 | intro z hz |
| 728 | let x : I.Y := ⟨z, hz⟩ |
| 729 | exact ⟨x, ⟨hxN ⟨x.1, I.f.le x.2⟩, x.2⟩⟩)⟩ |
| 730 | intro A |
| 731 | obtain ⟨x, hAx⟩ := A.hf |
| 732 | let xU : U := ⟨x.1, I.f.le x.2⟩ |
| 733 | let aN : A.Y ⟶ N xU := homOfLE (hAx.trans inf_le_left) |
| 734 | let aI : A.Y ⟶ I.Y := A.f |
| 735 | let aU : A.Y ⟶ U := A.f ≫ I.f |
| 736 | let aB : A.Y ⟶ (b xU).Y := aN ≫ iNB xU |
| 737 | have hleft : aI ≫ I.f = aN ≫ iNU xU := Subsingleton.elim _ _ |
| 738 | have hrestrict := congrArg |
| 739 | (fun q ↦ (J.plusObj P).map aN.op q) (htN xU) |
| 740 | have hrestrict' : |
| 741 | (J.plusObj P).map aU.op t = |
| 742 | (J.plusObj P).map aB.op (s (b xU)) := by |
| 743 | have haU : aU = aN ≫ iNU xU := hleft |
| 744 | have haB : aB = aN ≫ iNB xU := rfl |
| 745 | rw [haU, haB, op_comp, op_comp, (J.plusObj P).map_comp, |
| 746 | (J.plusObj P).map_comp, ConcreteCategory.comp_apply, |
| 747 | ConcreteCategory.comp_apply] |
| 748 | exact hrestrict |
| 749 | let rel : S.Relation := GrothendieckTopology.Cover.Relation.mk' |
| 750 | { Z := A.Y |
| 751 | g₁ := aB |
| 752 | g₂ := aI } |
| 753 | have hsrel := s.condition rel |
| 754 | change (J.plusObj P).map aB.op (s (b xU)) = |
| 755 | (J.plusObj P).map aI.op (s I) at hsrel |
| 756 | change (J.plusObj P).map A.f.op |
| 757 | ((J.plusObj P).map I.f.op t) = |
| 758 | (J.plusObj P).map A.f.op (s I) |
| 759 | rw [← ConcreteCategory.comp_apply, ← (J.plusObj P).map_comp, |
| 760 | ← op_comp] |
| 761 | exact hrestrict'.trans hsrel |
| 762 | |
| 763 | /-- Flasqueness is invariant under isomorphism of additive presheaves. -/ |
| 764 | lemma presheaf_isFlasque_of_iso |
| 765 | {P Q : TopCat.Presheaf AddCommGrpCat X} (e : P ≅ Q) [P.IsFlasque] : |
| 766 | Q.IsFlasque where |
| 767 | epi {U V} i := by |
| 768 | have hcomp : Epi (e.hom.app U ≫ Q.map i) := by |
| 769 | rw [← e.hom.naturality i] |
| 770 | infer_instance |
| 771 | exact CategoryTheory.epi_of_epi (e.hom.app U) (Q.map i) |
| 772 | |
| 773 | /-- On a hereditarily paracompact Hausdorff space, the degreewise double-plus singular-cochain |
| 774 | presheaves are flasque. -/ |
| 775 | instance singularCochainPlusPlus_isFlasque |
| 776 | [T2Space X] [∀ V : Opens X, ParacompactSpace V] (n : ℕ) : |
| 777 | TopCat.Presheaf.IsFlasque |
| 778 | ((Opens.grothendieckTopology X).plusObj |
| 779 | ((Opens.grothendieckTopology X).plusObj |
| 780 | (SheafCochain.singularCochainPresheaf R X n))) := by |
| 781 | have hEpi : ∀ V : (Opens X)ᵒᵖ, Epi |
| 782 | (((Opens.grothendieckTopology X).toPlus |
| 783 | ((Opens.grothendieckTopology X).plusObj |
| 784 | (SheafCochain.singularCochainPresheaf R X n))).app V) := by |
| 785 | intro V |
| 786 | rw [AddCommGrpCat.epi_iff_surjective] |
| 787 | exact singularCochain_plusToPlus_surjective_on V.unop n |
| 788 | exact @presheaf_isFlasque_of_epi X _ _ |
| 789 | ((Opens.grothendieckTopology X).toPlus |
| 790 | ((Opens.grothendieckTopology X).plusObj |
| 791 | (SheafCochain.singularCochainPresheaf R X n))) inferInstance hEpi |
| 792 | |
| 793 | /-- On a hereditarily paracompact Hausdorff space, every term of the sheafified rational singular |
| 794 | cochain complex is flasque. -/ |
| 795 | instance singularCochainSheaf_isFlasque_of_opens_paracompact |
| 796 | [T2Space X] [∀ V : Opens X, ParacompactSpace V] (n : ℕ) : |
| 797 | TopCat.Sheaf.IsFlasque (SheafCochain.singularCochainSheaf R X n) := by |
| 798 | let J := Opens.grothendieckTopology X |
| 799 | let P := SheafCochain.singularCochainPresheaf R X n |
| 800 | let e : J.sheafify P ≅ CategoryTheory.sheafify J P := |
| 801 | plusPlusIsoSheafify J AddCommGrpCat P |
| 802 | change TopCat.Presheaf.IsFlasque (CategoryTheory.sheafify J P) |
| 803 | let : TopCat.Presheaf.IsFlasque (J.sheafify P) := |
| 804 | singularCochainPlusPlus_isFlasque (R := R) (X := X) n |
| 805 | exact presheaf_isFlasque_of_iso e |
| 806 | |
| 807 | /-- On a paracompact Hausdorff space, the map from global first-plus cochains to global |
| 808 | double-plus cochains is an isomorphism of complexes. -/ |
| 809 | noncomputable instance globalSingularCochainPlusToPlusPlusComplex_isIso |
| 810 | [ParacompactSpace X] [T2Space X] : |
| 811 | IsIso (globalSingularCochainPlusToPlusPlusComplex R X) := by |
| 812 | let : ParacompactSpace (Set.univ : Set X) := |
| 813 | (Homeomorph.Set.univ X).paracompactSpace_iff.mpr inferInstance |
| 814 | let : ∀ n : ℕ, |
| 815 | IsIso ((globalSingularCochainPlusToPlusPlusComplex R X).f n) := by |
| 816 | intro n |
| 817 | change IsIso |
| 818 | (((Opens.grothendieckTopology X).toPlus |
| 819 | ((Opens.grothendieckTopology X).plusObj |
| 820 | (SheafCochain.singularCochainPresheaf R X n))).app (.op ⊤)) |
| 821 | rw [ConcreteCategory.isIso_iff_bijective] |
| 822 | constructor |
| 823 | · apply GrothendieckTopology.Plus.inj_of_sep |
| 824 | ((Opens.grothendieckTopology X).plusObj |
| 825 | (SheafCochain.singularCochainPresheaf R X n)) |
| 826 | intro V S x y h |
| 827 | exact GrothendieckTopology.Plus.sep |
| 828 | (SheafCochain.singularCochainPresheaf R X n) S x y h |
| 829 | · exact singularCochain_plusToPlus_surjective_on (⊤ : Opens X) n |
| 830 | exact HomologicalComplex.Hom.isIso_of_components |
| 831 | (globalSingularCochainPlusToPlusPlusComplex R X) |
| 832 | |
| 833 | end |
| 834 | |
| 835 | open _root_.CategoryTheory Limits _root_.TopologicalSpace |
| 836 | open scoped Simplicial |
| 837 | |
| 838 | universe u |
| 839 | |
| 840 | variable (R : Type u) [CommRing R] (X : TopCat.{u}) |
| 841 | |
| 842 | /-- Inclusion of an open subset into the top open, followed by inclusion of the top open into the |
| 843 | space, is the usual subspace inclusion. -/ |
| 844 | lemma openToTop_comp_inclusionTopIso {V : Opens X} (i : V ⟶ ⊤) : |
| 845 | (Opens.toTopCat X).map i ≫ (Opens.inclusionTopIso X).hom = |
| 846 | ExcisionCoverSmall.topologicalSubsetInclusion X V := |
| 847 | rfl |
| 848 | |
| 849 | set_option backward.isDefEq.respectTransparency false in |
| 850 | /-- The corresponding identity on singular chain complexes. -/ |
| 851 | lemma openSingularChainToTop_comp_topOpenIso {V : Opens X} (i : V ⟶ ⊤) : |
| 852 | (SheafCochain.openSingularChainComplexFunctor R X).map i ≫ |
| 853 | (topOpenSingularChainComplexIso R X).hom = |
| 854 | SSet.chainComplexMap |
| 855 | (TopCat.toSSet.map (ExcisionCoverSmall.topologicalSubsetInclusion X V)) |
| 856 | (ModuleCat.of R R) := by |
| 857 | change ((singularChainComplexFunctor (ModuleCat.{u} R)).obj |
| 858 | (ModuleCat.of R R)).map ((Opens.toTopCat X).map i) ≫ |
| 859 | ((singularChainComplexFunctor (ModuleCat.{u} R)).obj |
| 860 | (ModuleCat.of R R)).map (Opens.inclusionTopIso X).hom = _ |
| 861 | rw [← Functor.map_comp, openToTop_comp_inclusionTopIso] |
| 862 | rfl |
| 863 | |
| 864 | section RationalCover |
| 865 | |
| 866 | variable {κ : Type} (Y : TopCat.{0}) (U : κ → Set Y) |
| 867 | |
| 868 | lemma coveringSieveOpenFamily_isOpen |
| 869 | (S : (Opens.grothendieckTopology Y).Cover (⊤ : Opens Y)) (I : S.Arrow) : |
| 870 | IsOpen (coveringSieveOpenFamily Y S I) := |
| 871 | I.Y.2 |
| 872 | |
| 873 | /-- The domains of the arrows in a covering sieve of the top open subset cover the space. -/ |
| 874 | lemma coveringSieveOpenFamily_iUnion |
| 875 | (S : (Opens.grothendieckTopology Y).Cover (⊤ : Opens Y)) : |
| 876 | ⋃ I, coveringSieveOpenFamily Y S I = Set.univ := by |
| 877 | apply Set.eq_univ_of_forall |
| 878 | intro y |
| 879 | obtain ⟨V, f, hf, hy⟩ := |
| 880 | ((Opens.mem_grothendieckTopology Y).mp S.2) y trivial |
| 881 | exact Set.mem_iUnion.mpr ⟨GrothendieckTopology.Cover.Arrow.mk V f hf, hy⟩ |
| 882 | |
| 883 | @[reassoc] |
| 884 | lemma coverMemberToSmallRationalSingularChains_comp_inclusion (j : κ) : |
| 885 | coverMemberToSmallRationalSingularChains Y U j ≫ |
| 886 | ExcisionField.coverSmallRationalSingularChainInclusion Y U = |
| 887 | SSet.chainComplexMap |
| 888 | (TopCat.toSSet.map (ExcisionCoverSmall.topologicalSubsetInclusion Y (U j))) |
| 889 | (ModuleCat.of ℚ ℚ) := by |
| 890 | change ((SSet.chainComplexFunctor (ModuleCat ℚ)).obj |
| 891 | (ModuleCat.of ℚ ℚ)).map (ExcisionCoverSmall.coverMemberToSmallSingularSet Y U j) ≫ |
| 892 | ((SSet.chainComplexFunctor (ModuleCat ℚ)).obj |
| 893 | (ModuleCat.of ℚ ℚ)).map (ExcisionCoverSmall.coverSmallSingularSubcomplex Y U).ι = _ |
| 894 | rw [← Functor.map_comp, ExcisionCoverSmall.coverMemberToSmallSingularSet_comp_inclusion] |
| 895 | |
| 896 | set_option backward.isDefEq.respectTransparency false in |
| 897 | /-- Vanishing on every member of a covering sieve implies vanishing on all chains subordinate |
| 898 | to the associated family of open subsets. -/ |
| 899 | lemma rationalCochainRestrictionToCoveringSieve_eq_zero |
| 900 | (S : (Opens.grothendieckTopology Y).Cover (⊤ : Opens Y)) (n : ℕ) |
| 901 | (φ : (Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex ((TopCat.toSSet.obj Y).chainComplex |
| 902 | (ModuleCat.of ℚ ℚ))).X n) |
| 903 | (hφ : ∀ I : S.Arrow, |
| 904 | (SheafCochain.singularCochainPresheaf ℚ Y n).map I.f.op |
| 905 | ((singularCochainComplexIsoTopOpen ℚ Y).hom.f n φ) = 0) : |
| 906 | (rationalCochainRestrictionToCoverSmall Y |
| 907 | (coveringSieveOpenFamily Y S)).f n φ = 0 := by |
| 908 | change Module.Dual ℚ |
| 909 | (((TopCat.toSSet.obj Y).chainComplex (ModuleCat.of ℚ ℚ)).X n) at φ |
| 910 | apply_fun ModuleCat.ofHom |
| 911 | apply SSet.chainComplex_hom_ext |
| 912 | intro x |
| 913 | obtain ⟨I, y, hy⟩ := |
| 914 | (ExcisionCoverSmall.mem_coverSmallSingularSubcomplex_iff_exists_preimage Y |
| 915 | (coveringSieveOpenFamily Y S) x.1).mp x.2 |
| 916 | apply ModuleCat.hom_ext |
| 917 | apply LinearMap.ext |
| 918 | intro a |
| 919 | have hI := congrArg |
| 920 | (fun ψ : SheafCochain.OpenCochains ℚ Y (.op I.Y) n ↦ ψ |
| 921 | (((TopCat.toSSet.obj (TopCat.of (coveringSieveOpenFamily Y S I))).ιChainComplex |
| 922 | (R := ModuleCat.of ℚ ℚ) y).hom a)) |
| 923 | (hφ I) |
| 924 | change φ (ModuleCat.Hom.hom |
| 925 | (((SheafCochain.openSingularChainComplexFunctor ℚ Y).map I.f).f n ≫ |
| 926 | (topOpenSingularChainComplexIso ℚ Y).hom.f n) |
| 927 | (((TopCat.toSSet.obj (TopCat.of (coveringSieveOpenFamily Y S I))).ιChainComplex |
| 928 | (R := ModuleCat.of ℚ ℚ) y).hom a)) = 0 at hI |
| 929 | have hchain := HomologicalComplex.congr_hom |
| 930 | (openSingularChainToTop_comp_topOpenIso ℚ Y I.f) n |
| 931 | have hchain' : |
| 932 | ((SheafCochain.openSingularChainComplexFunctor ℚ Y).map I.f).f n ≫ |
| 933 | (topOpenSingularChainComplexIso ℚ Y).hom.f n = |
| 934 | (SSet.chainComplexMap |
| 935 | (TopCat.toSSet.map (ExcisionCoverSmall.topologicalSubsetInclusion Y I.Y)) |
| 936 | (ModuleCat.of ℚ ℚ)).f n := by |
| 937 | simpa only [HomologicalComplex.comp_f] using hchain |
| 938 | rw [hchain'] at hI |
| 939 | have hiota := ConcreteCategory.congr_hom |
| 940 | (SSet.ι_chainComplexMap_f |
| 941 | (TopCat.toSSet.obj (TopCat.of (coveringSieveOpenFamily Y S I))) |
| 942 | (TopCat.toSSet.obj Y) |
| 943 | (TopCat.toSSet.map (ExcisionCoverSmall.topologicalSubsetInclusion Y |
| 944 | (coveringSieveOpenFamily Y S I))) |
| 945 | (ModuleCat.of ℚ ℚ) y) a |
| 946 | have hI' : φ |
| 947 | (((TopCat.toSSet.obj Y).ιChainComplex |
| 948 | (R := ModuleCat.of ℚ ℚ) |
| 949 | ((TopCat.toSSet.map (ExcisionCoverSmall.topologicalSubsetInclusion Y |
| 950 | (coveringSieveOpenFamily Y S I))).app _ y)).hom a) = 0 := by |
| 951 | calc |
| 952 | _ = φ ((SSet.chainComplexMap |
| 953 | (TopCat.toSSet.map (ExcisionCoverSmall.topologicalSubsetInclusion Y |
| 954 | (coveringSieveOpenFamily Y S I))) |
| 955 | (ModuleCat.of ℚ ℚ)).f n |
| 956 | (((TopCat.toSSet.obj |
| 957 | (TopCat.of (coveringSieveOpenFamily Y S I))).ιChainComplex |
| 958 | (R := ModuleCat.of ℚ ℚ) y).hom a)) := congrArg φ hiota.symm |
| 959 | _ = 0 := hI |
| 960 | change φ (ModuleCat.Hom.hom |
| 961 | (((ExcisionCoverSmall.coverSmallSingularSubcomplex Y |
| 962 | (coveringSieveOpenFamily Y S) : SSet).ιChainComplex |
| 963 | (R := ModuleCat.of ℚ ℚ) x) ≫ |
| 964 | (ExcisionField.coverSmallRationalSingularChainInclusion Y |
| 965 | (coveringSieveOpenFamily Y S)).f n) a) = 0 |
| 966 | dsimp only [ExcisionField.coverSmallRationalSingularChainInclusion] at ⊢ |
| 967 | simpa [hy] using hI' |
| 968 | · intro f g h |
| 969 | exact congrArg ModuleCat.Hom.hom h |
| 970 | |
| 971 | set_option backward.isDefEq.respectTransparency false in |
| 972 | /-- Conversely, vanishing on the cover-small chains associated to a covering sieve implies |
| 973 | vanishing after restriction along every arrow of that sieve. -/ |
| 974 | lemma rationalCochainRestrictionToCoveringSieve_local_zero |
| 975 | (S : (Opens.grothendieckTopology Y).Cover (⊤ : Opens Y)) (n : ℕ) |
| 976 | (φ : (Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex ((TopCat.toSSet.obj Y).chainComplex |
| 977 | (ModuleCat.of ℚ ℚ))).X n) |
| 978 | (hφ : (rationalCochainRestrictionToCoverSmall Y |
| 979 | (coveringSieveOpenFamily Y S)).f n φ = 0) : |
| 980 | ∀ I : S.Arrow, |
| 981 | (SheafCochain.singularCochainPresheaf ℚ Y n).map I.f.op |
| 982 | ((singularCochainComplexIsoTopOpen ℚ Y).hom.f n φ) = 0 := by |
| 983 | intro I |
| 984 | change Module.Dual ℚ |
| 985 | (((TopCat.toSSet.obj Y).chainComplex (ModuleCat.of ℚ ℚ)).X n) at φ |
| 986 | apply LinearMap.ext |
| 987 | intro c |
| 988 | have hc := LinearMap.congr_fun hφ |
| 989 | (((coverMemberToSmallRationalSingularChains Y |
| 990 | (coveringSieveOpenFamily Y S) I).f n).hom c) |
| 991 | have htop := HomologicalComplex.congr_hom |
| 992 | (openSingularChainToTop_comp_topOpenIso ℚ Y I.f) n |
| 993 | have hmember := HomologicalComplex.congr_hom |
| 994 | (coverMemberToSmallRationalSingularChains_comp_inclusion Y |
| 995 | (coveringSieveOpenFamily Y S) I) n |
| 996 | calc |
| 997 | φ ((topOpenSingularChainComplexIso ℚ Y).hom.f n |
| 998 | (((SheafCochain.openSingularChainComplexFunctor ℚ Y).map I.f).f n c)) = |
| 999 | φ ((SSet.chainComplexMap |
| 1000 | (TopCat.toSSet.map (ExcisionCoverSmall.topologicalSubsetInclusion Y I.Y)) |
| 1001 | (ModuleCat.of ℚ ℚ)).f n c) := |
| 1002 | congrArg φ (ConcreteCategory.congr_hom htop c) |
| 1003 | _ = φ ((ExcisionField.coverSmallRationalSingularChainInclusion Y |
| 1004 | (coveringSieveOpenFamily Y S)).f n |
| 1005 | ((coverMemberToSmallRationalSingularChains Y |
| 1006 | (coveringSieveOpenFamily Y S) I).f n c)) := |
| 1007 | congrArg φ (ConcreteCategory.congr_hom hmember c).symm |
| 1008 | _ = 0 := hc |
| 1009 | |
| 1010 | lemma rationalCochainHomotopyEquivCoverSmall_hom |
| 1011 | (hUopen : ∀ i, IsOpen (U i)) (hUcover : ⋃ i, U i = Set.univ) : |
| 1012 | (rationalCochainHomotopyEquivCoverSmall Y U hUopen hUcover).hom = |
| 1013 | rationalCochainRestrictionToCoverSmall Y U := by |
| 1014 | dsimp [rationalCochainHomotopyEquivCoverSmall, |
| 1015 | rationalCochainRestrictionToCoverSmall] |
| 1016 | change Algebra.Homology.LinearDual.HomologicalComplex.linearDualMap |
| 1017 | (ExcisionField.coverSmallRationalChainHomotopyEquiv_of_openCover |
| 1018 | Y U hUopen hUcover).hom = _ |
| 1019 | rw [ExcisionField.coverSmallRationalChainHomotopyEquiv_of_openCover_hom] |
| 1020 | |
| 1021 | /-- Restriction from all rational cochains to cover-small cochains is a quasi-isomorphism for an |
| 1022 | open cover. -/ |
| 1023 | theorem rationalCochainRestrictionToCoverSmall_quasiIso |
| 1024 | (hUopen : ∀ i, IsOpen (U i)) (hUcover : ⋃ i, U i = Set.univ) : |
| 1025 | QuasiIso (rationalCochainRestrictionToCoverSmall Y U) := by |
| 1026 | rw [← rationalCochainHomotopyEquivCoverSmall_hom Y U hUopen hUcover] |
| 1027 | infer_instance |
| 1028 | |
| 1029 | /-- The complex of rational cochains vanishing on every chain subordinate to an open cover is |
| 1030 | acyclic. -/ |
| 1031 | theorem rationalCoverSmallCochainKernel_acyclic |
| 1032 | (hUopen : ∀ i, IsOpen (U i)) (hUcover : ⋃ i, U i = Set.univ) : |
| 1033 | (kernel (rationalCochainRestrictionToCoverSmall Y U)).Acyclic := by |
| 1034 | let := rationalCochainRestrictionToCoverSmall_quasiIso Y U hUopen hUcover |
| 1035 | exact Algebra.Homology.KernelAcyclic.HomologicalComplex.kernel_acyclic_of_epi_of_quasiIso |
| 1036 | (rationalCochainRestrictionToCoverSmall Y U) |
| 1037 | |
| 1038 | set_option backward.isDefEq.respectTransparency false in |
| 1039 | /-- A closed rational cochain which vanishes on all cover-small chains has a primitive which |
| 1040 | also vanishes on all cover-small chains. -/ |
| 1041 | theorem exists_coverSmallKernel_primitive |
| 1042 | (hUopen : ∀ i, IsOpen (U i)) (hUcover : ⋃ i, U i = Set.univ) (n : ℕ) |
| 1043 | (φ : (Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex ((TopCat.toSSet.obj Y).chainComplex |
| 1044 | (ModuleCat.of ℚ ℚ))).X n) |
| 1045 | (hφsmall : (rationalCochainRestrictionToCoverSmall Y U).f n φ = 0) |
| 1046 | (hφclosed : ((Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex ((TopCat.toSSet.obj Y).chainComplex |
| 1047 | (ModuleCat.of ℚ ℚ))).d n (n + 1)) φ = 0) : |
| 1048 | ∃ ψ : (Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex ((TopCat.toSSet.obj Y).chainComplex |
| 1049 | (ModuleCat.of ℚ ℚ))).X |
| 1050 | ((ComplexShape.up ℕ).prev n), |
| 1051 | ((Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex ((TopCat.toSSet.obj Y).chainComplex |
| 1052 | (ModuleCat.of ℚ ℚ))).sc n).f ψ = φ ∧ |
| 1053 | (rationalCochainRestrictionToCoverSmall Y U).f |
| 1054 | ((ComplexShape.up ℕ).prev n) ψ = 0 := by |
| 1055 | let F := (Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex ((TopCat.toSSet.obj Y).chainComplex |
| 1056 | (ModuleCat.of ℚ ℚ))) |
| 1057 | let q := rationalCochainRestrictionToCoverSmall Y U |
| 1058 | let K := kernel q |
| 1059 | let E : (kernel q).X n ≅ ModuleCat.of ℚ (q.f n).hom.ker := |
| 1060 | asIso (kernelComparison q (HomologicalComplex.eval (ModuleCat ℚ) |
| 1061 | (ComplexShape.up ℕ) n)) ≪≫ ModuleCat.kernelIsoKer (q.f n) |
| 1062 | let z : (kernel q).X n := E.inv ⟨φ, hφsmall⟩ |
| 1063 | have hzmap : (kernel.ι q).f n z = φ := by |
| 1064 | let ev := HomologicalComplex.eval (ModuleCat ℚ) (ComplexShape.up ℕ) n |
| 1065 | have hc := ConcreteCategory.congr_hom (kernelComparison_comp_ι q ev) z |
| 1066 | have hk := ModuleCat.kernelIsoKer_hom_ker_subtype_apply |
| 1067 | (q.f n) ((kernelComparison q ev) z) |
| 1068 | have hE : E.hom z = (⟨φ, hφsmall⟩ : (q.f n).hom.ker) := by |
| 1069 | simp [z] |
| 1070 | calc |
| 1071 | (kernel.ι q).f n z = kernel.ι (ev.map q) ((kernelComparison q ev) z) := hc.symm |
| 1072 | _ = ((ModuleCat.kernelIsoKer (q.f n)).hom |
| 1073 | ((kernelComparison q ev) z)).1 := hk.symm |
| 1074 | _ = φ := congrArg Subtype.val hE |
| 1075 | have hzclosed : (K.sc n).g z = 0 := by |
| 1076 | change K.d n ((ComplexShape.up ℕ).next n) z = 0 |
| 1077 | rw [show (ComplexShape.up ℕ).next n = n + 1 by simp] |
| 1078 | apply (ModuleCat.mono_iff_injective ((kernel.ι q).f (n + 1))).mp inferInstance |
| 1079 | rw [map_zero] |
| 1080 | change (K.d n (n + 1) ≫ (kernel.ι q).f (n + 1)) z = 0 |
| 1081 | rw [← (kernel.ι q).comm n (n + 1)] |
| 1082 | change F.d n (n + 1) ((kernel.ι q).f n z) = 0 |
| 1083 | rw [hzmap] |
| 1084 | exact hφclosed |
| 1085 | have hacyclic := rationalCoverSmallCochainKernel_acyclic Y U hUopen hUcover |
| 1086 | obtain ⟨p, hp⟩ := (ShortComplex.moduleCat_exact_iff (K.sc n)).mp |
| 1087 | (hacyclic n) z hzclosed |
| 1088 | change K.d ((ComplexShape.up ℕ).prev n) n p = z at hp |
| 1089 | refine ⟨(kernel.ι q).f ((ComplexShape.up ℕ).prev n) p, ?_, ?_⟩ |
| 1090 | · change F.d ((ComplexShape.up ℕ).prev n) n |
| 1091 | ((kernel.ι q).f ((ComplexShape.up ℕ).prev n) p) = φ |
| 1092 | calc |
| 1093 | _ = (kernel.ι q).f n |
| 1094 | (K.d ((ComplexShape.up ℕ).prev n) n p) := |
| 1095 | by |
| 1096 | simpa only [ConcreteCategory.comp_apply, F, K] using |
| 1097 | (ConcreteCategory.congr_hom |
| 1098 | ((kernel.ι q).comm ((ComplexShape.up ℕ).prev n) n) p) |
| 1099 | _ = φ := by rw [hp, hzmap] |
| 1100 | · have hcondition := HomologicalComplex.congr_hom (kernel.condition q) |
| 1101 | ((ComplexShape.up ℕ).prev n) |
| 1102 | exact ConcreteCategory.congr_hom hcondition p |
| 1103 | |
| 1104 | set_option backward.isDefEq.respectTransparency false in |
| 1105 | /-- A closed cochain on the top open which vanishes along a covering sieve has a primitive that |
| 1106 | still vanishes along the same sieve. -/ |
| 1107 | theorem exists_topOpenLocallyZero_primitive |
| 1108 | (S : (Opens.grothendieckTopology Y).Cover (⊤ : Opens Y)) (n : ℕ) |
| 1109 | (φ : (Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex (TopOpenSingularChainComplex ℚ Y)).X n) |
| 1110 | (hφlocal : ∀ I : S.Arrow, |
| 1111 | (SheafCochain.singularCochainPresheaf ℚ Y n).map I.f.op φ = 0) |
| 1112 | (hφclosed : ((Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex (TopOpenSingularChainComplex ℚ Y)).d |
| 1113 | n (n + 1)) φ = 0) : |
| 1114 | ∃ ψ : (Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex (TopOpenSingularChainComplex ℚ Y)).X |
| 1115 | ((ComplexShape.up ℕ).prev n), |
| 1116 | ((Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex (TopOpenSingularChainComplex ℚ Y)).sc n).f ψ = φ ∧ |
| 1117 | ∀ I : S.Arrow, |
| 1118 | (SheafCochain.singularCochainPresheaf ℚ Y ((ComplexShape.up ℕ).prev n)).map I.f.op ψ = 0 := by |
| 1119 | let A := (Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex |
| 1120 | (Cohomology.SingularChainComplex ℚ Y)) |
| 1121 | let B := (Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex |
| 1122 | (SheafSubdivisionCochain.TopOpenSingularChainComplex ℚ Y)) |
| 1123 | let e := singularCochainComplexIsoTopOpen ℚ Y |
| 1124 | let φ' : A.X n := e.inv.f n φ |
| 1125 | have heφ : e.hom.f n φ' = φ := by |
| 1126 | have hc := ConcreteCategory.congr_hom |
| 1127 | (HomologicalComplex.congr_hom e.inv_hom_id n) φ |
| 1128 | simpa only [HomologicalComplex.comp_f, ConcreteCategory.comp_apply, |
| 1129 | HomologicalComplex.id_f, ConcreteCategory.id_apply, φ'] using hc |
| 1130 | have hlocal' : ∀ I : S.Arrow, |
| 1131 | (SheafCochain.singularCochainPresheaf ℚ Y n).map I.f.op (e.hom.f n φ') = 0 := by |
| 1132 | intro I |
| 1133 | rw [heφ] |
| 1134 | exact hφlocal I |
| 1135 | have hsmall : (rationalCochainRestrictionToCoverSmall Y |
| 1136 | (coveringSieveOpenFamily Y S)).f n φ' = 0 := |
| 1137 | rationalCochainRestrictionToCoveringSieve_eq_zero Y S n φ' hlocal' |
| 1138 | have hclosed' : A.d n (n + 1) φ' = 0 := by |
| 1139 | change A.d n (n + 1) (e.inv.f n φ) = 0 |
| 1140 | have hc := ConcreteCategory.congr_hom (e.inv.comm n (n + 1)) φ |
| 1141 | calc |
| 1142 | _ = e.inv.f (n + 1) (B.d n (n + 1) φ) := by |
| 1143 | simpa only [ConcreteCategory.comp_apply, A, B] using hc |
| 1144 | _ = 0 := by rw [hφclosed, map_zero] |
| 1145 | obtain ⟨ψ, hψ, hψsmall⟩ := exists_coverSmallKernel_primitive Y |
| 1146 | (coveringSieveOpenFamily Y S) |
| 1147 | (coveringSieveOpenFamily_isOpen Y S) |
| 1148 | (coveringSieveOpenFamily_iUnion Y S) n φ' hsmall hclosed' |
| 1149 | refine ⟨e.hom.f ((ComplexShape.up ℕ).prev n) ψ, ?_, ?_⟩ |
| 1150 | · change B.d ((ComplexShape.up ℕ).prev n) n |
| 1151 | (e.hom.f ((ComplexShape.up ℕ).prev n) ψ) = φ |
| 1152 | have hc := ConcreteCategory.congr_hom |
| 1153 | (e.hom.comm ((ComplexShape.up ℕ).prev n) n) ψ |
| 1154 | calc |
| 1155 | _ = e.hom.f n (A.d ((ComplexShape.up ℕ).prev n) n ψ) := by |
| 1156 | simpa only [ConcreteCategory.comp_apply, A, B] using hc |
| 1157 | _ = e.hom.f n φ' := congrArg (e.hom.f n) hψ |
| 1158 | _ = φ := heφ |
| 1159 | · simpa only [e] using |
| 1160 | (rationalCochainRestrictionToCoveringSieve_local_zero |
| 1161 | Y S ((ComplexShape.up ℕ).prev n) ψ hψsmall) |
| 1162 | |
| 1163 | set_option backward.isDefEq.respectTransparency false in |
| 1164 | /-- The kernel of the map from top-open rational cochains to global first-plus cochains is |
| 1165 | acyclic. -/ |
| 1166 | theorem topOpenToGlobalSingularCochainPlusComplex_kernel_acyclic : |
| 1167 | (kernel (topOpenToGlobalSingularCochainPlusComplex ℚ Y)).Acyclic := by |
| 1168 | let C := globalRawSingularCochainComplex ℚ Y |
| 1169 | let B := topOpenForgottenSingularCochainComplex ℚ Y |
| 1170 | let e := globalRawSingularCochainComplexIso ℚ Y |
| 1171 | let f := topOpenToGlobalSingularCochainPlusComplex ℚ Y |
| 1172 | let K := kernel f |
| 1173 | intro n |
| 1174 | rw [K.exactAt_iff, ShortComplex.ab_exact_iff] |
| 1175 | intro z hzclosed |
| 1176 | let φ : SheafCochain.OpenCochains ℚ Y (.op ⊤) n := (kernel.ι f).f n z |
| 1177 | have hφplus : f.f n φ = 0 := by |
| 1178 | have hcondition := HomologicalComplex.congr_hom (kernel.condition f) n |
| 1179 | exact ConcreteCategory.congr_hom hcondition z |
| 1180 | obtain ⟨S, hφlocal⟩ := |
| 1181 | (singularCochain_toPlus_eq_zero_iff ℚ Y ⊤ n φ).mp hφplus |
| 1182 | have hφclosed : ((Algebra.Homology.LinearDual.HomologicalComplex.linearDualCochainComplex (TopOpenSingularChainComplex ℚ Y)).d |
| 1183 | n (n + 1)) φ = 0 := by |
| 1184 | change K.d n ((ComplexShape.up ℕ).next n) z = 0 at hzclosed |
| 1185 | rw [show (ComplexShape.up ℕ).next n = n + 1 by simp] at hzclosed |
| 1186 | apply_fun (kernel.ι f).f (n + 1) at hzclosed |
| 1187 | rw [map_zero] at hzclosed |
| 1188 | have hc := ConcreteCategory.congr_hom ((kernel.ι f).comm n (n + 1)) z |
| 1189 | have hC : C.d n (n + 1) φ = 0 := by |
| 1190 | calc |
| 1191 | _ = (kernel.ι f).f (n + 1) (K.d n (n + 1) z) := by |
| 1192 | simpa only [ConcreteCategory.comp_apply, C, K] using hc |
| 1193 | _ = 0 := hzclosed |
| 1194 | change B.d n (n + 1) φ = 0 |
| 1195 | have hc := ConcreteCategory.congr_hom (e.hom.comm n (n + 1)) φ |
| 1196 | have hc' : B.d n (n + 1) φ = C.d n (n + 1) φ := by |
| 1197 | simp only [ConcreteCategory.comp_apply] at hc |
| 1198 | simpa only [e, B, C, |
| 1199 | globalRawSingularCochainComplexIso_hom_f_apply] using hc |
| 1200 | rw [hc', hC] |
| 1201 | obtain ⟨ψ, hψ, hψlocal⟩ := |
| 1202 | exists_topOpenLocallyZero_primitive Y S n φ hφlocal hφclosed |
| 1203 | have hψplus : f.f ((ComplexShape.up ℕ).prev n) ψ = 0 := by |
| 1204 | change ((Opens.grothendieckTopology Y).toPlus |
| 1205 | (SheafCochain.singularCochainPresheaf ℚ Y ((ComplexShape.up ℕ).prev n))).app |
| 1206 | (.op ⊤) ψ = 0 |
| 1207 | exact (singularCochain_toPlus_eq_zero_iff ℚ Y ⊤ |
| 1208 | ((ComplexShape.up ℕ).prev n) ψ).mpr ⟨S, hψlocal⟩ |
| 1209 | let ev := HomologicalComplex.eval AddCommGrpCat (ComplexShape.up ℕ) |
| 1210 | ((ComplexShape.up ℕ).prev n) |
| 1211 | let E : K.X ((ComplexShape.up ℕ).prev n) ≅ |
| 1212 | AddCommGrpCat.of (f.f ((ComplexShape.up ℕ).prev n)).hom.ker := |
| 1213 | asIso (kernelComparison f ev) ≪≫ |
| 1214 | AddCommGrpCat.kernelIsoKer (f.f ((ComplexShape.up ℕ).prev n)) |
| 1215 | let p : K.X ((ComplexShape.up ℕ).prev n) := E.inv ⟨ψ, hψplus⟩ |
| 1216 | have hpmap : (kernel.ι f).f ((ComplexShape.up ℕ).prev n) p = ψ := by |
| 1217 | have hc := ConcreteCategory.congr_hom (kernelComparison_comp_ι f ev) p |
| 1218 | have hk := ConcreteCategory.congr_hom |
| 1219 | (AddCommGrpCat.kernelIsoKer_hom_comp_subtype |
| 1220 | (f.f ((ComplexShape.up ℕ).prev n))) ((kernelComparison f ev) p) |
| 1221 | have hE : E.hom p = |
| 1222 | (⟨ψ, hψplus⟩ : (f.f ((ComplexShape.up ℕ).prev n)).hom.ker) := by |
| 1223 | simp [p] |
| 1224 | calc |
| 1225 | (kernel.ι f).f ((ComplexShape.up ℕ).prev n) p = |
| 1226 | kernel.ι (ev.map f) ((kernelComparison f ev) p) := hc.symm |
| 1227 | _ = ((AddCommGrpCat.kernelIsoKer |
| 1228 | (f.f ((ComplexShape.up ℕ).prev n))).hom |
| 1229 | ((kernelComparison f ev) p)).1 := hk.symm |
| 1230 | _ = ψ := congrArg Subtype.val hE |
| 1231 | refine ⟨p, ?_⟩ |
| 1232 | apply (AddCommGrpCat.mono_iff_injective ((kernel.ι f).f n)).mp inferInstance |
| 1233 | have hc := ConcreteCategory.congr_hom |
| 1234 | ((kernel.ι f).comm ((ComplexShape.up ℕ).prev n) n) p |
| 1235 | have hψC : C.d ((ComplexShape.up ℕ).prev n) n ψ = φ := by |
| 1236 | change B.d ((ComplexShape.up ℕ).prev n) n ψ = φ at hψ |
| 1237 | have hc := ConcreteCategory.congr_hom |
| 1238 | (e.hom.comm ((ComplexShape.up ℕ).prev n) n) ψ |
| 1239 | have hc' : B.d ((ComplexShape.up ℕ).prev n) n ψ = |
| 1240 | C.d ((ComplexShape.up ℕ).prev n) n ψ := by |
| 1241 | simp only [ConcreteCategory.comp_apply] at hc |
| 1242 | simpa only [e, B, C, |
| 1243 | globalRawSingularCochainComplexIso_hom_f_apply] using hc |
| 1244 | exact hc'.symm.trans hψ |
| 1245 | calc |
| 1246 | (kernel.ι f).f n (K.d ((ComplexShape.up ℕ).prev n) n p) = |
| 1247 | C.d ((ComplexShape.up ℕ).prev n) n |
| 1248 | ((kernel.ι f).f ((ComplexShape.up ℕ).prev n) p) := by |
| 1249 | simpa only [ConcreteCategory.comp_apply, C, K] using hc.symm |
| 1250 | _ = C.d ((ComplexShape.up ℕ).prev n) n ψ := by rw [hpmap] |
| 1251 | _ = φ := hψC |
| 1252 | _ = (kernel.ι f).f n z := rfl |
| 1253 | |
| 1254 | /-- The map from top-open rational cochains to global first-plus cochains is a |
| 1255 | quasi-isomorphism. -/ |
| 1256 | theorem topOpenToGlobalSingularCochainPlusComplex_quasiIso : |
| 1257 | QuasiIso (topOpenToGlobalSingularCochainPlusComplex ℚ Y) := |
| 1258 | Algebra.Homology.KernelAcyclic.HomologicalComplex.quasiIso_of_epi_of_kernel_acyclic |
| 1259 | (topOpenToGlobalSingularCochainPlusComplex ℚ Y) |
| 1260 | (topOpenToGlobalSingularCochainPlusComplex_kernel_acyclic Y) |
| 1261 | |
| 1262 | end RationalCover |
| 1263 | |
| 1264 | variable {R : Type u} [CommRing R] {X : TopCat.{u}} |
| 1265 | |
| 1266 | /-- On a paracompact Hausdorff space, ordinary cochains map quasi-isomorphically to global |
| 1267 | sections of the double-plus singular-cochain complex. -/ |
| 1268 | theorem topOpenToGlobalSingularCochainPlusPlusComplex_quasiIso |
| 1269 | {Y : TopCat.{0}} [ParacompactSpace Y] [T2Space Y] : |
| 1270 | QuasiIso (topOpenToGlobalSingularCochainPlusPlusComplex ℚ Y) := by |
| 1271 | change QuasiIso |
| 1272 | (topOpenToGlobalSingularCochainPlusComplex ℚ Y ≫ |
| 1273 | globalSingularCochainPlusToPlusPlusComplex ℚ Y) |
| 1274 | let := topOpenToGlobalSingularCochainPlusComplex_quasiIso Y |
| 1275 | infer_instance |
| 1276 | |
| 1277 | /-- On a paracompact Hausdorff space, ordinary rational singular cochains compute the global |
| 1278 | section complex of the chosen singular-cochain sheaf resolution. -/ |
| 1279 | theorem topOpenToGlobalSingularCochainSheafComplex_quasiIso |
| 1280 | {Y : TopCat.{0}} [ParacompactSpace Y] [T2Space Y] : |
| 1281 | QuasiIso (topOpenToGlobalSingularCochainSheafComplex ℚ Y) := by |
| 1282 | change QuasiIso |
| 1283 | (topOpenToGlobalSingularCochainPlusPlusComplex ℚ Y ≫ |
| 1284 | (globalSingularCochainPlusPlusComplexIsoSheafComplex ℚ Y).hom) |
| 1285 | let := topOpenToGlobalSingularCochainPlusPlusComplex_quasiIso (Y := Y) |
| 1286 | infer_instance |
| 1287 | |
| 1288 | end |
| 1289 | |
| 1290 | end OAI.AlgebraicTopology.Singular.SheafSubdivisionCochain |