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.SubdivisionBarycentricAllDegrees |
| 18 | import Mathlib.Logic.Equiv.PartialEquiv |
| 19 | |
| 20 | /-! # Subdivision Barycentric Outer Faces -/ |
| 21 | |
| 22 | namespace OAI.AlgebraicTopology.Singular.SubdivisionBarycentricOuterFaces |
| 23 | |
| 24 | noncomputable section |
| 25 | |
| 26 | /-! |
| 27 | |
| 28 | # The outer-face identity for barycentric fundamental chains |
| 29 | |
| 30 | This file reindexes the surviving outer faces of the signed maximal-flag sum by the omitted |
| 31 | vertex and the induced ordering of its complement. It completes the boundary calculation and |
| 32 | therefore supplies the unconditional natural barycentric subdivision chain morphism. |
| 33 | -/ |
| 34 | |
| 35 | open _root_.CategoryTheory _root_.CategoryTheory.Limits PartialOrder Simplicial |
| 36 | |
| 37 | /-- `Finset.image` does not depend propositionally on the chosen decidable equality. -/ |
| 38 | theorem finsetImage_decidableEq_independent |
| 39 | {α β : Type*} (d₁ d₂ : DecidableEq β) (f : α → β) (s : Finset α) : |
| 40 | @Finset.image α β d₁ f s = @Finset.image α β d₂ f s := by |
| 41 | ext y |
| 42 | simp only [Finset.mem_image] |
| 43 | |
| 44 | /-- Insert the omitted vertex `p` at the final position of an ordering of its complement. -/ |
| 45 | noncomputable def insertOmittedVertexLast {n : ℕ} |
| 46 | (p : Fin (n + 2)) (τ : Equiv.Perm (Fin (n + 1))) : |
| 47 | Equiv.Perm (Fin (n + 2)) where |
| 48 | toFun := Fin.lastCases p (fun k ↦ p.succAbove (τ k)) |
| 49 | invFun := Fin.succAboveCases p (Fin.last (n + 1)) |
| 50 | (fun k ↦ (τ.symm k).castSucc) |
| 51 | left_inv i := by refine Fin.lastCases ?_ (fun k ↦ ?_) i <;> simp |
| 52 | right_inv i := by refine Fin.succAboveCases p ?_ (fun k ↦ ?_) i <;> simp |
| 53 | |
| 54 | @[simp] |
| 55 | theorem insertOmittedVertexLast_apply_last {n : ℕ} |
| 56 | (p : Fin (n + 2)) (τ : Equiv.Perm (Fin (n + 1))) : |
| 57 | insertOmittedVertexLast p τ (Fin.last (n + 1)) = p := by |
| 58 | simp [insertOmittedVertexLast] |
| 59 | |
| 60 | @[simp] |
| 61 | theorem insertOmittedVertexLast_apply_castSucc {n : ℕ} |
| 62 | (p : Fin (n + 2)) (τ : Equiv.Perm (Fin (n + 1))) (k : Fin (n + 1)) : |
| 63 | insertOmittedVertexLast p τ k.castSucc = p.succAbove (τ k) := by |
| 64 | simp [insertOmittedVertexLast] |
| 65 | |
| 66 | /-- Every permutation is uniquely an omitted final vertex together with an ordering of its |
| 67 | complement. -/ |
| 68 | noncomputable def insertOmittedVertexLastEquiv (n : ℕ) : |
| 69 | Fin (n + 2) × Equiv.Perm (Fin (n + 1)) ≃ |
| 70 | Equiv.Perm (Fin (n + 2)) := |
| 71 | Equiv.ofBijective (fun pτ ↦ insertOmittedVertexLast pτ.1 pτ.2) <| by |
| 72 | rw [Fintype.bijective_iff_injective_and_card] |
| 73 | constructor |
| 74 | · rintro ⟨p, τ⟩ ⟨q, υ⟩ h |
| 75 | have hp := congrArg (fun σ ↦ σ (Fin.last (n + 1))) h |
| 76 | simp only [insertOmittedVertexLast_apply_last] at hp |
| 77 | subst q |
| 78 | congr 1 |
| 79 | refine Equiv.ext fun k ↦ p.succAbove_right_injective ?_ |
| 80 | have hk := congrArg (fun σ ↦ σ k.castSucc) h |
| 81 | simpa only [insertOmittedVertexLast_apply_castSucc] using hk |
| 82 | · simp [Fintype.card_prod, Fintype.card_perm, Nat.factorial_succ] |
| 83 | |
| 84 | @[simp] |
| 85 | theorem insertOmittedVertexLastEquiv_apply |
| 86 | (n : ℕ) (pτ : Fin (n + 2) × Equiv.Perm (Fin (n + 1))) : |
| 87 | insertOmittedVertexLastEquiv n pτ = |
| 88 | insertOmittedVertexLast pτ.1 pτ.2 := |
| 89 | rfl |
| 90 | |
| 91 | /-- The reindexing equivalence records the omitted final vertex in its first coordinate. -/ |
| 92 | @[simp] |
| 93 | theorem insertOmittedVertexLastEquiv_symm_fst |
| 94 | (n : ℕ) (σ : Equiv.Perm (Fin (n + 2))) : |
| 95 | ((insertOmittedVertexLastEquiv n).symm σ).1 = σ (Fin.last (n + 1)) := by |
| 96 | let pτ := (insertOmittedVertexLastEquiv n).symm σ |
| 97 | have h := (insertOmittedVertexLastEquiv n).apply_symm_apply σ |
| 98 | change insertOmittedVertexLast pτ.1 pτ.2 = σ at h |
| 99 | have hlast := congrArg (fun e ↦ e (Fin.last (n + 1))) h |
| 100 | simpa only [insertOmittedVertexLast_apply_last] using hlast |
| 101 | |
| 102 | /-- `Fin.castSucc` identifies `Fin (n+1)` with all vertices except the last one. -/ |
| 103 | def finCastSuccEquivNotLast (n : ℕ) : |
| 104 | Fin (n + 1) ≃ {i : Fin (n + 2) // i ≠ Fin.last (n + 1)} where |
| 105 | toFun i := ⟨i.castSucc, Fin.castSucc_lt_last i |>.ne⟩ |
| 106 | invFun i := i.1.castPred i.2 |
| 107 | left_inv _ := Fin.castPred_castSucc |
| 108 | right_inv i := Subtype.ext (Fin.castSucc_castPred i.1 i.2) |
| 109 | |
| 110 | /-- Inserting the last vertex last extends a permutation while fixing that vertex. -/ |
| 111 | theorem insertOmittedVertexLast_last_eq_extendDomain |
| 112 | {n : ℕ} (τ : Equiv.Perm (Fin (n + 1))) : |
| 113 | insertOmittedVertexLast (Fin.last (n + 1)) τ = |
| 114 | τ.extendDomain (finCastSuccEquivNotLast n) := by |
| 115 | apply Equiv.ext |
| 116 | intro i |
| 117 | refine Fin.lastCases ?_ (fun k ↦ ?_) i |
| 118 | · rw [insertOmittedVertexLast_apply_last] |
| 119 | symm |
| 120 | apply Equiv.Perm.extendDomain_apply_not_subtype |
| 121 | simp |
| 122 | · rw [insertOmittedVertexLast_apply_castSucc] |
| 123 | change (Fin.last (n + 1)).succAbove (τ k) = |
| 124 | τ.extendDomain (finCastSuccEquivNotLast n) ↑((finCastSuccEquivNotLast n) k) |
| 125 | rw [Equiv.Perm.extendDomain_apply_image τ (finCastSuccEquivNotLast n) k] |
| 126 | simp [finCastSuccEquivNotLast] |
| 127 | |
| 128 | /-- Inserting `p` last factors into the order-preserving cycle from the last vertex to `p`, |
| 129 | followed by extension of the complement ordering. -/ |
| 130 | theorem insertOmittedVertexLast_eq_cycle_mul_extend {n : ℕ} |
| 131 | (p : Fin (n + 2)) (τ : Equiv.Perm (Fin (n + 1))) : |
| 132 | insertOmittedVertexLast p τ = |
| 133 | p.cycleIcc (Fin.last (n + 1)) * |
| 134 | τ.extendDomain (finCastSuccEquivNotLast n) := by |
| 135 | rw [← insertOmittedVertexLast_last_eq_extendDomain] |
| 136 | apply Equiv.ext |
| 137 | intro i |
| 138 | refine Fin.lastCases ?_ (fun k ↦ ?_) i |
| 139 | · rw [insertOmittedVertexLast_apply_last, Equiv.Perm.mul_apply, |
| 140 | insertOmittedVertexLast_apply_last] |
| 141 | exact (Fin.cycleIcc_of_last (Fin.le_last p)).symm |
| 142 | · rw [insertOmittedVertexLast_apply_castSucc, Equiv.Perm.mul_apply, |
| 143 | insertOmittedVertexLast_apply_castSucc] |
| 144 | exact (congrFun |
| 145 | (Fin.cycleIcc_comp_succAbove p (Fin.last (n + 1)) (Fin.le_last p)) (τ k)).symm |
| 146 | |
| 147 | /-- The sign of an ordering with omitted vertex `p` inserted last. -/ |
| 148 | theorem permutationSignInteger_insertOmittedVertexLast {n : ℕ} |
| 149 | (p : Fin (n + 2)) (τ : Equiv.Perm (Fin (n + 1))) : |
| 150 | SubdivisionBarycentricAllDegrees.permutationSignInteger (insertOmittedVertexLast p τ) = |
| 151 | (-1 : ℤ) ^ (n + 1 - p.val) * SubdivisionBarycentricAllDegrees.permutationSignInteger τ := by |
| 152 | rw [insertOmittedVertexLast_eq_cycle_mul_extend] |
| 153 | simp only [SubdivisionBarycentricAllDegrees.permutationSignInteger, Equiv.Perm.sign_mul, |
| 154 | Equiv.Perm.sign_extendDomain, Fin.sign_cycleIcc_of_le (Fin.le_last p), |
| 155 | Fin.val_last] |
| 156 | simp |
| 157 | |
| 158 | /-- Multiplying by the boundary sign of the final face leaves exactly the usual sign of the |
| 159 | omitted vertex. -/ |
| 160 | theorem outerFaceCoefficient_insertOmittedVertexLast {n : ℕ} |
| 161 | (p : Fin (n + 2)) (τ : Equiv.Perm (Fin (n + 1))) : |
| 162 | SubdivisionBarycentricAllDegrees.permutationSignInteger (insertOmittedVertexLast p τ) * (-1 : ℤ) ^ (n + 1) = |
| 163 | (-1 : ℤ) ^ p.val * SubdivisionBarycentricAllDegrees.permutationSignInteger τ := by |
| 164 | rw [permutationSignInteger_insertOmittedVertexLast] |
| 165 | have hp : p.val ≤ n + 1 := Nat.le_of_lt_succ p.isLt |
| 166 | have hadd : n + 1 - p.val + p.val = n + 1 := Nat.sub_add_cancel hp |
| 167 | nth_rewrite 2 [← hadd] |
| 168 | rw [pow_add] |
| 169 | calc |
| 170 | (-1 : ℤ) ^ (n + 1 - p.val) * SubdivisionBarycentricAllDegrees.permutationSignInteger τ * |
| 171 | ((-1 : ℤ) ^ (n + 1 - p.val) * (-1 : ℤ) ^ p.val) = |
| 172 | (((-1 : ℤ) ^ (n + 1 - p.val)) * |
| 173 | ((-1 : ℤ) ^ (n + 1 - p.val))) * |
| 174 | ((-1 : ℤ) ^ p.val * SubdivisionBarycentricAllDegrees.permutationSignInteger τ) := by ring |
| 175 | _ = ((-1 : ℤ) * (-1 : ℤ)) ^ (n + 1 - p.val) * |
| 176 | ((-1 : ℤ) ^ p.val * SubdivisionBarycentricAllDegrees.permutationSignInteger τ) := by rw [mul_pow] |
| 177 | _ = _ := by norm_num |
| 178 | |
| 179 | /-- Deleting the final (full-set) prefix of an inserted ordering is the subdivided face obtained |
| 180 | by omitting `p`. -/ |
| 181 | theorem permutationMaximalFlagSimplex_outerFace_insert {n : ℕ} |
| 182 | (p : Fin (n + 2)) (τ : Equiv.Perm (Fin (n + 1))) : |
| 183 | (SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).δ (Fin.last (n + 1)) |
| 184 | (SubdivisionBarycentricAllDegrees.permutationMaximalFlagSimplex (insertOmittedVertexLast p τ)) = |
| 185 | (SimplexCategory.sd.{0}.map (SimplexCategory.δ p)).app |
| 186 | (Opposite.op (SimplexCategory.mk n)) |
| 187 | (SubdivisionBarycentricAllDegrees.permutationMaximalFlagSimplex τ) := by |
| 188 | refine ComposableArrows.ext (fun k ↦ ?_) (fun k hk ↦ ?_) |
| 189 | · change SubdivisionBarycentricAllDegrees.permutationPrefixChain (insertOmittedVertexLast p τ) |
| 190 | ((Fin.last (n + 1)).succAbove k) = |
| 191 | (SubdivisionBarycentricAllDegrees.permutationPrefixChain τ k).map |
| 192 | (SimplexCategory.toPartOrd.{0}.map (SimplexCategory.δ p)).hom |
| 193 | apply NonemptyFiniteChains.ext |
| 194 | have hfinset : |
| 195 | SubdivisionBarycentricAllDegrees.permutationPrefixFinset (insertOmittedVertexLast p τ) |
| 196 | ((Fin.last (n + 1)).succAbove k) = |
| 197 | Finset.image (fun i : ULift.{0} (Fin (n + 1)) ↦ |
| 198 | ULift.up (p.succAbove i.down)) (SubdivisionBarycentricAllDegrees.permutationPrefixFinset τ k) := by |
| 199 | rw [Fin.succAbove_last] |
| 200 | unfold SubdivisionBarycentricAllDegrees.permutationPrefixFinset |
| 201 | rw [← Fin.finsetImage_castSucc_Iic k, Finset.image_image, Finset.image_image] |
| 202 | apply Finset.image_congr |
| 203 | intro a ha |
| 204 | simp |
| 205 | unfold SubdivisionBarycentricAllDegrees.permutationPrefixChain SubdivisionBarycentricChains.nonemptyFiniteChainOfFinset NonemptyFiniteChains.map |
| 206 | dsimp only |
| 207 | have hmap (i : ULift.{0} (Fin (n + 1))) : |
| 208 | (SimplexCategory.toPartOrd.{0}.map (SimplexCategory.δ p)).hom i = |
| 209 | ULift.up (p.succAbove i.down) := by |
| 210 | induction i |
| 211 | rfl |
| 212 | calc |
| 213 | _ = Finset.image (fun i : ULift.{0} (Fin (n + 1)) ↦ |
| 214 | ULift.up (p.succAbove i.down)) (SubdivisionBarycentricAllDegrees.permutationPrefixFinset τ k) := hfinset |
| 215 | _ = _ := by |
| 216 | rw [show (fun i : ULift.{0} (Fin (n + 1)) ↦ |
| 217 | ULift.up (p.succAbove i.down)) = |
| 218 | (SimplexCategory.toPartOrd.{0}.map (SimplexCategory.δ p)).hom from |
| 219 | funext (fun i ↦ (hmap i).symm)] |
| 220 | apply finsetImage_decidableEq_independent |
| 221 | · apply Subsingleton.elim |
| 222 | |
| 223 | /-- The surviving outer faces reindex to the alternating sum of subdivided simplex faces. -/ |
| 224 | theorem barycentricOuterFaceIdentity (n : ℕ) : |
| 225 | SubdivisionBarycentricAllDegrees.subdividedSimplexOuterFaceSum n = SubdivisionBarycentricAllDegrees.subdividedSimplexAlternatingFaceChain n := by |
| 226 | rw [SubdivisionBarycentricAllDegrees.subdividedSimplexOuterFaceSum, SubdivisionBarycentricAllDegrees.subdividedSimplexAlternatingFaceChain, |
| 227 | ← Equiv.sum_comp (insertOmittedVertexLastEquiv n), Fintype.sum_prod_type] |
| 228 | simp only [insertOmittedVertexLastEquiv_apply, smul_smul, Fin.val_last, |
| 229 | outerFaceCoefficient_insertOmittedVertexLast, |
| 230 | permutationMaximalFlagSimplex_outerFace_insert] |
| 231 | simp_rw [SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain, Preadditive.sum_comp, |
| 232 | Preadditive.zsmul_comp, Finset.smul_sum, SSet.ι_chainComplexMap_f] |
| 233 | simp only [smul_smul] |
| 234 | |
| 235 | /-- The signed maximal-flag fundamental chains satisfy the complete alternating boundary |
| 236 | identity in every degree: all interior faces cancel, and the surviving outer faces reindex by |
| 237 | the previous theorem. -/ |
| 238 | theorem barycentricFundamentalBoundaryIdentity (n : ℕ) : |
| 239 | SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain (n + 1) ≫ |
| 240 | ((SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).chainComplex |
| 241 | (AddCommGrpCat.of ℤ)).d (n + 1) n = |
| 242 | SubdivisionBarycentricAllDegrees.subdividedSimplexAlternatingFaceChain n := by |
| 243 | rw [SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain_boundary_eq_outer n] |
| 244 | exact barycentricOuterFaceIdentity n |
| 245 | |
| 246 | /-- The boundary identity transports to the left-Kan-extension standard simplices. -/ |
| 247 | theorem subdividedStandardSimplexFundamentalChain_boundary (n : ℕ) : |
| 248 | SubdivisionBarycentricAllDegrees.subdividedStandardSimplexFundamentalChain (n + 1) ≫ |
| 249 | ((SSet.sd.obj (Δ[n + 1] : SSet.{0})).chainComplex |
| 250 | (AddCommGrpCat.of ℤ)).d (n + 1) n = |
| 251 | SubdivisionBarycentricAllDegrees.subdividedStandardSimplexAlternatingFaceChain n := by |
| 252 | let F := SSet.chainComplexMap |
| 253 | (SSet.stdSimplex.sdIso.inv.app (SimplexCategory.mk (n + 1))) |
| 254 | (AddCommGrpCat.of ℤ) |
| 255 | change (SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain (n + 1) ≫ F.f (n + 1)) ≫ _ = _ |
| 256 | have hcomm := F.comm (n + 1) n |
| 257 | have hpre := congrArg |
| 258 | (fun k ↦ SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain (n + 1) ≫ k) hcomm |
| 259 | calc |
| 260 | _ = SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain (n + 1) ≫ |
| 261 | (F.f (n + 1) ≫ _) := Category.assoc _ _ _ |
| 262 | _ = SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain (n + 1) ≫ |
| 263 | (_ ≫ F.f n) := hpre |
| 264 | _ = (SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain (n + 1) ≫ |
| 265 | ((SimplexCategory.sd.{0}.obj (SimplexCategory.mk (n + 1))).chainComplex |
| 266 | (AddCommGrpCat.of ℤ)).d (n + 1) n) ≫ F.f n := (Category.assoc _ _ _).symm |
| 267 | _ = SubdivisionBarycentricAllDegrees.subdividedSimplexAlternatingFaceChain n ≫ F.f n := by |
| 268 | rw [barycentricFundamentalBoundaryIdentity n] |
| 269 | _ = _ := by |
| 270 | rw [SubdivisionBarycentricAllDegrees.subdividedSimplexAlternatingFaceChain, Preadditive.sum_comp] |
| 271 | simp only [Preadditive.zsmul_comp, Category.assoc] |
| 272 | rw [SubdivisionBarycentricAllDegrees.subdividedStandardSimplexAlternatingFaceChain] |
| 273 | apply Finset.sum_congr rfl |
| 274 | intro i hi |
| 275 | rw [SubdivisionBarycentricAllDegrees.subdividedStandardSimplexFundamentalChain, Category.assoc, |
| 276 | SubdivisionBarycentricAllDegrees.subdividedStandardSimplexFace_naturality] |
| 277 | |
| 278 | /-- The subdivided chain of an arbitrary simplex has the expected alternating boundary. -/ |
| 279 | theorem barycentricSubdivisionSimplexChain_boundary |
| 280 | (X : SSet.{0}) (n : ℕ) |
| 281 | (x : X.obj (Opposite.op (SimplexCategory.mk (n + 1)))) : |
| 282 | SubdivisionBarycentricAllDegrees.barycentricSubdivisionSimplexChain X (n + 1) x ≫ |
| 283 | ((SSet.sd.obj X).chainComplex (AddCommGrpCat.of ℤ)).d (n + 1) n = |
| 284 | SubdivisionBarycentricAllDegrees.barycentricSubdivisionAlternatingFaceChain X n x := by |
| 285 | let F := SSet.chainComplexMap (SSet.sd.map (SSet.yonedaEquiv.symm x)) |
| 286 | (AddCommGrpCat.of ℤ) |
| 287 | change (SubdivisionBarycentricAllDegrees.subdividedStandardSimplexFundamentalChain (n + 1) ≫ F.f (n + 1)) ≫ |
| 288 | _ = _ |
| 289 | have hcomm := F.comm (n + 1) n |
| 290 | have hpre := congrArg |
| 291 | (fun k ↦ SubdivisionBarycentricAllDegrees.subdividedStandardSimplexFundamentalChain (n + 1) ≫ k) hcomm |
| 292 | calc |
| 293 | _ = SubdivisionBarycentricAllDegrees.subdividedStandardSimplexFundamentalChain (n + 1) ≫ |
| 294 | (F.f (n + 1) ≫ _) := Category.assoc _ _ _ |
| 295 | _ = SubdivisionBarycentricAllDegrees.subdividedStandardSimplexFundamentalChain (n + 1) ≫ |
| 296 | (_ ≫ F.f n) := hpre |
| 297 | _ = (SubdivisionBarycentricAllDegrees.subdividedStandardSimplexFundamentalChain (n + 1) ≫ |
| 298 | ((SSet.sd.obj (Δ[n + 1] : SSet.{0})).chainComplex |
| 299 | (AddCommGrpCat.of ℤ)).d (n + 1) n) ≫ F.f n := (Category.assoc _ _ _).symm |
| 300 | _ = SubdivisionBarycentricAllDegrees.subdividedStandardSimplexAlternatingFaceChain n ≫ F.f n := by |
| 301 | rw [subdividedStandardSimplexFundamentalChain_boundary n] |
| 302 | _ = _ := by |
| 303 | rw [SubdivisionBarycentricAllDegrees.subdividedStandardSimplexAlternatingFaceChain, Preadditive.sum_comp] |
| 304 | simp only [Preadditive.zsmul_comp, Category.assoc] |
| 305 | rw [SubdivisionBarycentricAllDegrees.barycentricSubdivisionAlternatingFaceChain] |
| 306 | apply Finset.sum_congr rfl |
| 307 | intro i hi |
| 308 | rw [SubdivisionBarycentricAllDegrees.barycentricSubdivisionSimplexChain] |
| 309 | apply congrArg (fun k ↦ ((-1 : ℤ) ^ i.val) • k) |
| 310 | rw [SubdivisionBarycentricAllDegrees.subdividedFace_then_simplex_naturality] |
| 311 | |
| 312 | /-- The degreewise barycentric subdivision components commute with the differentials. -/ |
| 313 | theorem barycentricSubdivisionComponent_comp_d (X : SSet.{0}) (n : ℕ) : |
| 314 | SubdivisionBarycentricAllDegrees.barycentricSubdivisionComponent X (n + 1) ≫ |
| 315 | ((SSet.sd.obj X).chainComplex (AddCommGrpCat.of ℤ)).d (n + 1) n = |
| 316 | (X.chainComplex (AddCommGrpCat.of ℤ)).d (n + 1) n ≫ |
| 317 | SubdivisionBarycentricAllDegrees.barycentricSubdivisionComponent X n := by |
| 318 | apply X.chainComplex_hom_ext |
| 319 | intro x |
| 320 | rw [← Category.assoc, SubdivisionBarycentricAllDegrees.iota_barycentricSubdivisionComponent, |
| 321 | barycentricSubdivisionSimplexChain_boundary] |
| 322 | rw [← Category.assoc, SSet.ιChainComplex_d, Preadditive.sum_comp] |
| 323 | simp only [Preadditive.zsmul_comp, SubdivisionBarycentricAllDegrees.iota_barycentricSubdivisionComponent] |
| 324 | rfl |
| 325 | |
| 326 | /-- The unconditional natural barycentric subdivision chain morphism. -/ |
| 327 | noncomputable def barycentricSubdivisionChainMapCanonical (X : SSet.{0}) : |
| 328 | X.chainComplex (AddCommGrpCat.of ℤ) ⟶ |
| 329 | (SSet.sd.obj X).chainComplex (AddCommGrpCat.of ℤ) := |
| 330 | ChainComplex.ofHom (SubdivisionBarycentricAllDegrees.barycentricSubdivisionComponent X) |
| 331 | (barycentricSubdivisionComponent_comp_d X) |
| 332 | |
| 333 | @[simp] |
| 334 | theorem barycentricSubdivisionChainMapCanonical_f |
| 335 | (X : SSet.{0}) (n : ℕ) : |
| 336 | (barycentricSubdivisionChainMapCanonical X).f n = |
| 337 | SubdivisionBarycentricAllDegrees.barycentricSubdivisionComponent X n := |
| 338 | rfl |
| 339 | |
| 340 | end |
| 341 | |
| 342 | end OAI.AlgebraicTopology.Singular.SubdivisionBarycentricOuterFaces |