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.SubdivisionAffineMesh |
| 18 | import OAI.AlgebraicTopology.Singular.SubdivisionAffineRelativeMesh |
| 19 | |
| 20 | /-! # Subdivision Affine Support -/ |
| 21 | |
| 22 | namespace OAI.AlgebraicTopology.Singular.SubdivisionAffineSupport |
| 23 | |
| 24 | noncomputable section |
| 25 | |
| 26 | /-! |
| 27 | |
| 28 | # Support of iterated affine subdivision |
| 29 | |
| 30 | This file connects the permutation expansion of affine barycentric subdivision with the |
| 31 | geometric ancestry cells used in the mesh estimate. It then lifts an iterate whose ancestry |
| 32 | cells are subordinate to a cover into the cover-small singular chain complex. |
| 33 | -/ |
| 34 | |
| 35 | open _root_.AlgebraicTopology _root_.CategoryTheory _root_.CategoryTheory.Limits Set Simplicial |
| 36 | |
| 37 | /-- The singular simplex obtained by restricting `x` to one iterated affine ancestry cell. -/ |
| 38 | noncomputable def iteratedAffineCellSingularSimplex |
| 39 | (X : TopCat.{0}) (n : ℕ) |
| 40 | (x : (TopCat.toSSet.obj X).obj |
| 41 | (Opposite.op (SimplexCategory.mk n))) |
| 42 | (ancestry : List (SubdivisionAffineMesh.TopAffineFlag n)) : |
| 43 | (TopCat.toSSet.obj X).obj |
| 44 | (Opposite.op (SimplexCategory.mk n)) := |
| 45 | (X.toSSetObjEquiv _).symm |
| 46 | ((X.toSSetObjEquiv _ x).comp (SubdivisionAffineMesh.iteratedAffineCellMap n ancestry)) |
| 47 | |
| 48 | @[simp] |
| 49 | theorem toSSetObjEquiv_iteratedAffineCellSingularSimplex_apply |
| 50 | (X : TopCat.{0}) (n : ℕ) |
| 51 | (x : (TopCat.toSSet.obj X).obj |
| 52 | (Opposite.op (SimplexCategory.mk n))) |
| 53 | (ancestry : List (SubdivisionAffineMesh.TopAffineFlag n)) |
| 54 | (w : Convexity.StdSimplex ℝ (Fin (n + 1))) : |
| 55 | X.toSSetObjEquiv _ |
| 56 | (iteratedAffineCellSingularSimplex X n x ancestry) w = |
| 57 | X.toSSetObjEquiv _ x (SubdivisionAffineMesh.iteratedAffineCellMap n ancestry w) := by |
| 58 | rfl |
| 59 | |
| 60 | @[simp] |
| 61 | theorem iteratedAffineCellSingularSimplex_nil |
| 62 | (X : TopCat.{0}) (n : ℕ) |
| 63 | (x : (TopCat.toSSet.obj X).obj |
| 64 | (Opposite.op (SimplexCategory.mk n))) : |
| 65 | iteratedAffineCellSingularSimplex X n x [] = x := by |
| 66 | apply (X.toSSetObjEquiv _).injective |
| 67 | rfl |
| 68 | |
| 69 | /-- Adding the newest flag to an ancestry is the same as restricting the parent cell by that |
| 70 | affine flag. -/ |
| 71 | theorem iteratedAffineCellSingularSimplex_cons |
| 72 | (X : TopCat.{0}) (n : ℕ) |
| 73 | (x : (TopCat.toSSet.obj X).obj |
| 74 | (Opposite.op (SimplexCategory.mk n))) |
| 75 | (F : SubdivisionAffineMesh.TopAffineFlag n) (ancestry : List (SubdivisionAffineMesh.TopAffineFlag n)) : |
| 76 | iteratedAffineCellSingularSimplex X n x (F :: ancestry) = |
| 77 | (TopCat.toSSet.map |
| 78 | (SubdivisionAffine.singularSimplexTopCatMap X n |
| 79 | (iteratedAffineCellSingularSimplex X n x ancestry))).app _ |
| 80 | (SubdivisionAffine.affineFlagSingularSimplex n n F) := by |
| 81 | apply (X.toSSetObjEquiv _).injective |
| 82 | apply ContinuousMap.ext |
| 83 | intro w |
| 84 | rfl |
| 85 | |
| 86 | /-- Restricting a parent ancestry cell by one more flag adds that flag at the head of the |
| 87 | ancestry. -/ |
| 88 | theorem iteratedAffineCellSingularSimplex_singleton_parent |
| 89 | (X : TopCat.{0}) (n : ℕ) |
| 90 | (x : (TopCat.toSSet.obj X).obj |
| 91 | (Opposite.op (SimplexCategory.mk n))) |
| 92 | (F : SubdivisionAffineMesh.TopAffineFlag n) (ancestry : List (SubdivisionAffineMesh.TopAffineFlag n)) : |
| 93 | iteratedAffineCellSingularSimplex X n |
| 94 | (iteratedAffineCellSingularSimplex X n x ancestry) [F] = |
| 95 | iteratedAffineCellSingularSimplex X n x (F :: ancestry) := by |
| 96 | calc |
| 97 | iteratedAffineCellSingularSimplex X n |
| 98 | (iteratedAffineCellSingularSimplex X n x ancestry) [F] = |
| 99 | (TopCat.toSSet.map |
| 100 | (SubdivisionAffine.singularSimplexTopCatMap X n |
| 101 | (iteratedAffineCellSingularSimplex X n x ancestry))).app _ |
| 102 | (SubdivisionAffine.affineFlagSingularSimplex n n F) := by |
| 103 | rw [iteratedAffineCellSingularSimplex_cons, |
| 104 | iteratedAffineCellSingularSimplex_nil] |
| 105 | _ = iteratedAffineCellSingularSimplex X n x (F :: ancestry) := |
| 106 | (iteratedAffineCellSingularSimplex_cons X n x F ancestry).symm |
| 107 | |
| 108 | /-- One affine subdivision of a generator is exactly the signed sum over permutation maximal |
| 109 | flags. -/ |
| 110 | theorem affineSubdivisionSingularSimplexChain_eq_permutation_sum |
| 111 | (X : TopCat.{0}) (n : ℕ) |
| 112 | (x : (TopCat.toSSet.obj X).obj |
| 113 | (Opposite.op (SimplexCategory.mk n))) : |
| 114 | SubdivisionAffine.affineSubdivisionSingularSimplexChain X n x = |
| 115 | ∑ σ : Equiv.Perm (Fin (n + 1)), |
| 116 | SubdivisionBarycentricAllDegrees.permutationSignInteger σ • |
| 117 | (TopCat.toSSet.obj X).ιChainComplex |
| 118 | (iteratedAffineCellSingularSimplex X n x |
| 119 | [SubdivisionBarycentricAllDegrees.permutationMaximalFlagSimplex σ]) := by |
| 120 | rw [SubdivisionAffine.affineSubdivisionSingularSimplexChain, |
| 121 | SubdivisionAffine.affineSubdividedSimplexFundamentalChain, |
| 122 | SubdivisionBarycentricAllDegrees.subdividedSimplexFundamentalChain, Preadditive.sum_comp, |
| 123 | Preadditive.sum_comp] |
| 124 | apply Finset.sum_congr rfl |
| 125 | intro σ _ |
| 126 | simp only [Preadditive.zsmul_comp, |
| 127 | SubdivisionAffine.affineFlagChainMap_f, SubdivisionAffine.iota_affineFlagChainComponent, |
| 128 | SSet.ι_chainComplexMap_f] |
| 129 | apply congrArg (fun f ↦ SubdivisionBarycentricAllDegrees.permutationSignInteger σ • f) |
| 130 | rw [iteratedAffineCellSingularSimplex_cons, |
| 131 | iteratedAffineCellSingularSimplex_nil] |
| 132 | |
| 133 | /-- A depth-`m` choice of one permutation maximal flag at every subdivision stage. -/ |
| 134 | abbrev AffinePermutationAncestry (n m : ℕ) := |
| 135 | Fin m → Equiv.Perm (Fin (n + 1)) |
| 136 | |
| 137 | /-- The list of affine flags encoded by a permutation ancestry, newest first. -/ |
| 138 | noncomputable def affinePermutationAncestryFlags |
| 139 | (n m : ℕ) (a : AffinePermutationAncestry n m) : |
| 140 | List (SubdivisionAffineMesh.TopAffineFlag n) := |
| 141 | List.ofFn fun i ↦ SubdivisionBarycentricAllDegrees.permutationMaximalFlagSimplex (a i) |
| 142 | |
| 143 | /-- The product of the orientation signs along a permutation ancestry. -/ |
| 144 | noncomputable def affinePermutationAncestrySign |
| 145 | (n m : ℕ) (a : AffinePermutationAncestry n m) : ℤ := |
| 146 | ∏ i, SubdivisionBarycentricAllDegrees.permutationSignInteger (a i) |
| 147 | |
| 148 | @[simp] |
| 149 | theorem affinePermutationAncestryFlags_zero |
| 150 | (n : ℕ) (a : AffinePermutationAncestry n 0) : |
| 151 | affinePermutationAncestryFlags n 0 a = [] := by |
| 152 | simp [affinePermutationAncestryFlags] |
| 153 | |
| 154 | @[simp] |
| 155 | theorem affinePermutationAncestrySign_zero |
| 156 | (n : ℕ) (a : AffinePermutationAncestry n 0) : |
| 157 | affinePermutationAncestrySign n 0 a = 1 := by |
| 158 | simp [affinePermutationAncestrySign] |
| 159 | |
| 160 | @[simp] |
| 161 | theorem affinePermutationAncestryFlags_cons |
| 162 | (n m : ℕ) (σ : Equiv.Perm (Fin (n + 1))) |
| 163 | (a : AffinePermutationAncestry n m) : |
| 164 | affinePermutationAncestryFlags n (m + 1) (Fin.cons σ a) = |
| 165 | SubdivisionBarycentricAllDegrees.permutationMaximalFlagSimplex σ :: |
| 166 | affinePermutationAncestryFlags n m a := by |
| 167 | simp [affinePermutationAncestryFlags] |
| 168 | |
| 169 | @[simp] |
| 170 | theorem affinePermutationAncestrySign_cons |
| 171 | (n m : ℕ) (σ : Equiv.Perm (Fin (n + 1))) |
| 172 | (a : AffinePermutationAncestry n m) : |
| 173 | affinePermutationAncestrySign n (m + 1) (Fin.cons σ a) = |
| 174 | SubdivisionBarycentricAllDegrees.permutationSignInteger σ * affinePermutationAncestrySign n m a := by |
| 175 | simp [affinePermutationAncestrySign, Fin.prod_univ_succ] |
| 176 | |
| 177 | /-- The exact generator expansion after `m` affine subdivisions. Its summands are precisely the |
| 178 | singular simplices obtained from depth-`m` affine ancestries. -/ |
| 179 | theorem iota_affineSingularSubdivisionIterate_eq_ancestry_sum |
| 180 | (X : TopCat.{0}) (n : ℕ) |
| 181 | (x : (TopCat.toSSet.obj X).obj |
| 182 | (Opposite.op (SimplexCategory.mk n))) : |
| 183 | ∀ m : ℕ, |
| 184 | (TopCat.toSSet.obj X).ιChainComplex x ≫ |
| 185 | (SubdivisionAffineIteration.affineSingularSubdivisionIterate X m).f n = |
| 186 | ∑ a : AffinePermutationAncestry n m, |
| 187 | affinePermutationAncestrySign n m a • |
| 188 | (TopCat.toSSet.obj X).ιChainComplex |
| 189 | (iteratedAffineCellSingularSimplex X n x |
| 190 | (affinePermutationAncestryFlags n m a)) := by |
| 191 | intro m |
| 192 | induction m with |
| 193 | | zero => |
| 194 | classical |
| 195 | simp only [SubdivisionAffineIteration.affineSingularSubdivisionIterate_zero] |
| 196 | rw [Fintype.sum_unique] |
| 197 | simp |
| 198 | | succ m ih => |
| 199 | classical |
| 200 | rw [SubdivisionAffineIteration.affineSingularSubdivisionIterate_succ] |
| 201 | change ((TopCat.toSSet.obj X).ιChainComplex x ≫ |
| 202 | (SubdivisionAffineIteration.affineSingularSubdivisionIterate X m).f n) ≫ |
| 203 | (SubdivisionAffine.affineSingularSubdivisionChainMap X).f n = _ |
| 204 | rw [ih, Preadditive.sum_comp] |
| 205 | simp only [Preadditive.zsmul_comp, |
| 206 | SubdivisionAffine.affineSingularSubdivisionChainMap_f, |
| 207 | SubdivisionAffine.iota_affineSingularSubdivisionComponent, |
| 208 | affineSubdivisionSingularSimplexChain_eq_permutation_sum, |
| 209 | Finset.smul_sum, smul_smul] |
| 210 | rw [Finset.sum_comm, ← Fintype.sum_prod_type'] |
| 211 | apply Fintype.sum_equiv |
| 212 | (Fin.consEquiv (fun _ : Fin (m + 1) ↦ |
| 213 | Equiv.Perm (Fin (n + 1)))) _ _ |
| 214 | rintro ⟨σ, a⟩ |
| 215 | change (affinePermutationAncestrySign n m a * |
| 216 | SubdivisionBarycentricAllDegrees.permutationSignInteger σ) • _ = |
| 217 | affinePermutationAncestrySign n (m + 1) (Fin.cons σ a) • |
| 218 | (TopCat.toSSet.obj X).ιChainComplex |
| 219 | (iteratedAffineCellSingularSimplex X n x |
| 220 | (affinePermutationAncestryFlags n (m + 1) (Fin.cons σ a))) |
| 221 | rw [affinePermutationAncestrySign_cons, |
| 222 | affinePermutationAncestryFlags_cons, mul_comm, |
| 223 | iteratedAffineCellSingularSimplex_singleton_parent] |
| 224 | |
| 225 | variable {ι : Type} (X : TopCat.{0}) (U : ι → Set X) |
| 226 | |
| 227 | /-- A geometric ancestry cell subordinate to one cover member defines a cover-small singular |
| 228 | simplex. -/ |
| 229 | theorem iteratedAffineCellSingularSimplex_mem_coverSmall |
| 230 | (n : ℕ) |
| 231 | (x : (TopCat.toSSet.obj X).obj |
| 232 | (Opposite.op (SimplexCategory.mk n))) |
| 233 | (ancestry : List (SubdivisionAffineMesh.TopAffineFlag n)) |
| 234 | (hsmall : ∃ i, X.toSSetObjEquiv _ x '' |
| 235 | Set.range (SubdivisionAffineMesh.iteratedAffineCellMap n ancestry) ⊆ U i) : |
| 236 | iteratedAffineCellSingularSimplex X n x ancestry ∈ |
| 237 | (ExcisionCoverSmall.coverSmallSingularSubcomplex X U).obj |
| 238 | (Opposite.op (SimplexCategory.mk n)) := by |
| 239 | rw [ExcisionCoverSmall.mem_coverSmallSingularSubcomplex_iff_exists_preimage] |
| 240 | obtain ⟨i, hi⟩ := hsmall |
| 241 | let f : C(Convexity.StdSimplex ℝ (Fin (n + 1)), U i) := |
| 242 | ⟨fun w ↦ |
| 243 | ⟨X.toSSetObjEquiv _ x (SubdivisionAffineMesh.iteratedAffineCellMap n ancestry w), |
| 244 | hi ⟨SubdivisionAffineMesh.iteratedAffineCellMap n ancestry w, ⟨w, rfl⟩, rfl⟩⟩, |
| 245 | Continuous.subtype_mk |
| 246 | ((X.toSSetObjEquiv _ x).continuous.comp |
| 247 | (SubdivisionAffineMesh.iteratedAffineCellMap n ancestry).continuous) _⟩ |
| 248 | refine ⟨i, (TopCat.toSSetObjEquiv _ _).symm f, ?_⟩ |
| 249 | apply (X.toSSetObjEquiv _).injective |
| 250 | apply ContinuousMap.ext |
| 251 | intro w |
| 252 | rfl |
| 253 | |
| 254 | /-- The cover-small simplex corresponding to a subordinate ancestry cell. -/ |
| 255 | noncomputable def coverSmallIteratedAffineCellSimplex |
| 256 | (n : ℕ) |
| 257 | (x : (TopCat.toSSet.obj X).obj |
| 258 | (Opposite.op (SimplexCategory.mk n))) |
| 259 | (ancestry : List (SubdivisionAffineMesh.TopAffineFlag n)) |
| 260 | (hsmall : ∃ i, X.toSSetObjEquiv _ x '' |
| 261 | Set.range (SubdivisionAffineMesh.iteratedAffineCellMap n ancestry) ⊆ U i) : |
| 262 | (ExcisionCoverSmall.coverSmallSingularSubcomplex X U : SSet).obj |
| 263 | (Opposite.op (SimplexCategory.mk n)) := |
| 264 | ⟨iteratedAffineCellSingularSimplex X n x ancestry, |
| 265 | iteratedAffineCellSingularSimplex_mem_coverSmall X U n x ancestry hsmall⟩ |
| 266 | |
| 267 | @[simp] |
| 268 | theorem coverSmallIteratedAffineCellSimplex_val |
| 269 | (n : ℕ) |
| 270 | (x : (TopCat.toSSet.obj X).obj |
| 271 | (Opposite.op (SimplexCategory.mk n))) |
| 272 | (ancestry : List (SubdivisionAffineMesh.TopAffineFlag n)) |
| 273 | (hsmall : ∃ i, X.toSSetObjEquiv _ x '' |
| 274 | Set.range (SubdivisionAffineMesh.iteratedAffineCellMap n ancestry) ⊆ U i) : |
| 275 | (coverSmallIteratedAffineCellSimplex X U n x ancestry hsmall).1 = |
| 276 | iteratedAffineCellSingularSimplex X n x ancestry := |
| 277 | rfl |
| 278 | |
| 279 | /-- The signed ancestry expansion, lifted generator by generator to cover-small chains. -/ |
| 280 | noncomputable def coverSmallAffineAncestryLiftChain |
| 281 | (n m : ℕ) |
| 282 | (x : (TopCat.toSSet.obj X).obj |
| 283 | (Opposite.op (SimplexCategory.mk n))) |
| 284 | (hsmall : ∀ a : AffinePermutationAncestry n m, |
| 285 | ∃ i, X.toSSetObjEquiv _ x '' |
| 286 | Set.range (SubdivisionAffineMesh.iteratedAffineCellMap n |
| 287 | (affinePermutationAncestryFlags n m a)) ⊆ U i) : |
| 288 | AddCommGrpCat.of ℤ ⟶ |
| 289 | (ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex X U).X n := |
| 290 | ∑ a : AffinePermutationAncestry n m, |
| 291 | affinePermutationAncestrySign n m a • |
| 292 | (ExcisionCoverSmall.coverSmallSingularSubcomplex X U : SSet).ιChainComplex |
| 293 | (coverSmallIteratedAffineCellSimplex X U n x |
| 294 | (affinePermutationAncestryFlags n m a) (hsmall a)) |
| 295 | |
| 296 | /-- The lifted ancestry chain maps to the affine-subdivision iterate of its original |
| 297 | generator. -/ |
| 298 | theorem coverSmallAffineAncestryLiftChain_comp_inclusion |
| 299 | (n m : ℕ) |
| 300 | (x : (TopCat.toSSet.obj X).obj |
| 301 | (Opposite.op (SimplexCategory.mk n))) |
| 302 | (hsmall : ∀ a : AffinePermutationAncestry n m, |
| 303 | ∃ i, X.toSSetObjEquiv _ x '' |
| 304 | Set.range (SubdivisionAffineMesh.iteratedAffineCellMap n |
| 305 | (affinePermutationAncestryFlags n m a)) ⊆ U i) : |
| 306 | coverSmallAffineAncestryLiftChain X U n m x hsmall ≫ |
| 307 | (ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U).f n = |
| 308 | (TopCat.toSSet.obj X).ιChainComplex x ≫ |
| 309 | (SubdivisionAffineIteration.affineSingularSubdivisionIterate X m).f n := by |
| 310 | change coverSmallAffineAncestryLiftChain X U n m x hsmall ≫ |
| 311 | (SSet.chainComplexMap (ExcisionCoverSmall.coverSmallSingularSubcomplex X U).ι |
| 312 | (AddCommGrpCat.of ℤ)).f n = _ |
| 313 | rw [coverSmallAffineAncestryLiftChain, Preadditive.sum_comp] |
| 314 | simp_rw [Preadditive.zsmul_comp, SSet.ι_chainComplexMap_f] |
| 315 | exact (iota_affineSingularSubdivisionIterate_eq_ancestry_sum X n x m).symm |
| 316 | |
| 317 | /-- If every depth-`m` ancestry cell of a generator is subordinate to the cover, its subdivided |
| 318 | chain lies in the degreewise range of the cover-small inclusion. -/ |
| 319 | theorem affineSingularSubdivisionIterate_generator_mem_range_of_ancestries |
| 320 | (n m : ℕ) |
| 321 | (x : (TopCat.toSSet.obj X).obj |
| 322 | (Opposite.op (SimplexCategory.mk n))) |
| 323 | (hsmall : ∀ a : AffinePermutationAncestry n m, |
| 324 | ∃ i, X.toSSetObjEquiv _ x '' |
| 325 | Set.range (SubdivisionAffineMesh.iteratedAffineCellMap n |
| 326 | (affinePermutationAncestryFlags n m a)) ⊆ U i) : |
| 327 | (SubdivisionAffineIteration.affineSingularSubdivisionIterate X m).f n |
| 328 | ((TopCat.toSSet.obj X).ιChainComplex |
| 329 | (R := AddCommGrpCat.of ℤ) x 1) ∈ |
| 330 | Set.range ((ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U).f n) := by |
| 331 | refine ⟨coverSmallAffineAncestryLiftChain X U n m x hsmall 1, ?_⟩ |
| 332 | exact ConcreteCategory.congr_hom |
| 333 | (coverSmallAffineAncestryLiftChain_comp_inclusion X U n m x hsmall) 1 |
| 334 | |
| 335 | @[simp] |
| 336 | theorem length_affinePermutationAncestryFlags |
| 337 | (n m : ℕ) (a : AffinePermutationAncestry n m) : |
| 338 | (affinePermutationAncestryFlags n m a).length = m := by |
| 339 | simp [affinePermutationAncestryFlags] |
| 340 | |
| 341 | /-- Once an iterate lies in the range of the cover-small inclusion, every later iterate does as |
| 342 | well. -/ |
| 343 | theorem affineSingularSubdivisionIterate_mem_range_add |
| 344 | (n m r : ℕ) |
| 345 | (c : (ExcisionCoverSmall.IntegralSingularChainComplexObj X).X n) |
| 346 | (h : (SubdivisionAffineIteration.affineSingularSubdivisionIterate X m).f n c ∈ |
| 347 | Set.range ((ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U).f n)) : |
| 348 | (SubdivisionAffineIteration.affineSingularSubdivisionIterate X (m + r)).f n c ∈ |
| 349 | Set.range ((ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U).f n) := by |
| 350 | obtain ⟨y, hy⟩ := h |
| 351 | refine ⟨(SubdivisionAffineIteration.coverSmallAffineSubdivisionIterate X U r).f n y, ?_⟩ |
| 352 | have hcomm := ConcreteCategory.congr_hom |
| 353 | (congrArg (fun f ↦ f.f n) |
| 354 | (SubdivisionAffineIteration.coverSmallAffineSubdivisionIterate_comp_inclusion X U r)) y |
| 355 | have hmiddle : |
| 356 | (SubdivisionAffineIteration.affineSingularSubdivisionIterate X r).f n |
| 357 | ((ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U).f n y) = |
| 358 | (SubdivisionAffineIteration.affineSingularSubdivisionIterate X r).f n |
| 359 | ((SubdivisionAffineIteration.affineSingularSubdivisionIterate X m).f n c) := |
| 360 | congrArg ((SubdivisionAffineIteration.affineSingularSubdivisionIterate X r).f n) hy |
| 361 | have htotal : |
| 362 | (SubdivisionAffineIteration.affineSingularSubdivisionIterate X r).f n |
| 363 | ((SubdivisionAffineIteration.affineSingularSubdivisionIterate X m).f n c) = |
| 364 | (SubdivisionAffineIteration.affineSingularSubdivisionIterate X (m + r)).f n c := by |
| 365 | rw [SubdivisionAffineMesh.affineSingularSubdivisionIterate_add] |
| 366 | rfl |
| 367 | exact hcomm.trans (hmiddle.trans htotal) |
| 368 | |
| 369 | /-- Chains which become cover-small after some (chain-dependent) number of affine subdivisions |
| 370 | form an additive subgroup. -/ |
| 371 | noncomputable def affineSubdivisionEventuallySmallAddSubgroup |
| 372 | (n : ℕ) : AddSubgroup ((ExcisionCoverSmall.IntegralSingularChainComplexObj X).X n) where |
| 373 | carrier := {c | ∃ m : ℕ, |
| 374 | (SubdivisionAffineIteration.affineSingularSubdivisionIterate X m).f n c ∈ |
| 375 | Set.range ((ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U).f n)} |
| 376 | zero_mem' := |
| 377 | ⟨0, 0, ((ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U).f n).hom.map_zero.trans |
| 378 | ((SubdivisionAffineIteration.affineSingularSubdivisionIterate X 0).f n).hom.map_zero.symm⟩ |
| 379 | add_mem' := by |
| 380 | rintro c d ⟨m, hm⟩ ⟨r, hr⟩ |
| 381 | have hm' := affineSingularSubdivisionIterate_mem_range_add |
| 382 | X U n m r c hm |
| 383 | have hr' := affineSingularSubdivisionIterate_mem_range_add |
| 384 | X U n r m d hr |
| 385 | rw [Nat.add_comm r m] at hr' |
| 386 | obtain ⟨yc, hyc⟩ := hm' |
| 387 | obtain ⟨yd, hyd⟩ := hr' |
| 388 | refine ⟨m + r, yc + yd, ?_⟩ |
| 389 | simp only [map_add] |
| 390 | rw [hyc, hyd] |
| 391 | exact ((SubdivisionAffineIteration.affineSingularSubdivisionIterate X (m + r)).f n).hom.map_add c d |>.symm |
| 392 | neg_mem' := by |
| 393 | rintro c ⟨m, hm⟩ |
| 394 | obtain ⟨y, hy⟩ := hm |
| 395 | refine ⟨m, -y, ?_⟩ |
| 396 | simp only [map_neg] |
| 397 | rw [hy] |
| 398 | exact ((SubdivisionAffineIteration.affineSingularSubdivisionIterate X m).f n).hom.map_neg c |>.symm |
| 399 | |
| 400 | /-- Generatorwise subordinate permutation ancestries suffice for every chain: the required |
| 401 | subdivision depth may depend on the chain. -/ |
| 402 | theorem exists_affineSubdivisionIterate_mem_range_of_generator_ancestries |
| 403 | (n : ℕ) |
| 404 | (hsmall : ∀ x : (TopCat.toSSet.obj X).obj |
| 405 | (Opposite.op (SimplexCategory.mk n)), |
| 406 | ∃ m : ℕ, ∀ a : AffinePermutationAncestry n m, |
| 407 | ∃ i, X.toSSetObjEquiv _ x '' |
| 408 | Set.range (SubdivisionAffineMesh.iteratedAffineCellMap n |
| 409 | (affinePermutationAncestryFlags n m a)) ⊆ U i) : |
| 410 | ∀ c : (ExcisionCoverSmall.IntegralSingularChainComplexObj X).X n, |
| 411 | ∃ m : ℕ, (SubdivisionAffineIteration.affineSingularSubdivisionIterate X m).f n c ∈ |
| 412 | Set.range ((ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U).f n) := by |
| 413 | let P := affineSubdivisionEventuallySmallAddSubgroup X U n |
| 414 | let Q := AddCommGrpCat.of ((ExcisionCoverSmall.IntegralSingularChainComplexObj X).X n ⧸ P) |
| 415 | let q : (ExcisionCoverSmall.IntegralSingularChainComplexObj X).X n ⟶ Q := |
| 416 | AddCommGrpCat.ofHom (QuotientAddGroup.mk' P) |
| 417 | have hq : q = 0 := by |
| 418 | apply (TopCat.toSSet.obj X).chainComplex_hom_ext |
| 419 | intro x |
| 420 | let j : AddCommGrpCat.of ℤ ⟶ (ExcisionCoverSmall.IntegralSingularChainComplexObj X).X n := |
| 421 | (TopCat.toSSet.obj X).ιChainComplex x |
| 422 | apply AddCommGrpCat.hom_ext |
| 423 | apply AddMonoidHom.ext |
| 424 | intro z |
| 425 | change QuotientAddGroup.mk' P (j z) = 0 |
| 426 | obtain ⟨m, hm⟩ := hsmall x |
| 427 | have hgen : j 1 ∈ P := |
| 428 | ⟨m, affineSingularSubdivisionIterate_generator_mem_range_of_ancestries |
| 429 | X U n m x hm⟩ |
| 430 | have hzsmul := P.zsmul_mem hgen z |
| 431 | have heq : j z = z • j 1 := by |
| 432 | calc |
| 433 | j z = j (z • (1 : ℤ)) := by simp |
| 434 | _ = z • j 1 := j.hom.map_zsmul z 1 |
| 435 | rw [← heq] at hzsmul |
| 436 | show j z ∈ (QuotientAddGroup.mk' P).ker |
| 437 | rwa [QuotientAddGroup.ker_mk'] |
| 438 | intro c |
| 439 | have hc : QuotientAddGroup.mk' P c = 0 := ConcreteCategory.congr_hom hq c |
| 440 | change c ∈ P |
| 441 | have hcker : c ∈ (QuotientAddGroup.mk' P).ker := hc |
| 442 | rwa [QuotientAddGroup.ker_mk'] at hcker |
| 443 | |
| 444 | /-- If all ancestry cells of one common depth are subordinate for each singular simplex, then |
| 445 | every chain in that degree has a cover-small subdivision iterate. -/ |
| 446 | theorem exists_affineSubdivisionIterate_mem_range_of_ancestries |
| 447 | (n : ℕ) |
| 448 | (hsmall : ∀ x : (TopCat.toSSet.obj X).obj |
| 449 | (Opposite.op (SimplexCategory.mk n)), |
| 450 | ∃ m : ℕ, ∀ ancestry : List (SubdivisionAffineMesh.TopAffineFlag n), |
| 451 | ancestry.length = m → |
| 452 | ∃ i, X.toSSetObjEquiv _ x '' |
| 453 | Set.range (SubdivisionAffineMesh.iteratedAffineCellMap n ancestry) ⊆ U i) : |
| 454 | ∀ c : (ExcisionCoverSmall.IntegralSingularChainComplexObj X).X n, |
| 455 | ∃ m : ℕ, (SubdivisionAffineIteration.affineSingularSubdivisionIterate X m).f n c ∈ |
| 456 | Set.range ((ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U).f n) := by |
| 457 | apply exists_affineSubdivisionIterate_mem_range_of_generator_ancestries X U n |
| 458 | intro x |
| 459 | obtain ⟨m, hm⟩ := hsmall x |
| 460 | exact ⟨m, fun a ↦ hm (affinePermutationAncestryFlags n m a) |
| 461 | (length_affinePermutationAncestryFlags n m a)⟩ |
| 462 | |
| 463 | /-- Cover-subordination of every depth-`m` ancestry cell (with a depth depending on the original |
| 464 | simplex and degree) implies affine eventual smallness for all singular chains. -/ |
| 465 | theorem coverSmallAffineSubdivisionEventuallySmall_of_ancestries |
| 466 | (hsmall : ∀ (n : ℕ) (x : (TopCat.toSSet.obj X).obj |
| 467 | (Opposite.op (SimplexCategory.mk n))), |
| 468 | ∃ m : ℕ, ∀ ancestry : List (SubdivisionAffineMesh.TopAffineFlag n), |
| 469 | ancestry.length = m → |
| 470 | ∃ i, X.toSSetObjEquiv _ x '' |
| 471 | Set.range (SubdivisionAffineMesh.iteratedAffineCellMap n ancestry) ⊆ U i) : |
| 472 | ∀ (n : ℕ) (x : (ExcisionCoverSmall.IntegralSingularChainComplexObj X).X n), |
| 473 | ∃ (m : ℕ) (y : (ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex X U).X n), |
| 474 | (ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U).f n y = |
| 475 | (SubdivisionAffineIteration.affineSingularSubdivisionIterate X m).f n x := by |
| 476 | apply SubdivisionAffineMesh.coverSmallAffineSubdivisionEventuallySmall_of_iterate_mem_range X U |
| 477 | intro n c |
| 478 | exact exists_affineSubdivisionIterate_mem_range_of_ancestries |
| 479 | X U n (hsmall n) c |
| 480 | |
| 481 | /-- Zero-dimensional singular simplices are already subordinate to any covering family. -/ |
| 482 | theorem exists_zero_dimensional_ancestry_depth_subordinate |
| 483 | (hUcover : ⋃ i, U i = Set.univ) |
| 484 | (x : (TopCat.toSSet.obj X).obj |
| 485 | (Opposite.op (SimplexCategory.mk 0))) : |
| 486 | ∃ m : ℕ, ∀ ancestry : List (SubdivisionAffineMesh.TopAffineFlag 0), |
| 487 | ancestry.length = m → |
| 488 | ∃ i, X.toSSetObjEquiv _ x '' |
| 489 | Set.range (SubdivisionAffineMesh.iteratedAffineCellMap 0 ancestry) ⊆ U i := by |
| 490 | refine ⟨0, fun ancestry hlength ↦ ?_⟩ |
| 491 | cases ancestry with |
| 492 | | cons F ancestry => simp at hlength |
| 493 | | nil => |
| 494 | let w₀ : Convexity.StdSimplex ℝ (Fin (0 + 1)) := Classical.arbitrary _ |
| 495 | have hwcover : X.toSSetObjEquiv _ x w₀ ∈ ⋃ i, U i := by |
| 496 | rw [hUcover] |
| 497 | trivial |
| 498 | simp only [Set.mem_iUnion] at hwcover |
| 499 | obtain ⟨i, hi⟩ := hwcover |
| 500 | refine ⟨i, ?_⟩ |
| 501 | rintro y ⟨z, ⟨w, rfl⟩, rfl⟩ |
| 502 | have hw : w = w₀ := by |
| 503 | apply (Convexity.StdSimplex.isEmbedding_toFun_comp_weights ℝ (Fin 1)).injective |
| 504 | funext j |
| 505 | have hj : j = 0 := Fin.eq_zero j |
| 506 | subst j |
| 507 | have h1 : w.weights 0 = 1 := |
| 508 | (Fin.sum_univ_one w.weights).symm.trans w.total_of_fintype |
| 509 | have h2 : w₀.weights 0 = 1 := |
| 510 | (Fin.sum_univ_one w₀.weights).symm.trans w₀.total_of_fintype |
| 511 | exact h1.trans h2.symm |
| 512 | simpa [hw] using hi |
| 513 | |
| 514 | /-- Every finite singular chain becomes subordinate to an open cover after enough affine |
| 515 | barycentric subdivisions: the relative mesh contraction handles the positive degrees, and |
| 516 | degree zero is already small. -/ |
| 517 | theorem coverSmallAffineSubdivisionEventuallySmall_of_openCover |
| 518 | (hUopen : ∀ i, IsOpen (U i)) (hUcover : ⋃ i, U i = Set.univ) : |
| 519 | ∀ (n : ℕ) (x : (ExcisionCoverSmall.IntegralSingularChainComplexObj X).X n), |
| 520 | ∃ (m : ℕ) (y : (ExcisionCoverSmall.CoverSmallIntegralSingularChainComplex X U).X n), |
| 521 | (ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U).f n y = |
| 522 | (SubdivisionAffineIteration.affineSingularSubdivisionIterate X m).f n x := by |
| 523 | apply coverSmallAffineSubdivisionEventuallySmall_of_ancestries X U |
| 524 | intro n x |
| 525 | cases n with |
| 526 | | zero => |
| 527 | exact exists_zero_dimensional_ancestry_depth_subordinate X U hUcover x |
| 528 | | succ n => |
| 529 | exact SubdivisionAffineRelativeMesh.exists_iteratedAffineCell_depth_subordinate X U hUopen hUcover |
| 530 | (n + 1) (Nat.succ_le_succ (Nat.zero_le n)) x |
| 531 | |
| 532 | end |
| 533 | |
| 534 | end OAI.AlgebraicTopology.Singular.SubdivisionAffineSupport |