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.AlgebraicTopology.Singular.SubdivisionBarycentricChains |
| 18 | import Mathlib.GroupTheory.Perm.Fin |
| 19 | |
| 20 | /-! # Subdivision Barycentric All Degrees -/ |
| 21 | |
| 22 | namespace OAI.AlgebraicTopology.Singular.SubdivisionBarycentricAllDegrees |
| 23 | |
| 24 | noncomputable section |
| 25 | |
| 26 | /-! |
| 27 | |
| 28 | # Barycentric fundamental chains in all degrees |
| 29 | |
| 30 | For each permutation of the vertices of the standard `n`-simplex, its successive nonempty |
| 31 | prefixes form a maximal flag in the poset of nonempty subsets. The signed sum of these flags is |
| 32 | the oriented barycentric fundamental chain. This file constructs that chain in Mathlib's |
| 33 | `SimplexCategory.sd` nerve model and transports it naturally to every simplex of every simplicial |
| 34 | set. |
| 35 | -/ |
| 36 | |
| 37 | open _root_.CategoryTheory _root_.CategoryTheory.Limits PartialOrder Simplicial |
| 38 | |
| 39 | /-- The set of the first `k+1` vertices in the ordering specified by `σ`. -/ |
| 40 | noncomputable def permutationPrefixFinset {n : ℕ} |
| 41 | (σ : Equiv.Perm (Fin (n + 1))) (k : Fin (n + 1)) : |
| 42 | Finset (ULift.{0} (Fin (n + 1))) := |
| 43 | (Finset.Iic k).image (fun i ↦ ULift.up (σ i)) |
| 44 | |
| 45 | /-- Every permutation prefix is nonempty. -/ |
| 46 | theorem permutationPrefixFinset_nonempty {n : ℕ} |
| 47 | (σ : Equiv.Perm (Fin (n + 1))) (k : Fin (n + 1)) : |
| 48 | (permutationPrefixFinset σ k).Nonempty := by |
| 49 | refine ⟨ULift.up (σ k), ?_⟩ |
| 50 | simp [permutationPrefixFinset] |
| 51 | |
| 52 | /-- Permutation prefixes are nested. -/ |
| 53 | theorem permutationPrefixFinset_mono {n : ℕ} |
| 54 | (σ : Equiv.Perm (Fin (n + 1))) : |
| 55 | Monotone (permutationPrefixFinset σ) := by |
| 56 | intro i j hij |
| 57 | apply Finset.image_mono |
| 58 | intro k hk |
| 59 | exact Finset.mem_Iic.mpr (le_trans (Finset.mem_Iic.mp hk) hij) |
| 60 | |
| 61 | /-- A permutation prefix, regarded as a nonempty finite chain in the linearly ordered vertex |
| 62 | set. -/ |
| 63 | noncomputable def permutationPrefixChain {n : ℕ} |
| 64 | (σ : Equiv.Perm (Fin (n + 1))) (k : Fin (n + 1)) : |
| 65 | NonemptyFiniteChains (ULift.{0} (Fin (n + 1))) := |
| 66 | SubdivisionBarycentricChains.nonemptyFiniteChainOfFinset (permutationPrefixFinset σ k) |
| 67 | (permutationPrefixFinset_nonempty σ k) |
| 68 | |
| 69 | /-- The monotone maximal flag of prefix chains associated to a permutation. -/ |
| 70 | noncomputable def permutationMaximalFlagOrderHom {n : ℕ} |
| 71 | (σ : Equiv.Perm (Fin (n + 1))) : |
| 72 | Fin (n + 1) →o NonemptyFiniteChains (ULift.{0} (Fin (n + 1))) where |
| 73 | toFun := permutationPrefixChain σ |
| 74 | monotone' _ _ hij := permutationPrefixFinset_mono σ hij |
| 75 | |
| 76 | /-- The `n`-simplex of the subdivision model corresponding to a maximal permutation flag. -/ |
| 77 | noncomputable def permutationMaximalFlagSimplex {n : ℕ} |
| 78 | (σ : Equiv.Perm (Fin (n + 1))) : |
| 79 | (SimplexCategory.sd.{0}.obj (SimplexCategory.mk n)).obj |
| 80 | (Opposite.op (SimplexCategory.mk n)) := |
| 81 | (permutationMaximalFlagOrderHom σ).monotone.functor |
| 82 | |
| 83 | /-- The sign of a permutation, as an integer coefficient. -/ |
| 84 | noncomputable def permutationSignInteger {n : ℕ} |
| 85 | (σ : Equiv.Perm (Fin (n + 1))) : ℤ := |
| 86 | Equiv.Perm.sign σ |
| 87 | |
| 88 | /-- Swapping two distinct positions reverses the integer orientation coefficient. -/ |
| 89 | theorem permutationSignInteger_mul_swap {n : ℕ} |
| 90 | (σ : Equiv.Perm (Fin (n + 1))) {i j : Fin (n + 1)} (hij : i ≠ j) : |
| 91 | permutationSignInteger (σ * Equiv.swap i j) = |
| 92 | -permutationSignInteger σ := by |
| 93 | rw [permutationSignInteger, permutationSignInteger, Equiv.Perm.sign_mul, |
| 94 | Equiv.Perm.sign_swap hij] |
| 95 | norm_num |
| 96 | |
| 97 | /-- A swap preserves an initial segment exactly when its two swapped positions lie on the same |
| 98 | side of the cutoff. -/ |
| 99 | theorem swap_le_iff_of_equiv {n : ℕ} {i j k a : Fin (n + 1)} |
| 100 | (hk : (i ≤ k ↔ j ≤ k)) : |
| 101 | Equiv.swap i j a ≤ k ↔ a ≤ k := by |
| 102 | by_cases hai : a = i |
| 103 | · subst a |
| 104 | rw [Equiv.swap_apply_left] |
| 105 | exact hk.symm |
| 106 | by_cases haj : a = j |
| 107 | · subst a |
| 108 | rw [Equiv.swap_apply_right] |
| 109 | exact hk |
| 110 | rw [Equiv.swap_apply_of_ne_of_ne hai haj] |
| 111 | |
| 112 | /-- Swapping two positions on the same side of a cutoff leaves the corresponding permutation |
| 113 | prefix unchanged. This is the combinatorial pairing mechanism for interior boundary faces. -/ |
| 114 | theorem permutationPrefixFinset_mul_swap {n : ℕ} |
| 115 | (σ : Equiv.Perm (Fin (n + 1))) {i j k : Fin (n + 1)} |
| 116 | (hk : (i ≤ k ↔ j ≤ k)) : |
| 117 | permutationPrefixFinset (σ * Equiv.swap i j) k = |
| 118 | permutationPrefixFinset σ k := by |
| 119 | unfold permutationPrefixFinset |
| 120 | change (Finset.Iic k).image |
| 121 | (fun a ↦ ULift.up (σ (Equiv.swap i j a))) = |
| 122 | (Finset.Iic k).image (fun a ↦ ULift.up (σ a)) |
| 123 | have hs : (Finset.Iic k).image (Equiv.swap i j) = Finset.Iic k := by |
| 124 | ext a |
| 125 | simp only [Finset.mem_image, Finset.mem_Iic] |
| 126 | constructor |
| 127 | · rintro ⟨b, hb, rfl⟩ |
| 128 | exact (swap_le_iff_of_equiv hk).2 hb |
| 129 | · intro ha |
| 130 | refine ⟨Equiv.swap i j a, (swap_le_iff_of_equiv hk).2 ha, ?_⟩ |
| 131 | simp |
| 132 | calc |
| 133 | _ = ((Finset.Iic k).image (Equiv.swap i j)).image |
| 134 | (fun a ↦ ULift.up (σ a)) := by |
| 135 | rw [Finset.image_image] |
| 136 | rfl |
| 137 | _ = _ := by rw [hs] |
| 138 | |
| 139 | /-- Deleting the prefix at position `r` makes the two maximal flags obtained by swapping the |
| 140 | adjacent positions `r` and `r+1` identical. These are precisely the paired interior faces in the |
| 141 | fundamental-chain boundary. -/ |
| 142 | theorem permutationMaximalFlagSimplex_interiorFace_swap {n : ℕ} |
| 143 | (σ : Equiv.Perm (Fin (n + 2))) (r : Fin (n + 1)) : |
| 144 | (SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).δ r.castSucc |
| 145 | (permutationMaximalFlagSimplex |
| 146 | (σ * Equiv.swap r.castSucc r.succ)) = |
| 147 | (SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).δ r.castSucc |
| 148 | (permutationMaximalFlagSimplex σ) := by |
| 149 | refine ComposableArrows.ext (fun k ↦ ?_) (fun k hk ↦ ?_) |
| 150 | · |
| 151 | change permutationPrefixChain (σ * Equiv.swap r.castSucc r.succ) |
| 152 | (r.castSucc.succAbove k) = |
| 153 | permutationPrefixChain σ (r.castSucc.succAbove k) |
| 154 | apply NonemptyFiniteChains.ext |
| 155 | apply permutationPrefixFinset_mul_swap |
| 156 | have ht : r.castSucc.succAbove k ≠ r.castSucc := Fin.succAbove_ne _ _ |
| 157 | constructor |
| 158 | · intro h |
| 159 | have htval : (r.castSucc.succAbove k).val ≠ r.val := by |
| 160 | intro heq |
| 161 | apply ht |
| 162 | exact Fin.ext heq |
| 163 | change r.val + 1 ≤ (r.castSucc.succAbove k).val |
| 164 | change r.val ≤ (r.castSucc.succAbove k).val at h |
| 165 | lia |
| 166 | · intro h |
| 167 | exact le_trans r.castSucc_le_succ h |
| 168 | · apply Subsingleton.elim |
| 169 | |
| 170 | /-- The oriented barycentric fundamental `n`-chain in the explicit subdivision model of |
| 171 | `Δ[n]`. -/ |
| 172 | noncomputable def subdividedSimplexFundamentalChain (n : ℕ) : |
| 173 | AddCommGrpCat.of ℤ ⟶ |
| 174 | ((SimplexCategory.sd.{0}.obj (SimplexCategory.mk n)).chainComplex |
| 175 | (AddCommGrpCat.of ℤ)).X n := |
| 176 | ∑ σ : Equiv.Perm (Fin (n + 1)), |
| 177 | permutationSignInteger σ • |
| 178 | (SimplexCategory.sd.{0}.obj (SimplexCategory.mk n)).ιChainComplex |
| 179 | (permutationMaximalFlagSimplex σ) |
| 180 | |
| 181 | /-- The all-degree fundamental chain transported to Mathlib's left-Kan-extension model |
| 182 | `sd Δ[n]`. -/ |
| 183 | noncomputable def subdividedStandardSimplexFundamentalChain (n : ℕ) : |
| 184 | AddCommGrpCat.of ℤ ⟶ |
| 185 | ((SSet.sd.obj (Δ[n] : SSet.{0})).chainComplex |
| 186 | (AddCommGrpCat.of ℤ)).X n := |
| 187 | subdividedSimplexFundamentalChain n ≫ |
| 188 | (SSet.chainComplexMap (SSet.stdSimplex.sdIso.inv.app (SimplexCategory.mk n)) |
| 189 | (AddCommGrpCat.of ℤ)).f n |
| 190 | |
| 191 | /-- The barycentric fundamental chain associated to an arbitrary `n`-simplex. -/ |
| 192 | noncomputable def barycentricSubdivisionSimplexChain |
| 193 | (X : SSet.{0}) (n : ℕ) |
| 194 | (x : X.obj (Opposite.op (SimplexCategory.mk n))) : |
| 195 | AddCommGrpCat.of ℤ ⟶ |
| 196 | ((SSet.sd.obj X).chainComplex (AddCommGrpCat.of ℤ)).X n := |
| 197 | subdividedStandardSimplexFundamentalChain n ≫ |
| 198 | (SSet.chainComplexMap (SSet.sd.map (SSet.yonedaEquiv.symm x)) |
| 199 | (AddCommGrpCat.of ℤ)).f n |
| 200 | |
| 201 | /-- The degree-`n` component of barycentric subdivision, defined on every simplex by its signed |
| 202 | maximal-flag fundamental chain. -/ |
| 203 | noncomputable def barycentricSubdivisionComponent |
| 204 | (X : SSet.{0}) (n : ℕ) : |
| 205 | (X.chainComplex (AddCommGrpCat.of ℤ)).X n ⟶ |
| 206 | ((SSet.sd.obj X).chainComplex (AddCommGrpCat.of ℤ)).X n := |
| 207 | Sigma.desc (barycentricSubdivisionSimplexChain X n) |
| 208 | |
| 209 | @[reassoc (attr := simp)] |
| 210 | theorem iota_barycentricSubdivisionComponent |
| 211 | (X : SSet.{0}) (n : ℕ) |
| 212 | (x : X.obj (Opposite.op (SimplexCategory.mk n))) : |
| 213 | X.ιChainComplex x ≫ barycentricSubdivisionComponent X n = |
| 214 | barycentricSubdivisionSimplexChain X n x := by |
| 215 | apply Sigma.ι_comp_desc |
| 216 | |
| 217 | /-- The signed maximal-flag chain associated to a simplex is natural in the ambient simplicial |
| 218 | set. -/ |
| 219 | theorem barycentricSubdivisionSimplexChain_naturality |
| 220 | {X Y : SSet.{0}} (f : X ⟶ Y) (n : ℕ) |
| 221 | (x : X.obj (Opposite.op (SimplexCategory.mk n))) : |
| 222 | barycentricSubdivisionSimplexChain Y n (f.app _ x) = |
| 223 | barycentricSubdivisionSimplexChain X n x ≫ |
| 224 | (SSet.chainComplexMap (SSet.sd.map f) (AddCommGrpCat.of ℤ)).f n := by |
| 225 | rw [barycentricSubdivisionSimplexChain, barycentricSubdivisionSimplexChain, |
| 226 | ← SSet.yonedaEquiv_symm_comp] |
| 227 | let F := (SSet.chainComplexFunctor AddCommGrpCat).obj (AddCommGrpCat.of ℤ) |
| 228 | have hsd := SSet.sd.map_comp (SSet.yonedaEquiv.symm x) f |
| 229 | have hmap := F.congr_map hsd |
| 230 | have hn := congrArg (fun k ↦ k.f n) hmap |
| 231 | rw [hn, Functor.map_comp] |
| 232 | rfl |
| 233 | |
| 234 | /-- The alternating sum of the subdivided fundamental chains of the codimension-one faces of |
| 235 | the standard `(n+1)`-simplex, in the explicit nerve model. -/ |
| 236 | noncomputable def subdividedSimplexAlternatingFaceChain (n : ℕ) : |
| 237 | AddCommGrpCat.of ℤ ⟶ |
| 238 | ((SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).chainComplex |
| 239 | (AddCommGrpCat.of ℤ)).X n := |
| 240 | ∑ i : Fin (n + 2), (-1 : ℤ) ^ i.val • |
| 241 | (subdividedSimplexFundamentalChain n ≫ |
| 242 | (SSet.chainComplexMap |
| 243 | (SimplexCategory.sd.{0}.map (SimplexCategory.δ i)) |
| 244 | (AddCommGrpCat.of ℤ)).f n) |
| 245 | |
| 246 | /-- The contribution to the boundary in which the prefix at the interior position `r` is |
| 247 | deleted. -/ |
| 248 | noncomputable def subdividedSimplexInteriorFaceSum |
| 249 | (n : ℕ) (r : Fin (n + 1)) : |
| 250 | AddCommGrpCat.of ℤ ⟶ |
| 251 | ((SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).chainComplex |
| 252 | (AddCommGrpCat.of ℤ)).X n := |
| 253 | ∑ σ : Equiv.Perm (Fin (n + 2)), |
| 254 | permutationSignInteger σ • |
| 255 | (SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).ιChainComplex |
| 256 | ((SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).δ r.castSucc |
| 257 | (permutationMaximalFlagSimplex σ)) |
| 258 | |
| 259 | /-- Every interior face cancels in pairs. The involution exchanges the two adjacent entries |
| 260 | surrounding the deleted prefix; the flags agree after deletion and their signs are opposite. -/ |
| 261 | theorem subdividedSimplexInteriorFaceSum_eq_zero |
| 262 | (n : ℕ) (r : Fin (n + 1)) : |
| 263 | subdividedSimplexInteriorFaceSum n r = 0 := by |
| 264 | rw [subdividedSimplexInteriorFaceSum] |
| 265 | exact Finset.sum_involution |
| 266 | (fun σ _ ↦ σ * Equiv.swap r.castSucc r.succ) |
| 267 | (fun σ _ ↦ by |
| 268 | rw [permutationSignInteger_mul_swap σ Fin.castSucc_lt_succ.ne, |
| 269 | permutationMaximalFlagSimplex_interiorFace_swap] |
| 270 | simp) |
| 271 | (fun σ _ _ ↦ (not_congr Equiv.mul_swap_eq_iff).mpr Fin.castSucc_lt_succ.ne) |
| 272 | (fun _ _ ↦ Finset.mem_univ _) |
| 273 | (fun σ _ ↦ Equiv.mul_swap_involutive r.castSucc r.succ σ) |
| 274 | |
| 275 | /-- The surviving last-prefix faces in the boundary of the signed maximal-flag chain. -/ |
| 276 | noncomputable def subdividedSimplexOuterFaceSum (n : ℕ) : |
| 277 | AddCommGrpCat.of ℤ ⟶ |
| 278 | ((SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).chainComplex |
| 279 | (AddCommGrpCat.of ℤ)).X n := |
| 280 | ∑ σ : Equiv.Perm (Fin (n + 2)), |
| 281 | permutationSignInteger σ • |
| 282 | ((-1 : ℤ) ^ (Fin.last (n + 1)).val • |
| 283 | (SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).ιChainComplex |
| 284 | ((SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).δ |
| 285 | (Fin.last (n + 1)) (permutationMaximalFlagSimplex σ))) |
| 286 | |
| 287 | /-- After the pairwise cancellations, only the faces obtained by deleting the full vertex set |
| 288 | remain in the boundary of the barycentric fundamental chain. -/ |
| 289 | theorem subdividedSimplexFundamentalChain_boundary_eq_outer |
| 290 | (n : ℕ) : |
| 291 | subdividedSimplexFundamentalChain (n + 1) ≫ |
| 292 | ((SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).chainComplex |
| 293 | (AddCommGrpCat.of ℤ)).d (n + 1) n = |
| 294 | subdividedSimplexOuterFaceSum n := by |
| 295 | rw [subdividedSimplexFundamentalChain, Preadditive.sum_comp] |
| 296 | simp only [Preadditive.zsmul_comp, SSet.ιChainComplex_d] |
| 297 | have hsplit (σ : Equiv.Perm (Fin (n + 2))) : |
| 298 | (∑ i : Fin (n + 2), (-1 : ℤ) ^ i.val • |
| 299 | (SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).ιChainComplex |
| 300 | ((SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).δ i |
| 301 | (permutationMaximalFlagSimplex σ)) : |
| 302 | AddCommGrpCat.of ℤ ⟶ |
| 303 | ((SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).chainComplex |
| 304 | (AddCommGrpCat.of ℤ)).X n) = |
| 305 | (∑ r : Fin (n + 1), (-1 : ℤ) ^ r.val • |
| 306 | (SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).ιChainComplex |
| 307 | ((SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).δ r.castSucc |
| 308 | (permutationMaximalFlagSimplex σ))) + |
| 309 | (-1 : ℤ) ^ (Fin.last (n + 1)).val • |
| 310 | (SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).ιChainComplex |
| 311 | ((SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).δ |
| 312 | (Fin.last (n + 1)) (permutationMaximalFlagSimplex σ)) := by |
| 313 | rw [Fin.sum_univ_castSucc] |
| 314 | rfl |
| 315 | simp_rw [hsplit, smul_add] |
| 316 | rw [Finset.sum_add_distrib] |
| 317 | simp_rw [Finset.smul_sum] |
| 318 | rw [Finset.sum_comm] |
| 319 | have hinterior (r : Fin (n + 1)) : |
| 320 | (∑ σ : Equiv.Perm (Fin (n + 2)), |
| 321 | permutationSignInteger σ • (-1 : ℤ) ^ r.val • |
| 322 | (SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).ιChainComplex |
| 323 | ((SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).δ r.castSucc |
| 324 | (permutationMaximalFlagSimplex σ)) : |
| 325 | AddCommGrpCat.of ℤ ⟶ |
| 326 | ((SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).chainComplex |
| 327 | (AddCommGrpCat.of ℤ)).X n) = 0 := by |
| 328 | calc |
| 329 | _ = (-1 : ℤ) ^ r.val • subdividedSimplexInteriorFaceSum n r := by |
| 330 | rw [subdividedSimplexInteriorFaceSum, Finset.smul_sum] |
| 331 | apply Finset.sum_congr rfl |
| 332 | intro σ _ |
| 333 | simp only [smul_smul] |
| 334 | rw [mul_comm] |
| 335 | _ = 0 := by rw [subdividedSimplexInteriorFaceSum_eq_zero, smul_zero] |
| 336 | simp_rw [hinterior] |
| 337 | simp only [Finset.sum_const_zero, zero_add] |
| 338 | rfl |
| 339 | |
| 340 | /-- Naturality of `stdSimplex.sdIso.inv`, transported to integral chains in a fixed degree. -/ |
| 341 | theorem subdividedStandardSimplexFace_naturality |
| 342 | (n : ℕ) (i : Fin (n + 2)) : |
| 343 | (SSet.chainComplexMap |
| 344 | (SimplexCategory.sd.{0}.map (SimplexCategory.δ i)) |
| 345 | (AddCommGrpCat.of ℤ)).f n ≫ |
| 346 | (SSet.chainComplexMap |
| 347 | (SSet.stdSimplex.sdIso.inv.app (SimplexCategory.mk (n + 1))) |
| 348 | (AddCommGrpCat.of ℤ)).f n = |
| 349 | (SSet.chainComplexMap |
| 350 | (SSet.stdSimplex.sdIso.inv.app (SimplexCategory.mk n)) |
| 351 | (AddCommGrpCat.of ℤ)).f n ≫ |
| 352 | (SSet.chainComplexMap |
| 353 | (SSet.sd.map (SSet.stdSimplex.map (SimplexCategory.δ i))) |
| 354 | (AddCommGrpCat.of ℤ)).f n := by |
| 355 | let F := (SSet.chainComplexFunctor AddCommGrpCat).obj (AddCommGrpCat.of ℤ) |
| 356 | have hnat := SSet.stdSimplex.sdIso.inv.naturality (SimplexCategory.δ i) |
| 357 | have hmap := F.congr_map hnat |
| 358 | rw [Functor.map_comp, Functor.map_comp] at hmap |
| 359 | exact congrArg (fun k ↦ k.f n) hmap |
| 360 | |
| 361 | /-- The alternating face chain after transport to `sd Δ[n+1]`. -/ |
| 362 | noncomputable def subdividedStandardSimplexAlternatingFaceChain (n : ℕ) : |
| 363 | AddCommGrpCat.of ℤ ⟶ |
| 364 | ((SSet.sd.obj (Δ[n + 1] : SSet.{0})).chainComplex |
| 365 | (AddCommGrpCat.of ℤ)).X n := |
| 366 | ∑ i : Fin (n + 2), (-1 : ℤ) ^ i.val • |
| 367 | (subdividedStandardSimplexFundamentalChain n ≫ |
| 368 | (SSet.chainComplexMap |
| 369 | (SSet.sd.map (SSet.stdSimplex.map (SimplexCategory.δ i))) |
| 370 | (AddCommGrpCat.of ℤ)).f n) |
| 371 | |
| 372 | /-- Subdividing a face and then mapping its ambient simplex agrees with subdividing the |
| 373 | corresponding face simplex. -/ |
| 374 | theorem subdividedFace_then_simplex_naturality |
| 375 | {X : SSet.{0}} (n : ℕ) |
| 376 | (x : X.obj (Opposite.op (SimplexCategory.mk (n + 1)))) |
| 377 | (i : Fin (n + 2)) : |
| 378 | (SSet.chainComplexMap |
| 379 | (SSet.sd.map (SSet.stdSimplex.map (SimplexCategory.δ i))) |
| 380 | (AddCommGrpCat.of ℤ)).f n ≫ |
| 381 | (SSet.chainComplexMap (SSet.sd.map (SSet.yonedaEquiv.symm x)) |
| 382 | (AddCommGrpCat.of ℤ)).f n = |
| 383 | (SSet.chainComplexMap (SSet.sd.map (SSet.yonedaEquiv.symm (X.δ i x))) |
| 384 | (AddCommGrpCat.of ℤ)).f n := by |
| 385 | let F := (SSet.chainComplexFunctor AddCommGrpCat).obj (AddCommGrpCat.of ℤ) |
| 386 | have hδ := SSet.stdSimplex.δ_comp_yonedaEquiv_symm x i |
| 387 | have hsd := SSet.sd.congr_map hδ |
| 388 | have hmap := F.congr_map hsd |
| 389 | rw [SSet.sd.map_comp, Functor.map_comp] at hmap |
| 390 | exact congrArg (fun k ↦ k.f n) hmap |
| 391 | |
| 392 | /-- The alternating sum of the barycentrically subdivided faces of an arbitrary simplex. -/ |
| 393 | noncomputable def barycentricSubdivisionAlternatingFaceChain |
| 394 | (X : SSet.{0}) (n : ℕ) |
| 395 | (x : X.obj (Opposite.op (SimplexCategory.mk (n + 1)))) : |
| 396 | AddCommGrpCat.of ℤ ⟶ |
| 397 | ((SSet.sd.obj X).chainComplex (AddCommGrpCat.of ℤ)).X n := |
| 398 | ∑ i : Fin (n + 2), (-1 : ℤ) ^ i.val • |
| 399 | barycentricSubdivisionSimplexChain X n (X.δ i x) |
| 400 | |
| 401 | end |
| 402 | |
| 403 | end OAI.AlgebraicTopology.Singular.SubdivisionBarycentricAllDegrees |