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 Paul Lezeau and 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.Geometry.Foundations.ConvexStdSimplexMetric |
| 18 | import OAI.AlgebraicTopology.LocalHomology.Euclidean |
| 19 | import OAI.AlgebraicTopology.Singular.ExcisionField |
| 20 | import OAI.AlgebraicTopology.Singular.SubsetChains |
| 21 | import OAI.AlgebraicTopology.Singular.StandardSimplexCone |
| 22 | import OAI.AlgebraicTopology.LocalHomology.SphereAffineBoundary |
| 23 | import Mathlib.Topology.Homotopy.Contractible |
| 24 | import OAI.AlgebraicTopology.Singular.SubdivisionAffinePrism |
| 25 | import OAI.AlgebraicTopology.Singular.Contractible |
| 26 | import Mathlib.Algebra.Category.Grp.Zero |
| 27 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 28 | import Mathlib.Analysis.Convex.Contractible |
| 29 | import Mathlib.Logic.Equiv.PartialEquiv |
| 30 | import Mathlib.Tactic.Bound |
| 31 | import Mathlib.Topology.Homotopy.TopCat.ZerothHomotopy |
| 32 | |
| 33 | /-! # Punctured Euclidean -/ |
| 34 | |
| 35 | namespace OAI.AlgebraicTopology.LocalHomology.PuncturedEuclidean.Singular |
| 36 | |
| 37 | noncomputable section |
| 38 | |
| 39 | open _root_.AlgebraicTopology |
| 40 | |
| 41 | /-! |
| 42 | # The affine sphere class in punctured Euclidean space |
| 43 | |
| 44 | The affine boundary map sends the explicit simplicial fundamental cycle to the oriented |
| 45 | boundary cycle used in the standard Euclidean local class. A finite open-facet cover of |
| 46 | punctured Euclidean space supplies a face-coherent carrier back to the standard simplicial |
| 47 | sphere. An acyclic-carrier prism and the rational small-chain equivalence upgrade these maps to |
| 48 | a chain-homotopy equivalence. Consequently the affine boundary map is an isomorphism on |
| 49 | homology, and the explicit punctured and positive-even-dimensional local classes generate. |
| 50 | -/ |
| 51 | |
| 52 | open scoped OAI.Geometry.Foundations.ConvexStdSimplexMetric.Convexity.StdSimplex |
| 53 | |
| 54 | open _root_.CategoryTheory _root_.CategoryTheory.Limits PartialOrder |
| 55 | open scoped Simplicial |
| 56 | |
| 57 | /-- The affine barycentric coordinate indexed by the last vertex is normalized to zero; the |
| 58 | other coordinates are the ordinary coordinates on `ℝ^d`. Only comparisons between these |
| 59 | coordinates are used below, so this common-translation normalization is canonical. -/ |
| 60 | def standardExtendedCoordinate (d : ℕ) (i : Fin (d + 1)) |
| 61 | (x : Fin d → ℝ) : ℝ := |
| 62 | Fin.lastCases 0 x i |
| 63 | |
| 64 | @[simp] |
| 65 | lemma standardExtendedCoordinate_castSucc (d : ℕ) (i : Fin d) |
| 66 | (x : Fin d → ℝ) : |
| 67 | standardExtendedCoordinate d (Fin.castSucc i) x = x i := by |
| 68 | simp [standardExtendedCoordinate] |
| 69 | |
| 70 | @[simp] |
| 71 | lemma standardExtendedCoordinate_last (d : ℕ) (x : Fin d → ℝ) : |
| 72 | standardExtendedCoordinate d (Fin.last d) x = 0 := by |
| 73 | simp [standardExtendedCoordinate] |
| 74 | |
| 75 | lemma standardExtendedCoordinate_standardAffineSimplex |
| 76 | (d : ℕ) (i : Fin (d + 1)) (t : Convexity.StdSimplex ℝ (Fin (d + 1))) : |
| 77 | standardExtendedCoordinate d i (FundamentalClass.Singular.standardAffineSimplex d t) = |
| 78 | t i - t (Fin.last d) := by |
| 79 | cases i using Fin.lastCases with |
| 80 | | last => simp |
| 81 | | cast i => simp [FundamentalClass.Singular.standardAffineSimplex] |
| 82 | |
| 83 | lemma stdSimplex_exists_pos {m : ℕ} (t : Convexity.StdSimplex ℝ (Fin (m + 1))) : |
| 84 | ∃ i, 0 < t i := by |
| 85 | have hsum : (∑ i, (t : Fin (m + 1) → ℝ) i) ≠ 0 := |
| 86 | t.total_of_fintype.symm ▸ one_ne_zero |
| 87 | obtain ⟨i, -, hi⟩ := Finset.exists_ne_zero_of_sum_ne_zero hsum |
| 88 | exact ⟨i, lt_of_le_of_ne (t.weights_nonneg i) hi.symm⟩ |
| 89 | |
| 90 | lemma continuous_standardExtendedCoordinate (d : ℕ) (i : Fin (d + 1)) : |
| 91 | Continuous (fun x : (FundamentalClass.Singular.puncturedPair ℝ d).snd ↦ |
| 92 | standardExtendedCoordinate d i x.1) := by |
| 93 | change Continuous (fun x : ({0}ᶜ : Set (Fin d → ℝ)) ↦ |
| 94 | standardExtendedCoordinate d i x.1) |
| 95 | cases i using Fin.lastCases with |
| 96 | | last => simpa [standardExtendedCoordinate] using |
| 97 | (continuous_const : Continuous (fun _ : ({0}ᶜ : Set (Fin d → ℝ)) ↦ (0 : ℝ))) |
| 98 | | cast i => |
| 99 | convert (continuous_apply i).comp continuous_subtype_val using 1 |
| 100 | funext x |
| 101 | exact standardExtendedCoordinate_castSucc d i x.1 |
| 102 | |
| 103 | /-- The `i`th member of the finite facet cover consists of points for which the `i`th extended |
| 104 | coordinate is not maximal. -/ |
| 105 | def standardPuncturedFacetCover (d : ℕ) (i : Fin (d + 1)) : |
| 106 | Set ((FundamentalClass.Singular.puncturedPair ℝ d).snd) := |
| 107 | {x | ∃ j : Fin (d + 1), |
| 108 | standardExtendedCoordinate d i x.1 < standardExtendedCoordinate d j x.1} |
| 109 | |
| 110 | lemma isOpen_standardPuncturedFacetCover (d : ℕ) (i : Fin (d + 1)) : |
| 111 | IsOpen (standardPuncturedFacetCover d i) := by |
| 112 | rw [show standardPuncturedFacetCover d i = |
| 113 | ⋃ j : Fin (d + 1), {x | standardExtendedCoordinate d i x.1 < |
| 114 | standardExtendedCoordinate d j x.1} by |
| 115 | ext |
| 116 | simp [standardPuncturedFacetCover]] |
| 117 | exact isOpen_iUnion fun j ↦ isOpen_lt |
| 118 | (continuous_standardExtendedCoordinate d i) |
| 119 | (continuous_standardExtendedCoordinate d j) |
| 120 | |
| 121 | /-- The nonmaximal-coordinate sets cover punctured coordinate space. -/ |
| 122 | lemma iUnion_standardPuncturedFacetCover (d : ℕ) : |
| 123 | ⋃ i, standardPuncturedFacetCover d i = Set.univ := by |
| 124 | refine Set.eq_univ_of_forall fun x ↦ ?_ |
| 125 | have hx : x.1 ≠ 0 := x.2 |
| 126 | obtain ⟨j, hj⟩ : ∃ j : Fin d, x.1 j ≠ 0 := by |
| 127 | by_contra h |
| 128 | simp only [not_exists, not_ne_iff] at h |
| 129 | exact hx (funext h) |
| 130 | rcases lt_or_gt_of_ne hj with hjneg | hjpos |
| 131 | · exact Set.mem_iUnion.mpr ⟨Fin.castSucc j, Fin.last d, by simpa using hjneg⟩ |
| 132 | · exact Set.mem_iUnion.mpr ⟨Fin.last d, Fin.castSucc j, by simpa using hjpos⟩ |
| 133 | |
| 134 | /-- No point belongs to every member of the facet cover. -/ |
| 135 | lemma not_forall_mem_standardPuncturedFacetCover (d : ℕ) |
| 136 | (x : (FundamentalClass.Singular.puncturedPair ℝ d).snd) : |
| 137 | ¬ ∀ i, x ∈ standardPuncturedFacetCover d i := by |
| 138 | obtain ⟨i, -, hi⟩ := Finset.exists_max_image Finset.univ |
| 139 | (fun i : Fin (d + 1) ↦ standardExtendedCoordinate d i x.1) |
| 140 | Finset.univ_nonempty |
| 141 | intro h |
| 142 | obtain ⟨j, hj⟩ := h i |
| 143 | exact (not_lt_of_ge (hi j (Finset.mem_univ j))) hj |
| 144 | |
| 145 | /-- The coordinate vector whose extended coordinates are `-1` on `I` and `0` off `I`, up to |
| 146 | the common translation that makes the last extended coordinate zero. -/ |
| 147 | def standardFacetIntersectionCenter (d : ℕ) (I : Finset (Fin (d + 1))) : |
| 148 | (Fin d → ℝ) := |
| 149 | fun j ↦ (if Fin.castSucc j ∈ I then (-1 : ℝ) else 0) - |
| 150 | (if Fin.last d ∈ I then (-1 : ℝ) else 0) |
| 151 | |
| 152 | lemma standardExtendedCoordinate_intersectionCenter (d : ℕ) |
| 153 | (I : Finset (Fin (d + 1))) (i : Fin (d + 1)) : |
| 154 | standardExtendedCoordinate d i (standardFacetIntersectionCenter d I) = |
| 155 | (if i ∈ I then (-1 : ℝ) else 0) - |
| 156 | (if Fin.last d ∈ I then (-1 : ℝ) else 0) := by |
| 157 | refine Fin.lastCases ?_ (fun j ↦ ?_) i |
| 158 | · simp [standardExtendedCoordinate] |
| 159 | · simp [standardExtendedCoordinate, standardFacetIntersectionCenter] |
| 160 | |
| 161 | lemma standardExtendedCoordinate_add_smul (d : ℕ) (i : Fin (d + 1)) |
| 162 | (a b : ℝ) (x y : Fin d → ℝ) : |
| 163 | standardExtendedCoordinate d i (a • x + b • y) = |
| 164 | a * standardExtendedCoordinate d i x + |
| 165 | b * standardExtendedCoordinate d i y := by |
| 166 | refine Fin.lastCases ?_ (fun j ↦ ?_) i |
| 167 | · simp [standardExtendedCoordinate] |
| 168 | · simp [standardExtendedCoordinate] |
| 169 | |
| 170 | /-- The intersection of a finite collection of facet-cover conditions, expressed in the |
| 171 | ambient coordinate vector space. -/ |
| 172 | def standardPuncturedFacetIntersectionSet (d : ℕ) |
| 173 | (I : Finset (Fin (d + 1))) : Set (Fin d → ℝ) := |
| 174 | {x | ∀ i ∈ I, ∃ j : Fin (d + 1), |
| 175 | standardExtendedCoordinate d i x < standardExtendedCoordinate d j x} |
| 176 | |
| 177 | lemma standardFacetIntersectionCenter_mem (d : ℕ) |
| 178 | (I : Finset (Fin (d + 1))) (hI : I ≠ Finset.univ) : |
| 179 | standardFacetIntersectionCenter d I ∈ |
| 180 | standardPuncturedFacetIntersectionSet d I := by |
| 181 | obtain ⟨j, hj⟩ : Iᶜ.Nonempty := |
| 182 | Finset.nonempty_iff_ne_empty.2 fun hc ↦ hI ((Finset.compl_eq_empty_iff I).1 hc) |
| 183 | intro i hi |
| 184 | refine ⟨j, ?_⟩ |
| 185 | rw [standardExtendedCoordinate_intersectionCenter, |
| 186 | standardExtendedCoordinate_intersectionCenter] |
| 187 | simp only [Finset.mem_compl] at hj |
| 188 | by_cases hl : Fin.last d ∈ I <;> simp [hi, hj, hl] |
| 189 | |
| 190 | lemma standardPuncturedFacetIntersectionSet_starConvex (d : ℕ) |
| 191 | (I : Finset (Fin (d + 1))) (hI : I ≠ Finset.univ) : |
| 192 | StarConvex ℝ (standardFacetIntersectionCenter d I) |
| 193 | (standardPuncturedFacetIntersectionSet d I) := by |
| 194 | rw [starConvex_iff_segment_subset] |
| 195 | intro y hy z hz |
| 196 | rw [segment_eq_image] at hz |
| 197 | obtain ⟨b, hb, rfl⟩ := hz |
| 198 | intro i hi |
| 199 | by_cases hb0 : b = 0 |
| 200 | · subst b |
| 201 | simpa using standardFacetIntersectionCenter_mem d I hI i hi |
| 202 | · obtain ⟨j, hj⟩ := hy i hi |
| 203 | refine ⟨j, ?_⟩ |
| 204 | rw [standardExtendedCoordinate_add_smul, |
| 205 | standardExtendedCoordinate_add_smul] |
| 206 | have hcenter : standardExtendedCoordinate d i |
| 207 | (standardFacetIntersectionCenter d I) ≤ |
| 208 | standardExtendedCoordinate d j |
| 209 | (standardFacetIntersectionCenter d I) := by |
| 210 | rw [standardExtendedCoordinate_intersectionCenter, |
| 211 | standardExtendedCoordinate_intersectionCenter] |
| 212 | by_cases hjI : j ∈ I <;> simp [hi, hjI] |
| 213 | have hbpos : 0 < b := lt_of_le_of_ne hb.1 (Ne.symm hb0) |
| 214 | have ha : 0 ≤ 1 - b := sub_nonneg.mpr hb.2 |
| 215 | nlinarith |
| 216 | |
| 217 | lemma standardPuncturedFacetIntersectionSet_ne_zero (d : ℕ) |
| 218 | (I : Finset (Fin (d + 1))) (hI : I.Nonempty) |
| 219 | {x : Fin d → ℝ} |
| 220 | (hx : x ∈ standardPuncturedFacetIntersectionSet d I) : x ≠ 0 := by |
| 221 | obtain ⟨i, hi⟩ := hI |
| 222 | obtain ⟨j, hj⟩ := hx i hi |
| 223 | rintro rfl |
| 224 | have hzeroCoord (k : Fin (d + 1)) : |
| 225 | standardExtendedCoordinate d k (0 : Fin d → ℝ) = 0 := by |
| 226 | refine Fin.lastCases ?_ (fun l ↦ ?_) k <;> simp [standardExtendedCoordinate] |
| 227 | rw [hzeroCoord i, hzeroCoord j] at hj |
| 228 | exact (lt_self_iff_false 0).mp hj |
| 229 | |
| 230 | /-- Every proper intersection of facet-cover members is contractible. -/ |
| 231 | lemma standardPuncturedFacetIntersection_contractibleSpace (d : ℕ) |
| 232 | (I : Finset (Fin (d + 1))) (hI : I ≠ Finset.univ) : |
| 233 | ContractibleSpace (standardPuncturedFacetIntersectionSet d I) := |
| 234 | (standardPuncturedFacetIntersectionSet_starConvex d I hI).contractibleSpace |
| 235 | ⟨standardFacetIntersectionCenter d I, |
| 236 | standardFacetIntersectionCenter_mem d I hI⟩ |
| 237 | |
| 238 | /-- The same facet intersection, now presented as a subspace of punctured coordinate space. -/ |
| 239 | def standardPuncturedFacetIntersectionSubspace (d : ℕ) |
| 240 | (I : Finset (Fin (d + 1))) : Set ((FundamentalClass.Singular.puncturedPair ℝ d).snd) := |
| 241 | {x | x.1 ∈ standardPuncturedFacetIntersectionSet d I} |
| 242 | |
| 243 | /-- The ambient and nested-subspace presentations of a nonempty facet intersection are |
| 244 | homeomorphic. -/ |
| 245 | def standardPuncturedFacetIntersectionHomeomorph (d : ℕ) |
| 246 | (I : Finset (Fin (d + 1))) (hI : I.Nonempty) : |
| 247 | standardPuncturedFacetIntersectionSet d I ≃ₜ |
| 248 | standardPuncturedFacetIntersectionSubspace d I where |
| 249 | toFun x := ⟨⟨x.1, |
| 250 | standardPuncturedFacetIntersectionSet_ne_zero d I hI x.2⟩, x.2⟩ |
| 251 | invFun x := ⟨x.1.1, x.2⟩ |
| 252 | left_inv _ := rfl |
| 253 | right_inv _ := rfl |
| 254 | continuous_toFun := by fun_prop |
| 255 | continuous_invFun := by fun_prop |
| 256 | |
| 257 | /-- A nonempty proper facet intersection is contractible in its nested-subspace presentation. -/ |
| 258 | lemma standardPuncturedFacetIntersectionSubspace_contractibleSpace (d : ℕ) |
| 259 | (I : Finset (Fin (d + 1))) (hI : I.Nonempty) (hproper : I ≠ Finset.univ) : |
| 260 | ContractibleSpace (standardPuncturedFacetIntersectionSubspace d I) := by |
| 261 | let : ContractibleSpace (standardPuncturedFacetIntersectionSet d I) := |
| 262 | standardPuncturedFacetIntersection_contractibleSpace d I hproper |
| 263 | exact (standardPuncturedFacetIntersectionHomeomorph d I hI).symm.contractibleSpace |
| 264 | |
| 265 | /-- Inclusion of facet intersections, contravariant in their index sets. -/ |
| 266 | def standardPuncturedFacetIntersectionMapOfSubset (d : ℕ) |
| 267 | {I J : Finset (Fin (d + 1))} (hIJ : I ⊆ J) : |
| 268 | TopCat.of (standardPuncturedFacetIntersectionSubspace d J) ⟶ |
| 269 | TopCat.of (standardPuncturedFacetIntersectionSubspace d I) := |
| 270 | TopCat.ofHom |
| 271 | ⟨fun x ↦ ⟨x.1, fun i hi ↦ x.2 i (hIJ hi)⟩, |
| 272 | Continuous.subtype_mk continuous_subtype_val _⟩ |
| 273 | |
| 274 | @[reassoc (attr := simp)] |
| 275 | lemma standardPuncturedFacetIntersectionMapOfSubset_comp_inclusion |
| 276 | (d : ℕ) {I J : Finset (Fin (d + 1))} (hIJ : I ⊆ J) : |
| 277 | standardPuncturedFacetIntersectionMapOfSubset d hIJ ≫ |
| 278 | Singular.ExcisionCoverSmall.topologicalSubsetInclusion (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 279 | (standardPuncturedFacetIntersectionSubspace d I) = |
| 280 | Singular.ExcisionCoverSmall.topologicalSubsetInclusion (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 281 | (standardPuncturedFacetIntersectionSubspace d J) := rfl |
| 282 | |
| 283 | /-- Positive-degree integral singular homology of a nonempty proper facet intersection |
| 284 | vanishes. -/ |
| 285 | lemma standardPuncturedFacetIntersection_integralHomology_isZero |
| 286 | (d k : ℕ) (I : Finset (Fin (d + 1))) |
| 287 | (hI : I.Nonempty) (hproper : I ≠ Finset.univ) (hk : k ≠ 0) : |
| 288 | IsZero (((TopCat.toSSet.obj (TopCat.of |
| 289 | (standardPuncturedFacetIntersectionSubspace d I))).chainComplex |
| 290 | (AddCommGrpCat.of ℤ)).homology k) := by |
| 291 | change IsZero (((singularHomologyFunctor AddCommGrpCat k).obj |
| 292 | (AddCommGrpCat.of ℤ)).obj |
| 293 | (TopCat.of (standardPuncturedFacetIntersectionSubspace d I))) |
| 294 | let : ContractibleSpace (standardPuncturedFacetIntersectionSubspace d I) := |
| 295 | standardPuncturedFacetIntersectionSubspace_contractibleSpace d I hI hproper |
| 296 | obtain ⟨e⟩ := ContractibleSpace.hequiv_unit |
| 297 | (standardPuncturedFacetIntersectionSubspace d I) |
| 298 | have hunit := |
| 299 | AlgebraicTopology.isZero_singularHomologyFunctor_of_totallyDisconnectedSpace |
| 300 | AddCommGrpCat k (AddCommGrpCat.of ℤ) (TopCat.of Unit) hk |
| 301 | let : Subsingleton (Singular.SubdivisionAffinePrism.IntegralSingularHomology k Unit) := |
| 302 | AddCommGrpCat.subsingleton_of_isZero hunit |
| 303 | let he := Singular.SubdivisionAffinePrism.integralSingularHomologyEquivOfHomotopyEquiv k e |
| 304 | let : Subsingleton |
| 305 | (Singular.SubdivisionAffinePrism.IntegralSingularHomology k |
| 306 | (standardPuncturedFacetIntersectionSubspace d I)) := |
| 307 | ⟨fun x y ↦ he.injective (Subsingleton.elim _ _)⟩ |
| 308 | exact AddCommGrpCat.isZero_of_subsingleton _ |
| 309 | |
| 310 | /-- Integral singular chains of a nonempty proper facet intersection are exact in positive |
| 311 | degrees. -/ |
| 312 | lemma standardPuncturedFacetIntersection_integralExactAt |
| 313 | (d k : ℕ) (I : Finset (Fin (d + 1))) |
| 314 | (hI : I.Nonempty) (hproper : I ≠ Finset.univ) (hk : k ≠ 0) : |
| 315 | ((TopCat.toSSet.obj (TopCat.of |
| 316 | (standardPuncturedFacetIntersectionSubspace d I))).chainComplex |
| 317 | (AddCommGrpCat.of ℤ)).ExactAt k := by |
| 318 | let K := (TopCat.toSSet.obj (TopCat.of |
| 319 | (standardPuncturedFacetIntersectionSubspace d I))).chainComplex |
| 320 | (AddCommGrpCat.of ℤ) |
| 321 | rw [K.exactAt_iff_isZero_homology] |
| 322 | exact standardPuncturedFacetIntersection_integralHomology_isZero |
| 323 | d k I hI hproper hk |
| 324 | |
| 325 | /-- Every positive-degree integral cycle in a nonempty proper facet intersection has a filler |
| 326 | in that intersection. -/ |
| 327 | lemma exists_standardPuncturedFacetIntersection_integralCycleFiller |
| 328 | (d n : ℕ) (I : Finset (Fin (d + 1))) |
| 329 | (hI : I.Nonempty) (hproper : I ≠ Finset.univ) |
| 330 | (z : AddCommGrpCat.of ℤ ⟶ |
| 331 | ((TopCat.toSSet.obj (TopCat.of |
| 332 | (standardPuncturedFacetIntersectionSubspace d I))).chainComplex |
| 333 | (AddCommGrpCat.of ℤ)).X (n + 1)) |
| 334 | (hz : z ≫ |
| 335 | ((TopCat.toSSet.obj (TopCat.of |
| 336 | (standardPuncturedFacetIntersectionSubspace d I))).chainComplex |
| 337 | (AddCommGrpCat.of ℤ)).d (n + 1) n = 0) : |
| 338 | ∃ p : AddCommGrpCat.of ℤ ⟶ |
| 339 | ((TopCat.toSSet.obj (TopCat.of |
| 340 | (standardPuncturedFacetIntersectionSubspace d I))).chainComplex |
| 341 | (AddCommGrpCat.of ℤ)).X (n + 2), |
| 342 | p ≫ ((TopCat.toSSet.obj (TopCat.of |
| 343 | (standardPuncturedFacetIntersectionSubspace d I))).chainComplex |
| 344 | (AddCommGrpCat.of ℤ)).d (n + 2) (n + 1) = z := by |
| 345 | let K := (TopCat.toSSet.obj (TopCat.of |
| 346 | (standardPuncturedFacetIntersectionSubspace d I))).chainComplex |
| 347 | (AddCommGrpCat.of ℤ) |
| 348 | have hexact : (K.sc' (n + 2) (n + 1) n).Exact := |
| 349 | (K.exactAt_iff' (i := n + 2) (j := n + 1) (k := n) |
| 350 | (by simp) (by simp)).mp |
| 351 | (standardPuncturedFacetIntersection_integralExactAt |
| 352 | d (n + 1) I hI hproper (by lia)) |
| 353 | have hz1 : K.d (n + 1) n (z 1) = 0 := by |
| 354 | simpa using ConcreteCategory.congr_hom hz 1 |
| 355 | obtain ⟨p, hp⟩ := (ShortComplex.ab_exact_iff _).mp hexact (z 1) hz1 |
| 356 | change K.X (n + 2) at p |
| 357 | change K.d (n + 2) (n + 1) p = z 1 at hp |
| 358 | refine ⟨AddCommGrpCat.asHom p, ?_⟩ |
| 359 | apply AddCommGrpCat.int_hom_ext |
| 360 | change K.d (n + 2) (n + 1) ((AddCommGrpCat.asHom p) 1) = z 1 |
| 361 | rwa [AddCommGrpCat.asHom_hom_apply, one_zsmul] |
| 362 | |
| 363 | /-- An integral singular zero-chain with zero component-wise augmentation bounds. -/ |
| 364 | lemma exists_integralSingularZeroChain_filler |
| 365 | (X : TopCat.{0}) |
| 366 | (z : AddCommGrpCat.of ℤ ⟶ |
| 367 | ((TopCat.toSSet.obj X).chainComplex (AddCommGrpCat.of ℤ)).X 0) |
| 368 | (hz : z ≫ SSet.π₀.fromChainComplexXZero |
| 369 | (TopCat.toSSet.obj X) (AddCommGrpCat.of ℤ) = 0) : |
| 370 | ∃ p : AddCommGrpCat.of ℤ ⟶ |
| 371 | ((TopCat.toSSet.obj X).chainComplex (AddCommGrpCat.of ℤ)).X 1, |
| 372 | p ≫ ((TopCat.toSSet.obj X).chainComplex |
| 373 | (AddCommGrpCat.of ℤ)).d 1 0 = z := by |
| 374 | let K := (TopCat.toSSet.obj X).chainComplex (AddCommGrpCat.of ℤ) |
| 375 | let q := SSet.π₀.fromChainComplexXZero |
| 376 | (TopCat.toSSet.obj X) (AddCommGrpCat.of ℤ) |
| 377 | let S : ShortComplex AddCommGrpCat := |
| 378 | ShortComplex.mk (K.d 1 0) q (SSet.π₀.d_fromChainComplexXZero |
| 379 | (TopCat.toSSet.obj X) (AddCommGrpCat.of ℤ) 1) |
| 380 | have hexact : S.Exact := ShortComplex.exact_of_g_is_cokernel S |
| 381 | (SSet.isColimitCokernelCoforkChainComplexDOneZero |
| 382 | (TopCat.toSSet.obj X) (AddCommGrpCat.of ℤ)) |
| 383 | have hz1 : q (z 1) = 0 := by |
| 384 | simpa [q] using ConcreteCategory.congr_hom hz 1 |
| 385 | obtain ⟨p, hp⟩ := (S.ab_exact_iff).mp hexact (z 1) hz1 |
| 386 | change K.X 1 at p |
| 387 | change K.d 1 0 p = z 1 at hp |
| 388 | refine ⟨AddCommGrpCat.asHom p, ?_⟩ |
| 389 | apply AddCommGrpCat.int_hom_ext |
| 390 | change K.d 1 0 ((AddCommGrpCat.asHom p) 1) = z 1 |
| 391 | rwa [AddCommGrpCat.asHom_hom_apply, one_zsmul] |
| 392 | |
| 393 | open scoped Classical in |
| 394 | /-- Cover indices through which a cover-small singular simplex factors. -/ |
| 395 | def standardFacetCarrier (d : ℕ) {n : SimplexCategoryᵒᵖ} |
| 396 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 397 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).obj n) : |
| 398 | Finset (Fin (d + 1)) := |
| 399 | Finset.univ.filter fun i ↦ x.1 ∈ |
| 400 | (SSet.Subcomplex.range (TopCat.toSSet.map |
| 401 | (Singular.ExcisionCoverSmall.topologicalSubsetInclusion (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 402 | (standardPuncturedFacetCover d i)))).obj n |
| 403 | |
| 404 | lemma standardFacetCarrier_nonempty (d : ℕ) {n : SimplexCategoryᵒᵖ} |
| 405 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 406 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).obj n) : |
| 407 | (standardFacetCarrier d x).Nonempty := by |
| 408 | classical |
| 409 | have hx := x.2 |
| 410 | rw [Singular.ExcisionCoverSmall.mem_coverSmallSingularSubcomplex_iff] at hx |
| 411 | obtain ⟨i, hi⟩ := hx |
| 412 | refine ⟨i, Finset.mem_filter.mpr ⟨Finset.mem_univ i, hi⟩⟩ |
| 413 | |
| 414 | lemma standardFacetCarrier_ne_univ (d : ℕ) {n : SimplexCategoryᵒᵖ} |
| 415 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 416 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).obj n) : |
| 417 | standardFacetCarrier d x ≠ Finset.univ := by |
| 418 | classical |
| 419 | intro hall |
| 420 | let t : Convexity.StdSimplex ℝ (Fin (n.unop.len + 1)) := Convexity.StdSimplex.barycenter |
| 421 | let p : (FundamentalClass.Singular.puncturedPair ℝ d).snd := |
| 422 | ((FundamentalClass.Singular.puncturedPair ℝ d).snd.toSSetObjEquiv n x.1) t |
| 423 | apply not_forall_mem_standardPuncturedFacetCover d p |
| 424 | intro i |
| 425 | have hi : i ∈ standardFacetCarrier d x := by rw [hall]; simp |
| 426 | rw [standardFacetCarrier, Finset.mem_filter] at hi |
| 427 | exact (Singular.SubsetChains.singularSimplex_mem_range_subset |
| 428 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d i) x.1).mp hi.2 ⟨t, rfl⟩ |
| 429 | |
| 430 | lemma standardFacetCarrier_mono_map (d : ℕ) |
| 431 | {m n : SimplexCategory} (f : m ⟶ n) |
| 432 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 433 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).obj |
| 434 | (Opposite.op n)) : |
| 435 | standardFacetCarrier d x ⊆ |
| 436 | standardFacetCarrier d |
| 437 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 438 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).map f.op x) := by |
| 439 | classical |
| 440 | intro i hi |
| 441 | rw [standardFacetCarrier, Finset.mem_filter] at hi ⊢ |
| 442 | exact ⟨Finset.mem_univ i, (SSet.Subcomplex.range (TopCat.toSSet.map |
| 443 | (Singular.ExcisionCoverSmall.topologicalSubsetInclusion (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 444 | (standardPuncturedFacetCover d i)))).map f.op hi.2⟩ |
| 445 | |
| 446 | lemma standardFacetCarrier_mono_delta (d n : ℕ) (i : Fin (n + 2)) |
| 447 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 448 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) : |
| 449 | standardFacetCarrier d x ⊆ |
| 450 | standardFacetCarrier d |
| 451 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 452 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 453 | (standardPuncturedFacetCover d) : SSet).δ i x) := |
| 454 | standardFacetCarrier_mono_map d (SimplexCategory.δ i) x |
| 455 | |
| 456 | /-- The singular simplex represented by `x`, on every simplicial degree, lies in the |
| 457 | intersection of the cover members containing `x`. -/ |
| 458 | lemma standardFacetCarrierSource_image_subset_intersection |
| 459 | (d : ℕ) {n : ℕ} |
| 460 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 461 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) |
| 462 | (q : SimplexCategoryᵒᵖ) (y : (Δ[n] : SSet.{0}).obj q) : |
| 463 | Set.range ((FundamentalClass.Singular.puncturedPair ℝ d).snd.toSSetObjEquiv q |
| 464 | ((SSet.yonedaEquiv.symm x.1).app q y)) ⊆ |
| 465 | standardPuncturedFacetIntersectionSubspace d |
| 466 | (standardFacetCarrier d x) := by |
| 467 | classical |
| 468 | rintro _ ⟨t, rfl⟩ i hi |
| 469 | rw [standardFacetCarrier, Finset.mem_filter] at hi |
| 470 | apply (Singular.SubsetChains.singularSimplex_mem_range_subset |
| 471 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d i) x.1).mp hi.2 |
| 472 | let f : q.unop ⟶ SimplexCategory.mk n := SSet.stdSimplex.objEquiv y |
| 473 | refine ⟨Convexity.StdSimplex.map f t, ?_⟩ |
| 474 | have hy : y = SSet.stdSimplex.objEquiv.symm f := |
| 475 | (SSet.stdSimplex.objEquiv.symm_apply_apply y).symm |
| 476 | rw [hy, SSet.yonedaEquiv_symm_app_objEquiv_symm, |
| 477 | TopCat.toSSetObjEquiv_naturality_apply] |
| 478 | |
| 479 | /-- The source singular simplex lifted to the contractible intersection assigned by its |
| 480 | carrier. -/ |
| 481 | def standardFacetCarrierSourceIntersectionMap |
| 482 | (d : ℕ) {n : ℕ} |
| 483 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 484 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) : |
| 485 | (Δ[n] : SSet.{0}) ⟶ |
| 486 | TopCat.toSSet.obj (TopCat.of |
| 487 | (standardPuncturedFacetIntersectionSubspace d |
| 488 | (standardFacetCarrier d x))) := |
| 489 | Singular.SubsetChains.singularSimplicialMapLiftToSubset _ (FundamentalClass.Singular.puncturedPair ℝ d).snd _ |
| 490 | (SSet.yonedaEquiv.symm x.1) |
| 491 | (standardFacetCarrierSource_image_subset_intersection d x) |
| 492 | |
| 493 | /-- The lifted source simplices are compatible with faces after restricting the assigned |
| 494 | facet intersection. -/ |
| 495 | lemma standardFacetCarrierSourceIntersectionMap_delta |
| 496 | (d n : ℕ) (i : Fin (n + 2)) |
| 497 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 498 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) : |
| 499 | standardFacetCarrierSourceIntersectionMap d |
| 500 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 501 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).δ i x) ≫ |
| 502 | TopCat.toSSet.map (standardPuncturedFacetIntersectionMapOfSubset d |
| 503 | (standardFacetCarrier_mono_delta d n i x)) = |
| 504 | SSet.stdSimplex.map (SimplexCategory.δ i) ≫ |
| 505 | standardFacetCarrierSourceIntersectionMap d x := by |
| 506 | let hsub := standardFacetCarrier_mono_delta d n i x |
| 507 | change standardFacetCarrier d x ⊆ |
| 508 | standardFacetCarrier d |
| 509 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 510 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).δ i x) at hsub |
| 511 | change standardFacetCarrierSourceIntersectionMap d |
| 512 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 513 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).δ i x) ≫ |
| 514 | TopCat.toSSet.map (standardPuncturedFacetIntersectionMapOfSubset d hsub) = _ |
| 515 | apply Singular.SubsetChains.singularSimplicialMapToSubset_ext _ (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 516 | (standardPuncturedFacetIntersectionSubspace d (standardFacetCarrier d x)) |
| 517 | calc |
| 518 | _ = standardFacetCarrierSourceIntersectionMap d |
| 519 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 520 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 521 | (standardPuncturedFacetCover d) : SSet).δ i x) ≫ |
| 522 | TopCat.toSSet.map |
| 523 | (Singular.ExcisionCoverSmall.topologicalSubsetInclusion (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 524 | (standardPuncturedFacetIntersectionSubspace d |
| 525 | (standardFacetCarrier d |
| 526 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 527 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 528 | (standardPuncturedFacetCover d) : SSet).δ i x)))) := by |
| 529 | rw [Category.assoc, ← Functor.map_comp, |
| 530 | standardPuncturedFacetIntersectionMapOfSubset_comp_inclusion] |
| 531 | _ = SSet.yonedaEquiv.symm |
| 532 | (((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 533 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 534 | (standardPuncturedFacetCover d) : SSet).δ i x).1) := by |
| 535 | unfold standardFacetCarrierSourceIntersectionMap |
| 536 | rw [Singular.SubsetChains.singularSimplicialMapLiftToSubset_comp_inclusion] |
| 537 | _ = SSet.stdSimplex.map (SimplexCategory.δ i) ≫ |
| 538 | SSet.yonedaEquiv.symm x.1 := |
| 539 | (SSet.stdSimplex.δ_comp_yonedaEquiv_symm x.1 i).symm |
| 540 | _ = _ := by |
| 541 | unfold standardFacetCarrierSourceIntersectionMap |
| 542 | rw [Category.assoc, |
| 543 | Singular.SubsetChains.singularSimplicialMapLiftToSubset_comp_inclusion] |
| 544 | |
| 545 | /-- Subdivision followed by last vertex, transported along the lifted source simplex. -/ |
| 546 | def standardFacetCarrierSourceSubdivisionIntersectionMap |
| 547 | (d : ℕ) {n : ℕ} |
| 548 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 549 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) : |
| 550 | SimplexCategory.sd.{0}.obj (SimplexCategory.mk n) ⟶ |
| 551 | TopCat.toSSet.obj (TopCat.of |
| 552 | (standardPuncturedFacetIntersectionSubspace d |
| 553 | (standardFacetCarrier d x))) := |
| 554 | Singular.SubdivisionBasic.simplexSubdivisionLastVertex.app (SimplexCategory.mk n) ≫ |
| 555 | standardFacetCarrierSourceIntersectionMap d x |
| 556 | |
| 557 | /-- The lifted subdivision--last-vertex source maps are compatible with faces. -/ |
| 558 | lemma standardFacetCarrierSourceSubdivisionIntersectionMap_delta |
| 559 | (d n : ℕ) (i : Fin (n + 2)) |
| 560 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 561 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) : |
| 562 | standardFacetCarrierSourceSubdivisionIntersectionMap d |
| 563 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 564 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).δ i x) ≫ |
| 565 | TopCat.toSSet.map (standardPuncturedFacetIntersectionMapOfSubset d |
| 566 | (standardFacetCarrier_mono_delta d n i x)) = |
| 567 | SimplexCategory.sd.{0}.map (SimplexCategory.δ i) ≫ |
| 568 | standardFacetCarrierSourceSubdivisionIntersectionMap d x := by |
| 569 | unfold standardFacetCarrierSourceSubdivisionIntersectionMap |
| 570 | rw [Category.assoc, standardFacetCarrierSourceIntersectionMap_delta, ← Category.assoc, |
| 571 | ← Singular.SubdivisionBasic.simplexSubdivisionLastVertex.naturality, Category.assoc] |
| 572 | |
| 573 | open scoped Classical in |
| 574 | /-- Cover indices which contain the images of every vertex in `A`. -/ |
| 575 | def standardFacetCarrierAtFace (d : ℕ) {n : ℕ} |
| 576 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 577 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) |
| 578 | (A : NonemptyFiniteChains (ULift.{0} (Fin (n + 1)))) : |
| 579 | Finset (Fin (d + 1)) := |
| 580 | Finset.univ.filter fun i ↦ |
| 581 | ∀ a ∈ A.finset, |
| 582 | ((FundamentalClass.Singular.puncturedPair ℝ d).snd.toSSetObjEquiv _ x.1) |
| 583 | (Convexity.StdSimplex.single a.down) ∈ |
| 584 | standardPuncturedFacetCover d i |
| 585 | |
| 586 | lemma standardFacetCarrierAtFace_nonempty (d : ℕ) {n : ℕ} |
| 587 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 588 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) |
| 589 | (A : NonemptyFiniteChains (ULift.{0} (Fin (n + 1)))) : |
| 590 | (standardFacetCarrierAtFace d x A).Nonempty := by |
| 591 | classical |
| 592 | obtain ⟨i, hi⟩ := standardFacetCarrier_nonempty d x |
| 593 | rw [standardFacetCarrier, Finset.mem_filter] at hi |
| 594 | refine ⟨i, Finset.mem_filter.mpr ⟨Finset.mem_univ i, fun a _ ↦ ?_⟩⟩ |
| 595 | exact (Singular.SubsetChains.singularSimplex_mem_range_subset |
| 596 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d i) x.1).mp hi.2 |
| 597 | ⟨Convexity.StdSimplex.single a.down, rfl⟩ |
| 598 | |
| 599 | lemma standardFacetCarrier_subset_atFace (d : ℕ) {n : ℕ} |
| 600 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 601 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) |
| 602 | (A : NonemptyFiniteChains (ULift.{0} (Fin (n + 1)))) : |
| 603 | standardFacetCarrier d x ⊆ standardFacetCarrierAtFace d x A := by |
| 604 | classical |
| 605 | intro i hi |
| 606 | rw [standardFacetCarrier, Finset.mem_filter] at hi |
| 607 | rw [standardFacetCarrierAtFace, Finset.mem_filter] |
| 608 | refine ⟨Finset.mem_univ i, fun a _ ↦ ?_⟩ |
| 609 | exact (Singular.SubsetChains.singularSimplex_mem_range_subset |
| 610 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d i) x.1).mp hi.2 |
| 611 | ⟨Convexity.StdSimplex.single a.down, rfl⟩ |
| 612 | |
| 613 | lemma standardFacetCarrierAtFace_ne_univ (d : ℕ) {n : ℕ} |
| 614 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 615 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) |
| 616 | (A : NonemptyFiniteChains (ULift.{0} (Fin (n + 1)))) : |
| 617 | standardFacetCarrierAtFace d x A ≠ Finset.univ := by |
| 618 | classical |
| 619 | intro hall |
| 620 | obtain ⟨a, ha⟩ := A.nonempty |
| 621 | let p : (FundamentalClass.Singular.puncturedPair ℝ d).snd := |
| 622 | ((FundamentalClass.Singular.puncturedPair ℝ d).snd.toSSetObjEquiv _ x.1) |
| 623 | (Convexity.StdSimplex.single a.down) |
| 624 | apply not_forall_mem_standardPuncturedFacetCover d p |
| 625 | intro i |
| 626 | have hi : i ∈ standardFacetCarrierAtFace d x A := by rw [hall]; simp |
| 627 | rw [standardFacetCarrierAtFace, Finset.mem_filter] at hi |
| 628 | exact hi.2 a ha |
| 629 | |
| 630 | lemma standardFacetCarrierAtFace_antitone (d : ℕ) {n : ℕ} |
| 631 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 632 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) |
| 633 | {A B : NonemptyFiniteChains (ULift.{0} (Fin (n + 1)))} (hAB : A ≤ B) : |
| 634 | standardFacetCarrierAtFace d x B ⊆ standardFacetCarrierAtFace d x A := by |
| 635 | classical |
| 636 | intro i hi |
| 637 | rw [standardFacetCarrierAtFace, Finset.mem_filter] at hi ⊢ |
| 638 | exact ⟨Finset.mem_univ i, fun a ha ↦ hi.2 a (hAB ha)⟩ |
| 639 | |
| 640 | /-- The complementary carrier is a nonempty proper set of vertices and grows with the face. -/ |
| 641 | def standardFacetComplementCarrier (d : ℕ) {n : ℕ} |
| 642 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 643 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) |
| 644 | (A : NonemptyFiniteChains (ULift.{0} (Fin (n + 1)))) : |
| 645 | Finset (Fin (d + 1)) := |
| 646 | (standardFacetCarrierAtFace d x A)ᶜ |
| 647 | |
| 648 | lemma standardFacetComplementCarrier_nonempty (d : ℕ) {n : ℕ} |
| 649 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 650 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) |
| 651 | (A : NonemptyFiniteChains (ULift.{0} (Fin (n + 1)))) : |
| 652 | (standardFacetComplementCarrier d x A).Nonempty := by |
| 653 | rw [standardFacetComplementCarrier, Finset.nonempty_iff_ne_empty, |
| 654 | ne_eq, Finset.compl_eq_empty_iff] |
| 655 | exact standardFacetCarrierAtFace_ne_univ d x A |
| 656 | |
| 657 | lemma standardFacetComplementCarrier_mono (d : ℕ) {n : ℕ} |
| 658 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 659 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) : |
| 660 | Monotone (standardFacetComplementCarrier d x) := by |
| 661 | intro A B hAB |
| 662 | exact Finset.compl_subset_compl.mpr |
| 663 | (standardFacetCarrierAtFace_antitone d x hAB) |
| 664 | |
| 665 | /-- The maximum vertex in the complementary carrier. -/ |
| 666 | def standardFacetComplementCarrierMax (d : ℕ) {n : ℕ} |
| 667 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 668 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) |
| 669 | (A : NonemptyFiniteChains (ULift.{0} (Fin (n + 1)))) : Fin (d + 1) := |
| 670 | (standardFacetComplementCarrier d x A).max' |
| 671 | (standardFacetComplementCarrier_nonempty d x A) |
| 672 | |
| 673 | lemma standardFacetComplementCarrierMax_mono (d : ℕ) {n : ℕ} |
| 674 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 675 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) : |
| 676 | Monotone (standardFacetComplementCarrierMax d x) := by |
| 677 | intro A B hAB |
| 678 | apply Finset.max'_le |
| 679 | intro i hi |
| 680 | exact Finset.le_max' _ i (standardFacetComplementCarrier_mono d x hAB hi) |
| 681 | |
| 682 | /-- The largest vertex outside the face carrier, monotone as the face grows. -/ |
| 683 | def standardFacetCarrierVertexOrderHom (d : ℕ) {n : ℕ} |
| 684 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 685 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) : |
| 686 | NonemptyFiniteChains (ULift.{0} (Fin (n + 1))) →o |
| 687 | ULift.{0} (Fin (d + 1)) where |
| 688 | toFun A := ULift.up (standardFacetComplementCarrierMax d x A) |
| 689 | monotone' _ _ hAB := standardFacetComplementCarrierMax_mono d x hAB |
| 690 | |
| 691 | /-- The carrier map from the subdivision of a simplex to the standard simplex on cover |
| 692 | indices. -/ |
| 693 | def standardFacetCarrierSimplexMap (d : ℕ) {n : ℕ} |
| 694 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 695 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) : |
| 696 | SimplexCategory.sd.{0}.obj (SimplexCategory.mk n) ⟶ (Δ[d] : SSet.{0}) := |
| 697 | nerveMap (standardFacetCarrierVertexOrderHom d x).monotone.functor ≫ |
| 698 | (SSet.stdSimplex.isoNerve d).inv |
| 699 | |
| 700 | @[simp] |
| 701 | lemma standardFacetCarrierSimplexMap_objEquiv_apply (d : ℕ) {n k : ℕ} |
| 702 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 703 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) |
| 704 | (F : (SimplexCategory.sd.{0}.obj (SimplexCategory.mk n)) _⦋k⦌) |
| 705 | (r : Fin (k + 1)) : |
| 706 | (SSet.stdSimplex.objEquiv |
| 707 | ((standardFacetCarrierSimplexMap d x).app _ F)).toOrderHom r = |
| 708 | ((standardFacetCarrierVertexOrderHom d x) (F.obj r)).down := |
| 709 | rfl |
| 710 | |
| 711 | @[simp] |
| 712 | lemma standardFacetCarrierSimplexMap_apply (d : ℕ) {n k : ℕ} |
| 713 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 714 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) |
| 715 | (F : (SimplexCategory.sd.{0}.obj (SimplexCategory.mk n)) _⦋k⦌) |
| 716 | (r : Fin (k + 1)) : |
| 717 | ((standardFacetCarrierSimplexMap d x).app _ F) r = |
| 718 | standardFacetComplementCarrierMax d x (F.obj r) := rfl |
| 719 | |
| 720 | lemma standardFacetComplementCarrierMax_mem (d : ℕ) {n : ℕ} |
| 721 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 722 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) |
| 723 | (A : NonemptyFiniteChains (ULift.{0} (Fin (n + 1)))) : |
| 724 | standardFacetComplementCarrierMax d x A ∈ |
| 725 | standardFacetComplementCarrier d x A := |
| 726 | Finset.max'_mem _ _ |
| 727 | |
| 728 | /-- Every simplex produced by the carrier misses a cover vertex and hence lies in the |
| 729 | simplicial boundary. -/ |
| 730 | lemma standardFacetCarrierSimplexMap_mem_boundary (d : ℕ) {n k : ℕ} |
| 731 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 732 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) |
| 733 | (F : (SimplexCategory.sd.{0}.obj (SimplexCategory.mk n)) _⦋k⦌) : |
| 734 | (standardFacetCarrierSimplexMap d x).app _ F ∈ (∂Δ[d]).obj |
| 735 | (Opposite.op (SimplexCategory.mk k)) := by |
| 736 | rw [SSet.mem_boundary_iff_notMem_range] |
| 737 | let A := F.obj (Fin.last k) |
| 738 | obtain ⟨j, hj⟩ := standardFacetCarrierAtFace_nonempty d x A |
| 739 | refine ⟨j, ?_⟩ |
| 740 | rintro ⟨r, hr⟩ |
| 741 | have hmaxmem := standardFacetComplementCarrierMax_mem d x (F.obj r) |
| 742 | have hjface : j ∈ standardFacetComplementCarrier d x (F.obj r) := by |
| 743 | rw [← hr] |
| 744 | simpa only [standardFacetCarrierSimplexMap_apply] using hmaxmem |
| 745 | have hjmax : j ∈ standardFacetComplementCarrier d x A := |
| 746 | standardFacetComplementCarrier_mono d x (F.monotone (Fin.le_last r)) hjface |
| 747 | exact (Finset.mem_compl.mp hjmax) hj |
| 748 | |
| 749 | /-- The carrier map lifted to the simplicial boundary of the cover-index simplex. -/ |
| 750 | def standardFacetCarrierBoundarySimplexMap (d : ℕ) {n : ℕ} |
| 751 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 752 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) : |
| 753 | SimplexCategory.sd.{0}.obj (SimplexCategory.mk n) ⟶ (∂Δ[d] : SSet.{0}) := |
| 754 | SSet.Subcomplex.lift (standardFacetCarrierSimplexMap d x) (by |
| 755 | rintro q y ⟨F, rfl⟩ |
| 756 | exact standardFacetCarrierSimplexMap_mem_boundary d x F) |
| 757 | |
| 758 | @[reassoc (attr := simp)] |
| 759 | lemma standardFacetCarrierBoundarySimplexMap_comp_inclusion (d : ℕ) {n : ℕ} |
| 760 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 761 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) : |
| 762 | standardFacetCarrierBoundarySimplexMap d x ≫ (∂Δ[d]).ι = |
| 763 | standardFacetCarrierSimplexMap d x := rfl |
| 764 | |
| 765 | /-- Every vertex chosen by the carrier avoids every cover index containing the original |
| 766 | simplex. -/ |
| 767 | lemma standardFacetCarrierBoundarySimplexMap_avoids_carrier |
| 768 | (d : ℕ) {n k : ℕ} |
| 769 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 770 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) |
| 771 | (F : (SimplexCategory.sd.{0}.obj (SimplexCategory.mk n)).obj |
| 772 | (Opposite.op (SimplexCategory.mk k))) |
| 773 | (i : Fin (d + 1)) (hi : i ∈ standardFacetCarrier d x) : |
| 774 | i ∉ Set.range |
| 775 | ((standardFacetCarrierBoundarySimplexMap d x).app _ F).1 := by |
| 776 | rintro ⟨r, hr⟩ |
| 777 | have himax := standardFacetComplementCarrierMax_mem d x (F.obj r) |
| 778 | change standardFacetComplementCarrierMax d x (F.obj r) ∈ |
| 779 | (standardFacetCarrierAtFace d x (F.obj r))ᶜ at himax |
| 780 | have hvalue := standardFacetCarrierSimplexMap_apply d x F r |
| 781 | have hinclusion := congrArg |
| 782 | (fun f : SimplexCategory.sd.{0}.obj (SimplexCategory.mk n) ⟶ |
| 783 | (Δ[d] : SSet.{0}) ↦ f.app _ F) |
| 784 | (standardFacetCarrierBoundarySimplexMap_comp_inclusion d x) |
| 785 | change ((standardFacetCarrierBoundarySimplexMap d x).app _ F).1 = |
| 786 | (standardFacetCarrierSimplexMap d x).app _ F at hinclusion |
| 787 | have heq : standardFacetComplementCarrierMax d x (F.obj r) = i := |
| 788 | hvalue.symm.trans hr |
| 789 | apply Finset.mem_compl.mp himax |
| 790 | rw [heq] |
| 791 | exact standardFacetCarrier_subset_atFace d x (F.obj r) hi |
| 792 | |
| 793 | /-- The vertex injection underlying a codimension-one face. -/ |
| 794 | def standardFaceVertexOrderHom (n : ℕ) (i : Fin (n + 2)) : |
| 795 | ULift.{0} (Fin (n + 1)) →o ULift.{0} (Fin (n + 2)) := |
| 796 | (SimplexCategory.toPartOrd.{0}.map (SimplexCategory.δ i)).hom |
| 797 | |
| 798 | @[simp] |
| 799 | lemma standardFaceVertexOrderHom_apply (n : ℕ) (i : Fin (n + 2)) |
| 800 | (a : ULift.{0} (Fin (n + 1))) : |
| 801 | standardFaceVertexOrderHom n i a = ULift.up (i.succAbove a.down) := |
| 802 | rfl |
| 803 | |
| 804 | @[simp] |
| 805 | lemma coverSmallFacet_toSSetObjEquiv_delta_vertex (d n : ℕ) (i : Fin (n + 2)) |
| 806 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 807 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) |
| 808 | (a : Fin (n + 1)) : |
| 809 | ((FundamentalClass.Singular.puncturedPair ℝ d).snd.toSSetObjEquiv _ |
| 810 | (((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 811 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).δ i x).1)) |
| 812 | (Convexity.StdSimplex.single a) = |
| 813 | ((FundamentalClass.Singular.puncturedPair ℝ d).snd.toSSetObjEquiv _ x.1) |
| 814 | (Convexity.StdSimplex.single (i.succAbove a)) := by |
| 815 | change ((FundamentalClass.Singular.puncturedPair ℝ d).snd.toSSetObjEquiv _ |
| 816 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd).δ i x.1)) |
| 817 | (Convexity.StdSimplex.single a) = _ |
| 818 | rw [TopCat.toSSetObjEquiv_δ_apply, Convexity.StdSimplex.map_single] |
| 819 | |
| 820 | /-- Vertex carriers commute exactly with taking a codimension-one face. -/ |
| 821 | lemma standardFacetCarrierAtFace_delta (d n : ℕ) (i : Fin (n + 2)) |
| 822 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 823 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) |
| 824 | (A : NonemptyFiniteChains (ULift.{0} (Fin (n + 1)))) : |
| 825 | standardFacetCarrierAtFace d |
| 826 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 827 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).δ i x) A = |
| 828 | standardFacetCarrierAtFace d x |
| 829 | (A.map (standardFaceVertexOrderHom n i)) := by |
| 830 | ext j |
| 831 | simp only [standardFacetCarrierAtFace, Finset.mem_filter, |
| 832 | Finset.mem_univ, true_and] |
| 833 | constructor |
| 834 | · intro h b hb |
| 835 | rw [NonemptyFiniteChains.mem_map_iff] at hb |
| 836 | obtain ⟨a, ha, rfl⟩ := hb |
| 837 | simpa only [standardFaceVertexOrderHom_apply, ULift.down_up, |
| 838 | coverSmallFacet_toSSetObjEquiv_delta_vertex] using h a ha |
| 839 | · intro h a ha |
| 840 | have hb := h (standardFaceVertexOrderHom n i a) |
| 841 | ((NonemptyFiniteChains.mem_map_iff A (standardFaceVertexOrderHom n i) _).mpr |
| 842 | ⟨a, ha, rfl⟩) |
| 843 | simpa only [standardFaceVertexOrderHom_apply, ULift.down_up, |
| 844 | coverSmallFacet_toSSetObjEquiv_delta_vertex] using hb |
| 845 | |
| 846 | lemma standardFacetComplementCarrierMax_delta (d n : ℕ) (i : Fin (n + 2)) |
| 847 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 848 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) |
| 849 | (A : NonemptyFiniteChains (ULift.{0} (Fin (n + 1)))) : |
| 850 | standardFacetComplementCarrierMax d |
| 851 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 852 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).δ i x) A = |
| 853 | standardFacetComplementCarrierMax d x |
| 854 | (A.map (standardFaceVertexOrderHom n i)) := by |
| 855 | have hcomp : standardFacetComplementCarrier d |
| 856 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 857 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).δ i x) A = |
| 858 | standardFacetComplementCarrier d x |
| 859 | (A.map (standardFaceVertexOrderHom n i)) := |
| 860 | congrArg (fun s : Finset (Fin (d + 1)) ↦ sᶜ) |
| 861 | (standardFacetCarrierAtFace_delta d n i x A) |
| 862 | unfold standardFacetComplementCarrierMax |
| 863 | simp only [hcomp] |
| 864 | |
| 865 | /-- The carrier maps are natural for the codimension-one maps which occur in the chain |
| 866 | differential. -/ |
| 867 | lemma standardFacetCarrierSimplexMap_delta (d n : ℕ) (i : Fin (n + 2)) |
| 868 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 869 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) : |
| 870 | SimplexCategory.sd.{0}.map (SimplexCategory.δ i) ≫ |
| 871 | standardFacetCarrierSimplexMap d x = |
| 872 | standardFacetCarrierSimplexMap d |
| 873 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 874 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).δ i x) := by |
| 875 | ext q F |
| 876 | apply SSet.stdSimplex.objEquiv.injective |
| 877 | apply SimplexCategory.Hom.ext |
| 878 | apply OrderHom.ext |
| 879 | funext r |
| 880 | change (SSet.stdSimplex.objEquiv |
| 881 | ((standardFacetCarrierSimplexMap d x).app _ |
| 882 | ((SimplexCategory.sd.{0}.map (SimplexCategory.δ i)).app _ F))).toOrderHom r = |
| 883 | (SSet.stdSimplex.objEquiv |
| 884 | ((standardFacetCarrierSimplexMap d |
| 885 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 886 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).δ i x)).app _ |
| 887 | F)).toOrderHom r |
| 888 | change standardFacetComplementCarrierMax d x |
| 889 | ((F.obj r).map (standardFaceVertexOrderHom n i)) = |
| 890 | standardFacetComplementCarrierMax d |
| 891 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 892 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).δ i x) |
| 893 | (F.obj r) |
| 894 | exact (standardFacetComplementCarrierMax_delta d n i x (F.obj r)).symm |
| 895 | |
| 896 | lemma standardFacetCarrierBoundarySimplexMap_delta (d n : ℕ) (i : Fin (n + 2)) |
| 897 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 898 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) : |
| 899 | SimplexCategory.sd.{0}.map (SimplexCategory.δ i) ≫ |
| 900 | standardFacetCarrierBoundarySimplexMap d x = |
| 901 | standardFacetCarrierBoundarySimplexMap d |
| 902 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 903 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).δ i x) := by |
| 904 | apply (cancel_mono (∂Δ[d]).ι).mp |
| 905 | simpa only [Category.assoc, |
| 906 | standardFacetCarrierBoundarySimplexMap_comp_inclusion] using |
| 907 | standardFacetCarrierSimplexMap_delta d n i x |
| 908 | |
| 909 | /-- The signed barycentric carrier chain attached to one cover-small simplex. -/ |
| 910 | def standardFacetCarrierSimplexChain (d n : ℕ) |
| 911 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 912 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) : |
| 913 | AddCommGrpCat.of ℤ ⟶ ((∂Δ[d] : SSet.{0}).chainComplex |
| 914 | (AddCommGrpCat.of ℤ)).X n := |
| 915 | Singular.SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain n ≫ |
| 916 | (SSet.chainComplexMap (standardFacetCarrierBoundarySimplexMap d x) |
| 917 | (AddCommGrpCat.of ℤ)).f n |
| 918 | |
| 919 | /-- The degreewise carrier map on integral cover-small chains. -/ |
| 920 | def standardFacetCarrierComponent (d n : ℕ) : |
| 921 | (Singular.ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex |
| 922 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d)).X n ⟶ |
| 923 | ((∂Δ[d] : SSet.{0}).chainComplex (AddCommGrpCat.of ℤ)).X n := |
| 924 | Sigma.desc (standardFacetCarrierSimplexChain d n) |
| 925 | |
| 926 | @[reassoc (attr := simp)] |
| 927 | lemma iota_standardFacetCarrierComponent (d n : ℕ) |
| 928 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 929 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) : |
| 930 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 931 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).ιChainComplex x ≫ |
| 932 | standardFacetCarrierComponent d n = |
| 933 | standardFacetCarrierSimplexChain d n x := |
| 934 | Sigma.ι_comp_desc _ _ |
| 935 | |
| 936 | lemma standardFacetCarrierComponent_comm_d (d n : ℕ) : |
| 937 | standardFacetCarrierComponent d (n + 1) ≫ |
| 938 | ((∂Δ[d] : SSet.{0}).chainComplex |
| 939 | (AddCommGrpCat.of ℤ)).d (n + 1) n = |
| 940 | (Singular.ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex |
| 941 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 942 | (standardPuncturedFacetCover d)).d (n + 1) n ≫ |
| 943 | standardFacetCarrierComponent d n := by |
| 944 | let K := (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 945 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) |
| 946 | apply K.chainComplex_hom_ext |
| 947 | intro x |
| 948 | rw [← Category.assoc, iota_standardFacetCarrierComponent, standardFacetCarrierSimplexChain, |
| 949 | Category.assoc, (SSet.chainComplexMap (standardFacetCarrierBoundarySimplexMap d x) |
| 950 | (AddCommGrpCat.of ℤ)).comm (n + 1) n, ← Category.assoc, |
| 951 | Singular.SubdivisionBarycentricOuterFaces.barycentricFundamentalBoundaryIdentity n, Singular.SubdivisionBarycentricAllDegrees.subdividedSimplexAlternatingFaceChain, |
| 952 | Preadditive.sum_comp] |
| 953 | simp_rw [Preadditive.zsmul_comp, Category.assoc] |
| 954 | rw [← Category.assoc, SSet.ιChainComplex_d, Preadditive.sum_comp] |
| 955 | dsimp only [K] |
| 956 | simp_rw [Preadditive.zsmul_comp, iota_standardFacetCarrierComponent] |
| 957 | refine Finset.sum_congr rfl fun i _ ↦ ?_ |
| 958 | rw [standardFacetCarrierSimplexChain] |
| 959 | have hcomp : |
| 960 | (SSet.chainComplexMap |
| 961 | (SimplexCategory.sd.{0}.map (SimplexCategory.δ i)) |
| 962 | (AddCommGrpCat.of ℤ)).f n ≫ |
| 963 | (SSet.chainComplexMap (standardFacetCarrierBoundarySimplexMap d x) |
| 964 | (AddCommGrpCat.of ℤ)).f n = |
| 965 | (SSet.chainComplexMap |
| 966 | (standardFacetCarrierBoundarySimplexMap d |
| 967 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 968 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 969 | (standardPuncturedFacetCover d) : SSet).δ i x)) |
| 970 | (AddCommGrpCat.of ℤ)).f n := by |
| 971 | have hn := congrArg (fun f ↦ f.f n) (((SSet.chainComplexFunctor AddCommGrpCat).obj |
| 972 | (AddCommGrpCat.of ℤ)).congr_map (standardFacetCarrierBoundarySimplexMap_delta d n i x)) |
| 973 | rwa [Functor.map_comp] at hn |
| 974 | simp only [hcomp] |
| 975 | |
| 976 | /-- The integral finite-cover carrier chain map into the simplicial sphere. -/ |
| 977 | def standardFacetCarrierChainMap (d : ℕ) : |
| 978 | Singular.ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex |
| 979 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) ⟶ |
| 980 | ((∂Δ[d] : SSet.{0}).chainComplex (AddCommGrpCat.of ℤ)) := |
| 981 | ChainComplex.ofHom (standardFacetCarrierComponent d) |
| 982 | (standardFacetCarrierComponent_comm_d d) |
| 983 | |
| 984 | @[simp] |
| 985 | lemma standardFacetCarrierChainMap_f (d n : ℕ) : |
| 986 | (standardFacetCarrierChainMap d).f n = standardFacetCarrierComponent d n := |
| 987 | rfl |
| 988 | |
| 989 | /-- An affine boundary simplex is contained in the facet-cover member indexed by every vertex |
| 990 | which it misses. -/ |
| 991 | lemma standardAffineBoundarySimplex_image_subset_facetCover |
| 992 | (d n : ℕ) (y : (∂Δ[d] : SSet.{0}) _⦋n⦌) |
| 993 | (i : Fin (d + 1)) (hi : i ∉ Set.range y.1) : |
| 994 | Set.range ((FundamentalClass.Singular.puncturedPair ℝ d).snd.toSSetObjEquiv _ |
| 995 | ((SphereAffineBoundary.Singular.standardAffineBoundarySimplicialMap d).app _ y)) ⊆ |
| 996 | standardPuncturedFacetCover d i := by |
| 997 | rintro _ ⟨t, rfl⟩ |
| 998 | let w := Convexity.StdSimplex.map y.1 t |
| 999 | obtain ⟨j, hj⟩ := stdSimplex_exists_pos w |
| 1000 | refine ⟨j, ?_⟩ |
| 1001 | change standardExtendedCoordinate d i (FundamentalClass.Singular.standardAffineSimplex d w) < |
| 1002 | standardExtendedCoordinate d j (FundamentalClass.Singular.standardAffineSimplex d w) |
| 1003 | rw [standardExtendedCoordinate_standardAffineSimplex, |
| 1004 | standardExtendedCoordinate_standardAffineSimplex] |
| 1005 | have hzero : w i = 0 := |
| 1006 | SphereAffineBoundary.Singular.stdSimplex_map_apply_eq_zero_of_notMem_range y.1 t i hi |
| 1007 | linarith |
| 1008 | |
| 1009 | /-- The affine realization of the carrier of a simplex lies in the intersection of all cover |
| 1010 | members containing that simplex. -/ |
| 1011 | lemma standardFacetCarrierAffine_image_subset_intersection |
| 1012 | (d : ℕ) {n : ℕ} |
| 1013 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1014 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) |
| 1015 | (q : SimplexCategoryᵒᵖ) |
| 1016 | (F : (SimplexCategory.sd.{0}.obj (SimplexCategory.mk n)).obj q) : |
| 1017 | Set.range ((FundamentalClass.Singular.puncturedPair ℝ d).snd.toSSetObjEquiv q |
| 1018 | ((standardFacetCarrierBoundarySimplexMap d x ≫ |
| 1019 | SphereAffineBoundary.Singular.standardAffineBoundarySimplicialMap d).app q F)) ⊆ |
| 1020 | standardPuncturedFacetIntersectionSubspace d |
| 1021 | (standardFacetCarrier d x) := by |
| 1022 | rintro _ ⟨t, rfl⟩ i hi |
| 1023 | exact standardAffineBoundarySimplex_image_subset_facetCover |
| 1024 | d q.unop.len ((standardFacetCarrierBoundarySimplexMap d x).app q F) i |
| 1025 | (standardFacetCarrierBoundarySimplexMap_avoids_carrier d x F i hi) ⟨t, rfl⟩ |
| 1026 | |
| 1027 | /-- The affine carrier map lifted to the contractible intersection assigned to its source |
| 1028 | simplex. -/ |
| 1029 | def standardFacetCarrierAffineIntersectionMap |
| 1030 | (d : ℕ) {n : ℕ} |
| 1031 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1032 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) : |
| 1033 | SimplexCategory.sd.{0}.obj (SimplexCategory.mk n) ⟶ |
| 1034 | TopCat.toSSet.obj (TopCat.of |
| 1035 | (standardPuncturedFacetIntersectionSubspace d |
| 1036 | (standardFacetCarrier d x))) := |
| 1037 | Singular.SubsetChains.singularSimplicialMapLiftToSubset _ (FundamentalClass.Singular.puncturedPair ℝ d).snd _ |
| 1038 | (standardFacetCarrierBoundarySimplexMap d x ≫ |
| 1039 | SphereAffineBoundary.Singular.standardAffineBoundarySimplicialMap d) |
| 1040 | (standardFacetCarrierAffine_image_subset_intersection d x) |
| 1041 | |
| 1042 | /-- The lifted affine carrier maps are compatible with faces after restricting their assigned |
| 1043 | facet intersections. -/ |
| 1044 | lemma standardFacetCarrierAffineIntersectionMap_delta |
| 1045 | (d n : ℕ) (i : Fin (n + 2)) |
| 1046 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1047 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) : |
| 1048 | standardFacetCarrierAffineIntersectionMap d |
| 1049 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1050 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).δ i x) ≫ |
| 1051 | TopCat.toSSet.map (standardPuncturedFacetIntersectionMapOfSubset d |
| 1052 | (standardFacetCarrier_mono_delta d n i x)) = |
| 1053 | SimplexCategory.sd.{0}.map (SimplexCategory.δ i) ≫ |
| 1054 | standardFacetCarrierAffineIntersectionMap d x := by |
| 1055 | let hsub := standardFacetCarrier_mono_delta d n i x |
| 1056 | change standardFacetCarrier d x ⊆ |
| 1057 | standardFacetCarrier d |
| 1058 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1059 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).δ i x) at hsub |
| 1060 | change standardFacetCarrierAffineIntersectionMap d |
| 1061 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1062 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).δ i x) ≫ |
| 1063 | TopCat.toSSet.map (standardPuncturedFacetIntersectionMapOfSubset d hsub) = _ |
| 1064 | apply Singular.SubsetChains.singularSimplicialMapToSubset_ext _ (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1065 | (standardPuncturedFacetIntersectionSubspace d (standardFacetCarrier d x)) |
| 1066 | calc |
| 1067 | _ = standardFacetCarrierAffineIntersectionMap d |
| 1068 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1069 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1070 | (standardPuncturedFacetCover d) : SSet).δ i x) ≫ |
| 1071 | TopCat.toSSet.map |
| 1072 | (Singular.ExcisionCoverSmall.topologicalSubsetInclusion (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1073 | (standardPuncturedFacetIntersectionSubspace d |
| 1074 | (standardFacetCarrier d |
| 1075 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1076 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1077 | (standardPuncturedFacetCover d) : SSet).δ i x)))) := by |
| 1078 | rw [Category.assoc, ← Functor.map_comp, |
| 1079 | standardPuncturedFacetIntersectionMapOfSubset_comp_inclusion] |
| 1080 | _ = standardFacetCarrierBoundarySimplexMap d |
| 1081 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1082 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1083 | (standardPuncturedFacetCover d) : SSet).δ i x) ≫ |
| 1084 | SphereAffineBoundary.Singular.standardAffineBoundarySimplicialMap d := by |
| 1085 | unfold standardFacetCarrierAffineIntersectionMap |
| 1086 | rw [Singular.SubsetChains.singularSimplicialMapLiftToSubset_comp_inclusion] |
| 1087 | _ = SimplexCategory.sd.{0}.map (SimplexCategory.δ i) ≫ |
| 1088 | standardFacetCarrierBoundarySimplexMap d x ≫ |
| 1089 | SphereAffineBoundary.Singular.standardAffineBoundarySimplicialMap d := by |
| 1090 | rw [← Category.assoc, standardFacetCarrierBoundarySimplexMap_delta] |
| 1091 | _ = _ := by |
| 1092 | unfold standardFacetCarrierAffineIntersectionMap |
| 1093 | rw [Category.assoc, |
| 1094 | Singular.SubsetChains.singularSimplicialMapLiftToSubset_comp_inclusion] |
| 1095 | |
| 1096 | /-- The difference, inside its assigned facet intersection, between the affine carrier and |
| 1097 | subdivision followed by the last vertex of the original singular simplex. -/ |
| 1098 | def standardFacetCarrierIntersectionDiscrepancy |
| 1099 | (d n : ℕ) |
| 1100 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1101 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) : |
| 1102 | AddCommGrpCat.of ℤ ⟶ |
| 1103 | ((TopCat.toSSet.obj (TopCat.of |
| 1104 | (standardPuncturedFacetIntersectionSubspace d |
| 1105 | (standardFacetCarrier d x)))).chainComplex |
| 1106 | (AddCommGrpCat.of ℤ)).X n := |
| 1107 | Singular.SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain n ≫ |
| 1108 | (SSet.chainComplexMap (standardFacetCarrierAffineIntersectionMap d x) |
| 1109 | (AddCommGrpCat.of ℤ)).f n - |
| 1110 | Singular.SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain n ≫ |
| 1111 | (SSet.chainComplexMap |
| 1112 | (standardFacetCarrierSourceSubdivisionIntersectionMap d x) |
| 1113 | (AddCommGrpCat.of ℤ)).f n |
| 1114 | |
| 1115 | /-- The alternating sum of face discrepancies, all restricted into the intersection assigned |
| 1116 | to the original simplex. -/ |
| 1117 | def standardFacetCarrierIntersectionDiscrepancyFaces |
| 1118 | (d n : ℕ) |
| 1119 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1120 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) : |
| 1121 | AddCommGrpCat.of ℤ ⟶ |
| 1122 | ((TopCat.toSSet.obj (TopCat.of |
| 1123 | (standardPuncturedFacetIntersectionSubspace d |
| 1124 | (standardFacetCarrier d x)))).chainComplex |
| 1125 | (AddCommGrpCat.of ℤ)).X n := |
| 1126 | ∑ i : Fin (n + 2), (-1 : ℤ) ^ i.val • |
| 1127 | (standardFacetCarrierIntersectionDiscrepancy d n |
| 1128 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1129 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1130 | (standardPuncturedFacetCover d) : SSet).δ i x) ≫ |
| 1131 | (SSet.chainComplexMap |
| 1132 | (TopCat.toSSet.map (standardPuncturedFacetIntersectionMapOfSubset d |
| 1133 | (standardFacetCarrier_mono_delta d n i x))) |
| 1134 | (AddCommGrpCat.of ℤ)).f n) |
| 1135 | |
| 1136 | lemma standardFacetCarrierAffineIntersectionChain_boundary |
| 1137 | (d n : ℕ) |
| 1138 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1139 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) : |
| 1140 | (Singular.SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain (n + 1) ≫ |
| 1141 | (SSet.chainComplexMap (standardFacetCarrierAffineIntersectionMap d x) |
| 1142 | (AddCommGrpCat.of ℤ)).f (n + 1)) ≫ |
| 1143 | ((TopCat.toSSet.obj (TopCat.of |
| 1144 | (standardPuncturedFacetIntersectionSubspace d |
| 1145 | (standardFacetCarrier d x)))).chainComplex |
| 1146 | (AddCommGrpCat.of ℤ)).d (n + 1) n = |
| 1147 | ∑ i : Fin (n + 2), (-1 : ℤ) ^ i.val • |
| 1148 | (Singular.SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain n ≫ |
| 1149 | (SSet.chainComplexMap |
| 1150 | (standardFacetCarrierAffineIntersectionMap d |
| 1151 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1152 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1153 | (standardPuncturedFacetCover d) : SSet).δ i x)) |
| 1154 | (AddCommGrpCat.of ℤ)).f n ≫ |
| 1155 | (SSet.chainComplexMap |
| 1156 | (TopCat.toSSet.map (standardPuncturedFacetIntersectionMapOfSubset d |
| 1157 | (standardFacetCarrier_mono_delta d n i x))) |
| 1158 | (AddCommGrpCat.of ℤ)).f n) := by |
| 1159 | rw [Category.assoc, (SSet.chainComplexMap (standardFacetCarrierAffineIntersectionMap d x) |
| 1160 | (AddCommGrpCat.of ℤ)).comm, ← Category.assoc, Singular.SubdivisionBarycentricOuterFaces.barycentricFundamentalBoundaryIdentity n, |
| 1161 | Singular.SubdivisionBarycentricAllDegrees.subdividedSimplexAlternatingFaceChain, Preadditive.sum_comp] |
| 1162 | simp only [Preadditive.zsmul_comp, Category.assoc] |
| 1163 | refine Finset.sum_congr rfl fun i _ ↦ ?_ |
| 1164 | apply congrArg (fun k ↦ ((-1 : ℤ) ^ i.val) • |
| 1165 | (Singular.SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain n ≫ k)) |
| 1166 | have hmap := ((SSet.chainComplexFunctor AddCommGrpCat).obj (AddCommGrpCat.of ℤ)).congr_map |
| 1167 | (standardFacetCarrierAffineIntersectionMap_delta d n i x) |
| 1168 | rw [Functor.map_comp, Functor.map_comp] at hmap |
| 1169 | exact congrArg (fun k ↦ k.f n) hmap.symm |
| 1170 | |
| 1171 | lemma standardFacetCarrierSourceIntersectionChain_boundary |
| 1172 | (d n : ℕ) |
| 1173 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1174 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) : |
| 1175 | (Singular.SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain (n + 1) ≫ |
| 1176 | (SSet.chainComplexMap |
| 1177 | (standardFacetCarrierSourceSubdivisionIntersectionMap d x) |
| 1178 | (AddCommGrpCat.of ℤ)).f (n + 1)) ≫ |
| 1179 | ((TopCat.toSSet.obj (TopCat.of |
| 1180 | (standardPuncturedFacetIntersectionSubspace d |
| 1181 | (standardFacetCarrier d x)))).chainComplex |
| 1182 | (AddCommGrpCat.of ℤ)).d (n + 1) n = |
| 1183 | ∑ i : Fin (n + 2), (-1 : ℤ) ^ i.val • |
| 1184 | (Singular.SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain n ≫ |
| 1185 | (SSet.chainComplexMap |
| 1186 | (standardFacetCarrierSourceSubdivisionIntersectionMap d |
| 1187 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1188 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1189 | (standardPuncturedFacetCover d) : SSet).δ i x)) |
| 1190 | (AddCommGrpCat.of ℤ)).f n ≫ |
| 1191 | (SSet.chainComplexMap |
| 1192 | (TopCat.toSSet.map (standardPuncturedFacetIntersectionMapOfSubset d |
| 1193 | (standardFacetCarrier_mono_delta d n i x))) |
| 1194 | (AddCommGrpCat.of ℤ)).f n) := by |
| 1195 | rw [Category.assoc, (SSet.chainComplexMap |
| 1196 | (standardFacetCarrierSourceSubdivisionIntersectionMap d x) |
| 1197 | (AddCommGrpCat.of ℤ)).comm, ← Category.assoc, Singular.SubdivisionBarycentricOuterFaces.barycentricFundamentalBoundaryIdentity n, |
| 1198 | Singular.SubdivisionBarycentricAllDegrees.subdividedSimplexAlternatingFaceChain, Preadditive.sum_comp] |
| 1199 | simp only [Preadditive.zsmul_comp, Category.assoc] |
| 1200 | refine Finset.sum_congr rfl fun i _ ↦ ?_ |
| 1201 | apply congrArg (fun k ↦ ((-1 : ℤ) ^ i.val) • |
| 1202 | (Singular.SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain n ≫ k)) |
| 1203 | have hmap := ((SSet.chainComplexFunctor AddCommGrpCat).obj (AddCommGrpCat.of ℤ)).congr_map |
| 1204 | (standardFacetCarrierSourceSubdivisionIntersectionMap_delta d n i x) |
| 1205 | rw [Functor.map_comp, Functor.map_comp] at hmap |
| 1206 | exact congrArg (fun k ↦ k.f n) hmap.symm |
| 1207 | |
| 1208 | /-- The discrepancy boundary is the alternating sum of the restricted face discrepancies. -/ |
| 1209 | lemma standardFacetCarrierIntersectionDiscrepancy_boundary |
| 1210 | (d n : ℕ) |
| 1211 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1212 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) : |
| 1213 | standardFacetCarrierIntersectionDiscrepancy d (n + 1) x ≫ |
| 1214 | ((TopCat.toSSet.obj (TopCat.of |
| 1215 | (standardPuncturedFacetIntersectionSubspace d |
| 1216 | (standardFacetCarrier d x)))).chainComplex |
| 1217 | (AddCommGrpCat.of ℤ)).d (n + 1) n = |
| 1218 | standardFacetCarrierIntersectionDiscrepancyFaces d n x := by |
| 1219 | rw [standardFacetCarrierIntersectionDiscrepancy, Preadditive.sub_comp, |
| 1220 | standardFacetCarrierAffineIntersectionChain_boundary, |
| 1221 | standardFacetCarrierSourceIntersectionChain_boundary, |
| 1222 | standardFacetCarrierIntersectionDiscrepancyFaces, ← Finset.sum_sub_distrib] |
| 1223 | refine Finset.sum_congr rfl fun i _ ↦ ?_ |
| 1224 | rw [standardFacetCarrierIntersectionDiscrepancy] |
| 1225 | simp only [smul_sub, Preadditive.sub_comp, Category.assoc] |
| 1226 | |
| 1227 | /-- The chain map which includes an assigned carrier intersection into punctured coordinate |
| 1228 | space. -/ |
| 1229 | def standardFacetCarrierIntersectionChainInclusion |
| 1230 | (d : ℕ) {n : ℕ} |
| 1231 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1232 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) : |
| 1233 | (TopCat.toSSet.obj (TopCat.of |
| 1234 | (standardPuncturedFacetIntersectionSubspace d |
| 1235 | (standardFacetCarrier d x)))).chainComplex |
| 1236 | (AddCommGrpCat.of ℤ) ⟶ |
| 1237 | (TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd).chainComplex |
| 1238 | (AddCommGrpCat.of ℤ) := |
| 1239 | SSet.chainComplexMap |
| 1240 | (TopCat.toSSet.map |
| 1241 | (Singular.ExcisionCoverSmall.topologicalSubsetInclusion (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1242 | (standardPuncturedFacetIntersectionSubspace d |
| 1243 | (standardFacetCarrier d x)))) |
| 1244 | (AddCommGrpCat.of ℤ) |
| 1245 | |
| 1246 | /-- The carrier discrepancy, now regarded as a chain in the ambient punctured space. -/ |
| 1247 | def standardFacetCarrierDiscrepancySimplexChain |
| 1248 | (d n : ℕ) |
| 1249 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1250 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) : |
| 1251 | AddCommGrpCat.of ℤ ⟶ |
| 1252 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd).chainComplex |
| 1253 | (AddCommGrpCat.of ℤ)).X n := |
| 1254 | standardFacetCarrierIntersectionDiscrepancy d n x ≫ |
| 1255 | (standardFacetCarrierIntersectionChainInclusion d x).f n |
| 1256 | |
| 1257 | /-- The degreewise ambient discrepancy operator on cover-small integral chains. -/ |
| 1258 | def standardFacetCarrierDiscrepancyComponent (d n : ℕ) : |
| 1259 | (Singular.ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex |
| 1260 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d)).X n ⟶ |
| 1261 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd).chainComplex |
| 1262 | (AddCommGrpCat.of ℤ)).X n := |
| 1263 | Sigma.desc (standardFacetCarrierDiscrepancySimplexChain d n) |
| 1264 | |
| 1265 | @[reassoc (attr := simp)] |
| 1266 | lemma iota_standardFacetCarrierDiscrepancyComponent |
| 1267 | (d n : ℕ) |
| 1268 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1269 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) : |
| 1270 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1271 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).ιChainComplex x ≫ |
| 1272 | standardFacetCarrierDiscrepancyComponent d n = |
| 1273 | standardFacetCarrierDiscrepancySimplexChain d n x := |
| 1274 | Sigma.ι_comp_desc _ _ |
| 1275 | |
| 1276 | lemma standardFacetCarrierDiscrepancyFaces_comp_inclusion |
| 1277 | (d n : ℕ) |
| 1278 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1279 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) : |
| 1280 | standardFacetCarrierIntersectionDiscrepancyFaces d n x ≫ |
| 1281 | (standardFacetCarrierIntersectionChainInclusion d x).f n = |
| 1282 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1283 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).ιChainComplex x ≫ |
| 1284 | (Singular.ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex |
| 1285 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1286 | (standardPuncturedFacetCover d)).d (n + 1) n ≫ |
| 1287 | standardFacetCarrierDiscrepancyComponent d n := by |
| 1288 | rw [standardFacetCarrierIntersectionDiscrepancyFaces, |
| 1289 | Preadditive.sum_comp] |
| 1290 | rw [← Category.assoc, SSet.ιChainComplex_d, Preadditive.sum_comp] |
| 1291 | simp only [Preadditive.zsmul_comp, |
| 1292 | iota_standardFacetCarrierDiscrepancyComponent, |
| 1293 | standardFacetCarrierDiscrepancySimplexChain] |
| 1294 | refine Finset.sum_congr rfl fun i _ ↦ ?_ |
| 1295 | apply congrArg (fun k ↦ ((-1 : ℤ) ^ i.val) • k) |
| 1296 | let F := (SSet.chainComplexFunctor AddCommGrpCat).obj (AddCommGrpCat.of ℤ) |
| 1297 | have hsset := TopCat.toSSet.congr_map |
| 1298 | (standardPuncturedFacetIntersectionMapOfSubset_comp_inclusion d |
| 1299 | (standardFacetCarrier_mono_delta d n i x)) |
| 1300 | have hchain : |
| 1301 | SSet.chainComplexMap |
| 1302 | (TopCat.toSSet.map (standardPuncturedFacetIntersectionMapOfSubset d |
| 1303 | (standardFacetCarrier_mono_delta d n i x))) |
| 1304 | (AddCommGrpCat.of ℤ) ≫ |
| 1305 | standardFacetCarrierIntersectionChainInclusion d x = |
| 1306 | standardFacetCarrierIntersectionChainInclusion d |
| 1307 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1308 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1309 | (standardPuncturedFacetCover d) : SSet).δ i x) := by |
| 1310 | rw [Functor.map_comp] at hsset |
| 1311 | change F.map _ ≫ F.map _ = F.map _ |
| 1312 | rw [← Functor.map_comp] |
| 1313 | exact F.congr_map hsset |
| 1314 | have hn := congrArg (fun k ↦ k.f n) hchain |
| 1315 | simpa only [HomologicalComplex.comp_f, Category.assoc] using congrArg |
| 1316 | (fun k ↦ standardFacetCarrierIntersectionDiscrepancy d n |
| 1317 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1318 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1319 | (standardPuncturedFacetCover d) : SSet).δ i x) ≫ k) hn |
| 1320 | |
| 1321 | /-- The ambient carrier discrepancy commutes with the singular differential. -/ |
| 1322 | lemma standardFacetCarrierDiscrepancyComponent_comm_d (d n : ℕ) : |
| 1323 | standardFacetCarrierDiscrepancyComponent d (n + 1) ≫ |
| 1324 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd).chainComplex |
| 1325 | (AddCommGrpCat.of ℤ)).d (n + 1) n = |
| 1326 | (Singular.ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex |
| 1327 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1328 | (standardPuncturedFacetCover d)).d (n + 1) n ≫ |
| 1329 | standardFacetCarrierDiscrepancyComponent d n := by |
| 1330 | apply (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1331 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1332 | (standardPuncturedFacetCover d) : SSet).chainComplex_hom_ext |
| 1333 | intro x |
| 1334 | rw [← Category.assoc, iota_standardFacetCarrierDiscrepancyComponent, |
| 1335 | standardFacetCarrierDiscrepancySimplexChain, Category.assoc, |
| 1336 | (standardFacetCarrierIntersectionChainInclusion d x).comm, ← Category.assoc, |
| 1337 | standardFacetCarrierIntersectionDiscrepancy_boundary] |
| 1338 | exact standardFacetCarrierDiscrepancyFaces_comp_inclusion d n x |
| 1339 | |
| 1340 | /-- The carrier discrepancy as a chain map from cover-small chains to ambient singular |
| 1341 | chains. -/ |
| 1342 | def standardFacetCarrierDiscrepancyChainMap (d : ℕ) : |
| 1343 | Singular.ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex |
| 1344 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) ⟶ |
| 1345 | (TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd).chainComplex |
| 1346 | (AddCommGrpCat.of ℤ) := |
| 1347 | ChainComplex.ofHom (standardFacetCarrierDiscrepancyComponent d) |
| 1348 | (standardFacetCarrierDiscrepancyComponent_comm_d d) |
| 1349 | |
| 1350 | @[simp] |
| 1351 | lemma standardFacetCarrierDiscrepancyChainMap_f (d n : ℕ) : |
| 1352 | (standardFacetCarrierDiscrepancyChainMap d).f n = |
| 1353 | standardFacetCarrierDiscrepancyComponent d n := |
| 1354 | rfl |
| 1355 | |
| 1356 | /-- A family of local carrier prisms, one degree-raising chain for every cover-small |
| 1357 | simplex. -/ |
| 1358 | abbrev StandardFacetCarrierPrismFamily (d : ℕ) := |
| 1359 | ∀ (n : ℕ) |
| 1360 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1361 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌), |
| 1362 | AddCommGrpCat.of ℤ ⟶ |
| 1363 | ((TopCat.toSSet.obj (TopCat.of |
| 1364 | (standardPuncturedFacetIntersectionSubspace d |
| 1365 | (standardFacetCarrier d x)))).chainComplex |
| 1366 | (AddCommGrpCat.of ℤ)).X (n + 1) |
| 1367 | |
| 1368 | /-- For an `(n+1)`-simplex `σ` in `ℝ^d \ {0}` subordinate to the standard facet cover and a family |
| 1369 | `P` of local prism chains, this integral chain is `∑_i (-1)^i P(∂_i σ)`. Each term is included |
| 1370 | into the intersection of cover members containing `σ` before summing. -/ |
| 1371 | def standardFacetCarrierPrismFaces |
| 1372 | (d : ℕ) (P : StandardFacetCarrierPrismFamily d) (n : ℕ) |
| 1373 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1374 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) : |
| 1375 | AddCommGrpCat.of ℤ ⟶ |
| 1376 | ((TopCat.toSSet.obj (TopCat.of |
| 1377 | (standardPuncturedFacetIntersectionSubspace d |
| 1378 | (standardFacetCarrier d x)))).chainComplex |
| 1379 | (AddCommGrpCat.of ℤ)).X (n + 1) := |
| 1380 | ∑ i : Fin (n + 2), (-1 : ℤ) ^ i.val • |
| 1381 | (P n ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1382 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1383 | (standardPuncturedFacetCover d) : SSet).δ i x) ≫ |
| 1384 | (SSet.chainComplexMap |
| 1385 | (TopCat.toSSet.map (standardPuncturedFacetIntersectionMapOfSubset d |
| 1386 | (standardFacetCarrier_mono_delta d n i x))) |
| 1387 | (AddCommGrpCat.of ℤ)).f (n + 1)) |
| 1388 | |
| 1389 | /-- One local prism chain, included into ambient punctured coordinate space. -/ |
| 1390 | def standardFacetCarrierPrismSimplexChain |
| 1391 | (d : ℕ) (P : StandardFacetCarrierPrismFamily d) (n : ℕ) |
| 1392 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1393 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) : |
| 1394 | AddCommGrpCat.of ℤ ⟶ |
| 1395 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd).chainComplex |
| 1396 | (AddCommGrpCat.of ℤ)).X (n + 1) := |
| 1397 | P n x ≫ (standardFacetCarrierIntersectionChainInclusion d x).f (n + 1) |
| 1398 | |
| 1399 | /-- The global degree-raising carrier-prism operator induced by local prism chains. -/ |
| 1400 | def standardFacetCarrierPrismComponent |
| 1401 | (d : ℕ) (P : StandardFacetCarrierPrismFamily d) (n : ℕ) : |
| 1402 | (Singular.ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex |
| 1403 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d)).X n ⟶ |
| 1404 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd).chainComplex |
| 1405 | (AddCommGrpCat.of ℤ)).X (n + 1) := |
| 1406 | Sigma.desc (standardFacetCarrierPrismSimplexChain d P n) |
| 1407 | |
| 1408 | @[reassoc (attr := simp)] |
| 1409 | lemma iota_standardFacetCarrierPrismComponent |
| 1410 | (d : ℕ) (P : StandardFacetCarrierPrismFamily d) (n : ℕ) |
| 1411 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1412 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) : |
| 1413 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1414 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).ιChainComplex x ≫ |
| 1415 | standardFacetCarrierPrismComponent d P n = |
| 1416 | standardFacetCarrierPrismSimplexChain d P n x := |
| 1417 | Sigma.ι_comp_desc _ _ |
| 1418 | |
| 1419 | lemma standardFacetCarrierPrismFaces_comp_inclusion |
| 1420 | (d : ℕ) (P : StandardFacetCarrierPrismFamily d) (n : ℕ) |
| 1421 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1422 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) : |
| 1423 | standardFacetCarrierPrismFaces d P n x ≫ |
| 1424 | (standardFacetCarrierIntersectionChainInclusion d x).f (n + 1) = |
| 1425 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1426 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).ιChainComplex x ≫ |
| 1427 | (Singular.ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex |
| 1428 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1429 | (standardPuncturedFacetCover d)).d (n + 1) n ≫ |
| 1430 | standardFacetCarrierPrismComponent d P n := by |
| 1431 | rw [standardFacetCarrierPrismFaces, Preadditive.sum_comp] |
| 1432 | rw [← Category.assoc, SSet.ιChainComplex_d, Preadditive.sum_comp] |
| 1433 | simp only [Preadditive.zsmul_comp, |
| 1434 | iota_standardFacetCarrierPrismComponent, |
| 1435 | standardFacetCarrierPrismSimplexChain] |
| 1436 | refine Finset.sum_congr rfl fun i _ ↦ ?_ |
| 1437 | apply congrArg (fun k ↦ ((-1 : ℤ) ^ i.val) • k) |
| 1438 | let F := (SSet.chainComplexFunctor AddCommGrpCat).obj (AddCommGrpCat.of ℤ) |
| 1439 | have hsset := TopCat.toSSet.congr_map |
| 1440 | (standardPuncturedFacetIntersectionMapOfSubset_comp_inclusion d |
| 1441 | (standardFacetCarrier_mono_delta d n i x)) |
| 1442 | have hchain : |
| 1443 | SSet.chainComplexMap |
| 1444 | (TopCat.toSSet.map (standardPuncturedFacetIntersectionMapOfSubset d |
| 1445 | (standardFacetCarrier_mono_delta d n i x))) |
| 1446 | (AddCommGrpCat.of ℤ) ≫ |
| 1447 | standardFacetCarrierIntersectionChainInclusion d x = |
| 1448 | standardFacetCarrierIntersectionChainInclusion d |
| 1449 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1450 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1451 | (standardPuncturedFacetCover d) : SSet).δ i x) := by |
| 1452 | rw [Functor.map_comp] at hsset |
| 1453 | change F.map _ ≫ F.map _ = F.map _ |
| 1454 | rw [← Functor.map_comp] |
| 1455 | exact F.congr_map hsset |
| 1456 | have hn := congrArg (fun k ↦ k.f (n + 1)) hchain |
| 1457 | simpa only [HomologicalComplex.comp_f, Category.assoc] using congrArg |
| 1458 | (fun k ↦ P n |
| 1459 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1460 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1461 | (standardPuncturedFacetCover d) : SSet).δ i x) ≫ k) hn |
| 1462 | |
| 1463 | /-- Local degree-zero prism equations assemble into the ambient homotopy equation. -/ |
| 1464 | lemma standardFacetCarrierPrismComponent_boundary_zero |
| 1465 | (d : ℕ) (P : StandardFacetCarrierPrismFamily d) |
| 1466 | (h : ∀ x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1467 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋0⦌, |
| 1468 | standardFacetCarrierIntersectionDiscrepancy d 0 x = |
| 1469 | P 0 x ≫ |
| 1470 | ((TopCat.toSSet.obj (TopCat.of |
| 1471 | (standardPuncturedFacetIntersectionSubspace d |
| 1472 | (standardFacetCarrier d x)))).chainComplex |
| 1473 | (AddCommGrpCat.of ℤ)).d 1 0) : |
| 1474 | (standardFacetCarrierDiscrepancyChainMap d).f 0 = |
| 1475 | standardFacetCarrierPrismComponent d P 0 ≫ |
| 1476 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd).chainComplex |
| 1477 | (AddCommGrpCat.of ℤ)).d 1 0 := by |
| 1478 | apply (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1479 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1480 | (standardPuncturedFacetCover d) : SSet).chainComplex_hom_ext |
| 1481 | intro x |
| 1482 | rw [standardFacetCarrierDiscrepancyChainMap_f, |
| 1483 | iota_standardFacetCarrierDiscrepancyComponent, |
| 1484 | standardFacetCarrierDiscrepancySimplexChain, ← Category.assoc, |
| 1485 | iota_standardFacetCarrierPrismComponent, standardFacetCarrierPrismSimplexChain, |
| 1486 | Category.assoc, (standardFacetCarrierIntersectionChainInclusion d x).comm, |
| 1487 | ← Category.assoc, h] |
| 1488 | |
| 1489 | /-- Local positive-degree prism equations assemble into the ambient homotopy equation. -/ |
| 1490 | lemma standardFacetCarrierPrismComponent_boundary_succ |
| 1491 | (d : ℕ) (P : StandardFacetCarrierPrismFamily d) (n : ℕ) |
| 1492 | (h : ∀ x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1493 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌, |
| 1494 | standardFacetCarrierIntersectionDiscrepancy d (n + 1) x = |
| 1495 | P (n + 1) x ≫ |
| 1496 | ((TopCat.toSSet.obj (TopCat.of |
| 1497 | (standardPuncturedFacetIntersectionSubspace d |
| 1498 | (standardFacetCarrier d x)))).chainComplex |
| 1499 | (AddCommGrpCat.of ℤ)).d (n + 2) (n + 1) + |
| 1500 | standardFacetCarrierPrismFaces d P n x) : |
| 1501 | (standardFacetCarrierDiscrepancyChainMap d).f (n + 1) = |
| 1502 | (Singular.ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex |
| 1503 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1504 | (standardPuncturedFacetCover d)).d (n + 1) n ≫ |
| 1505 | standardFacetCarrierPrismComponent d P n + |
| 1506 | standardFacetCarrierPrismComponent d P (n + 1) ≫ |
| 1507 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd).chainComplex |
| 1508 | (AddCommGrpCat.of ℤ)).d (n + 2) (n + 1) := by |
| 1509 | apply (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1510 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1511 | (standardPuncturedFacetCover d) : SSet).chainComplex_hom_ext |
| 1512 | intro x |
| 1513 | simp only [Preadditive.comp_add] |
| 1514 | rw [standardFacetCarrierDiscrepancyChainMap_f, |
| 1515 | iota_standardFacetCarrierDiscrepancyComponent, |
| 1516 | standardFacetCarrierDiscrepancySimplexChain, h, add_comm |
| 1517 | (P (n + 1) x ≫ |
| 1518 | ((TopCat.toSSet.obj (TopCat.of |
| 1519 | (standardPuncturedFacetIntersectionSubspace d |
| 1520 | (standardFacetCarrier d x)))).chainComplex |
| 1521 | (AddCommGrpCat.of ℤ)).d (n + 2) (n + 1)) |
| 1522 | (standardFacetCarrierPrismFaces d P n x), Preadditive.add_comp] |
| 1523 | apply congrArg₂ (fun a b ↦ a + b) |
| 1524 | · exact standardFacetCarrierPrismFaces_comp_inclusion d P n x |
| 1525 | · rw [← Category.assoc, iota_standardFacetCarrierPrismComponent, |
| 1526 | standardFacetCarrierPrismSimplexChain] |
| 1527 | calc |
| 1528 | (P (n + 1) x ≫ |
| 1529 | ((TopCat.toSSet.obj (TopCat.of |
| 1530 | (standardPuncturedFacetIntersectionSubspace d |
| 1531 | (standardFacetCarrier d x)))).chainComplex |
| 1532 | (AddCommGrpCat.of ℤ)).d (n + 2) (n + 1)) ≫ |
| 1533 | (standardFacetCarrierIntersectionChainInclusion d x).f (n + 1) = |
| 1534 | P (n + 1) x ≫ |
| 1535 | (((TopCat.toSSet.obj (TopCat.of |
| 1536 | (standardPuncturedFacetIntersectionSubspace d |
| 1537 | (standardFacetCarrier d x)))).chainComplex |
| 1538 | (AddCommGrpCat.of ℤ)).d (n + 2) (n + 1) ≫ |
| 1539 | (standardFacetCarrierIntersectionChainInclusion d x).f (n + 1)) := |
| 1540 | Category.assoc _ _ _ |
| 1541 | _ = P (n + 1) x ≫ |
| 1542 | ((standardFacetCarrierIntersectionChainInclusion d x).f (n + 2) ≫ |
| 1543 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd).chainComplex |
| 1544 | (AddCommGrpCat.of ℤ)).d (n + 2) (n + 1)) := by |
| 1545 | rw [(standardFacetCarrierIntersectionChainInclusion d x).comm] |
| 1546 | _ = (P (n + 1) x ≫ |
| 1547 | (standardFacetCarrierIntersectionChainInclusion d x).f (n + 2)) ≫ |
| 1548 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd).chainComplex |
| 1549 | (AddCommGrpCat.of ℤ)).d (n + 2) (n + 1) := |
| 1550 | (Category.assoc _ _ _).symm |
| 1551 | |
| 1552 | /-- The degree-zero discrepancy has zero component-wise augmentation in its contractible |
| 1553 | carrier intersection. -/ |
| 1554 | lemma standardFacetCarrierIntersectionDiscrepancy_zero_augmentation |
| 1555 | (d : ℕ) |
| 1556 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1557 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋0⦌) : |
| 1558 | standardFacetCarrierIntersectionDiscrepancy d 0 x ≫ |
| 1559 | SSet.π₀.fromChainComplexXZero |
| 1560 | (TopCat.toSSet.obj (TopCat.of |
| 1561 | (standardPuncturedFacetIntersectionSubspace d |
| 1562 | (standardFacetCarrier d x)))) |
| 1563 | (AddCommGrpCat.of ℤ) = 0 := by |
| 1564 | let I := standardFacetCarrier d x |
| 1565 | have hI : I.Nonempty := standardFacetCarrier_nonempty d x |
| 1566 | have hproper : I ≠ Finset.univ := standardFacetCarrier_ne_univ d x |
| 1567 | let : ContractibleSpace |
| 1568 | (standardPuncturedFacetIntersectionSubspace d I) := |
| 1569 | standardPuncturedFacetIntersectionSubspace_contractibleSpace d I hI hproper |
| 1570 | rw [standardFacetCarrierIntersectionDiscrepancy, Preadditive.sub_comp, |
| 1571 | Singular.SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain] |
| 1572 | simp |
| 1573 | have heq : |
| 1574 | SSet.π₀.mk |
| 1575 | ((standardFacetCarrierAffineIntersectionMap d x).app _ |
| 1576 | (Singular.SubdivisionBarycentricAllDegrees.permutationMaximalFlagSimplex (1 : Equiv.Perm (Fin 1)))) = |
| 1577 | SSet.π₀.mk |
| 1578 | ((standardFacetCarrierSourceSubdivisionIntersectionMap d x).app _ |
| 1579 | (Singular.SubdivisionBarycentricAllDegrees.permutationMaximalFlagSimplex (1 : Equiv.Perm (Fin 1)))) := |
| 1580 | Subsingleton.elim _ _ |
| 1581 | rw [heq, sub_self] |
| 1582 | |
| 1583 | /-- The degree-zero local discrepancy admits a one-chain filler in its carrier |
| 1584 | intersection. -/ |
| 1585 | lemma exists_standardFacetCarrierIntersectionPrism_zero |
| 1586 | (d : ℕ) |
| 1587 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1588 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋0⦌) : |
| 1589 | ∃ p : AddCommGrpCat.of ℤ ⟶ |
| 1590 | ((TopCat.toSSet.obj (TopCat.of |
| 1591 | (standardPuncturedFacetIntersectionSubspace d |
| 1592 | (standardFacetCarrier d x)))).chainComplex |
| 1593 | (AddCommGrpCat.of ℤ)).X 1, |
| 1594 | p ≫ ((TopCat.toSSet.obj (TopCat.of |
| 1595 | (standardPuncturedFacetIntersectionSubspace d |
| 1596 | (standardFacetCarrier d x)))).chainComplex |
| 1597 | (AddCommGrpCat.of ℤ)).d 1 0 = |
| 1598 | standardFacetCarrierIntersectionDiscrepancy d 0 x := |
| 1599 | exists_integralSingularZeroChain_filler |
| 1600 | (TopCat.of (standardPuncturedFacetIntersectionSubspace d |
| 1601 | (standardFacetCarrier d x))) |
| 1602 | (standardFacetCarrierIntersectionDiscrepancy d 0 x) |
| 1603 | (standardFacetCarrierIntersectionDiscrepancy_zero_augmentation d x) |
| 1604 | |
| 1605 | /-- For an `(n+1)`-simplex `σ` in `ℝ^d \ {0}` subordinate to the standard facet cover and a family |
| 1606 | `P` of local prism chains, this is the affine carrier chain minus the subdivided source chain |
| 1607 | minus `∑_i (-1)^i P(∂_i σ)`. All terms are integral chains in the intersection of cover members |
| 1608 | containing `σ`. -/ |
| 1609 | def standardFacetCarrierPrismResidual |
| 1610 | (d : ℕ) (P : StandardFacetCarrierPrismFamily d) (n : ℕ) |
| 1611 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1612 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) : |
| 1613 | AddCommGrpCat.of ℤ ⟶ |
| 1614 | ((TopCat.toSSet.obj (TopCat.of |
| 1615 | (standardPuncturedFacetIntersectionSubspace d |
| 1616 | (standardFacetCarrier d x)))).chainComplex |
| 1617 | (AddCommGrpCat.of ℤ)).X (n + 1) := |
| 1618 | standardFacetCarrierIntersectionDiscrepancy d (n + 1) x - |
| 1619 | standardFacetCarrierPrismFaces d P n x |
| 1620 | |
| 1621 | lemma standardFacetCarrierPrismResidual_comp_inclusion |
| 1622 | (d : ℕ) (P : StandardFacetCarrierPrismFamily d) (n : ℕ) |
| 1623 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1624 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) : |
| 1625 | standardFacetCarrierPrismResidual d P n x ≫ |
| 1626 | (standardFacetCarrierIntersectionChainInclusion d x).f (n + 1) = |
| 1627 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1628 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).ιChainComplex x ≫ |
| 1629 | (standardFacetCarrierDiscrepancyChainMap d).f (n + 1) - |
| 1630 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1631 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet).ιChainComplex x ≫ |
| 1632 | (Singular.ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex |
| 1633 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1634 | (standardPuncturedFacetCover d)).d (n + 1) n ≫ |
| 1635 | standardFacetCarrierPrismComponent d P n := by |
| 1636 | rw [standardFacetCarrierPrismResidual, Preadditive.sub_comp] |
| 1637 | apply congrArg₂ (fun a b ↦ a - b) |
| 1638 | · rw [standardFacetCarrierDiscrepancyChainMap_f, |
| 1639 | iota_standardFacetCarrierDiscrepancyComponent, |
| 1640 | standardFacetCarrierDiscrepancySimplexChain] |
| 1641 | · exact standardFacetCarrierPrismFaces_comp_inclusion d P n x |
| 1642 | |
| 1643 | /-- If the local prism equation holds one degree lower, the next local residual is a cycle. |
| 1644 | This is the acyclic-carrier cancellation step. -/ |
| 1645 | lemma standardFacetCarrierPrismResidual_cycle |
| 1646 | (d : ℕ) (P : StandardFacetCarrierPrismFamily d) (n : ℕ) |
| 1647 | (hzero : n = 0 → |
| 1648 | ∀ x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1649 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋0⦌, |
| 1650 | standardFacetCarrierIntersectionDiscrepancy d 0 x = |
| 1651 | P 0 x ≫ |
| 1652 | ((TopCat.toSSet.obj (TopCat.of |
| 1653 | (standardPuncturedFacetIntersectionSubspace d |
| 1654 | (standardFacetCarrier d x)))).chainComplex |
| 1655 | (AddCommGrpCat.of ℤ)).d 1 0) |
| 1656 | (hsucc : ∀ k, n = k + 1 → |
| 1657 | ∀ x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1658 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋k + 1⦌, |
| 1659 | standardFacetCarrierIntersectionDiscrepancy d (k + 1) x = |
| 1660 | P (k + 1) x ≫ |
| 1661 | ((TopCat.toSSet.obj (TopCat.of |
| 1662 | (standardPuncturedFacetIntersectionSubspace d |
| 1663 | (standardFacetCarrier d x)))).chainComplex |
| 1664 | (AddCommGrpCat.of ℤ)).d (k + 2) (k + 1) + |
| 1665 | standardFacetCarrierPrismFaces d P k x) |
| 1666 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1667 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) : |
| 1668 | standardFacetCarrierPrismResidual d P n x ≫ |
| 1669 | ((TopCat.toSSet.obj (TopCat.of |
| 1670 | (standardPuncturedFacetIntersectionSubspace d |
| 1671 | (standardFacetCarrier d x)))).chainComplex |
| 1672 | (AddCommGrpCat.of ℤ)).d (n + 1) n = 0 := by |
| 1673 | let I := standardFacetCarrierIntersectionChainInclusion d x |
| 1674 | have : Mono (I.f n) := by |
| 1675 | dsimp [I, standardFacetCarrierIntersectionChainInclusion] |
| 1676 | exact Singular.SubsetChains.singularSubsetIntegralChainInclusionComponent_mono |
| 1677 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1678 | (standardPuncturedFacetIntersectionSubspace d |
| 1679 | (standardFacetCarrier d x)) n |
| 1680 | apply (cancel_mono (I.f n)).mp |
| 1681 | rw [zero_comp] |
| 1682 | calc |
| 1683 | (standardFacetCarrierPrismResidual d P n x ≫ |
| 1684 | ((TopCat.toSSet.obj (TopCat.of |
| 1685 | (standardPuncturedFacetIntersectionSubspace d |
| 1686 | (standardFacetCarrier d x)))).chainComplex |
| 1687 | (AddCommGrpCat.of ℤ)).d (n + 1) n) ≫ I.f n = |
| 1688 | standardFacetCarrierPrismResidual d P n x ≫ |
| 1689 | (((TopCat.toSSet.obj (TopCat.of |
| 1690 | (standardPuncturedFacetIntersectionSubspace d |
| 1691 | (standardFacetCarrier d x)))).chainComplex |
| 1692 | (AddCommGrpCat.of ℤ)).d (n + 1) n ≫ I.f n) := |
| 1693 | Category.assoc _ _ _ |
| 1694 | _ = standardFacetCarrierPrismResidual d P n x ≫ |
| 1695 | (I.f (n + 1) ≫ |
| 1696 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd).chainComplex |
| 1697 | (AddCommGrpCat.of ℤ)).d (n + 1) n) := by |
| 1698 | rw [I.comm] |
| 1699 | _ = (standardFacetCarrierPrismResidual d P n x ≫ I.f (n + 1)) ≫ |
| 1700 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd).chainComplex |
| 1701 | (AddCommGrpCat.of ℤ)).d (n + 1) n := |
| 1702 | (Category.assoc _ _ _).symm |
| 1703 | rw [standardFacetCarrierPrismResidual_comp_inclusion, Preadditive.sub_comp, Category.assoc, |
| 1704 | (standardFacetCarrierDiscrepancyChainMap d).comm, Category.assoc, Category.assoc] |
| 1705 | cases n with |
| 1706 | | zero => |
| 1707 | have hprev := standardFacetCarrierPrismComponent_boundary_zero d P |
| 1708 | (hzero rfl) |
| 1709 | rw [hprev] |
| 1710 | simp only [sub_self] |
| 1711 | | succ k => |
| 1712 | have hprev := standardFacetCarrierPrismComponent_boundary_succ d P k |
| 1713 | (hsucc k rfl) |
| 1714 | rw [hprev, Preadditive.comp_add, ← Category.assoc, |
| 1715 | (Singular.ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex |
| 1716 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1717 | (standardPuncturedFacetCover d)).d_comp_d] |
| 1718 | simp only [zero_comp, zero_add, sub_self] |
| 1719 | |
| 1720 | /-- The local acyclic-carrier prism equation in one degree. -/ |
| 1721 | def StandardFacetCarrierPrismEquation |
| 1722 | (d : ℕ) (P : StandardFacetCarrierPrismFamily d) : ℕ → Prop := |
| 1723 | fun n => Nat.casesOn n |
| 1724 | (∀ x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1725 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋0⦌, |
| 1726 | standardFacetCarrierIntersectionDiscrepancy d 0 x = |
| 1727 | P 0 x ≫ |
| 1728 | ((TopCat.toSSet.obj (TopCat.of |
| 1729 | (standardPuncturedFacetIntersectionSubspace d |
| 1730 | (standardFacetCarrier d x)))).chainComplex |
| 1731 | (AddCommGrpCat.of ℤ)).d 1 0) |
| 1732 | (fun n => ∀ x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1733 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌, |
| 1734 | standardFacetCarrierIntersectionDiscrepancy d (n + 1) x = |
| 1735 | P (n + 1) x ≫ |
| 1736 | ((TopCat.toSSet.obj (TopCat.of |
| 1737 | (standardPuncturedFacetIntersectionSubspace d |
| 1738 | (standardFacetCarrier d x)))).chainComplex |
| 1739 | (AddCommGrpCat.of ℤ)).d (n + 2) (n + 1) + |
| 1740 | standardFacetCarrierPrismFaces d P n x) |
| 1741 | |
| 1742 | lemma standardFacetCarrierPrismResidual_cycle_of_equation |
| 1743 | (d : ℕ) (P : StandardFacetCarrierPrismFamily d) (n : ℕ) |
| 1744 | (h : StandardFacetCarrierPrismEquation d P n) |
| 1745 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1746 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) : |
| 1747 | standardFacetCarrierPrismResidual d P n x ≫ |
| 1748 | ((TopCat.toSSet.obj (TopCat.of |
| 1749 | (standardPuncturedFacetIntersectionSubspace d |
| 1750 | (standardFacetCarrier d x)))).chainComplex |
| 1751 | (AddCommGrpCat.of ℤ)).d (n + 1) n = 0 := by |
| 1752 | apply standardFacetCarrierPrismResidual_cycle d P n |
| 1753 | · rintro rfl |
| 1754 | exact h |
| 1755 | · rintro k rfl |
| 1756 | exact h |
| 1757 | |
| 1758 | open scoped Classical in |
| 1759 | /-- A total selected filler for a positive-degree cycle in a proper facet intersection. It |
| 1760 | returns zero when its input is not a cycle, so it can be used in a structural recursion whose |
| 1761 | cycle proof is established afterwards. -/ |
| 1762 | def standardPuncturedFacetIntersectionIntegralTotalCycleFiller |
| 1763 | (d n : ℕ) (I : Finset (Fin (d + 1))) |
| 1764 | (hI : I.Nonempty) (hproper : I ≠ Finset.univ) |
| 1765 | (z : AddCommGrpCat.of ℤ ⟶ |
| 1766 | ((TopCat.toSSet.obj (TopCat.of |
| 1767 | (standardPuncturedFacetIntersectionSubspace d I))).chainComplex |
| 1768 | (AddCommGrpCat.of ℤ)).X (n + 1)) : |
| 1769 | AddCommGrpCat.of ℤ ⟶ |
| 1770 | ((TopCat.toSSet.obj (TopCat.of |
| 1771 | (standardPuncturedFacetIntersectionSubspace d I))).chainComplex |
| 1772 | (AddCommGrpCat.of ℤ)).X (n + 2) := |
| 1773 | if hz : z ≫ |
| 1774 | ((TopCat.toSSet.obj (TopCat.of |
| 1775 | (standardPuncturedFacetIntersectionSubspace d I))).chainComplex |
| 1776 | (AddCommGrpCat.of ℤ)).d (n + 1) n = 0 then |
| 1777 | Classical.choose |
| 1778 | (exists_standardPuncturedFacetIntersection_integralCycleFiller |
| 1779 | d n I hI hproper z hz) |
| 1780 | else 0 |
| 1781 | |
| 1782 | /-- The total selected filler has the prescribed boundary whenever its input is a cycle. -/ |
| 1783 | lemma standardPuncturedFacetIntersectionIntegralTotalCycleFiller_boundary |
| 1784 | (d n : ℕ) (I : Finset (Fin (d + 1))) |
| 1785 | (hI : I.Nonempty) (hproper : I ≠ Finset.univ) |
| 1786 | (z : AddCommGrpCat.of ℤ ⟶ |
| 1787 | ((TopCat.toSSet.obj (TopCat.of |
| 1788 | (standardPuncturedFacetIntersectionSubspace d I))).chainComplex |
| 1789 | (AddCommGrpCat.of ℤ)).X (n + 1)) |
| 1790 | (hz : z ≫ |
| 1791 | ((TopCat.toSSet.obj (TopCat.of |
| 1792 | (standardPuncturedFacetIntersectionSubspace d I))).chainComplex |
| 1793 | (AddCommGrpCat.of ℤ)).d (n + 1) n = 0) : |
| 1794 | standardPuncturedFacetIntersectionIntegralTotalCycleFiller |
| 1795 | d n I hI hproper z ≫ |
| 1796 | ((TopCat.toSSet.obj (TopCat.of |
| 1797 | (standardPuncturedFacetIntersectionSubspace d I))).chainComplex |
| 1798 | (AddCommGrpCat.of ℤ)).d (n + 2) (n + 1) = z := by |
| 1799 | rw [standardPuncturedFacetIntersectionIntegralTotalCycleFiller, dite_eq_left hz] |
| 1800 | exact Classical.choose_spec |
| 1801 | (exists_standardPuncturedFacetIntersection_integralCycleFiller |
| 1802 | d n I hI hproper z hz) |
| 1803 | |
| 1804 | /-- The canonical local acyclic-carrier prism, recursively obtained by filling the discrepancy |
| 1805 | left after the prisms on all faces. -/ |
| 1806 | def standardFacetCarrierPrism (d n : ℕ) : |
| 1807 | ∀ (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1808 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌), |
| 1809 | AddCommGrpCat.of ℤ ⟶ |
| 1810 | ((TopCat.toSSet.obj (TopCat.of |
| 1811 | (standardPuncturedFacetIntersectionSubspace d |
| 1812 | (standardFacetCarrier d x)))).chainComplex |
| 1813 | (AddCommGrpCat.of ℤ)).X (n + 1) := |
| 1814 | Nat.rec |
| 1815 | (fun x ↦ Classical.choose |
| 1816 | (exists_standardFacetCarrierIntersectionPrism_zero d x)) |
| 1817 | (fun n previous => |
| 1818 | fun x ↦ |
| 1819 | standardPuncturedFacetIntersectionIntegralTotalCycleFiller |
| 1820 | d n (standardFacetCarrier d x) |
| 1821 | (standardFacetCarrier_nonempty d x) |
| 1822 | (standardFacetCarrier_ne_univ d x) |
| 1823 | (standardFacetCarrierIntersectionDiscrepancy d (n + 1) x - |
| 1824 | ∑ i : Fin (n + 2), (-1 : ℤ) ^ i.val • |
| 1825 | (previous |
| 1826 | ((Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1827 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1828 | (standardPuncturedFacetCover d) : SSet).δ i x) ≫ |
| 1829 | (SSet.chainComplexMap |
| 1830 | (TopCat.toSSet.map |
| 1831 | (standardPuncturedFacetIntersectionMapOfSubset d |
| 1832 | (standardFacetCarrier_mono_delta d n i x))) |
| 1833 | (AddCommGrpCat.of ℤ)).f (n + 1)))) n |
| 1834 | |
| 1835 | @[simp] |
| 1836 | lemma standardFacetCarrierPrism_zero |
| 1837 | (d : ℕ) |
| 1838 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1839 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋0⦌) : |
| 1840 | Singular.standardFacetCarrierPrism d 0 x = |
| 1841 | Classical.choose |
| 1842 | (exists_standardFacetCarrierIntersectionPrism_zero d x) := |
| 1843 | by simp [Singular.standardFacetCarrierPrism] |
| 1844 | |
| 1845 | /-- The successor prism is the total filler of the local residual. -/ |
| 1846 | lemma standardFacetCarrierPrism_succ |
| 1847 | (d n : ℕ) |
| 1848 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1849 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n + 1⦌) : |
| 1850 | Singular.standardFacetCarrierPrism d (n + 1) x = |
| 1851 | standardPuncturedFacetIntersectionIntegralTotalCycleFiller |
| 1852 | d n (standardFacetCarrier d x) |
| 1853 | (standardFacetCarrier_nonempty d x) |
| 1854 | (standardFacetCarrier_ne_univ d x) |
| 1855 | (standardFacetCarrierPrismResidual d |
| 1856 | (Singular.standardFacetCarrierPrism d) n x) := by |
| 1857 | simp [Singular.standardFacetCarrierPrism, |
| 1858 | standardFacetCarrierPrismResidual, standardFacetCarrierPrismFaces] |
| 1859 | |
| 1860 | /-- The recursively selected local prisms satisfy the complete acyclic-carrier boundary |
| 1861 | equation in every degree. -/ |
| 1862 | lemma standardFacetCarrierPrism_equation (d n : ℕ) : |
| 1863 | StandardFacetCarrierPrismEquation d (Singular.standardFacetCarrierPrism d) n := by |
| 1864 | induction n with |
| 1865 | | zero => |
| 1866 | intro x |
| 1867 | rw [standardFacetCarrierPrism_zero] |
| 1868 | exact (Classical.choose_spec |
| 1869 | (exists_standardFacetCarrierIntersectionPrism_zero d x)).symm |
| 1870 | | succ n ih => |
| 1871 | intro x |
| 1872 | have hcycle := standardFacetCarrierPrismResidual_cycle_of_equation |
| 1873 | d (Singular.standardFacetCarrierPrism d) n ih x |
| 1874 | have hfill := |
| 1875 | standardPuncturedFacetIntersectionIntegralTotalCycleFiller_boundary |
| 1876 | d n (standardFacetCarrier d x) |
| 1877 | (standardFacetCarrier_nonempty d x) |
| 1878 | (standardFacetCarrier_ne_univ d x) |
| 1879 | (standardFacetCarrierPrismResidual d |
| 1880 | (Singular.standardFacetCarrierPrism d) n x) hcycle |
| 1881 | rw [standardFacetCarrierPrism_succ, hfill, standardFacetCarrierPrismResidual] |
| 1882 | abel |
| 1883 | |
| 1884 | /-- The degree-raising carrier-prism family, extended by zero away from adjacent degrees. -/ |
| 1885 | def standardFacetCarrierPrismHom (d i j : ℕ) : |
| 1886 | (Singular.ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex |
| 1887 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d)).X i ⟶ |
| 1888 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd).chainComplex |
| 1889 | (AddCommGrpCat.of ℤ)).X j := |
| 1890 | if h : j = i + 1 then by |
| 1891 | subst j |
| 1892 | exact standardFacetCarrierPrismComponent d |
| 1893 | (Singular.standardFacetCarrierPrism d) i |
| 1894 | else 0 |
| 1895 | |
| 1896 | @[simp] |
| 1897 | lemma standardFacetCarrierPrismHom_succ (d i : ℕ) : |
| 1898 | standardFacetCarrierPrismHom d i (i + 1) = |
| 1899 | standardFacetCarrierPrismComponent d |
| 1900 | (Singular.standardFacetCarrierPrism d) i := by |
| 1901 | simp [standardFacetCarrierPrismHom] |
| 1902 | |
| 1903 | /-- The ambient carrier discrepancy is integrally chain-homotopic to zero. -/ |
| 1904 | def standardFacetCarrierDiscrepancyIntegralHomotopy (d : ℕ) : |
| 1905 | Homotopy (standardFacetCarrierDiscrepancyChainMap d) 0 where |
| 1906 | hom := standardFacetCarrierPrismHom d |
| 1907 | zero i j hij := by |
| 1908 | rw [standardFacetCarrierPrismHom] |
| 1909 | split_ifs with h |
| 1910 | · exact absurd h.symm hij |
| 1911 | · rfl |
| 1912 | comm i := by |
| 1913 | cases i with |
| 1914 | | zero => |
| 1915 | rw [Homotopy.dNext_zero_chainComplex, |
| 1916 | Homotopy.prevD_chainComplex] |
| 1917 | simp only [standardFacetCarrierPrismHom_succ, |
| 1918 | HomologicalComplex.zero_f, add_zero, zero_add] |
| 1919 | exact standardFacetCarrierPrismComponent_boundary_zero d |
| 1920 | (Singular.standardFacetCarrierPrism d) |
| 1921 | (standardFacetCarrierPrism_equation d 0) |
| 1922 | | succ n => |
| 1923 | rw [Homotopy.dNext_succ_chainComplex, |
| 1924 | Homotopy.prevD_chainComplex] |
| 1925 | simp only [standardFacetCarrierPrismHom_succ, |
| 1926 | HomologicalComplex.zero_f, add_zero] |
| 1927 | exact standardFacetCarrierPrismComponent_boundary_succ d |
| 1928 | (Singular.standardFacetCarrierPrism d) n |
| 1929 | (standardFacetCarrierPrism_equation d (n + 1)) |
| 1930 | |
| 1931 | /-- Rationalization of the acyclic-carrier homotopy. -/ |
| 1932 | def standardFacetCarrierDiscrepancyRationalHomotopy (d : ℕ) : |
| 1933 | Homotopy |
| 1934 | (Singular.ExcisionField.rationalizeSimplicialChainMap |
| 1935 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1936 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) |
| 1937 | (TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd) |
| 1938 | (standardFacetCarrierDiscrepancyChainMap d)) 0 := |
| 1939 | (Singular.ExcisionField.rationalizeSimplicialChainHomotopy |
| 1940 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1941 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) |
| 1942 | (TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd) |
| 1943 | (standardFacetCarrierDiscrepancyIntegralHomotopy d)).trans |
| 1944 | (Homotopy.ofEq (Singular.ExcisionField.rationalizeSimplicialChainMap_zero |
| 1945 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1946 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) |
| 1947 | (TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd))) |
| 1948 | |
| 1949 | /-- The integral affine-boundary chain map. -/ |
| 1950 | def standardAffineBoundaryIntegralChainMap (d : ℕ) : |
| 1951 | ((∂Δ[d] : SSet.{0}).chainComplex (AddCommGrpCat.of ℤ)) ⟶ |
| 1952 | (TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd).chainComplex |
| 1953 | (AddCommGrpCat.of ℤ) := |
| 1954 | SSet.chainComplexMap (SphereAffineBoundary.Singular.standardAffineBoundarySimplicialMap d) |
| 1955 | (AddCommGrpCat.of ℤ) |
| 1956 | |
| 1957 | /-- Barycentric subdivision followed by last vertex on the facet-small simplicial set. -/ |
| 1958 | def standardFacetSmallBarycentricLastVertexIntegralChainMap (d : ℕ) : |
| 1959 | Singular.ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex |
| 1960 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) ⟶ |
| 1961 | Singular.ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex |
| 1962 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) := |
| 1963 | Singular.SubdivisionBarycentricOuterFaces.barycentricSubdivisionChainMapCanonical |
| 1964 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1965 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) ≫ |
| 1966 | Singular.SubdivisionBasic.subdivisionLastVertexChainMap |
| 1967 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1968 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) |
| 1969 | |
| 1970 | lemma standardFacetCarrierAffineIntersectionMap_comp_ambientInclusion |
| 1971 | (d n : ℕ) |
| 1972 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1973 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) : |
| 1974 | standardFacetCarrierAffineIntersectionMap d x ≫ |
| 1975 | TopCat.toSSet.map |
| 1976 | (Singular.ExcisionCoverSmall.topologicalSubsetInclusion (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1977 | (standardPuncturedFacetIntersectionSubspace d |
| 1978 | (standardFacetCarrier d x))) = |
| 1979 | standardFacetCarrierBoundarySimplexMap d x ≫ |
| 1980 | SphereAffineBoundary.Singular.standardAffineBoundarySimplicialMap d := rfl |
| 1981 | |
| 1982 | set_option backward.isDefEq.respectTransparency false in |
| 1983 | lemma standardFacetCarrierSourceSubdivisionIntersectionMap_comp_ambientInclusion |
| 1984 | (d n : ℕ) |
| 1985 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 1986 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) : |
| 1987 | standardFacetCarrierSourceSubdivisionIntersectionMap d x ≫ |
| 1988 | TopCat.toSSet.map |
| 1989 | (Singular.ExcisionCoverSmall.topologicalSubsetInclusion (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 1990 | (standardPuncturedFacetIntersectionSubspace d |
| 1991 | (standardFacetCarrier d x))) = |
| 1992 | Singular.SubdivisionBasic.simplexSubdivisionLastVertex.app (SimplexCategory.mk n) ≫ |
| 1993 | SSet.yonedaEquiv.symm x.1 := rfl |
| 1994 | |
| 1995 | set_option backward.isDefEq.respectTransparency false in |
| 1996 | /-- Subdivision, last vertex, and the simplex represented by `x` give the same map whether |
| 1997 | formed in the cover-small simplicial set or directly in the ambient singular set. -/ |
| 1998 | lemma standardFacetSmall_subdivision_to_source |
| 1999 | (d n : ℕ) |
| 2000 | (x : (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2001 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) _⦋n⦌) : |
| 2002 | SSet.stdSimplex.sdIso.inv.app (SimplexCategory.mk n) ≫ |
| 2003 | SSet.sd.map (SSet.yonedaEquiv.symm x) ≫ |
| 2004 | Singular.SubdivisionBasic.subdivisionLastVertex.app |
| 2005 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2006 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) ≫ |
| 2007 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2008 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d)).ι = |
| 2009 | Singular.SubdivisionBasic.simplexSubdivisionLastVertex.app (SimplexCategory.mk n) ≫ |
| 2010 | SSet.yonedaEquiv.symm x.1 := by |
| 2011 | let K : SSet.{0} := Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2012 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) |
| 2013 | let inc : K ⟶ TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd := |
| 2014 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2015 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d)).ι |
| 2016 | have hy : SSet.yonedaEquiv.symm x ≫ inc = SSet.yonedaEquiv.symm x.1 := |
| 2017 | SSet.yonedaEquiv_symm_comp x |
| 2018 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2019 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d)).ι |
| 2020 | have hnatInc : Singular.SubdivisionBasic.subdivisionLastVertex.app K ≫ inc = |
| 2021 | SSet.sd.map inc ≫ Singular.SubdivisionBasic.subdivisionLastVertex.app |
| 2022 | (TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd) := |
| 2023 | (Singular.SubdivisionBasic.subdivisionLastVertex.naturality inc).symm |
| 2024 | have hnatSimplex : |
| 2025 | SSet.sd.map (SSet.yonedaEquiv.symm x.1) ≫ |
| 2026 | Singular.SubdivisionBasic.subdivisionLastVertex.app |
| 2027 | (TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd) = |
| 2028 | Singular.SubdivisionBasic.subdivisionLastVertex.app (Δ[n] : SSet.{0}) ≫ |
| 2029 | SSet.yonedaEquiv.symm x.1 := |
| 2030 | Singular.SubdivisionBasic.subdivisionLastVertex.naturality (SSet.yonedaEquiv.symm x.1) |
| 2031 | let A := SSet.stdSimplex.sdIso.inv.app (SimplexCategory.mk n) |
| 2032 | let B := SSet.sd.map (SSet.yonedaEquiv.symm x) |
| 2033 | let L := Singular.SubdivisionBasic.subdivisionLastVertex.app K |
| 2034 | calc |
| 2035 | ((A ≫ B) ≫ L) ≫ inc = (A ≫ B) ≫ (L ≫ inc) := |
| 2036 | Category.assoc _ _ _ |
| 2037 | _ = (A ≫ B) ≫ |
| 2038 | (SSet.sd.map inc ≫ Singular.SubdivisionBasic.subdivisionLastVertex.app |
| 2039 | (TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd)) := by rw [hnatInc] |
| 2040 | _ = A ≫ ((B ≫ SSet.sd.map inc) ≫ |
| 2041 | Singular.SubdivisionBasic.subdivisionLastVertex.app |
| 2042 | (TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd)) := by |
| 2043 | simp only [Category.assoc] |
| 2044 | _ = A ≫ (SSet.sd.map (SSet.yonedaEquiv.symm x ≫ inc) ≫ |
| 2045 | Singular.SubdivisionBasic.subdivisionLastVertex.app |
| 2046 | (TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd)) := by |
| 2047 | rw [SSet.sd.map_comp] |
| 2048 | _ = A ≫ (SSet.sd.map (SSet.yonedaEquiv.symm x.1) ≫ |
| 2049 | Singular.SubdivisionBasic.subdivisionLastVertex.app |
| 2050 | (TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd)) := by rw [hy] |
| 2051 | _ = A ≫ (Singular.SubdivisionBasic.subdivisionLastVertex.app (Δ[n] : SSet.{0}) ≫ |
| 2052 | SSet.yonedaEquiv.symm x.1) := by rw [hnatSimplex] |
| 2053 | _ = (A ≫ Singular.SubdivisionBasic.subdivisionLastVertex.app (Δ[n] : SSet.{0})) ≫ |
| 2054 | SSet.yonedaEquiv.symm x.1 := (Category.assoc _ _ _).symm |
| 2055 | _ = _ := by |
| 2056 | rw [Singular.SubdivisionBasic.subdivisionLastVertex_standardSimplex] |
| 2057 | |
| 2058 | set_option backward.isDefEq.respectTransparency false in |
| 2059 | lemma standardFacetCarrierDiscrepancyChainMap_eq (d : ℕ) : |
| 2060 | standardFacetCarrierDiscrepancyChainMap d = |
| 2061 | (standardFacetCarrierChainMap d ≫ |
| 2062 | standardAffineBoundaryIntegralChainMap d : |
| 2063 | Singular.ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex |
| 2064 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) ⟶ |
| 2065 | Singular.ExcisionCoverSmall.IntegralSingularChainComplexObj (FundamentalClass.Singular.puncturedPair ℝ d).snd) - |
| 2066 | standardFacetSmallBarycentricLastVertexIntegralChainMap d ≫ |
| 2067 | Singular.ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion |
| 2068 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) := by |
| 2069 | apply HomologicalComplex.Hom.ext |
| 2070 | funext n |
| 2071 | apply (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2072 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 2073 | (standardPuncturedFacetCover d) : SSet).chainComplex_hom_ext |
| 2074 | intro x |
| 2075 | simp only [HomologicalComplex.sub_f_apply, HomologicalComplex.comp_f] |
| 2076 | rw [standardFacetCarrierDiscrepancyChainMap_f, |
| 2077 | iota_standardFacetCarrierDiscrepancyComponent, |
| 2078 | standardFacetCarrierDiscrepancySimplexChain, |
| 2079 | standardFacetCarrierIntersectionDiscrepancy, |
| 2080 | Preadditive.sub_comp, Preadditive.comp_sub] |
| 2081 | apply congrArg₂ (fun a b ↦ a - b) |
| 2082 | · rw [← Category.assoc, standardFacetCarrierChainMap_f, |
| 2083 | iota_standardFacetCarrierComponent, standardFacetCarrierSimplexChain] |
| 2084 | simp only [Category.assoc] |
| 2085 | have hmap := ((SSet.chainComplexFunctor AddCommGrpCat).obj (AddCommGrpCat.of ℤ)).congr_map |
| 2086 | (standardFacetCarrierAffineIntersectionMap_comp_ambientInclusion d n x) |
| 2087 | rw [Functor.map_comp, Functor.map_comp] at hmap |
| 2088 | exact congrArg (fun k ↦ Singular.SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain n ≫ k.f n) hmap |
| 2089 | · rw [← Category.assoc, standardFacetSmallBarycentricLastVertexIntegralChainMap, |
| 2090 | HomologicalComplex.comp_f, Singular.SubdivisionBarycentricOuterFaces.barycentricSubdivisionChainMapCanonical_f, ← Category.assoc, |
| 2091 | Singular.SubdivisionBarycentricAllDegrees.iota_barycentricSubdivisionComponent, Singular.SubdivisionBarycentricAllDegrees.barycentricSubdivisionSimplexChain, |
| 2092 | Singular.SubdivisionBarycentricAllDegrees.subdividedStandardSimplexFundamentalChain] |
| 2093 | simp only [Category.assoc] |
| 2094 | let F := (SSet.chainComplexFunctor AddCommGrpCat).obj (AddCommGrpCat.of ℤ) |
| 2095 | have hleft := F.congr_map |
| 2096 | (standardFacetCarrierSourceSubdivisionIntersectionMap_comp_ambientInclusion d n x) |
| 2097 | have hright := F.congr_map |
| 2098 | (standardFacetSmall_subdivision_to_source d n x) |
| 2099 | rw [Functor.map_comp] at hleft |
| 2100 | rw [Functor.map_comp, Functor.map_comp, Functor.map_comp] at hright |
| 2101 | have htotal := hleft.trans hright.symm |
| 2102 | have hntotal := congrArg (fun k ↦ k.f n) htotal |
| 2103 | simp only [HomologicalComplex.comp_f] at hntotal |
| 2104 | unfold standardFacetCarrierIntersectionChainInclusion Singular.SubdivisionBasic.subdivisionLastVertexChainMap |
| 2105 | Singular.ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion |
| 2106 | dsimp only [F] at hntotal |
| 2107 | simpa only [Category.assoc] using |
| 2108 | congrArg (fun k ↦ Singular.SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain n ≫ k) hntotal |
| 2109 | |
| 2110 | lemma standardAffineBoundarySimplicialMap_range_le_coverSmall (d : ℕ) : |
| 2111 | SSet.Subcomplex.range (SphereAffineBoundary.Singular.standardAffineBoundarySimplicialMap d) ≤ |
| 2112 | Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2113 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) := by |
| 2114 | rintro q _ ⟨y, rfl⟩ |
| 2115 | obtain ⟨i, hi⟩ := (SSet.mem_boundary_iff_notMem_range y.1).mp y.2 |
| 2116 | rw [Singular.ExcisionCoverSmall.mem_coverSmallSingularSubcomplex_iff] |
| 2117 | exact ⟨i, (Singular.SubsetChains.singularSimplex_mem_range_subset |
| 2118 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d i) _).mpr |
| 2119 | (standardAffineBoundarySimplex_image_subset_facetCover d q.unop.len y i hi)⟩ |
| 2120 | |
| 2121 | /-- The affine boundary simplicial map factored through cover-small singular simplices. -/ |
| 2122 | def standardAffineBoundaryToFacetSmall (d : ℕ) : |
| 2123 | (∂Δ[d] : SSet.{0}) ⟶ |
| 2124 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2125 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) := |
| 2126 | SSet.Subcomplex.lift (SphereAffineBoundary.Singular.standardAffineBoundarySimplicialMap d) |
| 2127 | (standardAffineBoundarySimplicialMap_range_le_coverSmall d) |
| 2128 | |
| 2129 | @[reassoc (attr := simp)] |
| 2130 | lemma standardAffineBoundaryToFacetSmall_comp_inclusion (d : ℕ) : |
| 2131 | standardAffineBoundaryToFacetSmall d ≫ |
| 2132 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2133 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d)).ι = |
| 2134 | SphereAffineBoundary.Singular.standardAffineBoundarySimplicialMap d := rfl |
| 2135 | |
| 2136 | lemma standardAffineBoundary_vertex_mem_facetCover_iff |
| 2137 | (d n : ℕ) (y : (∂Δ[d] : SSet.{0}) _⦋n⦌) |
| 2138 | (a : Fin (n + 1)) (i : Fin (d + 1)) : |
| 2139 | ((FundamentalClass.Singular.puncturedPair ℝ d).snd.toSSetObjEquiv _ |
| 2140 | ((SphereAffineBoundary.Singular.standardAffineBoundarySimplicialMap d).app _ y)) |
| 2141 | (Convexity.StdSimplex.single a) ∈ standardPuncturedFacetCover d i ↔ |
| 2142 | i ≠ y.1 a := by |
| 2143 | change (∃ j : Fin (d + 1), |
| 2144 | standardExtendedCoordinate d i |
| 2145 | (FundamentalClass.Singular.standardAffineSimplex d (Convexity.StdSimplex.map y.1 (Convexity.StdSimplex.single a))) < |
| 2146 | standardExtendedCoordinate d j |
| 2147 | (FundamentalClass.Singular.standardAffineSimplex d (Convexity.StdSimplex.map y.1 (Convexity.StdSimplex.single a)))) ↔ _ |
| 2148 | rw [Convexity.StdSimplex.map_single] |
| 2149 | simp only [standardExtendedCoordinate_standardAffineSimplex, |
| 2150 | sub_lt_sub_iff_right] |
| 2151 | constructor |
| 2152 | · rintro ⟨j, hj⟩ rfl |
| 2153 | have hle : (Convexity.StdSimplex.single (y.1 a) : |
| 2154 | Convexity.StdSimplex ℝ (Fin (d + 1))) j ≤ 1 := |
| 2155 | Convexity.StdSimplex.weights_apply_le_one _ j |
| 2156 | have hone : (Convexity.StdSimplex.single (y.1 a) : |
| 2157 | Convexity.StdSimplex ℝ (Fin (d + 1))) (y.1 a) = 1 := by simp |
| 2158 | rw [hone] at hj |
| 2159 | exact (not_lt_of_ge hle) hj |
| 2160 | · intro h |
| 2161 | refine ⟨y.1 a, ?_⟩ |
| 2162 | simp [Convexity.StdSimplex.single, h] |
| 2163 | |
| 2164 | lemma standardAffineBoundarySmall_vertex_mem_facetCover_iff |
| 2165 | (d n : ℕ) (y : (∂Δ[d] : SSet.{0}) _⦋n⦌) |
| 2166 | (a : Fin (n + 1)) (i : Fin (d + 1)) : |
| 2167 | ((FundamentalClass.Singular.puncturedPair ℝ d).snd.toSSetObjEquiv _ |
| 2168 | ((standardAffineBoundaryToFacetSmall d).app _ y).1) |
| 2169 | (Convexity.StdSimplex.single a) ∈ standardPuncturedFacetCover d i ↔ |
| 2170 | i ≠ y.1 a := |
| 2171 | standardAffineBoundary_vertex_mem_facetCover_iff d n y a i |
| 2172 | |
| 2173 | /-- On an affine boundary simplex, the complementary carrier of a face is exactly the image of |
| 2174 | that face's vertex set. -/ |
| 2175 | lemma standardFacetComplementCarrier_affine (d n : ℕ) |
| 2176 | (y : (∂Δ[d] : SSet.{0}) _⦋n⦌) |
| 2177 | (A : NonemptyFiniteChains (ULift.{0} (Fin (n + 1)))) : |
| 2178 | standardFacetComplementCarrier d |
| 2179 | ((standardAffineBoundaryToFacetSmall d).app _ y) A = |
| 2180 | A.finset.image (fun a ↦ y.1 a.down) := by |
| 2181 | ext i |
| 2182 | simp only [standardFacetComplementCarrier, Finset.mem_compl, |
| 2183 | standardFacetCarrierAtFace, Finset.mem_filter, Finset.mem_univ, true_and, |
| 2184 | standardAffineBoundarySmall_vertex_mem_facetCover_iff, |
| 2185 | Finset.mem_image] |
| 2186 | constructor |
| 2187 | · intro h |
| 2188 | by_contra hnot |
| 2189 | exact h fun a ha hai ↦ hnot ⟨a, ha, hai.symm⟩ |
| 2190 | · rintro ⟨a, ha, rfl⟩ h |
| 2191 | exact h a ha rfl |
| 2192 | |
| 2193 | lemma standardFacetComplementCarrierMax_affine (d n : ℕ) |
| 2194 | (y : (∂Δ[d] : SSet.{0}) _⦋n⦌) |
| 2195 | (A : NonemptyFiniteChains (ULift.{0} (Fin (n + 1)))) : |
| 2196 | standardFacetComplementCarrierMax d |
| 2197 | ((standardAffineBoundaryToFacetSmall d).app _ y) A = |
| 2198 | y.1 (A.finset.max' A.nonempty).down := by |
| 2199 | have hcarrier := standardFacetComplementCarrier_affine d n y A |
| 2200 | apply le_antisymm |
| 2201 | · apply Finset.max'_le |
| 2202 | intro j hj |
| 2203 | rw [hcarrier, Finset.mem_image] at hj |
| 2204 | obtain ⟨a, ha, rfl⟩ := hj |
| 2205 | have haDown : a.down ≤ (A.finset.max' A.nonempty).down := Finset.le_max' A.finset a ha |
| 2206 | exact (SSet.stdSimplex.objEquiv y.1).toOrderHom.monotone haDown |
| 2207 | · apply Finset.le_max' |
| 2208 | rw [hcarrier] |
| 2209 | exact Finset.mem_image.mpr |
| 2210 | ⟨A.finset.max' A.nonempty, Finset.max'_mem _ _, rfl⟩ |
| 2211 | |
| 2212 | lemma standardFacetCarrierSimplexMap_affine (d n : ℕ) |
| 2213 | (y : (∂Δ[d] : SSet.{0}) _⦋n⦌) : |
| 2214 | standardFacetCarrierSimplexMap d |
| 2215 | ((standardAffineBoundaryToFacetSmall d).app _ y) = |
| 2216 | Singular.SubdivisionBasic.simplexSubdivisionLastVertex.app (SimplexCategory.mk n) ≫ |
| 2217 | SSet.yonedaEquiv.symm y.1 := by |
| 2218 | ext q F |
| 2219 | apply SSet.stdSimplex.objEquiv.injective |
| 2220 | apply SimplexCategory.Hom.ext |
| 2221 | apply OrderHom.ext |
| 2222 | funext r |
| 2223 | let A : NonemptyFiniteChains (ULift.{0} (Fin (n + 1))) := F.obj r |
| 2224 | change standardFacetComplementCarrierMax d |
| 2225 | ((standardAffineBoundaryToFacetSmall d).app _ y) A = |
| 2226 | y.1 (Singular.SubdivisionBasic.nonemptyFiniteChainMaximum |
| 2227 | (ULift.{0} (Fin (n + 1))) A).down |
| 2228 | exact standardFacetComplementCarrierMax_affine d n y A |
| 2229 | |
| 2230 | lemma standardFacetCarrierBoundarySimplexMap_affine (d n : ℕ) |
| 2231 | (y : (∂Δ[d] : SSet.{0}) _⦋n⦌) : |
| 2232 | standardFacetCarrierBoundarySimplexMap d |
| 2233 | ((standardAffineBoundaryToFacetSmall d).app _ y) = |
| 2234 | Singular.SubdivisionBasic.simplexSubdivisionLastVertex.app (SimplexCategory.mk n) ≫ |
| 2235 | SSet.yonedaEquiv.symm y := by |
| 2236 | apply (cancel_mono (∂Δ[d]).ι).mp |
| 2237 | rw [standardFacetCarrierBoundarySimplexMap_comp_inclusion, |
| 2238 | standardFacetCarrierSimplexMap_affine, Category.assoc] |
| 2239 | have hy : SSet.yonedaEquiv.symm y ≫ (∂Δ[d]).ι = |
| 2240 | SSet.yonedaEquiv.symm y.1 := |
| 2241 | SSet.yonedaEquiv_symm_comp y (∂Δ[d]).ι |
| 2242 | rw [hy] |
| 2243 | |
| 2244 | lemma standardSubdivisionToCarrierBoundary_affine (d n : ℕ) |
| 2245 | (y : (∂Δ[d] : SSet.{0}) _⦋n⦌) : |
| 2246 | SSet.stdSimplex.sdIso.inv.app (SimplexCategory.mk n) ≫ |
| 2247 | SSet.sd.map (SSet.yonedaEquiv.symm y) ≫ |
| 2248 | Singular.SubdivisionBasic.subdivisionLastVertex.app (∂Δ[d] : SSet.{0}) = |
| 2249 | standardFacetCarrierBoundarySimplexMap d |
| 2250 | ((standardAffineBoundaryToFacetSmall d).app _ y) := by |
| 2251 | rw [standardFacetCarrierBoundarySimplexMap_affine, Singular.SubdivisionBasic.subdivisionLastVertex.naturality, |
| 2252 | ← Category.assoc, Singular.SubdivisionBasic.subdivisionLastVertex_standardSimplex] |
| 2253 | rfl |
| 2254 | |
| 2255 | /-- On each affine simplex, carrier after subdivision is the usual subdivision--last-vertex |
| 2256 | endomorphism of the simplicial boundary. -/ |
| 2257 | lemma standardFacetCarrierSimplexChain_affine (d n : ℕ) |
| 2258 | (y : (∂Δ[d] : SSet.{0}) _⦋n⦌) : |
| 2259 | standardFacetCarrierSimplexChain d n |
| 2260 | ((standardAffineBoundaryToFacetSmall d).app _ y) = |
| 2261 | (∂Δ[d] : SSet.{0}).ιChainComplex y ≫ |
| 2262 | (Singular.SubdivisionBarycentricOuterFaces.barycentricSubdivisionChainMapCanonical (∂Δ[d] : SSet.{0}) ≫ |
| 2263 | Singular.SubdivisionBasic.subdivisionLastVertexChainMap (∂Δ[d] : SSet.{0})).f n := by |
| 2264 | rw [standardFacetCarrierSimplexChain] |
| 2265 | simp only [HomologicalComplex.comp_f] |
| 2266 | rw [← Category.assoc, Singular.SubdivisionBarycentricOuterFaces.barycentricSubdivisionChainMapCanonical_f, |
| 2267 | Singular.SubdivisionBarycentricAllDegrees.iota_barycentricSubdivisionComponent, Singular.SubdivisionBarycentricAllDegrees.barycentricSubdivisionSimplexChain, |
| 2268 | Singular.SubdivisionBarycentricAllDegrees.subdividedStandardSimplexFundamentalChain] |
| 2269 | simp only [Category.assoc] |
| 2270 | congr 1 |
| 2271 | have hmap := ((SSet.chainComplexFunctor AddCommGrpCat).obj (AddCommGrpCat.of ℤ)).congr_map |
| 2272 | (standardSubdivisionToCarrierBoundary_affine d n y) |
| 2273 | rw [Functor.map_comp, Functor.map_comp] at hmap |
| 2274 | exact congrArg (fun f ↦ f.f n) hmap.symm |
| 2275 | |
| 2276 | lemma standardAffineSmall_comp_standardFacetCarrierChainMap (d : ℕ) : |
| 2277 | SSet.chainComplexMap (standardAffineBoundaryToFacetSmall d) |
| 2278 | (AddCommGrpCat.of ℤ) ≫ |
| 2279 | standardFacetCarrierChainMap d = |
| 2280 | Singular.SubdivisionBarycentricOuterFaces.barycentricSubdivisionChainMapCanonical (∂Δ[d] : SSet.{0}) ≫ |
| 2281 | Singular.SubdivisionBasic.subdivisionLastVertexChainMap (∂Δ[d] : SSet.{0}) := by |
| 2282 | apply HomologicalComplex.Hom.ext |
| 2283 | funext n |
| 2284 | apply (∂Δ[d] : SSet.{0}).chainComplex_hom_ext |
| 2285 | intro y |
| 2286 | simp only [HomologicalComplex.comp_f] |
| 2287 | rw [← Category.assoc, SSet.ι_chainComplexMap_f, standardFacetCarrierChainMap_f, |
| 2288 | iota_standardFacetCarrierComponent] |
| 2289 | exact standardFacetCarrierSimplexChain_affine d n y |
| 2290 | |
| 2291 | /-- The rationalized carrier chain map. -/ |
| 2292 | def standardFacetCarrierRationalChainMap (d : ℕ) : |
| 2293 | Singular.ExcisionField.CoverSmallRationalSingularChainComplex |
| 2294 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) ⟶ |
| 2295 | ((∂Δ[d] : SSet.{0}).chainComplex (ModuleCat.of ℚ ℚ)) := |
| 2296 | Singular.ExcisionField.rationalizeSimplicialChainMap |
| 2297 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2298 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) |
| 2299 | (∂Δ[d] : SSet.{0}) (standardFacetCarrierChainMap d) |
| 2300 | |
| 2301 | /-- The rational subdivision--last-vertex endomorphism. -/ |
| 2302 | def standardBarycentricLastVertexRationalChainMap (d : ℕ) : |
| 2303 | ((∂Δ[d] : SSet.{0}).chainComplex (ModuleCat.of ℚ ℚ)) ⟶ |
| 2304 | ((∂Δ[d] : SSet.{0}).chainComplex (ModuleCat.of ℚ ℚ)) := |
| 2305 | Singular.ExcisionField.rationalizeSimplicialChainMap (∂Δ[d] : SSet.{0}) (∂Δ[d] : SSet.{0}) |
| 2306 | (Singular.SubdivisionBarycentricOuterFaces.barycentricSubdivisionChainMapCanonical (∂Δ[d] : SSet.{0}) ≫ |
| 2307 | Singular.SubdivisionBasic.subdivisionLastVertexChainMap (∂Δ[d] : SSet.{0})) |
| 2308 | |
| 2309 | /-- The rational subdivision--last-vertex endomorphism is chain-homotopic to the identity. -/ |
| 2310 | def standardBarycentricLastVertexRationalHomotopy (d : ℕ) : |
| 2311 | Homotopy (standardBarycentricLastVertexRationalChainMap d) (𝟙 _) := |
| 2312 | (Singular.ExcisionField.rationalizeSimplicialChainHomotopy (∂Δ[d] : SSet.{0}) (∂Δ[d] : SSet.{0}) |
| 2313 | (Singular.StandardSimplexCone.barycentricSubdivisionLastVertexHomotopyCanonical (∂Δ[d] : SSet.{0}))).trans |
| 2314 | (Homotopy.ofEq (Singular.ExcisionField.rationalizeSimplicialChainMap_id (∂Δ[d] : SSet.{0}))) |
| 2315 | |
| 2316 | lemma standardAffineSmallRational_comp_standardFacetCarrierRationalChainMap (d : ℕ) : |
| 2317 | SSet.chainComplexMap (standardAffineBoundaryToFacetSmall d) |
| 2318 | (ModuleCat.of ℚ ℚ) ≫ |
| 2319 | standardFacetCarrierRationalChainMap d = |
| 2320 | standardBarycentricLastVertexRationalChainMap d := by |
| 2321 | rw [← Singular.ExcisionField.rationalizeSimplicialChainMap_chainComplexMap] |
| 2322 | unfold standardFacetCarrierRationalChainMap |
| 2323 | rw [← Singular.ExcisionField.rationalizeSimplicialChainMap_comp, standardAffineSmall_comp_standardFacetCarrierChainMap] |
| 2324 | rfl |
| 2325 | |
| 2326 | lemma standardAffineBoundaryChainMap_factor_facetSmall (d : ℕ) : |
| 2327 | SSet.chainComplexMap (standardAffineBoundaryToFacetSmall d) |
| 2328 | (ModuleCat.of ℚ ℚ) ≫ |
| 2329 | Singular.ExcisionField.coverSmallRationalSingularChainInclusion |
| 2330 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) = |
| 2331 | SphereAffineBoundary.Singular.standardAffineBoundaryChainMap d := by |
| 2332 | change SSet.chainComplexMap (standardAffineBoundaryToFacetSmall d) |
| 2333 | (ModuleCat.of ℚ ℚ) ≫ |
| 2334 | SSet.chainComplexMap |
| 2335 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2336 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d)).ι |
| 2337 | (ModuleCat.of ℚ ℚ) = |
| 2338 | SSet.chainComplexMap (SphereAffineBoundary.Singular.standardAffineBoundarySimplicialMap d) |
| 2339 | (ModuleCat.of ℚ ℚ) |
| 2340 | rw [← Functor.map_comp, standardAffineBoundaryToFacetSmall_comp_inclusion] |
| 2341 | |
| 2342 | /-- Rationalization preserves subtraction of integral simplicial chain maps. -/ |
| 2343 | lemma rationalizeSimplicialChainMap_sub |
| 2344 | (X Y : SSet.{0}) |
| 2345 | (f g : X.chainComplex (AddCommGrpCat.of ℤ) ⟶ |
| 2346 | Y.chainComplex (AddCommGrpCat.of ℤ)) : |
| 2347 | Singular.ExcisionField.rationalizeSimplicialChainMap X Y (f - g) = |
| 2348 | Singular.ExcisionField.rationalizeSimplicialChainMap X Y f - |
| 2349 | Singular.ExcisionField.rationalizeSimplicialChainMap X Y g := by |
| 2350 | apply HomologicalComplex.hom_ext |
| 2351 | intro n |
| 2352 | simp only [Singular.ExcisionField.rationalizeSimplicialChainMap_f, |
| 2353 | sub_eq_add_neg, |
| 2354 | Singular.ExcisionField.rationalizeSimplicialChainComponent_add, |
| 2355 | Singular.ExcisionField.rationalizeSimplicialChainComponent_neg, |
| 2356 | HomologicalComplex.add_f_apply, HomologicalComplex.neg_f_apply] |
| 2357 | |
| 2358 | /-- Rational subdivision followed by last vertex on the facet-small simplicial set. -/ |
| 2359 | def standardFacetSmallBarycentricLastVertexRationalChainMap (d : ℕ) : |
| 2360 | Singular.ExcisionField.CoverSmallRationalSingularChainComplex |
| 2361 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) ⟶ |
| 2362 | Singular.ExcisionField.CoverSmallRationalSingularChainComplex |
| 2363 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) := |
| 2364 | Singular.ExcisionField.rationalizeSimplicialChainMap |
| 2365 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2366 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) |
| 2367 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2368 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) |
| 2369 | (standardFacetSmallBarycentricLastVertexIntegralChainMap d) |
| 2370 | |
| 2371 | /-- The rationalized carrier discrepancy is the difference between carrier followed by affine |
| 2372 | realization and subdivision--last-vertex followed by small-chain inclusion. -/ |
| 2373 | lemma standardFacetCarrierDiscrepancyRationalChainMap_eq (d : ℕ) : |
| 2374 | Singular.ExcisionField.rationalizeSimplicialChainMap |
| 2375 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2376 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) |
| 2377 | (TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd) |
| 2378 | (standardFacetCarrierDiscrepancyChainMap d) = |
| 2379 | standardFacetCarrierRationalChainMap d ≫ |
| 2380 | SphereAffineBoundary.Singular.standardAffineBoundaryChainMap d - |
| 2381 | standardFacetSmallBarycentricLastVertexRationalChainMap d ≫ |
| 2382 | Singular.ExcisionField.coverSmallRationalSingularChainInclusion |
| 2383 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) := by |
| 2384 | rw [standardFacetCarrierDiscrepancyChainMap_eq] |
| 2385 | calc |
| 2386 | _ = Singular.ExcisionField.rationalizeSimplicialChainMap |
| 2387 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2388 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) |
| 2389 | (TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd) |
| 2390 | (standardFacetCarrierChainMap d ≫ |
| 2391 | standardAffineBoundaryIntegralChainMap d) - |
| 2392 | Singular.ExcisionField.rationalizeSimplicialChainMap |
| 2393 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2394 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) |
| 2395 | (TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd) |
| 2396 | (standardFacetSmallBarycentricLastVertexIntegralChainMap d ≫ |
| 2397 | Singular.ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion |
| 2398 | (FundamentalClass.Singular.puncturedPair ℝ d).snd |
| 2399 | (standardPuncturedFacetCover d)) := |
| 2400 | rationalizeSimplicialChainMap_sub _ _ _ _ |
| 2401 | _ = _ := by |
| 2402 | apply congrArg₂ (fun f g ↦ f - g) |
| 2403 | · rw [Singular.ExcisionField.rationalizeSimplicialChainMap_comp] |
| 2404 | unfold standardFacetCarrierRationalChainMap standardAffineBoundaryIntegralChainMap |
| 2405 | SphereAffineBoundary.Singular.standardAffineBoundaryChainMap |
| 2406 | rw [Singular.ExcisionField.rationalizeSimplicialChainMap_chainComplexMap] |
| 2407 | · unfold Singular.ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion |
| 2408 | rw [Singular.ExcisionField.rationalizeSimplicialChainMap_comp] |
| 2409 | unfold standardFacetSmallBarycentricLastVertexRationalChainMap |
| 2410 | Singular.ExcisionField.coverSmallRationalSingularChainInclusion |
| 2411 | rw [Singular.ExcisionField.rationalizeSimplicialChainMap_chainComplexMap] |
| 2412 | |
| 2413 | /-- On facet-small rational chains, subdivision followed by last vertex is homotopic to the |
| 2414 | identity. -/ |
| 2415 | def standardFacetSmallBarycentricLastVertexRationalHomotopy (d : ℕ) : |
| 2416 | Homotopy (standardFacetSmallBarycentricLastVertexRationalChainMap d) ( 𝟙 _) := |
| 2417 | (Singular.ExcisionField.rationalizeSimplicialChainHomotopy |
| 2418 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2419 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) |
| 2420 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2421 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet) |
| 2422 | (Singular.StandardSimplexCone.barycentricSubdivisionLastVertexHomotopyCanonical |
| 2423 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2424 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet))).trans |
| 2425 | (Homotopy.ofEq (Singular.ExcisionField.rationalizeSimplicialChainMap_id |
| 2426 | (Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex |
| 2427 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) : SSet))) |
| 2428 | |
| 2429 | /-- The rational carrier followed by affine realization is homotopic to the inclusion of |
| 2430 | facet-small rational chains. -/ |
| 2431 | def standardFacetCarrierAffineRationalHomotopy (d : ℕ) : |
| 2432 | Homotopy |
| 2433 | (standardFacetCarrierRationalChainMap d ≫ |
| 2434 | SphereAffineBoundary.Singular.standardAffineBoundaryChainMap d) |
| 2435 | (Singular.ExcisionField.coverSmallRationalSingularChainInclusion |
| 2436 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d)) := |
| 2437 | let C := standardFacetCarrierRationalChainMap d ≫ |
| 2438 | SphereAffineBoundary.Singular.standardAffineBoundaryChainMap d |
| 2439 | let B := standardFacetSmallBarycentricLastVertexRationalChainMap d |
| 2440 | let I := Singular.ExcisionField.coverSmallRationalSingularChainInclusion |
| 2441 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) |
| 2442 | have hnull : Homotopy (C - B ≫ I) 0 := |
| 2443 | (Homotopy.ofEq |
| 2444 | (standardFacetCarrierDiscrepancyRationalChainMap_eq d).symm).trans |
| 2445 | (standardFacetCarrierDiscrepancyRationalHomotopy d) |
| 2446 | ((Homotopy.equivSubZero (f := C) (g := B ≫ I)).symm hnull).trans |
| 2447 | ((standardFacetSmallBarycentricLastVertexRationalHomotopy d).compRightId I) |
| 2448 | |
| 2449 | /-- A chain-level left inverse of affine realization, obtained by smallifying with respect to |
| 2450 | the facet cover and then applying the explicit carrier map. -/ |
| 2451 | def standardAffineBoundaryChainRetraction (d : ℕ) : |
| 2452 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd).chainComplex |
| 2453 | (ModuleCat.of ℚ ℚ)) ⟶ |
| 2454 | ((∂Δ[d] : SSet.{0}).chainComplex (ModuleCat.of ℚ ℚ)) := |
| 2455 | (Singular.ExcisionField.coverSmallRationalChainHomotopyEquiv_of_openCover |
| 2456 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) |
| 2457 | (isOpen_standardPuncturedFacetCover d) |
| 2458 | (iUnion_standardPuncturedFacetCover d)).inv ≫ |
| 2459 | standardFacetCarrierRationalChainMap d |
| 2460 | |
| 2461 | /-- Affine realization followed by the explicit carrier retraction is chain-homotopic to the |
| 2462 | identity. -/ |
| 2463 | def standardAffineBoundaryChainRetractionHomotopy (d : ℕ) : |
| 2464 | Homotopy |
| 2465 | (SphereAffineBoundary.Singular.standardAffineBoundaryChainMap d ≫ |
| 2466 | standardAffineBoundaryChainRetraction d) |
| 2467 | (𝟙 ((∂Δ[d] : SSet.{0}).chainComplex (ModuleCat.of ℚ ℚ))) := |
| 2468 | let A := SSet.chainComplexMap (standardAffineBoundaryToFacetSmall d) |
| 2469 | (ModuleCat.of ℚ ℚ) |
| 2470 | let E := Singular.ExcisionField.coverSmallRationalChainHomotopyEquiv_of_openCover |
| 2471 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) |
| 2472 | (isOpen_standardPuncturedFacetCover d) |
| 2473 | (iUnion_standardPuncturedFacetCover d) |
| 2474 | let C := standardFacetCarrierRationalChainMap d |
| 2475 | have hfac : SphereAffineBoundary.Singular.standardAffineBoundaryChainMap d = A ≫ E.hom := by |
| 2476 | rw [Singular.ExcisionField.coverSmallRationalChainHomotopyEquiv_of_openCover_hom] |
| 2477 | exact (standardAffineBoundaryChainMap_factor_facetSmall d).symm |
| 2478 | have hstart : SphereAffineBoundary.Singular.standardAffineBoundaryChainMap d ≫ (E.inv ≫ C) = |
| 2479 | (A ≫ (E.hom ≫ E.inv)) ≫ C := by |
| 2480 | rw [hfac] |
| 2481 | simp only [Category.assoc] |
| 2482 | have hsmall : Homotopy ((A ≫ (E.hom ≫ E.inv)) ≫ C) |
| 2483 | ((A ≫ 𝟙 _) ≫ C) := |
| 2484 | (E.homotopyHomInvId.compLeft A).compRight C |
| 2485 | have hunit : (A ≫ 𝟙 _) ≫ C = A ≫ C := by simp |
| 2486 | have hcarrier : A ≫ C = standardBarycentricLastVertexRationalChainMap d := |
| 2487 | standardAffineSmallRational_comp_standardFacetCarrierRationalChainMap d |
| 2488 | (Homotopy.ofEq hstart).trans <| hsmall.trans <| |
| 2489 | (Homotopy.ofEq hunit).trans <| (Homotopy.ofEq hcarrier).trans <| |
| 2490 | standardBarycentricLastVertexRationalHomotopy d |
| 2491 | |
| 2492 | /-- The explicit carrier retraction followed by affine realization is chain-homotopic to the |
| 2493 | identity on punctured-space rational chains. -/ |
| 2494 | def standardAffineBoundaryChainCoretractionHomotopy (d : ℕ) : |
| 2495 | Homotopy |
| 2496 | (standardAffineBoundaryChainRetraction d ≫ |
| 2497 | SphereAffineBoundary.Singular.standardAffineBoundaryChainMap d) |
| 2498 | (𝟙 ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd).chainComplex |
| 2499 | (ModuleCat.of ℚ ℚ))) := |
| 2500 | let E := Singular.ExcisionField.coverSmallRationalChainHomotopyEquiv_of_openCover |
| 2501 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) |
| 2502 | (isOpen_standardPuncturedFacetCover d) |
| 2503 | (iUnion_standardPuncturedFacetCover d) |
| 2504 | let C := standardFacetCarrierRationalChainMap d |
| 2505 | let A := SphereAffineBoundary.Singular.standardAffineBoundaryChainMap d |
| 2506 | let I := Singular.ExcisionField.coverSmallRationalSingularChainInclusion |
| 2507 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) |
| 2508 | have hE : E.hom = I := |
| 2509 | Singular.ExcisionField.coverSmallRationalChainHomotopyEquiv_of_openCover_hom |
| 2510 | (FundamentalClass.Singular.puncturedPair ℝ d).snd (standardPuncturedFacetCover d) |
| 2511 | (isOpen_standardPuncturedFacetCover d) |
| 2512 | (iUnion_standardPuncturedFacetCover d) |
| 2513 | have hcarrier : Homotopy (C ≫ A) E.hom := |
| 2514 | (standardFacetCarrierAffineRationalHomotopy d).trans |
| 2515 | (Homotopy.ofEq hE.symm) |
| 2516 | have hfull : Homotopy (E.inv ≫ (C ≫ A)) (𝟙 _) := |
| 2517 | (hcarrier.compLeft E.inv).trans E.homotopyInvHomId |
| 2518 | (Homotopy.ofEq (Category.assoc E.inv C A)).trans hfull |
| 2519 | |
| 2520 | /-- Affine realization of the standard simplicial boundary is a rational chain-homotopy |
| 2521 | equivalence onto punctured Euclidean space. -/ |
| 2522 | def standardAffineBoundaryChainHomotopyEquiv (d : ℕ) : |
| 2523 | HomotopyEquiv |
| 2524 | ((∂Δ[d] : SSet.{0}).chainComplex (ModuleCat.of ℚ ℚ)) |
| 2525 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ d).snd).chainComplex |
| 2526 | (ModuleCat.of ℚ ℚ)) where |
| 2527 | hom := SphereAffineBoundary.Singular.standardAffineBoundaryChainMap d |
| 2528 | inv := standardAffineBoundaryChainRetraction d |
| 2529 | homotopyHomInvId := standardAffineBoundaryChainRetractionHomotopy d |
| 2530 | homotopyInvHomId := standardAffineBoundaryChainCoretractionHomotopy d |
| 2531 | |
| 2532 | /-- The map on rational homology induced by the affine realization of a standard simplicial |
| 2533 | sphere in punctured Euclidean space. -/ |
| 2534 | def standardAffineBoundaryHomologyMap (n : ℕ) : |
| 2535 | ((∂Δ[n + 2] : SSet.{0}).chainComplex |
| 2536 | (ModuleCat.of ℚ ℚ)).homology (n + 1) ⟶ |
| 2537 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ (n + 2)).snd).chainComplex |
| 2538 | (ModuleCat.of ℚ ℚ)).homology (n + 1) := |
| 2539 | HomologicalComplex.homologyMap |
| 2540 | (SphereAffineBoundary.Singular.standardAffineBoundaryChainMap (n + 2)) (n + 1) |
| 2541 | |
| 2542 | /-- The induced map on homology back to the simplicial boundary. -/ |
| 2543 | def standardAffineBoundaryHomologyRetraction (n : ℕ) : |
| 2544 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ (n + 2)).snd).chainComplex |
| 2545 | (ModuleCat.of ℚ ℚ)).homology (n + 1) ⟶ |
| 2546 | ((∂Δ[n + 2] : SSet.{0}).chainComplex |
| 2547 | (ModuleCat.of ℚ ℚ)).homology (n + 1) := |
| 2548 | HomologicalComplex.homologyMap |
| 2549 | (standardAffineBoundaryChainRetraction (n + 2)) (n + 1) |
| 2550 | |
| 2551 | lemma standardAffineBoundaryHomologyMap_comp_retraction (n : ℕ) : |
| 2552 | standardAffineBoundaryHomologyMap n ≫ |
| 2553 | standardAffineBoundaryHomologyRetraction n = 𝟙 _ := by |
| 2554 | rw [standardAffineBoundaryHomologyMap, |
| 2555 | standardAffineBoundaryHomologyRetraction, |
| 2556 | ← HomologicalComplex.homologyMap_comp, |
| 2557 | (standardAffineBoundaryChainRetractionHomotopy (n + 2)).homologyMap_eq, |
| 2558 | HomologicalComplex.homologyMap_id] |
| 2559 | |
| 2560 | /-- The affine boundary comparison is an isomorphism on rational homology. -/ |
| 2561 | noncomputable instance standardAffineBoundaryHomologyMap_isIso (n : ℕ) : |
| 2562 | IsIso (standardAffineBoundaryHomologyMap n) := by |
| 2563 | change IsIso (HomologicalComplex.homologyMap |
| 2564 | (standardAffineBoundaryChainHomotopyEquiv (n + 2)).hom (n + 1)) |
| 2565 | exact ((standardAffineBoundaryChainHomotopyEquiv (n + 2)).toHomologyIso |
| 2566 | (n + 1)).isIso_hom |
| 2567 | |
| 2568 | lemma standardAffineBoundaryHomologyMap_injective (n : ℕ) : |
| 2569 | Function.Injective (standardAffineBoundaryHomologyMap n).hom := by |
| 2570 | intro x y hxy |
| 2571 | have h := congrArg (standardAffineBoundaryHomologyRetraction n).hom hxy |
| 2572 | have hcomp := ConcreteCategory.congr_hom |
| 2573 | (standardAffineBoundaryHomologyMap_comp_retraction n) |
| 2574 | calc |
| 2575 | x = (standardAffineBoundaryHomologyRetraction n).hom |
| 2576 | ((standardAffineBoundaryHomologyMap n).hom x) := by |
| 2577 | simpa only [ConcreteCategory.comp_apply, ConcreteCategory.id_apply] |
| 2578 | using (hcomp x).symm |
| 2579 | _ = (standardAffineBoundaryHomologyRetraction n).hom |
| 2580 | ((standardAffineBoundaryHomologyMap n).hom y) := h |
| 2581 | _ = y := by |
| 2582 | simpa only [ConcreteCategory.comp_apply, ConcreteCategory.id_apply] |
| 2583 | using hcomp y |
| 2584 | |
| 2585 | lemma standardPuncturedBoundaryCycle_inclusion' (n : ℕ) : |
| 2586 | Euclidean.Singular.standardPuncturedBoundaryCycle n ≫ |
| 2587 | ((Singular.Cohomology.chainPairFunctor ℚ).obj |
| 2588 | (FundamentalClass.Singular.puncturedPair ℝ (n + 1))).left.iCycles n = |
| 2589 | FundamentalClassBoundary.Singular.standardSubspaceBoundaryChain n := by |
| 2590 | rw [Euclidean.Singular.standardPuncturedBoundaryCycle, HomologicalComplex.liftCycles_i] |
| 2591 | |
| 2592 | lemma standardPuncturedBoundaryCycle_direct_inclusion (n : ℕ) : |
| 2593 | Euclidean.Singular.standardPuncturedBoundaryCycle n ≫ |
| 2594 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ (n + 1)).snd).chainComplex |
| 2595 | (ModuleCat.of ℚ ℚ)).iCycles n = |
| 2596 | FundamentalClassBoundary.Singular.standardSubspaceBoundaryChain n := |
| 2597 | standardPuncturedBoundaryCycle_inclusion' n |
| 2598 | |
| 2599 | lemma standardSphereSimplicialBoundaryCycle_inclusion' (n : ℕ) : |
| 2600 | SphereAffineBoundary.Singular.standardSphereSimplicialBoundaryCycle n ≫ |
| 2601 | ((∂Δ[n + 2] : SSet.{0}).chainComplex |
| 2602 | (ModuleCat.of ℚ ℚ)).iCycles (n + 1) = |
| 2603 | SphereAffineBoundary.Singular.standardSphereSimplicialBoundaryChain (n + 1) := by |
| 2604 | rw [SphereAffineBoundary.Singular.standardSphereSimplicialBoundaryCycle, |
| 2605 | HomologicalComplex.liftCycles_i] |
| 2606 | |
| 2607 | set_option backward.isDefEq.respectTransparency false in |
| 2608 | /-- The affine image of the simplicial alternating-facet cycle is the punctured Euclidean |
| 2609 | alternating-facet cycle. -/ |
| 2610 | lemma standardSphereSimplicialBoundaryCycle_affine (n : ℕ) : |
| 2611 | SphereAffineBoundary.Singular.standardSphereSimplicialBoundaryCycle n ≫ |
| 2612 | HomologicalComplex.cyclesMap |
| 2613 | (SphereAffineBoundary.Singular.standardAffineBoundaryChainMap (n + 2)) (n + 1) = |
| 2614 | Euclidean.Singular.standardPuncturedBoundaryCycle (n + 1) := by |
| 2615 | have hcycles : |
| 2616 | HomologicalComplex.cyclesMap |
| 2617 | (SphereAffineBoundary.Singular.standardAffineBoundaryChainMap (n + 2)) (n + 1) ≫ |
| 2618 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ (n + 2)).snd).chainComplex |
| 2619 | (ModuleCat.of ℚ ℚ)).iCycles (n + 1) = |
| 2620 | ((∂Δ[n + 2] : SSet.{0}).chainComplex |
| 2621 | (ModuleCat.of ℚ ℚ)).iCycles (n + 1) ≫ |
| 2622 | (SphereAffineBoundary.Singular.standardAffineBoundaryChainMap (n + 2)).f (n + 1) := |
| 2623 | HomologicalComplex.cyclesMap_i (SphereAffineBoundary.Singular.standardAffineBoundaryChainMap (n + 2)) (n + 1) |
| 2624 | apply (cancel_mono |
| 2625 | (((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ (n + 2)).snd).chainComplex |
| 2626 | (ModuleCat.of ℚ ℚ)).iCycles (n + 1))).mp |
| 2627 | rw [Category.assoc, hcycles, standardPuncturedBoundaryCycle_direct_inclusion, |
| 2628 | ← Category.assoc, standardSphereSimplicialBoundaryCycle_inclusion'] |
| 2629 | exact SphereAffineBoundary.Singular.standardAffineBoundaryChainMap_standardSphereSimplicialBoundaryChain (n + 1) |
| 2630 | |
| 2631 | set_option backward.isDefEq.respectTransparency false in |
| 2632 | /-- On homology, the affine realization sends the known simplicial sphere generator to the |
| 2633 | explicit boundary class in punctured Euclidean space. -/ |
| 2634 | lemma standardAffineBoundaryHomologyMap_standardSphereSimplicialBoundaryClass (n : ℕ) : |
| 2635 | (standardAffineBoundaryHomologyMap n).hom |
| 2636 | (SphereAffineBoundary.Singular.standardSphereSimplicialBoundaryClass n) = |
| 2637 | Euclidean.Singular.standardPuncturedBoundaryClass (n + 1) := by |
| 2638 | have hmor : |
| 2639 | SphereAffineBoundary.Singular.standardSphereSimplicialBoundaryCycle n ≫ |
| 2640 | ((∂Δ[n + 2] : SSet.{0}).chainComplex |
| 2641 | (ModuleCat.of ℚ ℚ)).homologyπ (n + 1) ≫ |
| 2642 | standardAffineBoundaryHomologyMap n = |
| 2643 | Euclidean.Singular.standardPuncturedBoundaryCycle (n + 1) ≫ |
| 2644 | ((TopCat.toSSet.obj (FundamentalClass.Singular.puncturedPair ℝ (n + 2)).snd).chainComplex |
| 2645 | (ModuleCat.of ℚ ℚ)).homologyπ (n + 1) := by |
| 2646 | change SphereAffineBoundary.Singular.standardSphereSimplicialBoundaryCycle n ≫ |
| 2647 | ((∂Δ[n + 2] : SSet.{0}).chainComplex |
| 2648 | (ModuleCat.of ℚ ℚ)).homologyπ (n + 1) ≫ |
| 2649 | HomologicalComplex.homologyMap |
| 2650 | (SphereAffineBoundary.Singular.standardAffineBoundaryChainMap (n + 2)) (n + 1) = _ |
| 2651 | rw [HomologicalComplex.homologyπ_naturality, ← Category.assoc, |
| 2652 | standardSphereSimplicialBoundaryCycle_affine] |
| 2653 | exact ConcreteCategory.congr_hom hmor 1 |
| 2654 | |
| 2655 | /-- Injectivity of the explicit affine boundary comparison implies nonvanishing of the |
| 2656 | punctured Euclidean boundary class. -/ |
| 2657 | lemma standardPuncturedBoundaryClass_succ_ne_zero_of_affine_injective |
| 2658 | (n : ℕ) (h : Function.Injective (standardAffineBoundaryHomologyMap n).hom) : |
| 2659 | Euclidean.Singular.standardPuncturedBoundaryClass (n + 1) ≠ 0 := by |
| 2660 | intro hz |
| 2661 | apply SphereAffineBoundary.Singular.standardSphereSimplicialBoundaryClass_ne_zero n |
| 2662 | apply h |
| 2663 | rw [standardAffineBoundaryHomologyMap_standardSphereSimplicialBoundaryClass, |
| 2664 | hz, map_zero] |
| 2665 | rfl |
| 2666 | |
| 2667 | /-- The explicit oriented boundary class is nonzero in every degree. -/ |
| 2668 | lemma standardPuncturedBoundaryClass_succ_ne_zero (n : ℕ) : |
| 2669 | Euclidean.Singular.standardPuncturedBoundaryClass (n + 1) ≠ 0 := |
| 2670 | standardPuncturedBoundaryClass_succ_ne_zero_of_affine_injective n |
| 2671 | (standardAffineBoundaryHomologyMap_injective n) |
| 2672 | |
| 2673 | /-- If the affine boundary comparison is an isomorphism, its explicit punctured class spans |
| 2674 | top homology. -/ |
| 2675 | lemma span_standardPuncturedBoundaryClass_succ_eq_top_of_affine_isIso |
| 2676 | (n : ℕ) [IsIso (standardAffineBoundaryHomologyMap n)] : |
| 2677 | Submodule.span ℚ {Euclidean.Singular.standardPuncturedBoundaryClass (n + 1)} = ⊤ := by |
| 2678 | let e := (asIso (standardAffineBoundaryHomologyMap n)).toLinearEquiv |
| 2679 | have he : e (SphereAffineBoundary.Singular.standardSphereSimplicialBoundaryClass n) = |
| 2680 | Euclidean.Singular.standardPuncturedBoundaryClass (n + 1) := |
| 2681 | standardAffineBoundaryHomologyMap_standardSphereSimplicialBoundaryClass n |
| 2682 | have hmap : |
| 2683 | (Submodule.span ℚ {SphereAffineBoundary.Singular.standardSphereSimplicialBoundaryClass n}).map e.toLinearMap = |
| 2684 | Submodule.span ℚ {Euclidean.Singular.standardPuncturedBoundaryClass (n + 1)} := by |
| 2685 | rw [Submodule.map_span] |
| 2686 | simp [he] |
| 2687 | rfl |
| 2688 | have etop : (⊤ : Submodule ℚ _).map e.toLinearMap = ⊤ := by |
| 2689 | rw [Submodule.map_top] |
| 2690 | exact LinearMap.range_eq_top.mpr e.surjective |
| 2691 | rw [← hmap, SphereAffineBoundary.Singular.span_standardSphereSimplicialBoundaryClass_eq_top, etop] |
| 2692 | rfl |
| 2693 | |
| 2694 | /-- The explicit standard local class is nonzero in every positive dimension. -/ |
| 2695 | lemma standardLocalClass_ne_zero_of_pos (d : ℕ) (hd : 0 < d) : |
| 2696 | FundamentalClass.Singular.standardLocalClass ℚ d ≠ 0 := by |
| 2697 | cases d with |
| 2698 | | zero => lia |
| 2699 | | succ n => |
| 2700 | cases n with |
| 2701 | | zero => exact Euclidean.Singular.standardLocalClass_one_ne_zero |
| 2702 | | succ n => |
| 2703 | rw [Euclidean.Singular.standardLocalClass_succ_ne_zero_iff (n + 1) (by lia)] |
| 2704 | exact standardPuncturedBoundaryClass_succ_ne_zero n |
| 2705 | |
| 2706 | /-- In dimensions at least two, an affine-boundary homology isomorphism makes the standard |
| 2707 | relative local class a generator. -/ |
| 2708 | lemma span_standardLocalClass_add_two_eq_top_of_affine_isIso |
| 2709 | (n : ℕ) [IsIso (standardAffineBoundaryHomologyMap n)] : |
| 2710 | Submodule.span ℚ {FundamentalClass.Singular.standardLocalClass ℚ (n + 2)} = ⊤ := by |
| 2711 | rw [Euclidean.Singular.span_standardLocalClass_succ_eq_top_iff (n + 1) (by lia)] |
| 2712 | exact span_standardPuncturedBoundaryClass_succ_eq_top_of_affine_isIso n |
| 2713 | |
| 2714 | /-- In every dimension at least two, the explicit standard relative local class generates |
| 2715 | rational local homology. -/ |
| 2716 | lemma span_standardLocalClass_add_two_eq_top (n : ℕ) : |
| 2717 | Submodule.span ℚ {FundamentalClass.Singular.standardLocalClass ℚ (n + 2)} = ⊤ := |
| 2718 | span_standardLocalClass_add_two_eq_top_of_affine_isIso n |
| 2719 | |
| 2720 | end |
| 2721 | |
| 2722 | end OAI.AlgebraicTopology.LocalHomology.PuncturedEuclidean.Singular |