File size: 12,885 Bytes
4a56cd6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
import OAI.AlgebraicGeometry.ComplexMultiplication.HomologyFunctorCoherence
import OAI.AlgebraicGeometry.ComplexMultiplication.SectionCohomologySheafNaturality
import Mathlib.CategoryTheory.Limits.Constructions.EpiMono

/-! # CM Canonical Section Cycles -/

namespace OAI.AlgebraicGeometry.ComplexMultiplication.CMCanonicalSectionCycles

noncomputable section

section

/-! # When sections preserve homology, the sheafification class is the canonical comparison -/

open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite _root_.HomologicalComplex

variable (Y : TopCat.{0})
  (K : CochainComplex (Sheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}) β„€) (n : β„€)

set_option backward.defeqAttrib.useBackward true in
set_option backward.isDefEq.respectTransparency false in
set_option backward.isDefEq.respectTransparency.types false in
theorem sectionCohomologyPresheafToSheaf_eq_comparison
    [(sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).PreservesLeftHomologyOf
      (K.sc n)] :
    AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafToSheaf Y K n =
      ((K.sc n).mapHomologyIso
        (sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0})).hom := by
  let F := presheafToSheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}
  let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}
  let adj := sheafificationAdjunction (Opens.grothendieckTopology Y) AddCommGrpCat.{0}
  let c := asIso adj.counit
  let : PreservesFiniteLimits (G β‹™ F) := preservesFiniteLimits_of_natIso c.symm
  let : PreservesFiniteColimits (G β‹™ F) := preservesFiniteColimits_of_natIso c.symm
  let S := K.sc n
  let PK := (G.mapHomologicalComplex β„€α΅˜α΅–).obj K
  let e := (PK.sc n).mapHomologyIso F
  let h := S.mapHomologyIso G
  let cc := NatIso.mapHomologicalComplex c β„€α΅˜α΅–
  have hc : homologyMap (cc.hom.app K) n =
      (S.mapHomologyIso (G β‹™ F)).hom ≫ c.hom.app S.homology := by
    have ht := HomologyFunctorCoherence.homologyComparison_natTrans S (G β‹™ F) (𝟭 _) c.hom
    simpa only [HomologyFunctorCoherence.homologyComparison_id, Category.comp_id, homologyMap] using! ht
  have he : (S.mapHomologyIso (G β‹™ F)).hom = e.hom ≫ F.map h.hom := by
    exact HomologyFunctorCoherence.homologyComparison_comp S G F
  unfold AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafToSheaf
    AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafSheafificationIso
  change toSheafify (Opens.grothendieckTopology Y) (PK.homology n) ≫
    G.map (e.inv ≫ homologyMap (cc.hom.app K) n) = h.hom
  rw [hc, he]
  simp only [Category.assoc, Iso.inv_hom_id_assoc, G.map_comp]
  change (toSheafify (Opens.grothendieckTopology Y) (PK.homology n) ≫
    sheafifyMap (Opens.grothendieckTopology Y) h.hom) ≫ G.map (c.hom.app S.homology) = h.hom
  rw [← toSheafify_naturality, Category.assoc]
  have ht := adj.right_triangle_components S.homology
  simpa only [Category.comp_id] using! congrArg (fun g => h.hom ≫ g) ht

end

section

/-! # The canonical cohomology-sheaf class preserves the actual cocycle sections -/

open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite _root_.HomologicalComplex

variable (Y : TopCat.{0})
  (K : CochainComplex (Sheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}) β„€) (n : β„€)

/-- The canonical map on cocycles, expressed through the actual sheafification unit and counit. -/
def sectionCycleComparison :
    (((sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).mapHomologicalComplex
      β„€α΅˜α΅–).obj K).cycles n ⟢
      (sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).obj (K.cycles n) :=
  let F := presheafToSheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}
  let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}
  let adj := sheafificationAdjunction (Opens.grothendieckTopology Y) AddCommGrpCat.{0}
  let P := (G.mapHomologicalComplex β„€α΅˜α΅–).obj K
  let c := (NatIso.mapHomologicalComplex (asIso adj.counit) β„€α΅˜α΅–).hom.app K
  adj.unit.app (P.cycles n) ≫ G.map
    (((P.sc n).mapCyclesIso F).inv ≫ cyclesMap c n)

