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 OAI.AlgebraicTopology.Singular.SheafCochain |
| 18 | import OAI.Topology.Sheaves.StalkExact |
| 19 | import OAI.AlgebraicTopology.Singular.Contractible |
| 20 | import Mathlib.AlgebraicTopology.SimplicialSet.Homology.HomologyZero |
| 21 | import Mathlib.Topology.Homotopy.TopCat.ZerothHomotopy |
| 22 | import Mathlib.Topology.Sheaves.Sheafify |
| 23 | |
| 24 | /-! # Sheaf Cochain At -/ |
| 25 | |
| 26 | namespace OAI.AlgebraicTopology.Singular.SheafCochainAt |
| 27 | |
| 28 | noncomputable section |
| 29 | |
| 30 | /-! |
| 31 | # The singular-cochain sheaf |
| 32 | |
| 33 | -/ |
| 34 | |
| 35 | /-! ### Constructions used only in proofs -/ |
| 36 | |
| 37 | section |
| 38 | |
| 39 | open _root_.CategoryTheory Limits _root_.TopologicalSpace |
| 40 | |
| 41 | universe u |
| 42 | |
| 43 | variable (R : Type u) [CommRing R] (X : TopCat.{u}) |
| 44 | |
| 45 | /-- The augmented singular zero-cochain short complex before sheafification. -/ |
| 46 | noncomputable def constantsToSingularCochainPresheafShortComplex : |
| 47 | ShortComplex (TopCat.Presheaf AddCommGrpCat X) := |
| 48 | ShortComplex.mk (SheafCochain.constantsToSingularCochainZero R X) |
| 49 | (SheafCochain.singularCochainCoboundary R X 0) |
| 50 | (SheafCochain.constantsToSingularCochainZero_comp_coboundary R X) |
| 51 | |
| 52 | /-- The augmented singular zero-cochain short complex after sheafification. -/ |
| 53 | noncomputable def constantsToSingularCochainSheafShortComplex : |
| 54 | ShortComplex (TopCat.Sheaf AddCommGrpCat X) := |
| 55 | ShortComplex.mk (SheafCochain.constantsToSingularCochainZeroSheaf R X) |
| 56 | (SheafCochain.singularCochainSheafCoboundary R X 0) |
| 57 | (SheafCochain.constantsToSingularCochainZeroSheaf_comp_coboundary R X) |
| 58 | |
| 59 | set_option backward.isDefEq.respectTransparency false in |
| 60 | /-- The sheafification unit between the augmented presheaf and sheaf short complexes. -/ |
| 61 | noncomputable def constantsToSingularCochainShortComplexSheafificationUnit : |
| 62 | constantsToSingularCochainPresheafShortComplex R X ⟶ |
| 63 | (constantsToSingularCochainSheafShortComplex R X).map |
| 64 | (TopCat.Sheaf.forget AddCommGrpCat.{u} X) where |
| 65 | τ₁ := toSheafify (Opens.grothendieckTopology X) 𝓒ᵖ(X; R) |
| 66 | τ₂ := toSheafify (Opens.grothendieckTopology X) (SheafCochain.singularCochainPresheaf R X 0) |
| 67 | τ₃ := toSheafify (Opens.grothendieckTopology X) (SheafCochain.singularCochainPresheaf R X 1) |
| 68 | comm₁₂ := (toSheafify_naturality (Opens.grothendieckTopology X) |
| 69 | (SheafCochain.constantsToSingularCochainZero R X)).symm |
| 70 | comm₂₃ := (toSheafify_naturality (Opens.grothendieckTopology X) |
| 71 | (SheafCochain.singularCochainCoboundary R X 0)).symm |
| 72 | |
| 73 | end |
| 74 | |
| 75 | open _root_.CategoryTheory Limits _root_.TopologicalSpace |
| 76 | |
| 77 | universe u |
| 78 | |
| 79 | variable (R : Type u) [CommRing R] (X : TopCat.{u}) |
| 80 | |
| 81 | set_option backward.isDefEq.respectTransparency false in |
| 82 | /-- If every closed singular `(n + 1)`-cochain has a primitive near each point, then the |
| 83 | sheafified singular-cochain complex is exact in degree `n + 1`. The hypothesis explicitly gives |
| 84 | the primitive after restricting to a smaller neighborhood. -/ |
| 85 | lemma singularCochainSheafComplex_exactAt_succ_of_locallyPrimitive (n : ℕ) |
| 86 | (hlocal : ∀ (x : X) (U : Opens X) (_hx : x ∈ U) |
| 87 | (φ : SheafCochain.OpenCochains R X (.op U) (n + 1)), |
| 88 | (SheafCochain.singularCochainCoboundary R X (n + 1)).app (.op U) φ = 0 → |
| 89 | ∃ (V : Opens X) (_hxV : x ∈ V) (i : V ⟶ U) |
| 90 | (ψ : SheafCochain.OpenCochains R X (.op V) n), |
| 91 | (SheafCochain.singularCochainCoboundary R X n).app (.op V) ψ = |
| 92 | (SheafCochain.singularCochainPresheaf R X (n + 1)).map i.op φ) : |
| 93 | (SheafCochain.singularCochainSheafComplex R X).ExactAt (n + 1) := by |
| 94 | rw [HomologicalComplex.exactAt_iff' |
| 95 | (K := SheafCochain.singularCochainSheafComplex R X) |
| 96 | (i := n) (j := n + 1) (k := (n + 1) + 1) (by simp) (by simp)] |
| 97 | rw [TopCat.Sheaf.exact_iff_stalkFunctor_map_exact] |
| 98 | intro x |
| 99 | let stalk := TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} x |
| 100 | let P := SheafCochain.singularCochainPresheafComplex R X |
| 101 | have hP : (P.sc' n (n + 1) ((n + 1) + 1)).map stalk |>.Exact := |
| 102 | OAI.Topology.Sheaves.StalkExact.TopCat.Presheaf.stalkExact_of_locallyPrimitive (P.sc' n (n + 1) ((n + 1) + 1)) (by |
| 103 | intro y U hyU φ hφ |
| 104 | dsimp [P, HomologicalComplex.sc', HomologicalComplex.shortComplexFunctor'] at hφ ⊢ |
| 105 | rw [SheafCochain.singularCochainPresheafComplex_d] at hφ |
| 106 | rw [SheafCochain.singularCochainPresheafComplex_d] |
| 107 | change (SheafCochain.singularCochainCoboundary R X (n + 1)).app (.op U) φ = 0 at hφ |
| 108 | exact hlocal y U hyU φ hφ) x |
| 109 | let unit := SheafCochain.singularCochainSheafificationUnit R X |
| 110 | let stalkUnit := (stalk.mapHomologicalComplex (ComplexShape.up ℕ)).map unit |
| 111 | let η := (HomologicalComplex.shortComplexFunctor' AddCommGrpCat.{u} |
| 112 | (ComplexShape.up ℕ) n (n + 1) ((n + 1) + 1)).map stalkUnit |
| 113 | let : IsIso η.τ₁ := |
| 114 | TopCat.Presheaf.stalkFunctor_map_unit_toSheafify_isIso x AddCommGrpCat.{u} |
| 115 | (SheafCochain.singularCochainPresheaf R X n) |
| 116 | let : IsIso η.τ₂ := |
| 117 | TopCat.Presheaf.stalkFunctor_map_unit_toSheafify_isIso x AddCommGrpCat.{u} |
| 118 | (SheafCochain.singularCochainPresheaf R X (n + 1)) |
| 119 | let : IsIso η.τ₃ := |
| 120 | TopCat.Presheaf.stalkFunctor_map_unit_toSheafify_isIso x AddCommGrpCat.{u} |
| 121 | (SheafCochain.singularCochainPresheaf R X ((n + 1) + 1)) |
| 122 | let : IsIso η := ShortComplex.isIso_of_isIso η |
| 123 | exact ShortComplex.exact_of_iso (asIso η) hP |
| 124 | |
| 125 | /-- Scaling the zero-chain augmentation is injective when the simplicial set has a vertex. -/ |
| 126 | lemma smul_simplicialZeroAugmentation_injective (S : SSet.{u}) |
| 127 | [Nonempty (S.obj (.op ⟨0⟩))] : |
| 128 | Function.Injective (fun r : R ↦ r • (SheafCochain.simplicialZeroAugmentation R S).hom) := by |
| 129 | intro r s h |
| 130 | let x : S.obj (.op ⟨0⟩) := Classical.arbitrary _ |
| 131 | have heval : (SheafCochain.simplicialZeroAugmentation R S).hom |
| 132 | ((S.ιChainComplex (R := ModuleCat.of R R) x).hom 1) = 1 := |
| 133 | congrArg (fun f ↦ f.hom 1) |
| 134 | (SheafCochain.ιChainComplex_comp_simplicialZeroAugmentation R S x) |
| 135 | have hvalue := LinearMap.congr_fun h |
| 136 | ((S.ιChainComplex (R := ModuleCat.of R R) x).hom 1) |
| 137 | simpa [heval] using hvalue |
| 138 | |
| 139 | /-- On a connected simplicial set, every singular zero-cocycle is constant. This is exactness of |
| 140 | the augmented singular cochain complex in degree zero. -/ |
| 141 | lemma exists_eq_smul_simplicialZeroAugmentation_of_connected (S : SSet.{u}) [S.IsConnected] |
| 142 | (φ : Module.Dual R ((S.chainComplex (ModuleCat.of R R)).X 0)) |
| 143 | (hφ : ((S.chainComplex (ModuleCat.of R R)).d 1 0).hom.dualMap φ = 0) : |
| 144 | ∃ r : R, r • (SheafCochain.simplicialZeroAugmentation R S).hom = φ := by |
| 145 | have hd : (S.chainComplex (ModuleCat.of R R)).d 1 0 ≫ ModuleCat.ofHom φ = 0 := |
| 146 | ModuleCat.hom_ext (LinearMap.ext (LinearMap.congr_fun hφ)) |
| 147 | let s := CokernelCofork.ofπ (ModuleCat.ofHom φ) hd |
| 148 | let q := SSet.π₀.fromChainComplexXZero S (ModuleCat.of R R) |
| 149 | let g := (S.isColimitCokernelCoforkChainComplexDOneZero |
| 150 | (ModuleCat.of R R)).desc s |
| 151 | have hfac : q ≫ g = ModuleCat.ofHom φ := |
| 152 | (S.isColimitCokernelCoforkChainComplexDOneZero |
| 153 | (ModuleCat.of R R)).fac s WalkingParallelPair.one |
| 154 | let x₀ : S.obj (.op ⟨0⟩) := Classical.arbitrary _ |
| 155 | let r : R := φ ((S.ιChainComplex (R := ModuleCat.of R R) x₀).hom 1) |
| 156 | refine ⟨r, ?_⟩ |
| 157 | apply LinearMap.ext |
| 158 | intro c |
| 159 | have heq : ModuleCat.ofHom (r • (SheafCochain.simplicialZeroAugmentation R S).hom) = |
| 160 | ModuleCat.ofHom φ := by |
| 161 | apply SSet.chainComplex_hom_ext |
| 162 | intro x |
| 163 | apply ModuleCat.hom_ext |
| 164 | apply LinearMap.ext |
| 165 | intro t |
| 166 | have hx : SSet.π₀.mk x = SSet.π₀.mk x₀ := Subsingleton.elim _ _ |
| 167 | have hvertexMap : |
| 168 | S.ιChainComplex (R := ModuleCat.of R R) x ≫ ModuleCat.ofHom φ = |
| 169 | S.ιChainComplex (R := ModuleCat.of R R) x₀ ≫ ModuleCat.ofHom φ := by |
| 170 | calc |
| 171 | _ = S.ιChainComplex (R := ModuleCat.of R R) x ≫ (q ≫ g) := |
| 172 | congrArg (fun k ↦ S.ιChainComplex (R := ModuleCat.of R R) x ≫ k) hfac.symm |
| 173 | _ = (S.ιChainComplex (R := ModuleCat.of R R) x ≫ q) ≫ g := |
| 174 | Category.assoc _ _ _ |>.symm |
| 175 | _ = Limits.Sigma.ι (fun _ : SSet.π₀ S ↦ ModuleCat.of R R) |
| 176 | (SSet.π₀.mk x) ≫ g := by |
| 177 | rw [show q = SSet.π₀.fromChainComplexXZero S (ModuleCat.of R R) by rfl, |
| 178 | SSet.π₀.comp_fromChainComplexXZero] |
| 179 | _ = Limits.Sigma.ι (fun _ : SSet.π₀ S ↦ ModuleCat.of R R) |
| 180 | (SSet.π₀.mk x₀) ≫ g := by rw [hx] |
| 181 | _ = (S.ιChainComplex (R := ModuleCat.of R R) x₀ ≫ q) ≫ g := by |
| 182 | rw [show q = SSet.π₀.fromChainComplexXZero S (ModuleCat.of R R) by rfl, |
| 183 | SSet.π₀.comp_fromChainComplexXZero] |
| 184 | _ = S.ιChainComplex (R := ModuleCat.of R R) x₀ ≫ (q ≫ g) := |
| 185 | Category.assoc _ _ _ |
| 186 | _ = _ := congrArg |
| 187 | (fun k ↦ S.ιChainComplex (R := ModuleCat.of R R) x₀ ≫ k) hfac |
| 188 | have hvalue : φ ((S.ιChainComplex (R := ModuleCat.of R R) x).hom t) = |
| 189 | φ ((S.ιChainComplex (R := ModuleCat.of R R) x₀).hom t) := |
| 190 | congrArg (fun f ↦ f.hom t) hvertexMap |
| 191 | have hscale : φ ((S.ιChainComplex (R := ModuleCat.of R R) x₀).hom t) = |
| 192 | t * r := by |
| 193 | dsimp [r] |
| 194 | conv_lhs => |
| 195 | rw [show t = t • (1 : R) by simp, map_smul, map_smul, smul_eq_mul] |
| 196 | calc |
| 197 | _ = r * t := by |
| 198 | change r * (SheafCochain.simplicialZeroAugmentation R S).hom |
| 199 | ((S.ιChainComplex (R := ModuleCat.of R R) x).hom t) = r * t |
| 200 | rw [show (SheafCochain.simplicialZeroAugmentation R S).hom |
| 201 | ((S.ιChainComplex (R := ModuleCat.of R R) x).hom t) = t by |
| 202 | exact congrArg (fun f ↦ f.hom t) |
| 203 | (SheafCochain.ιChainComplex_comp_simplicialZeroAugmentation R S x)] |
| 204 | _ = t * r := mul_comm _ _ |
| 205 | _ = φ ((S.ιChainComplex (R := ModuleCat.of R R) x₀).hom t) := hscale.symm |
| 206 | _ = φ ((S.ιChainComplex (R := ModuleCat.of R R) x).hom t) := hvalue.symm |
| 207 | exact congrArg (fun f ↦ f.hom c) heq |
| 208 | |
| 209 | /-- Constant singular zero-cochains on a nonempty open set have unique coefficients. -/ |
| 210 | lemma constantSingularZeroCochain_injective (U : (Opens X)ᵒᵖ) [Nonempty U.unop] : |
| 211 | Function.Injective (SheafCochain.constantSingularZeroCochain R X U) := by |
| 212 | let : Nonempty |
| 213 | ((TopCat.toSSet.obj ((Opens.toTopCat X).obj U.unop)).obj (.op ⟨0⟩)) := |
| 214 | ⟨(TopCat.toSSetObj₀Equiv (X := (Opens.toTopCat X).obj U.unop)).symm |
| 215 | (Classical.arbitrary U.unop)⟩ |
| 216 | exact smul_simplicialZeroAugmentation_injective R |
| 217 | (TopCat.toSSet.obj ((Opens.toTopCat X).obj U.unop)) |
| 218 | |
| 219 | /-- On a path-connected open subset, every singular zero-cocycle is a constant cochain. -/ |
| 220 | lemma exists_eq_constantSingularZeroCochain_of_pathConnected (U : (Opens X)ᵒᵖ) |
| 221 | [PathConnectedSpace U.unop] |
| 222 | (φ : SheafCochain.OpenCochains R X U 0) |
| 223 | (hφ : (((SheafCochain.openSingularChainComplexFunctor R X).obj U.unop).d 1 0).hom.dualMap φ = 0) : |
| 224 | ∃ r : R, SheafCochain.constantSingularZeroCochain R X U r = φ := by |
| 225 | let : PathConnectedSpace ((Opens.toTopCat X).obj U.unop) := |
| 226 | show PathConnectedSpace U.unop from inferInstance |
| 227 | exact exists_eq_smul_simplicialZeroAugmentation_of_connected R |
| 228 | (TopCat.toSSet.obj ((Opens.toTopCat X).obj U.unop)) φ hφ |
| 229 | |
| 230 | set_option backward.isDefEq.respectTransparency false in |
| 231 | /-- The inclusion of constant zero-cochains is a monomorphism on every stalk. -/ |
| 232 | lemma constantsToSingularCochainZero_stalk_mono (x : X) : |
| 233 | Mono ((TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} x).map |
| 234 | (SheafCochain.constantsToSingularCochainZero R X)) := by |
| 235 | rw [AddCommGrpCat.mono_iff_injective] |
| 236 | intro z z' h |
| 237 | obtain ⟨U, hxU, r, rfl⟩ := 𝓒ᵖ(X; R).exists_germ_eq z |
| 238 | obtain ⟨V, hxV, s, rfl⟩ := 𝓒ᵖ(X; R).exists_germ_eq z' |
| 239 | rw [TopCat.Presheaf.stalkFunctor_map_germ_apply, |
| 240 | TopCat.Presheaf.stalkFunctor_map_germ_apply] at h |
| 241 | obtain ⟨W, hxW, iWU, iWV, hW⟩ := |
| 242 | (SheafCochain.singularCochainPresheaf R X 0).germ_eq x hxU hxV |
| 243 | ((SheafCochain.constantsToSingularCochainZero R X).app (.op U) r) |
| 244 | ((SheafCochain.constantsToSingularCochainZero R X).app (.op V) s) h |
| 245 | let : Nonempty W := ⟨⟨x, hxW⟩⟩ |
| 246 | have hrs : r = s := by |
| 247 | apply constantSingularZeroCochain_injective R X (.op W) |
| 248 | have hr := congrArg (fun k : |
| 249 | 𝓒ᵖ(X; R).obj (.op U) ⟶ |
| 250 | (SheafCochain.singularCochainPresheaf R X 0).obj (.op W) ↦ k r) |
| 251 | ((SheafCochain.constantsToSingularCochainZero R X).naturality iWU.op) |
| 252 | have hs := congrArg (fun k : |
| 253 | 𝓒ᵖ(X; R).obj (.op V) ⟶ |
| 254 | (SheafCochain.singularCochainPresheaf R X 0).obj (.op W) ↦ k s) |
| 255 | ((SheafCochain.constantsToSingularCochainZero R X).naturality iWV.op) |
| 256 | change SheafCochain.constantSingularZeroCochain R X (.op W) r = |
| 257 | (SheafCochain.singularCochainPresheaf R X 0).map iWU.op |
| 258 | ((SheafCochain.constantsToSingularCochainZero R X).app (.op U) r) at hr |
| 259 | change SheafCochain.constantSingularZeroCochain R X (.op W) s = |
| 260 | (SheafCochain.singularCochainPresheaf R X 0).map iWV.op |
| 261 | ((SheafCochain.constantsToSingularCochainZero R X).app (.op V) s) at hs |
| 262 | exact hr.trans (hW.trans hs.symm) |
| 263 | subst s |
| 264 | rw [← 𝓒ᵖ(X; R).germ_res_apply iWU x hxW, |
| 265 | ← 𝓒ᵖ(X; R).germ_res_apply iWV x hxW] |
| 266 | rfl |
| 267 | |
| 268 | set_option backward.isDefEq.respectTransparency false in |
| 269 | /-- In a locally path-connected space, a singular zero-cocycle is constant on a smaller open |
| 270 | neighborhood of any chosen point. -/ |
| 271 | lemma exists_local_constantSingularZeroCochain [LocallyPathConnectedSpace X] |
| 272 | (x : X) (U : Opens X) (hx : x ∈ U) |
| 273 | (φ : SheafCochain.OpenCochains R X (.op U) 0) |
| 274 | (hφ : (SheafCochain.singularCochainCoboundary R X 0).app (.op U) φ = 0) : |
| 275 | ∃ (V : Opens X) (_hxV : x ∈ V) (i : V ⟶ U) (r : R), |
| 276 | SheafCochain.constantSingularZeroCochain R X (.op V) r = |
| 277 | (SheafCochain.singularCochainPresheaf R X 0).map i.op φ := by |
| 278 | let V : Opens X := ⟨pathComponentIn U x, U.2.pathComponentIn x⟩ |
| 279 | have hxV : x ∈ V := mem_pathComponentIn_self hx |
| 280 | let i : V ⟶ U := homOfLE pathComponentIn_subset |
| 281 | let : PathConnectedSpace V := |
| 282 | isPathConnected_iff_pathConnectedSpace.mp (isPathConnected_pathComponentIn hx) |
| 283 | let φV := (SheafCochain.singularCochainPresheaf R X 0).map i.op φ |
| 284 | have hφV : (SheafCochain.singularCochainCoboundary R X 0).app (.op V) φV = 0 := by |
| 285 | dsimp [φV] |
| 286 | rw [← ConcreteCategory.comp_apply, |
| 287 | (SheafCochain.singularCochainCoboundary R X 0).naturality, |
| 288 | ConcreteCategory.comp_apply, hφ, map_zero] |
| 289 | obtain ⟨r, hr⟩ := |
| 290 | exists_eq_constantSingularZeroCochain_of_pathConnected R X (.op V) φV hφV |
| 291 | exact ⟨V, hxV, i, r, hr⟩ |
| 292 | |
| 293 | set_option backward.isDefEq.respectTransparency false in |
| 294 | /-- On a locally path-connected space, the augmented singular zero-cochain sheaf complex is |
| 295 | exact. This identifies the kernel of the first coboundary with the constant sheaf. -/ |
| 296 | lemma constantsToSingularCochainSheafShortComplex_exact [LocallyPathConnectedSpace X] : |
| 297 | (constantsToSingularCochainSheafShortComplex R X).Exact := by |
| 298 | rw [TopCat.Sheaf.exact_iff_stalkFunctor_map_exact] |
| 299 | intro x |
| 300 | let stalk := TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} x |
| 301 | have hP : ((constantsToSingularCochainPresheafShortComplex R X).map stalk).Exact := |
| 302 | OAI.Topology.Sheaves.StalkExact.TopCat.Presheaf.stalkExact_of_locallyPrimitive |
| 303 | (constantsToSingularCochainPresheafShortComplex R X) (by |
| 304 | intro y U hyU φ hφ |
| 305 | change (SheafCochain.singularCochainCoboundary R X 0).app (.op U) φ = 0 at hφ |
| 306 | exact exists_local_constantSingularZeroCochain R X y U hyU φ hφ) x |
| 307 | let unit := constantsToSingularCochainShortComplexSheafificationUnit R X |
| 308 | let η := (stalk.mapShortComplex).map unit |
| 309 | let : IsIso η.τ₁ := |
| 310 | TopCat.Presheaf.stalkFunctor_map_unit_toSheafify_isIso x AddCommGrpCat.{u} |
| 311 | 𝓒ᵖ(X; R) |
| 312 | let : IsIso η.τ₂ := |
| 313 | TopCat.Presheaf.stalkFunctor_map_unit_toSheafify_isIso x AddCommGrpCat.{u} |
| 314 | (SheafCochain.singularCochainPresheaf R X 0) |
| 315 | let : IsIso η.τ₃ := |
| 316 | TopCat.Presheaf.stalkFunctor_map_unit_toSheafify_isIso x AddCommGrpCat.{u} |
| 317 | (SheafCochain.singularCochainPresheaf R X 1) |
| 318 | let : IsIso η := ShortComplex.isIso_of_isIso η |
| 319 | exact ShortComplex.exact_of_iso (asIso η) hP |
| 320 | |
| 321 | set_option backward.isDefEq.respectTransparency false in |
| 322 | /-- The sheafified inclusion of constants into singular zero-cochains is a monomorphism. -/ |
| 323 | lemma constantsToSingularCochainZeroSheaf_mono : |
| 324 | Mono (SheafCochain.constantsToSingularCochainZeroSheaf R X) := by |
| 325 | rw [TopCat.Presheaf.mono_iff_stalk_mono] |
| 326 | intro x |
| 327 | let stalk := TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} x |
| 328 | let unit := constantsToSingularCochainShortComplexSheafificationUnit R X |
| 329 | let S := (constantsToSingularCochainPresheafShortComplex R X).map stalk |
| 330 | let T := (constantsToSingularCochainSheafShortComplex R X).map |
| 331 | (TopCat.Sheaf.forget AddCommGrpCat.{u} X ⋙ stalk) |
| 332 | let η : S ⟶ T := (stalk.mapShortComplex).map unit |
| 333 | let : IsIso η.τ₁ := |
| 334 | TopCat.Presheaf.stalkFunctor_map_unit_toSheafify_isIso x AddCommGrpCat.{u} |
| 335 | 𝓒ᵖ(X; R) |
| 336 | let : IsIso η.τ₂ := |
| 337 | TopCat.Presheaf.stalkFunctor_map_unit_toSheafify_isIso x AddCommGrpCat.{u} |
| 338 | (SheafCochain.singularCochainPresheaf R X 0) |
| 339 | let : Mono S.f := constantsToSingularCochainZero_stalk_mono R X x |
| 340 | change Mono T.f |
| 341 | have h : T.f = inv η.τ₁ ≫ S.f ≫ η.τ₂ := by |
| 342 | rw [← cancel_epi η.τ₁, η.comm₁₂] |
| 343 | simp |
| 344 | rw [h] |
| 345 | infer_instance |
| 346 | |
| 347 | set_option backward.isDefEq.respectTransparency false in |
| 348 | /-- On a locally path-connected space, the constant-to-singular comparison is a |
| 349 | quasi-isomorphism in degree zero. -/ |
| 350 | lemma constantsToSingularCochainSheafComplex_quasiIsoAt_zero |
| 351 | [LocallyPathConnectedSpace X] : |
| 352 | QuasiIsoAt (SheafCochain.constantsToSingularCochainSheafComplex R X) 0 := by |
| 353 | rw [CochainComplex.quasiIsoAt₀_iff, ShortComplex.quasiIso_iff_of_zeros] |
| 354 | · exact ⟨constantsToSingularCochainSheafShortComplex_exact R X, |
| 355 | constantsToSingularCochainZeroSheaf_mono R X⟩ |
| 356 | all_goals simp [SheafCochain.singularCochainSheafComplex] |
| 357 | |
| 358 | set_option backward.isDefEq.respectTransparency false in |
| 359 | /-- A neighborhood-wise primitive condition makes the constant-to-singular comparison a |
| 360 | quasi-isomorphism in positive degree. In degree `n + 1` the constant sheaf complex is already |
| 361 | exact, so the claim follows from exactness of the singular-cochain sheaf complex there. -/ |
| 362 | lemma constantsToSingularCochainSheafComplex_quasiIsoAt_succ_of_locallyPrimitive (n : ℕ) |
| 363 | (hlocal : ∀ (x : X) (U : Opens X) (_hx : x ∈ U) |
| 364 | (φ : SheafCochain.OpenCochains R X (.op U) (n + 1)), |
| 365 | (SheafCochain.singularCochainCoboundary R X (n + 1)).app (.op U) φ = 0 → |
| 366 | ∃ (V : Opens X) (_hxV : x ∈ V) (i : V ⟶ U) |
| 367 | (ψ : SheafCochain.OpenCochains R X (.op V) n), |
| 368 | (SheafCochain.singularCochainCoboundary R X n).app (.op V) ψ = |
| 369 | (SheafCochain.singularCochainPresheaf R X (n + 1)).map i.op φ) : |
| 370 | QuasiIsoAt (SheafCochain.constantsToSingularCochainSheafComplex R X) (n + 1) := by |
| 371 | rw [quasiIsoAt_iff_exactAt _ _ |
| 372 | (CochainComplex.exactAt_succ_single_obj 𝓒(X; R) n)] |
| 373 | exact singularCochainSheafComplex_exactAt_succ_of_locallyPrimitive R X n hlocal |
| 374 | |
| 375 | set_option backward.isDefEq.respectTransparency false in |
| 376 | /-- A basis of open contractible neighborhoods supplies primitives for closed singular |
| 377 | cochains after shrinking. -/ |
| 378 | lemma exists_local_singularCochain_primitive_of_contractibleOpenBasis |
| 379 | (hbasis : ∀ (x : X) (U : Opens X), x ∈ U → |
| 380 | ∃ (V : Opens X), x ∈ V ∧ ContractibleSpace V ∧ V ≤ U) |
| 381 | (n : ℕ) (x : X) (U : Opens X) (hxU : x ∈ U) |
| 382 | (φ : SheafCochain.OpenCochains R X (.op U) (n + 1)) |
| 383 | (hφ : (SheafCochain.singularCochainCoboundary R X (n + 1)).app (.op U) φ = 0) : |
| 384 | ∃ (V : Opens X) (_hxV : x ∈ V) (i : V ⟶ U) |
| 385 | (ψ : SheafCochain.OpenCochains R X (.op V) n), |
| 386 | (SheafCochain.singularCochainCoboundary R X n).app (.op V) ψ = |
| 387 | (SheafCochain.singularCochainPresheaf R X (n + 1)).map i.op φ := by |
| 388 | obtain ⟨V, hxV, hVcontractible, hVU⟩ := hbasis x U hxU |
| 389 | let i : V ⟶ U := homOfLE hVU |
| 390 | let K := (SheafCochain.openSingularChainComplexFunctor R X).obj V |
| 391 | let φV : SheafCochain.OpenCochains R X (.op V) (n + 1) := |
| 392 | (SheafCochain.singularCochainPresheaf R X (n + 1)).map i.op φ |
| 393 | have hφV : (K.d (n + 2) (n + 1)).hom.dualMap φV = 0 := by |
| 394 | change (SheafCochain.singularCochainCoboundary R X (n + 1)).app (.op V) φV = 0 |
| 395 | dsimp [φV] |
| 396 | rw [← ConcreteCategory.comp_apply, |
| 397 | (SheafCochain.singularCochainCoboundary R X (n + 1)).naturality, |
| 398 | ConcreteCategory.comp_apply, hφ, map_zero] |
| 399 | have hker : φV ∈ LinearMap.ker (K.d (n + 2) (n + 1)).hom.dualMap := hφV |
| 400 | have hrange : LinearMap.range (K.d (n + 1) n).hom.dualMap = |
| 401 | LinearMap.ker (K.d (n + 2) (n + 1)).hom.dualMap := |
| 402 | Contractible.singularChain_dual_range_eq_ker_of_contractible R V n |
| 403 | rw [← hrange] at hker |
| 404 | obtain ⟨ψ, hψ⟩ := hker |
| 405 | exact ⟨V, hxV, i, ψ, hψ⟩ |
| 406 | |
| 407 | /-- On a space with a basis of open contractible neighborhoods, the constant-to-singular |
| 408 | comparison is a quasi-isomorphism in every positive degree. -/ |
| 409 | lemma constantsToSingularCochainSheafComplex_quasiIsoAt_succ_of_contractibleOpenBasis |
| 410 | (hbasis : ∀ (x : X) (U : Opens X), x ∈ U → |
| 411 | ∃ (V : Opens X), x ∈ V ∧ ContractibleSpace V ∧ V ≤ U) |
| 412 | (n : ℕ) : |
| 413 | QuasiIsoAt (SheafCochain.constantsToSingularCochainSheafComplex R X) (n + 1) := |
| 414 | constantsToSingularCochainSheafComplex_quasiIsoAt_succ_of_locallyPrimitive R X n |
| 415 | (exists_local_singularCochain_primitive_of_contractibleOpenBasis R X hbasis n) |
| 416 | |
| 417 | end |
| 418 | |
| 419 | end OAI.AlgebraicTopology.Singular.SheafCochainAt |