Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | /- |
| 2 | Copyright 2026 The Formal Conjectures Authors. |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | https://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | This file has been modified. |
| 16 | -/ |
| 17 | import OAI.AlgebraicTopology.Singular.ExcisionCoverSmall |
| 18 | import Mathlib.Algebra.Category.ModuleCat.Colimits |
| 19 | import OAI.AlgebraicTopology.Singular.ExcisionOpenCover |
| 20 | |
| 21 | /-! # Chains -/ |
| 22 | |
| 23 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.Coefficient.Chains.SingularCoefficients |
| 24 | |
| 25 | noncomputable section |
| 26 | |
| 27 | /-! |
| 28 | # Small singular chains with coefficient coefficients |
| 29 | |
| 30 | This file transports the integral subdivision homotopy to coefficient simplicial chains. The |
| 31 | transport is constructed directly from the universal bases of the two simplicial chain |
| 32 | complexes. In particular, it does not assume a universal-coefficient theorem. |
| 33 | -/ |
| 34 | |
| 35 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 36 | open scoped Simplicial |
| 37 | |
| 38 | variable (K : Type) [Field K] |
| 39 | |
| 40 | @[simp] |
| 41 | lemma integralCoefficient_one : |
| 42 | (AddCommGrpCat.ofHom (Int.castAddHom K)).hom (1 : ℤ) = (1 : K) := |
| 43 | Int.cast_one |
| 44 | |
| 45 | /-- Coefficient chains on a simplicial set. -/ |
| 46 | abbrev CoefficientSimplicialChainComplex (X : SSet.{0}) : |
| 47 | ChainComplex (ModuleCat K) ℕ := |
| 48 | X.chainComplex (ModuleCat.of K K) |
| 49 | |
| 50 | @[simp] |
| 51 | lemma moduleCat_toSpanSingleton_apply_one (M : ModuleCat K) (v : M) : |
| 52 | (ModuleCat.ofHom (LinearMap.toSpanSingleton K M v)).hom 1 = v := by simp |
| 53 | |
| 54 | /-- The coefficient map from integral to coefficient chains in one degree. -/ |
| 55 | def integralToCoefficientChainComponent (X : SSet.{0}) (n : ℕ) : |
| 56 | (X.chainComplex (AddCommGrpCat.of ℤ)).X n ⟶ |
| 57 | (forget₂ (ModuleCat K) AddCommGrpCat).obj ((CoefficientSimplicialChainComplex K X).X n) := |
| 58 | (X.isColimitChainComplexXCofan (AddCommGrpCat.of ℤ) n).desc |
| 59 | (Cofan.mk _ fun x ↦ |
| 60 | AddCommGrpCat.ofHom (Int.castAddHom K) ≫ |
| 61 | (forget₂ (ModuleCat K) AddCommGrpCat).map (X.ιChainComplex (R := ModuleCat.of K K) x)) |
| 62 | |
| 63 | @[reassoc] |
| 64 | lemma iota_integralToCoefficientChainComponent (X : SSet.{0}) (n : ℕ) |
| 65 | (x : X _⦋n⦌) : |
| 66 | X.ιChainComplex (R := AddCommGrpCat.of ℤ) x ≫ |
| 67 | integralToCoefficientChainComponent K X n = |
| 68 | AddCommGrpCat.ofHom (Int.castAddHom K) ≫ |
| 69 | (forget₂ (ModuleCat K) AddCommGrpCat).map (X.ιChainComplex (R := ModuleCat.of K K) x) := |
| 70 | (X.isColimitChainComplexXCofan (AddCommGrpCat.of ℤ) n).fac _ (Discrete.mk x) |
| 71 | |
| 72 | /-- Extend an integral map between free simplicial-chain groups coefficient-linearly. -/ |
| 73 | def coefficientizeSimplicialChainComponent (X Y : SSet.{0}) (n m : ℕ) |
| 74 | (f : (X.chainComplex (AddCommGrpCat.of ℤ)).X n ⟶ |
| 75 | (Y.chainComplex (AddCommGrpCat.of ℤ)).X m) : |
| 76 | (CoefficientSimplicialChainComplex K X).X n ⟶ |
| 77 | (CoefficientSimplicialChainComplex K Y).X m := |
| 78 | (X.isColimitChainComplexXCofan (ModuleCat.of K K) n).desc |
| 79 | (Cofan.mk _ fun x ↦ ModuleCat.ofHom <| |
| 80 | LinearMap.toSpanSingleton K _ <| |
| 81 | (show (CoefficientSimplicialChainComplex K Y).X m from |
| 82 | (integralToCoefficientChainComponent K Y m).hom |
| 83 | (f.hom ((X.ιChainComplex (R := AddCommGrpCat.of ℤ) x).hom 1)))) |
| 84 | |
| 85 | @[reassoc] |
| 86 | lemma iota_coefficientizeSimplicialChainComponent |
| 87 | (X Y : SSet.{0}) (n m : ℕ) |
| 88 | (f : (X.chainComplex (AddCommGrpCat.of ℤ)).X n ⟶ |
| 89 | (Y.chainComplex (AddCommGrpCat.of ℤ)).X m) |
| 90 | (x : X _⦋n⦌) : |
| 91 | X.ιChainComplex (R := ModuleCat.of K K) x ≫ |
| 92 | coefficientizeSimplicialChainComponent K X Y n m f = |
| 93 | ModuleCat.ofHom (LinearMap.toSpanSingleton K _ <| |
| 94 | (show (CoefficientSimplicialChainComplex K Y).X m from |
| 95 | (integralToCoefficientChainComponent K Y m).hom |
| 96 | (f.hom ((X.ιChainComplex (R := AddCommGrpCat.of ℤ) x).hom 1)))) := |
| 97 | (X.isColimitChainComplexXCofan (ModuleCat.of K K) n).fac _ (Discrete.mk x) |
| 98 | |
| 99 | lemma integralToCoefficientChainComponent_naturality |
| 100 | (X Y : SSet.{0}) (n m : ℕ) |
| 101 | (f : (X.chainComplex (AddCommGrpCat.of ℤ)).X n ⟶ |
| 102 | (Y.chainComplex (AddCommGrpCat.of ℤ)).X m) : |
| 103 | integralToCoefficientChainComponent K X n ≫ |
| 104 | (forget₂ (ModuleCat K) AddCommGrpCat).map (coefficientizeSimplicialChainComponent K X Y n m f) = |
| 105 | f ≫ integralToCoefficientChainComponent K Y m := by |
| 106 | refine (X.isColimitChainComplexXCofan (AddCommGrpCat.of ℤ) n).hom_ext fun x ↦ ?_ |
| 107 | change X.ιChainComplex (R := AddCommGrpCat.of ℤ) x.as ≫ |
| 108 | (integralToCoefficientChainComponent K X n ≫ |
| 109 | (forget₂ (ModuleCat K) AddCommGrpCat).map (coefficientizeSimplicialChainComponent K X Y n m f)) = |
| 110 | X.ιChainComplex (R := AddCommGrpCat.of ℤ) x.as ≫ |
| 111 | (f ≫ integralToCoefficientChainComponent K Y m) |
| 112 | apply AddCommGrpCat.int_hom_ext |
| 113 | have hx := ConcreteCategory.congr_hom |
| 114 | (iota_integralToCoefficientChainComponent K X n x.as) 1 |
| 115 | have hf := ConcreteCategory.congr_hom |
| 116 | (iota_coefficientizeSimplicialChainComponent K X Y n m f x.as) 1 |
| 117 | change (coefficientizeSimplicialChainComponent K X Y n m f).hom |
| 118 | ((integralToCoefficientChainComponent K X n).hom |
| 119 | ((X.ιChainComplex (R := AddCommGrpCat.of ℤ) x.as).hom 1)) = _ |
| 120 | simp only [ConcreteCategory.comp_apply, integralCoefficient_one K] at hx |
| 121 | change (integralToCoefficientChainComponent K X n).hom |
| 122 | ((X.ιChainComplex (R := AddCommGrpCat.of ℤ) x.as).hom 1) = |
| 123 | (X.ιChainComplex (R := ModuleCat.of K K) x.as).hom 1 at hx |
| 124 | rw [hx] |
| 125 | simpa using hf |
| 126 | |
| 127 | lemma coefficientizeSimplicialChainComponent_comp |
| 128 | (X Y Z : SSet.{0}) (n m k : ℕ) |
| 129 | (f : (X.chainComplex (AddCommGrpCat.of ℤ)).X n ⟶ |
| 130 | (Y.chainComplex (AddCommGrpCat.of ℤ)).X m) |
| 131 | (g : (Y.chainComplex (AddCommGrpCat.of ℤ)).X m ⟶ |
| 132 | (Z.chainComplex (AddCommGrpCat.of ℤ)).X k) : |
| 133 | coefficientizeSimplicialChainComponent K X Z n k (f ≫ g) = |
| 134 | coefficientizeSimplicialChainComponent K X Y n m f ≫ |
| 135 | coefficientizeSimplicialChainComponent K Y Z m k g := by |
| 136 | refine SSet.chainComplex_hom_ext fun x ↦ ?_ |
| 137 | rw [iota_coefficientizeSimplicialChainComponent K, |
| 138 | iota_coefficientizeSimplicialChainComponent_assoc] |
| 139 | ext |
| 140 | have h := ConcreteCategory.congr_hom |
| 141 | (integralToCoefficientChainComponent_naturality K Y Z m k g) |
| 142 | (f.hom ((X.ιChainComplex (R := AddCommGrpCat.of ℤ) x).hom 1)) |
| 143 | simpa using h.symm |
| 144 | |
| 145 | lemma coefficientizeSimplicialChainComponent_id (X : SSet.{0}) (n : ℕ) : |
| 146 | coefficientizeSimplicialChainComponent K X X n n (𝟙 _) = 𝟙 _ := by |
| 147 | refine SSet.chainComplex_hom_ext fun x ↦ ?_ |
| 148 | rw [iota_coefficientizeSimplicialChainComponent K] |
| 149 | ext |
| 150 | have hx := ConcreteCategory.congr_hom |
| 151 | (iota_integralToCoefficientChainComponent K X n x) 1 |
| 152 | simpa using hx |
| 153 | |
| 154 | lemma coefficientizeSimplicialChainComponent_zero |
| 155 | (X Y : SSet.{0}) (n m : ℕ) : |
| 156 | coefficientizeSimplicialChainComponent K X Y n m 0 = 0 := by |
| 157 | refine SSet.chainComplex_hom_ext fun x ↦ ?_ |
| 158 | rw [iota_coefficientizeSimplicialChainComponent K] |
| 159 | simp |
| 160 | |
| 161 | lemma coefficientizeSimplicialChainComponent_add |
| 162 | (X Y : SSet.{0}) (n m : ℕ) |
| 163 | (f g : (X.chainComplex (AddCommGrpCat.of ℤ)).X n ⟶ |
| 164 | (Y.chainComplex (AddCommGrpCat.of ℤ)).X m) : |
| 165 | coefficientizeSimplicialChainComponent K X Y n m (f + g) = |
| 166 | coefficientizeSimplicialChainComponent K X Y n m f + |
| 167 | coefficientizeSimplicialChainComponent K X Y n m g := by |
| 168 | refine SSet.chainComplex_hom_ext fun x ↦ ?_ |
| 169 | rw [iota_coefficientizeSimplicialChainComponent K, Preadditive.comp_add, |
| 170 | iota_coefficientizeSimplicialChainComponent K, |
| 171 | iota_coefficientizeSimplicialChainComponent K] |
| 172 | ext |
| 173 | simp |
| 174 | |
| 175 | lemma coefficientizeSimplicialChainComponent_neg |
| 176 | (X Y : SSet.{0}) (n m : ℕ) |
| 177 | (f : (X.chainComplex (AddCommGrpCat.of ℤ)).X n ⟶ |
| 178 | (Y.chainComplex (AddCommGrpCat.of ℤ)).X m) : |
| 179 | coefficientizeSimplicialChainComponent K X Y n m (-f) = |
| 180 | -coefficientizeSimplicialChainComponent K X Y n m f := by |
| 181 | refine SSet.chainComplex_hom_ext fun x ↦ ?_ |
| 182 | rw [iota_coefficientizeSimplicialChainComponent K, Preadditive.comp_neg, |
| 183 | iota_coefficientizeSimplicialChainComponent K] |
| 184 | ext |
| 185 | simp |
| 186 | |
| 187 | /-- The integral-to-coefficient coefficient map commutes with the simplicial differential. -/ |
| 188 | lemma integralToCoefficientChainComponent_comm_d (X : SSet.{0}) (n : ℕ) : |
| 189 | integralToCoefficientChainComponent K X (n + 1) ≫ |
| 190 | (forget₂ (ModuleCat K) AddCommGrpCat).map |
| 191 | ((CoefficientSimplicialChainComplex K X).d (n + 1) n) = |
| 192 | (X.chainComplex (AddCommGrpCat.of ℤ)).d (n + 1) n ≫ |
| 193 | integralToCoefficientChainComponent K X n := by |
| 194 | refine (X.isColimitChainComplexXCofan (AddCommGrpCat.of ℤ) (n + 1)).hom_ext fun x ↦ ?_ |
| 195 | change X.ιChainComplex (R := AddCommGrpCat.of ℤ) x.as ≫ |
| 196 | (integralToCoefficientChainComponent K X (n + 1) ≫ |
| 197 | (forget₂ (ModuleCat K) AddCommGrpCat).map |
| 198 | ((CoefficientSimplicialChainComplex K X).d (n + 1) n)) = |
| 199 | X.ιChainComplex (R := AddCommGrpCat.of ℤ) x.as ≫ |
| 200 | ((X.chainComplex (AddCommGrpCat.of ℤ)).d (n + 1) n ≫ |
| 201 | integralToCoefficientChainComponent K X n) |
| 202 | rw [← Category.assoc, iota_integralToCoefficientChainComponent K, Category.assoc, |
| 203 | ← Functor.map_comp, SSet.ιChainComplex_d, ← Category.assoc, SSet.ιChainComplex_d, |
| 204 | Preadditive.sum_comp] |
| 205 | simp_rw [Preadditive.zsmul_comp, iota_integralToCoefficientChainComponent K] |
| 206 | simp only [Functor.map_sum, Functor.map_zsmul] |
| 207 | rw [Preadditive.comp_sum] |
| 208 | refine Finset.sum_congr rfl fun i _ ↦ ?_ |
| 209 | rw [Preadditive.comp_zsmul] |
| 210 | |
| 211 | /-- Coefficientization sends the integral simplicial differential to the coefficient differential. -/ |
| 212 | lemma coefficientizeSimplicialChainComponent_d (X : SSet.{0}) (n : ℕ) : |
| 213 | coefficientizeSimplicialChainComponent K X X (n + 1) n |
| 214 | ((X.chainComplex (AddCommGrpCat.of ℤ)).d (n + 1) n) = |
| 215 | (CoefficientSimplicialChainComplex K X).d (n + 1) n := by |
| 216 | refine SSet.chainComplex_hom_ext fun x ↦ ?_ |
| 217 | rw [iota_coefficientizeSimplicialChainComponent K] |
| 218 | ext |
| 219 | change (LinearMap.toSpanSingleton K _ _) 1 = _ |
| 220 | rw [LinearMap.toSpanSingleton_apply_one] |
| 221 | have h := ConcreteCategory.congr_hom |
| 222 | (integralToCoefficientChainComponent_comm_d K X n) |
| 223 | ((X.ιChainComplex (R := AddCommGrpCat.of ℤ) x).hom 1) |
| 224 | have hx := ConcreteCategory.congr_hom |
| 225 | (iota_integralToCoefficientChainComponent K X (n + 1) x) 1 |
| 226 | simp only [ConcreteCategory.comp_apply, integralCoefficient_one K] at h hx ⊢ |
| 227 | rw [hx] at h |
| 228 | exact h.symm |
| 229 | |
| 230 | /-- Coefficientization of a chain map between integral simplicial chains. -/ |
| 231 | def coefficientizeSimplicialChainMap (X Y : SSet.{0}) |
| 232 | (f : X.chainComplex (AddCommGrpCat.of ℤ) ⟶ |
| 233 | Y.chainComplex (AddCommGrpCat.of ℤ)) : |
| 234 | CoefficientSimplicialChainComplex K X ⟶ CoefficientSimplicialChainComplex K Y where |
| 235 | f n := coefficientizeSimplicialChainComponent K X Y n n (f.f n) |
| 236 | comm' i j hij := by |
| 237 | simp only [ComplexShape.down_Rel] at hij |
| 238 | subst i |
| 239 | rw [← coefficientizeSimplicialChainComponent_d K Y j, |
| 240 | ← coefficientizeSimplicialChainComponent_comp K, f.comm, |
| 241 | coefficientizeSimplicialChainComponent_comp K, |
| 242 | coefficientizeSimplicialChainComponent_d K] |
| 243 | |
| 244 | @[simp] |
| 245 | lemma coefficientizeSimplicialChainMap_f (X Y : SSet.{0}) |
| 246 | (f : X.chainComplex (AddCommGrpCat.of ℤ) ⟶ |
| 247 | Y.chainComplex (AddCommGrpCat.of ℤ)) (n : ℕ) : |
| 248 | (coefficientizeSimplicialChainMap K X Y f).f n = |
| 249 | coefficientizeSimplicialChainComponent K X Y n n (f.f n) := |
| 250 | rfl |
| 251 | |
| 252 | lemma coefficientizeSimplicialChainMap_id (X : SSet.{0}) : |
| 253 | coefficientizeSimplicialChainMap K X X (𝟙 _) = 𝟙 _ := |
| 254 | HomologicalComplex.hom_ext _ _ fun n ↦ coefficientizeSimplicialChainComponent_id K X n |
| 255 | |
| 256 | lemma coefficientizeSimplicialChainMap_comp (X Y Z : SSet.{0}) |
| 257 | (f : X.chainComplex (AddCommGrpCat.of ℤ) ⟶ |
| 258 | Y.chainComplex (AddCommGrpCat.of ℤ)) |
| 259 | (g : Y.chainComplex (AddCommGrpCat.of ℤ) ⟶ |
| 260 | Z.chainComplex (AddCommGrpCat.of ℤ)) : |
| 261 | coefficientizeSimplicialChainMap K X Z (f ≫ g) = |
| 262 | coefficientizeSimplicialChainMap K X Y f ≫ |
| 263 | coefficientizeSimplicialChainMap K Y Z g := |
| 264 | HomologicalComplex.hom_ext _ _ fun n ↦ |
| 265 | coefficientizeSimplicialChainComponent_comp K X Y Z n n n (f.f n) (g.f n) |
| 266 | |
| 267 | lemma coefficientizeSimplicialChainMap_zero (X Y : SSet.{0}) : |
| 268 | coefficientizeSimplicialChainMap K X Y 0 = 0 := |
| 269 | HomologicalComplex.hom_ext _ _ fun n ↦ |
| 270 | coefficientizeSimplicialChainComponent_zero K X Y n n |
| 271 | |
| 272 | /-- Coefficientization preserves a chain homotopy between integral simplicial chain maps. -/ |
| 273 | def coefficientizeSimplicialChainHomotopy (X Y : SSet.{0}) |
| 274 | {f g : X.chainComplex (AddCommGrpCat.of ℤ) ⟶ |
| 275 | Y.chainComplex (AddCommGrpCat.of ℤ)} (h : Homotopy f g) : |
| 276 | Homotopy (coefficientizeSimplicialChainMap K X Y f) |
| 277 | (coefficientizeSimplicialChainMap K X Y g) where |
| 278 | hom i j := coefficientizeSimplicialChainComponent K X Y i j (h.hom i j) |
| 279 | zero i j hij := by |
| 280 | rw [h.zero i j hij, coefficientizeSimplicialChainComponent_zero K] |
| 281 | comm i := by |
| 282 | cases i with |
| 283 | | zero => |
| 284 | have hh := congrArg |
| 285 | (coefficientizeSimplicialChainComponent K X Y 0 0) (h.comm 0) |
| 286 | rw [Homotopy.dNext_zero_chainComplex, |
| 287 | Homotopy.prevD_chainComplex] at hh ⊢ |
| 288 | simp only [coefficientizeSimplicialChainComponent_add K, |
| 289 | coefficientizeSimplicialChainComponent_comp K, |
| 290 | coefficientizeSimplicialChainComponent_d K, zero_add] at hh |
| 291 | change coefficientizeSimplicialChainComponent K X Y 0 0 (f.f 0) = |
| 292 | 0 + coefficientizeSimplicialChainComponent K X Y 0 1 (h.hom 0 1) ≫ |
| 293 | (CoefficientSimplicialChainComplex K Y).d 1 0 + |
| 294 | coefficientizeSimplicialChainComponent K X Y 0 0 (g.f 0) |
| 295 | simpa only [zero_add] using hh |
| 296 | | succ n => |
| 297 | have hh := congrArg |
| 298 | (coefficientizeSimplicialChainComponent K X Y (n + 1) (n + 1)) |
| 299 | (h.comm (n + 1)) |
| 300 | rw [Homotopy.dNext_succ_chainComplex, |
| 301 | Homotopy.prevD_chainComplex] at hh ⊢ |
| 302 | simp only [coefficientizeSimplicialChainComponent_add K, |
| 303 | coefficientizeSimplicialChainComponent_comp K, |
| 304 | coefficientizeSimplicialChainComponent_d K] at hh |
| 305 | exact hh |
| 306 | |
| 307 | /-- Coefficientization preserves a chain-homotopy equivalence of simplicial chain complexes. -/ |
| 308 | def coefficientizeSimplicialChainHomotopyEquiv (X Y : SSet.{0}) |
| 309 | (e : HomotopyEquiv (X.chainComplex (AddCommGrpCat.of ℤ)) |
| 310 | (Y.chainComplex (AddCommGrpCat.of ℤ))) : |
| 311 | HomotopyEquiv (CoefficientSimplicialChainComplex K X) |
| 312 | (CoefficientSimplicialChainComplex K Y) where |
| 313 | hom := coefficientizeSimplicialChainMap K X Y e.hom |
| 314 | inv := coefficientizeSimplicialChainMap K Y X e.inv |
| 315 | homotopyHomInvId := |
| 316 | (Homotopy.ofEq (coefficientizeSimplicialChainMap_comp K X Y X e.hom e.inv).symm).trans |
| 317 | ((coefficientizeSimplicialChainHomotopy K X X e.homotopyHomInvId).trans |
| 318 | (Homotopy.ofEq (coefficientizeSimplicialChainMap_id K X))) |
| 319 | homotopyInvHomId := |
| 320 | (Homotopy.ofEq (coefficientizeSimplicialChainMap_comp K Y X Y e.inv e.hom).symm).trans |
| 321 | ((coefficientizeSimplicialChainHomotopy K Y Y e.homotopyInvHomId).trans |
| 322 | (Homotopy.ofEq (coefficientizeSimplicialChainMap_id K Y))) |
| 323 | |
| 324 | /-- Coefficientization of an integral chain map induced by a simplicial map is the corresponding |
| 325 | coefficient chain map. -/ |
| 326 | lemma coefficientizeSimplicialChainComponent_chainComplexMap |
| 327 | {X Y : SSet.{0}} (f : X ⟶ Y) (n : ℕ) : |
| 328 | coefficientizeSimplicialChainComponent K X Y n n |
| 329 | ((SSet.chainComplexMap f (AddCommGrpCat.of ℤ)).f n) = |
| 330 | (SSet.chainComplexMap f (ModuleCat.of K K)).f n := by |
| 331 | refine SSet.chainComplex_hom_ext fun x ↦ ?_ |
| 332 | rw [iota_coefficientizeSimplicialChainComponent K, |
| 333 | SSet.ι_chainComplexMap_f] |
| 334 | ext |
| 335 | change (LinearMap.toSpanSingleton K _ _) 1 = _ |
| 336 | rw [LinearMap.toSpanSingleton_apply_one] |
| 337 | have hf := ConcreteCategory.congr_hom |
| 338 | (SSet.ι_chainComplexMap_f X Y f (AddCommGrpCat.of ℤ) x) 1 |
| 339 | have hcoeff := ConcreteCategory.congr_hom |
| 340 | (iota_integralToCoefficientChainComponent K Y n (f.app _ x)) 1 |
| 341 | simp only [ConcreteCategory.comp_apply, integralCoefficient_one K] at hf hcoeff |
| 342 | rw [hf] |
| 343 | exact hcoeff |
| 344 | |
| 345 | lemma coefficientizeSimplicialChainMap_chainComplexMap |
| 346 | {X Y : SSet.{0}} (f : X ⟶ Y) : |
| 347 | coefficientizeSimplicialChainMap K X Y |
| 348 | (SSet.chainComplexMap f (AddCommGrpCat.of ℤ)) = |
| 349 | SSet.chainComplexMap f (ModuleCat.of K K) := |
| 350 | HomologicalComplex.hom_ext _ _ fun n ↦ |
| 351 | coefficientizeSimplicialChainComponent_chainComplexMap K f n |
| 352 | |
| 353 | variable {ι : Type} (X : TopCat.{0}) (U : ι → Set X) |
| 354 | |
| 355 | /-- Coefficient chains generated by singular simplices subordinate to one member of a cover. -/ |
| 356 | abbrev CoverSmallCoefficientSingularChainComplex : |
| 357 | ChainComplex (ModuleCat K) ℕ := |
| 358 | (AlgebraicTopology.Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex X U : SSet).chainComplex (ModuleCat.of K K) |
| 359 | |
| 360 | /-- Inclusion of cover-small coefficient singular chains into all coefficient singular chains. -/ |
| 361 | def coverSmallCoefficientSingularChainInclusion : |
| 362 | CoverSmallCoefficientSingularChainComplex K X U ⟶ |
| 363 | (TopCat.toSSet.obj X).chainComplex (ModuleCat.of K K) := |
| 364 | SSet.chainComplexMap (AlgebraicTopology.Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex X U).ι (ModuleCat.of K K) |
| 365 | |
| 366 | instance coverSmallCoefficientSingularChainInclusion_mono : |
| 367 | Mono (coverSmallCoefficientSingularChainInclusion K X U) := by |
| 368 | dsimp [coverSmallCoefficientSingularChainInclusion, SSet.chainComplexMap, |
| 369 | SSet.chainComplexFunctor] |
| 370 | apply +allowSynthFailures Functor.map_mono |
| 371 | |
| 372 | /-- The integral subdivision-and-prism homotopy transported to field coefficients: the |
| 373 | all-open-cover small-chain theorem over `K`. -/ |
| 374 | theorem coverSmallCoefficientChainApproximation_of_openCover |
| 375 | (hUopen : ∀ i, IsOpen (U i)) (hUcover : ⋃ i, U i = Set.univ) : |
| 376 | HomologicalComplex.homotopyEquivalences (ModuleCat K) (ComplexShape.down ℕ) |
| 377 | (coverSmallCoefficientSingularChainInclusion K X U) := by |
| 378 | let eZ := AlgebraicTopology.Singular.ExcisionOpenCover.coverSmallChainHomotopyEquiv_of_openCover X U hUopen hUcover |
| 379 | refine ⟨coefficientizeSimplicialChainHomotopyEquiv K |
| 380 | (AlgebraicTopology.Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex X U : SSet) (TopCat.toSSet.obj X) eZ, ?_⟩ |
| 381 | change coefficientizeSimplicialChainMap K |
| 382 | (AlgebraicTopology.Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex X U : SSet) (TopCat.toSSet.obj X) eZ.hom = |
| 383 | coverSmallCoefficientSingularChainInclusion K X U |
| 384 | rw [show eZ.hom = AlgebraicTopology.Singular.ExcisionCoverSmall.coverSmallIntegralSingularChainInclusion X U from |
| 385 | AlgebraicTopology.Singular.ExcisionOpenCover.coverSmallChainHomotopyEquiv_of_openCover_hom X U hUopen hUcover] |
| 386 | exact coefficientizeSimplicialChainMap_chainComplexMap K |
| 387 | (AlgebraicTopology.Singular.ExcisionCoverSmall.coverSmallSingularSubcomplex X U).ι |
| 388 | |
| 389 | /-- A selected coefficient small-chain homotopy equivalence for an open cover. -/ |
| 390 | def coverSmallCoefficientChainHomotopyEquiv_of_openCover |
| 391 | (hUopen : ∀ i, IsOpen (U i)) (hUcover : ⋃ i, U i = Set.univ) : |
| 392 | HomotopyEquiv (CoverSmallCoefficientSingularChainComplex K X U) |
| 393 | ((TopCat.toSSet.obj X).chainComplex (ModuleCat.of K K)) := |
| 394 | (coverSmallCoefficientChainApproximation_of_openCover K X U hUopen hUcover).choose |
| 395 | |
| 396 | lemma coverSmallCoefficientChainHomotopyEquiv_of_openCover_hom |
| 397 | (hUopen : ∀ i, IsOpen (U i)) (hUcover : ⋃ i, U i = Set.univ) : |
| 398 | (coverSmallCoefficientChainHomotopyEquiv_of_openCover K X U hUopen hUcover).hom = |
| 399 | coverSmallCoefficientSingularChainInclusion K X U := |
| 400 | (coverSmallCoefficientChainApproximation_of_openCover K X U hUopen hUcover).choose_spec |
| 401 | |
| 402 | end |
| 403 | |
| 404 | end OAI.AlgebraicGeometry.ComplexMultiplication.Coefficient.Chains.SingularCoefficients |