set_option backward.defeqAttrib.useBackward true in
set_option backward.isDefEq.respectTransparency false in
set_option backward.isDefEq.respectTransparency.types false in
theorem sectionCycleComparison_iCycles :
    sectionCycleComparison Y K n ≫
      (sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).map (K.iCycles n) =
    (((sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).mapHomologicalComplex
      β„€α΅˜α΅–).obj K).iCycles n := by
  let F := presheafToSheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}
  let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}
  let adj := sheafificationAdjunction (Opens.grothendieckTopology Y) AddCommGrpCat.{0}
  let P := (G.mapHomologicalComplex β„€α΅˜α΅–).obj K
  let c := (NatIso.mapHomologicalComplex (asIso adj.counit) β„€α΅˜α΅–).hom.app K
  let e := (P.sc n).mapCyclesIso F
  have he : e.inv ≫ ((F.mapHomologicalComplex β„€α΅˜α΅–).obj P).iCycles n =
      F.map (P.iCycles n) := by
    rw [Iso.inv_comp_eq]
    exact (ShortComplex.mapCyclesIso_hom_iCycles (P.sc n) F).symm
  have hc : cyclesMap c n ≫ K.iCycles n =
      ((F.mapHomologicalComplex β„€α΅˜α΅–).obj P).iCycles n ≫ adj.counit.app (K.X n) := by
    simpa only [NatIso.mapHomologicalComplex] using! cyclesMap_i c n
  have hn : P.iCycles n ≫ adj.unit.app (G.obj (K.X n)) =
      adj.unit.app (P.cycles n) ≫ G.map (F.map (P.iCycles n)) := by
    exact adj.unit.naturality (P.iCycles n)
  unfold sectionCycleComparison
  change (adj.unit.app (P.cycles n) ≫ G.map (e.inv ≫ cyclesMap c n)) ≫
    G.map (K.iCycles n) = P.iCycles n
  calc
    _ = adj.unit.app (P.cycles n) ≫
        G.map (e.inv ≫ (cyclesMap c n ≫ K.iCycles n)) := by
      simp only [G.map_comp, Category.assoc]
    _ = adj.unit.app (P.cycles n) ≫
        G.map (F.map (P.iCycles n) ≫ adj.counit.app (K.X n)) := by
      rw [hc, ← Category.assoc, he]
    _ = P.iCycles n ≫ (adj.unit.app (G.obj (K.X n)) ≫
        G.map (adj.counit.app (K.X n))) := by
      rw [G.map_comp, ← Category.assoc, ← hn, Category.assoc]
    _ = P.iCycles n := by
      simpa only [Category.comp_id] using! congrArg
        (fun g => P.iCycles n ≫ g) (adj.right_triangle_components (K.X n))

set_option backward.defeqAttrib.useBackward true in
set_option backward.isDefEq.respectTransparency false in
set_option backward.isDefEq.respectTransparency.types false in
theorem sectionCohomologyPresheafToSheaf_cycles :
    (((sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).mapHomologicalComplex
      β„€α΅˜α΅–).obj K).homologyΟ€ n ≫
      AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafToSheaf Y K n =
    sectionCycleComparison Y K n ≫
      (sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}).map (K.homologyΟ€ n) := by
  let F := presheafToSheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}
  let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}
  let adj := sheafificationAdjunction (Opens.grothendieckTopology Y) AddCommGrpCat.{0}
  let P := (G.mapHomologicalComplex β„€α΅˜α΅–).obj K
  let c := (NatIso.mapHomologicalComplex (asIso adj.counit) β„€α΅˜α΅–).hom.app K
  let e := (P.sc n).mapHomologyIso F
  let ec := (P.sc n).mapCyclesIso F
  have hp : ((F.mapHomologicalComplex β„€α΅˜α΅–).obj P).homologyΟ€ n ≫ e.hom =
      ec.hom ≫ F.map (P.homologyΟ€ n) := by
    exact HomologyFunctorCoherence.homologyComparison_cycles (P.sc n) F
  have he : F.map (P.homologyΟ€ n) ≫ e.inv =
      ec.inv ≫ ((F.mapHomologicalComplex β„€α΅˜α΅–).obj P).homologyΟ€ n := by
    apply (cancel_mono e.hom).mp
    simp only [Category.assoc, Iso.inv_hom_id, Category.comp_id]
    rw [hp]
    simp only [Iso.inv_hom_id_assoc]
  have hn : P.homologyΟ€ n ≫ adj.unit.app (P.homology n) =
      adj.unit.app (P.cycles n) ≫ G.map (F.map (P.homologyΟ€ n)) := by
    exact adj.unit.naturality (P.homologyΟ€ n)
  have hc : ((F.mapHomologicalComplex β„€α΅˜α΅–).obj P).homologyΟ€ n ≫ homologyMap c n =
      cyclesMap c n ≫ K.homologyΟ€ n := by
    simpa only [NatIso.mapHomologicalComplex] using! homologyΟ€_naturality c n
  unfold AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafToSheaf
    AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafSheafificationIso sectionCycleComparison
  change P.homologyΟ€ n ≫ (adj.unit.app (P.homology n) ≫
    G.map (e.inv ≫ homologyMap c n)) =
      (adj.unit.app (P.cycles n) ≫ G.map (ec.inv ≫ cyclesMap c n)) ≫ G.map (K.homologyΟ€ n)
  calc
    _ = adj.unit.app (P.cycles n) ≫
        G.map ((F.map (P.homologyΟ€ n) ≫ e.inv) ≫ homologyMap c n) := by
      rw [← Category.assoc, hn]
      simp only [G.map_comp, Category.assoc]
    _ = adj.unit.app (P.cycles n) ≫
        G.map (ec.inv ≫ (cyclesMap c n ≫ K.homologyΟ€ n)) := by
      rw [he, Category.assoc, hc]
    _ = _ := by simp only [G.map_comp, Category.assoc]

