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 | import OAI.AlgebraicTopology.DeRham.Comparison.CechTotalFunctor |
| 2 | import OAI.AlgebraicTopology.Cohomology.Singular.CechComparison |
| 3 | |
| 4 | /-! # Cech -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.Rational.Cech.RationalCech |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # ChernClass: rational Cech complexes |
| 12 | |
| 13 | These are rational-coefficient versions of the existing section, coefficient, |
| 14 | and total-complex constructions. The formulas and proofs are unchanged except |
| 15 | for coefficients and namespace. Actual open restrictions are used throughout. |
| 16 | No new comparison assumptions or computational-limit overrides are introduced. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 20 | open OAI.AlgebraicTopology.DeRham.Comparison.CechTotalFunctor OAI.AlgebraicTopology.Cohomology.Singular.CechComparison |
| 21 | open scoped Simplicial BigOperators |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | section |
| 26 | |
| 27 | variable {X ι : Type u} [TopologicalSpace X] |
| 28 | variable (F : (Opens X)ᵒᵖ ⥤ ModuleCat.{u} ℚ) (U : ι → Opens X) |
| 29 | |
| 30 | /-- Actual sections of a presheaf on all intersections of n+1 cover members. -/ |
| 31 | abbrev CechCochain (n : ℕ) := |
| 32 | (a : Fin (n + 1) → ι) → F.obj (op (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U a)) |
| 33 | |
| 34 | /-- Restriction along a tuple-index map, applied to genuine sections. -/ |
| 35 | def cechPrecomp {n m : ℕ} (f : Fin (n + 1) → Fin (m + 1)) : |
| 36 | CechCochain F U n →ₗ[ℚ] CechCochain F U m where |
| 37 | toFun c a := (F.map (homOfLE (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_le_precomp U a f)).op).hom |
| 38 | (c (a ∘ f)) |
| 39 | map_add' c d := by |
| 40 | funext a |
| 41 | exact map_add _ _ _ |
| 42 | map_smul' z c := by |
| 43 | funext a |
| 44 | exact map_smul _ _ _ |
| 45 | |
| 46 | /-- The Čech cosimplicial module of the given presheaf and open family. -/ |
| 47 | def cechCosimplicial : CosimplicialObject (ModuleCat.{u} ℚ) where |
| 48 | obj n := ModuleCat.of ℚ (CechCochain F U n.len) |
| 49 | map f := ModuleCat.ofHom (cechPrecomp F U f.toOrderHom) |
| 50 | map_id n := by |
| 51 | apply ModuleCat.hom_ext |
| 52 | apply LinearMap.ext |
| 53 | intro c |
| 54 | funext a |
| 55 | change (F.map (homOfLE (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_le_precomp U a id)).op).hom (c a) = c a |
| 56 | rw [show (homOfLE (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_le_precomp U a id)).op = |
| 57 | 𝟙 (op (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U a)) from Subsingleton.elim _ _] |
| 58 | exact congrArg (fun k => k.hom (c a)) (F.map_id (op (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U a))) |
| 59 | map_comp f g := by |
| 60 | apply ModuleCat.hom_ext |
| 61 | apply LinearMap.ext |
| 62 | intro c |
| 63 | funext a |
| 64 | change (F.map (homOfLE (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_le_precomp U a |
| 65 | (g.toOrderHom ∘ f.toOrderHom))).op).hom (c (a ∘ g.toOrderHom ∘ f.toOrderHom)) = |
| 66 | (F.map (homOfLE (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_le_precomp U a g.toOrderHom)).op).hom |
| 67 | ((F.map (homOfLE (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_le_precomp U (a ∘ g.toOrderHom) |
| 68 | f.toOrderHom)).op).hom (c (a ∘ g.toOrderHom ∘ f.toOrderHom))) |
| 69 | rw [show (homOfLE (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_le_precomp U a |
| 70 | (g.toOrderHom ∘ f.toOrderHom))).op = |
| 71 | (homOfLE (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_le_precomp U (a ∘ g.toOrderHom) f.toOrderHom)).op ≫ |
| 72 | (homOfLE (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_le_precomp U a g.toOrderHom)).op |
| 73 | from Subsingleton.elim _ _, F.map_comp] |
| 74 | rfl |
| 75 | |
| 76 | /-- The actual Čech cochain complex, with the alternating restriction differential. -/ |
| 77 | def cechComplex : CochainComplex (ModuleCat.{u} ℚ) ℕ := |
| 78 | AlgebraicTopology.AlternatingCofaceMapComplex.obj (cechCosimplicial F U) |
| 79 | |
| 80 | /-- The signed Čech differential as a linear map on the explicit section families. -/ |
| 81 | def cechDelta (n : ℕ) : CechCochain F U n →ₗ[ℚ] CechCochain F U (n + 1) := |
| 82 | (AlgebraicTopology.AlternatingCofaceMapComplex.objD (cechCosimplicial F U) n).hom |
| 83 | |
| 84 | /-- The differential is the usual alternating sum of restrictions with one |
| 85 | index omitted at a time. -/ |
| 86 | theorem cechDelta_apply (n : ℕ) (c : CechCochain F U n) |
| 87 | (a : Fin (n + 2) → ι) : |
| 88 | cechDelta F U n c a = |
| 89 | ∑ j : Fin (n + 2), (-1 : ℤ) ^ j.val • |
| 90 | (F.map (homOfLE (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_le_precomp U a j.succAbove)).op).hom |
| 91 | (c (a ∘ j.succAbove)) := by |
| 92 | classical |
| 93 | simp only [cechDelta, AlgebraicTopology.AlternatingCofaceMapComplex.objD, |
| 94 | ModuleCat.hom_sum, ModuleCat.hom_zsmul] |
| 95 | change ((∑ j : Fin (n + 2), (-1 : ℤ) ^ j.val • |
| 96 | cechPrecomp F U j.succAbove) c) a = _ |
| 97 | simp only [LinearMap.sum_apply, LinearMap.smul_apply, Finset.sum_apply, Pi.smul_apply] |
| 98 | rfl |
| 99 | |
| 100 | theorem cechDelta_squared (n : ℕ) (c : CechCochain F U n) : |
| 101 | cechDelta F U (n + 1) (cechDelta F U n c) = 0 := by |
| 102 | have h := AlgebraicTopology.AlternatingCofaceMapComplex.d_squared |
| 103 | (cechCosimplicial F U) n |
| 104 | exact congrArg (fun f => f.hom c) h |
| 105 | |
| 106 | /-- The bundled cochain differential is exactly the explicit signed map. -/ |
| 107 | theorem cechComplex_d (n : ℕ) : |
| 108 | (cechComplex F U).d n (n + 1) = ModuleCat.ofHom (cechDelta F U n) := by |
| 109 | exact CochainComplex.of_d |
| 110 | (fun k => (cechCosimplicial F U).obj ⦋k⦌) |
| 111 | (AlgebraicTopology.AlternatingCofaceMapComplex.objD (cechCosimplicial F U)) n |
| 112 | |
| 113 | variable {κ : Type u} (V : κ → Opens X) (r : κ → ι) |
| 114 | (hr : ∀ k, V k ≤ U (r k)) |
| 115 | |
| 116 | include hr in |
| 117 | /-- A refinement of open families gives inclusions on every finite intersection. -/ |
| 118 | theorem cechIntersection_refinement_le {n : ℕ} (a : Fin (n + 1) → κ) : |
| 119 | OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection V a ≤ OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U (r ∘ a) := |
| 120 | le_iInf (fun k => (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_le V a k).trans (hr (a k))) |
| 121 | |
| 122 | /-- The actual section restriction associated to a refinement of the open family. -/ |
| 123 | def cechRefinementMap (n : ℕ) : CechCochain F U n →ₗ[ℚ] CechCochain F V n where |
| 124 | toFun c a := (F.map (homOfLE (cechIntersection_refinement_le U V r hr a)).op).hom |
| 125 | (c (r ∘ a)) |
| 126 | map_add' c d := by |
| 127 | funext a |
| 128 | exact map_add _ _ _ |
| 129 | map_smul' z c := by |
| 130 | funext a |
| 131 | exact map_smul _ _ _ |
| 132 | |
| 133 | omit U V r hr in |
| 134 | /-- Functoriality of actual presheaf restrictions, in the section notation. -/ |
| 135 | theorem cechSection_restrict_trans {A B C : Opens X} (hBA : B ≤ A) (hCB : C ≤ B) |
| 136 | (s : F.obj (op A)) : |
| 137 | (F.map (homOfLE hCB).op).hom ((F.map (homOfLE hBA).op).hom s) = |
| 138 | (F.map (homOfLE (hCB.trans hBA)).op).hom s := by |
| 139 | exact (congrArg (fun k => k.hom s) (F.map_comp (homOfLE hBA).op (homOfLE hCB).op)).symm |
| 140 | |
| 141 | /-- Refinement restriction is natural for all cosimplicial operators. -/ |
| 142 | def cechRefinementNat : cechCosimplicial F U ⟶ cechCosimplicial F V where |
| 143 | app n := ModuleCat.ofHom (cechRefinementMap F U V r hr n.len) |
| 144 | naturality n m f := by |
| 145 | apply ModuleCat.hom_ext |
| 146 | apply LinearMap.ext |
| 147 | intro c |
| 148 | funext a |
| 149 | change (F.map (homOfLE (cechIntersection_refinement_le U V r hr a)).op).hom |
| 150 | ((F.map (homOfLE (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_le_precomp U (r ∘ a) f.toOrderHom)).op).hom |
| 151 | (c (r ∘ a ∘ f.toOrderHom))) = |
| 152 | (F.map (homOfLE (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_le_precomp V a f.toOrderHom)).op).hom |
| 153 | ((F.map (homOfLE (cechIntersection_refinement_le U V r hr |
| 154 | (a ∘ f.toOrderHom))).op).hom (c (r ∘ a ∘ f.toOrderHom))) |
| 155 | rw [cechSection_restrict_trans, cechSection_restrict_trans] |
| 156 | |
| 157 | /-- The induced map of actual Čech complexes under a cover refinement. -/ |
| 158 | def cechRefinement : cechComplex F U ⟶ cechComplex F V := |
| 159 | AlgebraicTopology.AlternatingCofaceMapComplex.map (cechRefinementNat F U V r hr) |
| 160 | |
| 161 | @[simp] |
| 162 | theorem cechRefinement_f (n : ℕ) : |
| 163 | (cechRefinement F U V r hr).f n = ModuleCat.ofHom (cechRefinementMap F U V r hr n) := rfl |
| 164 | |
| 165 | /-- Refinement commutes with the signed differential on the nose. -/ |
| 166 | theorem cechRefinementMap_delta (n : ℕ) (c : CechCochain F U n) : |
| 167 | cechRefinementMap F U V r hr (n + 1) (cechDelta F U n c) = |
| 168 | cechDelta F V n (cechRefinementMap F U V r hr n c) := by |
| 169 | have h := (cechRefinement F U V r hr).comm n (n + 1) |
| 170 | rw [cechComplex_d, cechComplex_d, cechRefinement_f, cechRefinement_f] at h |
| 171 | exact (congrArg (fun k => k.hom c) h).symm |
| 172 | |
| 173 | end |
| 174 | |
| 175 | section |
| 176 | |
| 177 | variable {X ι : Type u} [TopologicalSpace X] (U : ι → Opens X) |
| 178 | variable {F G : (Opens X)ᵒᵖ ⥤ ModuleCat.{u} ℚ} (α : F ⟶ G) |
| 179 | |
| 180 | /-- A morphism of actual presheaves acts on each Čech section. -/ |
| 181 | def cechCoefficientMap (n : ℕ) : |
| 182 | CechCochain F U n →ₗ[ℚ] CechCochain G U n where |
| 183 | toFun c a := (α.app (op (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U a))).hom (c a) |
| 184 | map_add' c d := by |
| 185 | funext a |
| 186 | exact map_add _ _ _ |
| 187 | map_smul' z c := by |
| 188 | funext a |
| 189 | exact map_smul _ _ _ |
| 190 | |
| 191 | /-- Coefficient maps are natural for every Čech cosimplicial operator. -/ |
| 192 | def cechCoefficientNat : cechCosimplicial F U ⟶ cechCosimplicial G U where |
| 193 | app n := ModuleCat.ofHom (cechCoefficientMap U α n.len) |
| 194 | naturality n m f := by |
| 195 | apply ModuleCat.hom_ext |
| 196 | apply LinearMap.ext |
| 197 | intro c |
| 198 | funext a |
| 199 | change (α.app (op (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U a))).hom |
| 200 | ((F.map (homOfLE (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_le_precomp U a f.toOrderHom)).op).hom |
| 201 | (c (a ∘ f.toOrderHom))) = |
| 202 | (G.map (homOfLE (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_le_precomp U a f.toOrderHom)).op).hom |
| 203 | ((α.app (op (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U (a ∘ f.toOrderHom)))).hom |
| 204 | (c (a ∘ f.toOrderHom))) |
| 205 | exact congrArg (fun k => k.hom (c (a ∘ f.toOrderHom))) |
| 206 | (α.naturality (homOfLE (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_le_precomp U a f.toOrderHom)).op) |
| 207 | |
| 208 | /-- A presheaf morphism induces the ordinary coefficient map of Čech complexes. -/ |
| 209 | def cechCoefficientHom : cechComplex F U ⟶ cechComplex G U := |
| 210 | AlgebraicTopology.AlternatingCofaceMapComplex.map (cechCoefficientNat U α) |
| 211 | |
| 212 | @[simp] |
| 213 | theorem cechCoefficientHom_f (n : ℕ) : |
| 214 | (cechCoefficientHom U α).f n = ModuleCat.ofHom (cechCoefficientMap U α n) := rfl |
| 215 | |
| 216 | /-- Acting on coefficients commutes with the signed Čech differential. -/ |
| 217 | theorem cechCoefficientMap_delta (n : ℕ) (c : CechCochain F U n) : |
| 218 | cechCoefficientMap U α (n + 1) (cechDelta F U n c) = |
| 219 | cechDelta G U n (cechCoefficientMap U α n c) := by |
| 220 | have h := (cechCoefficientHom U α).comm n (n + 1) |
| 221 | rw [cechComplex_d, cechComplex_d, cechCoefficientHom_f, cechCoefficientHom_f] at h |
| 222 | exact (congrArg (fun k => k.hom c) h).symm |
| 223 | |
| 224 | end |
| 225 | |
| 226 | section |
| 227 | |
| 228 | variable {X ι : Type u} [TopologicalSpace X] (U : ι → Opens X) |
| 229 | |
| 230 | /-- A genuine coefficient presheaf is sent to its actual Čech complex. -/ |
| 231 | def cechComplexFunctor : |
| 232 | ((Opens X)ᵒᵖ ⥤ ModuleCat.{u} ℚ) ⥤ CochainComplex (ModuleCat.{u} ℚ) ℕ where |
| 233 | obj F := cechComplex F U |
| 234 | map α := cechCoefficientHom U α |
| 235 | map_id F := by |
| 236 | apply HomologicalComplex.Hom.ext |
| 237 | funext p |
| 238 | apply ModuleCat.hom_ext |
| 239 | apply LinearMap.ext |
| 240 | intro c |
| 241 | funext a |
| 242 | rfl |
| 243 | map_comp α β := by |
| 244 | apply HomologicalComplex.Hom.ext |
| 245 | funext p |
| 246 | apply ModuleCat.hom_ext |
| 247 | apply LinearMap.ext |
| 248 | intro c |
| 249 | funext a |
| 250 | rfl |
| 251 | |
| 252 | /-- The Čech coefficient functor acts additively on actual section maps. -/ |
| 253 | instance cechComplexFunctor_additive : (cechComplexFunctor U).Additive where |
| 254 | map_add := by |
| 255 | intro _ _ α β |
| 256 | apply HomologicalComplex.Hom.ext |
| 257 | funext p |
| 258 | apply ModuleCat.hom_ext |
| 259 | apply LinearMap.ext |
| 260 | intro c |
| 261 | funext a |
| 262 | rfl |
| 263 | |
| 264 | /-- The actual Čech double-complex construction as a functor. The first |
| 265 | index is Čech degree; the second is coefficient degree. -/ |
| 266 | def cechDoubleComplexFunctor : |
| 267 | CochainComplex ((Opens X)ᵒᵖ ⥤ ModuleCat.{u} ℚ) ℕ ⥤ |
| 268 | HomologicalComplex₂ (ModuleCat.{u} ℚ) (ComplexShape.up ℕ) (ComplexShape.up ℕ) := |
| 269 | (cechComplexFunctor U).mapHomologicalComplex (ComplexShape.up ℕ) ⋙ |
| 270 | HomologicalComplex₂.flipFunctor (ModuleCat.{u} ℚ) |
| 271 | (ComplexShape.up ℕ) (ComplexShape.up ℕ) |
| 272 | |
| 273 | /-- The double complex of actual sections of a coefficient complex. -/ |
| 274 | abbrev cechDoubleComplex |
| 275 | (K : CochainComplex ((Opens X)ᵒᵖ ⥤ ModuleCat.{u} ℚ) ℕ) := |
| 276 | (cechDoubleComplexFunctor U).obj K |
| 277 | |
| 278 | variable (K : CochainComplex ((Opens X)ᵒᵖ ⥤ ModuleCat.{u} ℚ) ℕ) |
| 279 | |
| 280 | /-- Bidegree `(p,q)` consists of actual `K^q` sections on all ordered |
| 281 | `(p+1)`-fold intersections. -/ |
| 282 | @[simp] |
| 283 | theorem cechDoubleComplex_XX (p q : ℕ) : |
| 284 | ((cechDoubleComplex U K).X p).X q = |
| 285 | ModuleCat.of ℚ (CechCochain (K.X q) U p) := rfl |
| 286 | |
| 287 | /-- The horizontal differential is exactly the signed Čech restriction map. -/ |
| 288 | @[simp] |
| 289 | theorem cechDoubleComplex_d_f (p q : ℕ) : |
| 290 | ((cechDoubleComplex U K).d p (p + 1)).f q = |
| 291 | ModuleCat.ofHom (cechDelta (K.X q) U p) := |
| 292 | cechComplex_d (K.X q) U p |
| 293 | |
| 294 | /-- The vertical differential applies the actual coefficient differential on |
| 295 | each open intersection. -/ |
| 296 | @[simp] |
| 297 | theorem cechDoubleComplex_X_d (p q : ℕ) : |
| 298 | ((cechDoubleComplex U K).X p).d q (q + 1) = |
| 299 | ModuleCat.ofHom (cechCoefficientMap U (K.d q (q + 1)) p) := rfl |
| 300 | |
| 301 | /-- The two concrete differentials commute, by naturality of the coefficient |
| 302 | differential under actual open restriction. -/ |
| 303 | theorem cechDoubleComplex_differentials_commute (p q : ℕ) |
| 304 | (c : CechCochain (K.X q) U p) : |
| 305 | cechCoefficientMap U (K.d q (q + 1)) (p + 1) (cechDelta (K.X q) U p c) = |
| 306 | cechDelta (K.X (q + 1)) U p (cechCoefficientMap U (K.d q (q + 1)) p c) := |
| 307 | cechCoefficientMap_delta U (K.d q (q + 1)) p c |
| 308 | |
| 309 | /-- Each horizontal row recovers the actual Čech complex of that coefficient |
| 310 | presheaf. -/ |
| 311 | @[simp] |
| 312 | theorem cechDoubleComplex_row (q : ℕ) : |
| 313 | (cechDoubleComplex U K).flip.X q = cechComplex (K.X q) U := rfl |
| 314 | |
| 315 | variable {K} |
| 316 | variable {L N : CochainComplex ((Opens X)ᵒᵖ ⥤ ModuleCat.{u} ℚ) ℕ} |
| 317 | |
| 318 | /-- A genuine morphism of coefficient complexes induces a morphism of the |
| 319 | actual Čech double complexes. -/ |
| 320 | abbrev cechDoubleComplexMap (φ : K ⟶ L) : |
| 321 | cechDoubleComplex U K ⟶ cechDoubleComplex U L := |
| 322 | (cechDoubleComplexFunctor U).map φ |
| 323 | |
| 324 | /-- The induced comparison acts by the given coefficient map on each |
| 325 | intersection, in each degree. -/ |
| 326 | @[simp] |
| 327 | theorem cechDoubleComplexMap_f_f (φ : K ⟶ L) (p q : ℕ) : |
| 328 | ((cechDoubleComplexMap U φ).f p).f q = |
| 329 | ModuleCat.ofHom (cechCoefficientMap U (φ.f q) p) := rfl |
| 330 | |
| 331 | @[simp] |
| 332 | theorem cechDoubleComplexMap_apply (φ : K ⟶ L) (p q : ℕ) |
| 333 | (c : CechCochain (K.X q) U p) (a : Fin (p + 1) → ι) : |
| 334 | (((cechDoubleComplexMap U φ).f p).f q c) a = |
| 335 | ((φ.f q).app (op (OAI.AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U a))) (c a) := rfl |
| 336 | |
| 337 | @[simp] |
| 338 | theorem cechDoubleComplexMap_id : |
| 339 | cechDoubleComplexMap U (𝟙 K) = 𝟙 (cechDoubleComplex U K) := |
| 340 | (cechDoubleComplexFunctor U).map_id K |
| 341 | |
| 342 | @[simp] |
| 343 | theorem cechDoubleComplexMap_comp (φ : K ⟶ L) (ψ : L ⟶ N) : |
| 344 | cechDoubleComplexMap U (φ ≫ ψ) = |
| 345 | cechDoubleComplexMap U φ ≫ cechDoubleComplexMap U ψ := |
| 346 | (cechDoubleComplexFunctor U).map_comp φ ψ |
| 347 | |
| 348 | end |
| 349 | |
| 350 | variable {X ι : Type u} [TopologicalSpace X] (U : ι → Opens X) |
| 351 | |
| 352 | /-- Actual presheaf complexes map functorially to their signed Čech total complexes. -/ |
| 353 | def cechTotalFunctor : |
| 354 | CochainComplex ((Opens X)ᵒᵖ ⥤ ModuleCat.{u} ℚ) ℕ ⥤ |
| 355 | CochainComplex (ModuleCat.{u} ℚ) ℕ := |
| 356 | cechDoubleComplexFunctor U ⋙ HomologicalComplex₂.totalFunctor |
| 357 | (ModuleCat.{u} ℚ) (ComplexShape.up ℕ) (ComplexShape.up ℕ) (ComplexShape.up ℕ) |
| 358 | |
| 359 | /-- The signed total complex of actual Čech sections of a presheaf complex. -/ |
| 360 | abbrev cechTotalComplex (K : CochainComplex ((Opens X)ᵒᵖ ⥤ ModuleCat.{u} ℚ) ℕ) := |
| 361 | (cechTotalFunctor U).obj K |
| 362 | |
| 363 | variable (K : CochainComplex ((Opens X)ᵒᵖ ⥤ ModuleCat.{u} ℚ) ℕ) |
| 364 | |
| 365 | /-- Inclusion of an actual section-family summand in the total complex. -/ |
| 366 | def cechTotalInclusion (p q n : ℕ) (h : p + q = n) : |
| 367 | ModuleCat.of ℚ (CechCochain (K.X q) U p) ⟶ (cechTotalComplex U K).X n := |
| 368 | (cechDoubleComplex U K).ιTotal (ComplexShape.up ℕ) p q n h |
| 369 | |
| 370 | /-- The total differential is the signed sum of the two actual differentials. -/ |
| 371 | theorem cechTotalInclusion_d (p q n : ℕ) (h : p + q = n) : |
| 372 | cechTotalInclusion U K p q n h ≫ (cechTotalComplex U K).d n (n + 1) = |
| 373 | ModuleCat.ofHom (cechDelta (K.X q) U p) ≫ |
| 374 | cechTotalInclusion U K (p + 1) q (n + 1) (by omega) + |
| 375 | ((-1 : ℤ) ^ p) • (ModuleCat.ofHom (cechCoefficientMap U (K.d q (q + 1)) p) ≫ |
| 376 | cechTotalInclusion U K p (q + 1) (n + 1) (by omega)) := by |
| 377 | have hd := OAI.AlgebraicTopology.DeRham.Comparison.DoubleComplexSigns.DoubleComplex.iota_d_of_eq (cechDoubleComplex U K) p q n h |
| 378 | rw [cechDoubleComplex_d_f, cechDoubleComplex_X_d] at hd |
| 379 | exact hd |
| 380 | |
| 381 | variable {K} |
| 382 | variable {L N : CochainComplex ((Opens X)ᵒᵖ ⥤ ModuleCat.{u} ℚ) ℕ} |
| 383 | |
| 384 | /-- A genuine coefficient cochain map induces the actual map on Čech total complexes. -/ |
| 385 | abbrev cechTotalMap (φ : K ⟶ L) : cechTotalComplex U K ⟶ cechTotalComplex U L := |
| 386 | (cechTotalFunctor U).map φ |
| 387 | |
| 388 | /-- The total map is the supplied coefficient map on every actual section summand. -/ |
| 389 | theorem cechTotalInclusion_map (φ : K ⟶ L) (p q n : ℕ) (h : p + q = n) : |
| 390 | cechTotalInclusion U K p q n h ≫ (cechTotalMap U φ).f n = |
| 391 | ModuleCat.ofHom (cechCoefficientMap U (φ.f q) p) ≫ cechTotalInclusion U L p q n h := |
| 392 | HomologicalComplex₂.ιTotal_map (K := cechDoubleComplex U K) |
| 393 | (L := cechDoubleComplex U L) (φ := cechDoubleComplexMap U φ) |
| 394 | (c₁₂ := ComplexShape.up ℕ) p q n h |
| 395 | |
| 396 | @[simp] |
| 397 | theorem cechTotalMap_id : cechTotalMap U (𝟙 K) = 𝟙 (cechTotalComplex U K) := |
| 398 | (cechTotalFunctor U).map_id K |
| 399 | |
| 400 | @[simp] |
| 401 | theorem cechTotalMap_comp (φ : K ⟶ L) (ψ : L ⟶ N) : |
| 402 | cechTotalMap U (φ ≫ ψ) = cechTotalMap U φ ≫ cechTotalMap U ψ := |
| 403 | (cechTotalFunctor U).map_comp φ ψ |
| 404 | |
| 405 | end |
| 406 | |
| 407 | end OAI.AlgebraicGeometry.DivisorClass.Chern.Rational.Cech.RationalCech |