end

/-! # Canonical cocycle sections on an actual ambient open -/

open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite _root_.HomologicalComplex

variable (Y : TopCat.{0})
  (K : CochainComplex (Sheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}) β„€)
  (n : β„€) (V : Opens Y)

/-- The actual map from cocycle sections to sections of the cycle sheaf. -/
def openSectionCycleComparison :
    (((AlgebraicTopology.Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation Y V).mapHomologicalComplex β„€α΅˜α΅–).obj K).cycles n ⟢
      (K.cycles n).obj.obj (op V) :=
  let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}
  let E := (evaluation (Opens Y)α΅’α΅– AddCommGrpCat.{0}).obj (op V)
  let P := (G.mapHomologicalComplex β„€α΅˜α΅–).obj K
  ((P.sc n).mapCyclesIso E).hom ≫ (sectionCycleComparison Y K n).app (op V)

set_option backward.defeqAttrib.useBackward true in
set_option backward.isDefEq.respectTransparency false in
set_option backward.isDefEq.respectTransparency.types false in
theorem openSectionCycleComparison_iCycles :
    openSectionCycleComparison Y K n V ≫ (K.iCycles n).hom.app (op V) =
      (((AlgebraicTopology.Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation Y V).mapHomologicalComplex β„€α΅˜α΅–).obj K).iCycles n := by
  let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}
  let E := (evaluation (Opens Y)α΅’α΅– AddCommGrpCat.{0}).obj (op V)
  let P := (G.mapHomologicalComplex β„€α΅˜α΅–).obj K
  have hc : (sectionCycleComparison Y K n).app (op V) ≫
      (K.iCycles n).hom.app (op V) = (P.iCycles n).app (op V) := by
    simpa only [NatTrans.comp_app] using!
      congrArg (fun f => f.app (op V)) (sectionCycleComparison_iCycles Y K n)
  unfold openSectionCycleComparison
  rw [Category.assoc, hc]
  exact ShortComplex.mapCyclesIso_hom_iCycles (P.sc n) E

set_option backward.defeqAttrib.useBackward true in
set_option backward.isDefEq.respectTransparency false in
set_option backward.isDefEq.respectTransparency.types false in
theorem openSectionCohomology_cycles :
    (((AlgebraicTopology.Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation Y V).mapHomologicalComplex β„€α΅˜α΅–).obj K).homologyΟ€ n ≫
      AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyToSheafSection Y K n V =
    openSectionCycleComparison Y K n V ≫ (K.homologyΟ€ n).hom.app (op V) := by
  let G := sheafToPresheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{0}
  let E := (evaluation (Opens Y)α΅’α΅– AddCommGrpCat.{0}).obj (op V)
  let P := (G.mapHomologicalComplex β„€α΅˜α΅–).obj K
  have hp : (((AlgebraicTopology.Support.DerivedSectionsLocalization.TopCat.Sheaf.supportEvaluation Y V).mapHomologicalComplex β„€α΅˜α΅–).obj K).homologyΟ€ n ≫
      (AlgebraicTopology.Sheaf.CohomologyStalkVanishing.TopCat.sectionCohomologyPresheafOnOpenIso Y K n V).hom =
      ((P.sc n).mapCyclesIso E).hom ≫ (P.homologyΟ€ n).app (op V) := by
    exact HomologyFunctorCoherence.homologyComparison_cycles (P.sc n) E
  have hc : (P.homologyΟ€ n).app (op V) ≫
      (AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyPresheafToSheaf Y K n).app (op V) =
      (sectionCycleComparison Y K n).app (op V) ≫ (K.homologyΟ€ n).hom.app (op V) := by
    simpa only [NatTrans.comp_app] using!
      congrArg (fun f => f.app (op V)) (sectionCohomologyPresheafToSheaf_cycles Y K n)
  unfold AlgebraicTopology.Sheaf.CohomologySection.TopCat.sectionCohomologyToSheafSection openSectionCycleComparison
  rw [← Category.assoc, hp, Category.assoc, hc, ← Category.assoc]

end

end OAI.AlgebraicGeometry.ComplexMultiplication.CMCanonicalSectionCycles