File size: 12,427 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
import OAI.AlgebraicGeometry.CycleClass.Geometric.HomologyWithSupports
import OAI.AlgebraicGeometry.CycleClass.Geometric.LocalHomologyPresheaf
import Mathlib.Topology.Homeomorph.Lemmas

/-! # Compact Support Assembly -/

namespace OAI.AlgebraicGeometry.CycleClass.Geometric.CompactSupportAssembly.Cycles

noncomputable section

/-!
# Actual Mayer--Vietoris assembly for compact supports

The restriction maps below are induced by identity maps of complementary
pairs. The binary gluing and detection results follow from the proved
relative Mayer--Vietoris sequence. They are generic statements about actual
relative homology; no orientation or fundamental class is supplied as an axiom.
-/

open _root_.CategoryTheory _root_.CategoryTheory.Limits

set_option backward.defeqAttrib.useBackward true
set_option backward.isDefEq.respectTransparency false
set_option backward.isDefEq.respectTransparency.types false

variable (X : TopCat.{0})

/-- The actual restriction from a larger support set to a smaller one. -/
def homologyWithSupportRestriction {K L : Set X} (hKL : K βŠ† L) (n : β„•) :
    HomologyWithSupports.Cycles.singularHomologyWithSupport X L n ⟢ HomologyWithSupports.Cycles.singularHomologyWithSupport X K n :=
  HomologicalComplex.homologyMap (LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction X hKL) n

@[simp]
theorem homologyWithSupportRestriction_refl (K : Set X) (n : β„•) :
    homologyWithSupportRestriction X (Set.Subset.refl K) n = πŸ™ _ := by
  unfold homologyWithSupportRestriction
  rw [LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction_refl, HomologicalComplex.homologyMap_id]

@[reassoc]
theorem homologyWithSupportRestriction_trans {K L P : Set X}
    (hKL : K βŠ† L) (hLP : L βŠ† P) (n : β„•) :
    homologyWithSupportRestriction X hLP n ≫ homologyWithSupportRestriction X hKL n =
      homologyWithSupportRestriction X (hKL.trans hLP) n := by
  unfold homologyWithSupportRestriction
  rw [← HomologicalComplex.homologyMap_comp, LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction_trans]

/-- Restricting the support does not change the subsequent local class. -/
@[reassoc]
theorem homologyWithSupportRestriction_toPoint {K L : Set X} (hKL : K βŠ† L)
    (x : X) (hx : x ∈ K) (n : β„•) :
    homologyWithSupportRestriction X hKL n ≫ LocalHomologyPresheaf.Cycles.localHomologyToPoint X K x hx n =
      LocalHomologyPresheaf.Cycles.localHomologyToPoint X L x (hKL hx) n := by
  unfold homologyWithSupportRestriction LocalHomologyPresheaf.Cycles.localHomologyToPoint
  rw [← HomologicalComplex.homologyMap_comp, LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction_toPoint]

/-- Empty support gives zero actual relative homology in every degree. -/
theorem homologyWithSupport_empty_isZero (n : β„•) :
    IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport X βˆ… n) := by
  let : IsIso (LocalHomology.Cycles.subspaceInclusion X Set.univ) := by
    change IsIso ((TopCat.isoOfHomeo (X := TopCat.of (Set.univ : Set X)) (Y := X)
      (Homeomorph.Set.univ X)).hom)
    infer_instance
  let : IsIso (LocalHomology.Cycles.subspaceChainInclusion X Set.univ) := by
    dsimp only [LocalHomology.Cycles.subspaceChainInclusion]
    infer_instance
  have hz := isZero_cokernel_of_epi (LocalHomology.Cycles.subspaceChainInclusion X Set.univ)
  have hh := (HomologicalComplex.homologyFunctor (ModuleCat.{0} β„€)
    (ComplexShape.down β„•) n).map_isZero hz
  change IsZero (LocalHomology.Cycles.relativeSingularHomology X Set.univ n) at hh
  simpa only [HomologyWithSupports.Cycles.singularHomologyWithSupport, Set.compl_empty] using! hh

private theorem moduleBiprod_ext (M N : ModuleCat.{0} β„€)
    (a b : (M ⊞ N : ModuleCat.{0} β„€))
    (hf : (biprod.fst : M ⊞ N ⟢ M) a = (biprod.fst : M ⊞ N ⟢ M) b)
    (hs : (biprod.snd : M ⊞ N ⟢ N) a = (biprod.snd : M ⊞ N ⟢ N) b) : a = b := by
  have ha := ConcreteCategory.congr_hom (biprod.total (X := M) (Y := N)) a
  have hb := ConcreteCategory.congr_hom (biprod.total (X := M) (Y := N)) b
  change (biprod.inl : M ⟢ M ⊞ N) ((biprod.fst : M ⊞ N ⟢ M) a) +
    (biprod.inr : N ⟢ M ⊞ N) ((biprod.snd : M ⊞ N ⟢ N) a) = a at ha
  change (biprod.inl : M ⟢ M ⊞ N) ((biprod.fst : M ⊞ N ⟢ M) b) +
    (biprod.inr : N ⟢ M ⊞ N) ((biprod.snd : M ⊞ N ⟢ N) b) = b at hb
  rw [hf, hs] at ha
  exact ha.symm.trans hb

private theorem relativeMayerVietorisFirst_injective (A B : Set X)
    (hA : IsOpen A) (hB : IsOpen B) (n : β„•)
    (hUnion : IsZero (LocalHomology.Cycles.relativeSingularHomology X (A βˆͺ B) (n + 1))) :
    Function.Injective (HomologyWithSupports.Cycles.relativeMayerVietorisFirst X A B n).hom := by
  apply (injective_iff_map_eq_zero (HomologyWithSupports.Cycles.relativeMayerVietorisFirst X A B n).hom).2
  intro z hz
  have hmem : z ∈ LinearMap.ker (HomologyWithSupports.Cycles.relativeMayerVietorisFirst X A B n).hom := hz
  rw [← HomologyWithSupports.Cycles.relativeMayerVietoris_range_boundary X A B hA hB n] at hmem
  obtain ⟨b, rfl⟩ := hmem
  have hb : b = 0 := (ModuleCat.isZero_iff_subsingleton.mp hUnion).elim _ _
  rw [hb, map_zero]

private theorem relativeMayerVietoris_ext (A B : Set X)
    (hA : IsOpen A) (hB : IsOpen B) (n : β„•)
    (hUnion : IsZero (LocalHomology.Cycles.relativeSingularHomology X (A βˆͺ B) (n + 1))) :
    βˆ€ a b : LocalHomology.Cycles.relativeSingularHomology X (A ∩ B) n,
      (HomologicalComplex.homologyMap
        (HomologyWithSupports.Cycles.relativeSubsetChainMap X (Set.inter_subset_left : A ∩ B βŠ† A)) n) a =
        (HomologicalComplex.homologyMap
          (HomologyWithSupports.Cycles.relativeSubsetChainMap X (Set.inter_subset_left : A ∩ B βŠ† A)) n) b β†’
      (HomologicalComplex.homologyMap
        (HomologyWithSupports.Cycles.relativeSubsetChainMap X (Set.inter_subset_right : A ∩ B βŠ† B)) n) a =
        (HomologicalComplex.homologyMap
          (HomologyWithSupports.Cycles.relativeSubsetChainMap X (Set.inter_subset_right : A ∩ B βŠ† B)) n) b β†’ a = b := by
  intro a b ha hb
  apply relativeMayerVietorisFirst_injective X A B hA hB n hUnion
  apply moduleBiprod_ext
  Β· exact (ConcreteCategory.congr_hom (HomologyWithSupports.Cycles.relativeMayerVietorisFirst_fst X A B n) a).trans
      (ha.trans (ConcreteCategory.congr_hom
        (HomologyWithSupports.Cycles.relativeMayerVietorisFirst_fst X A B n) b).symm)
  Β· exact (ConcreteCategory.congr_hom (HomologyWithSupports.Cycles.relativeMayerVietorisFirst_snd X A B n) a).trans
      ((congrArg Neg.neg hb).trans (ConcreteCategory.congr_hom
        (HomologyWithSupports.Cycles.relativeMayerVietorisFirst_snd X A B n) b).symm)

private theorem relativeMayerVietoris_ext_of_eq (A B U : Set X)
    (hA : IsOpen A) (hB : IsOpen B) (n : β„•)
    (hUnion : IsZero (LocalHomology.Cycles.relativeSingularHomology X (A βˆͺ B) (n + 1)))
    (hU : U = A ∩ B) (hUA : U βŠ† A) (hUB : U βŠ† B) :
    βˆ€ a b : LocalHomology.Cycles.relativeSingularHomology X U n,
      (HomologicalComplex.homologyMap (HomologyWithSupports.Cycles.relativeSubsetChainMap X hUA) n) a =
        (HomologicalComplex.homologyMap (HomologyWithSupports.Cycles.relativeSubsetChainMap X hUA) n) b β†’
      (HomologicalComplex.homologyMap (HomologyWithSupports.Cycles.relativeSubsetChainMap X hUB) n) a =
        (HomologicalComplex.homologyMap (HomologyWithSupports.Cycles.relativeSubsetChainMap X hUB) n) b β†’ a = b := by
  subst U
  exact relativeMayerVietoris_ext X A B hA hB n hUnion

/-- The two restrictions detect a class on a union when the next homology
group of the intersection vanishes. -/
theorem supportUnion_ext (K L : Set X) (hK : IsClosed K) (hL : IsClosed L) (n : β„•)
    (hInt : IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport X (K ∩ L) (n + 1))) :
    βˆ€ a b : HomologyWithSupports.Cycles.singularHomologyWithSupport X (K βˆͺ L) n,
      homologyWithSupportRestriction X (Set.subset_union_left : K βŠ† K βˆͺ L) n a =
        homologyWithSupportRestriction X (Set.subset_union_left : K βŠ† K βˆͺ L) n b β†’
      homologyWithSupportRestriction X (Set.subset_union_right : L βŠ† K βˆͺ L) n a =
        homologyWithSupportRestriction X (Set.subset_union_right : L βŠ† K βˆͺ L) n b β†’ a = b := by
  have hI : IsZero (LocalHomology.Cycles.relativeSingularHomology X (Kᢜ βˆͺ Lᢜ) (n + 1)) := by
    simpa only [HomologyWithSupports.Cycles.singularHomologyWithSupport, Set.compl_inter] using hInt
  let hUK : (K βˆͺ L)ᢜ βŠ† Kᢜ := fun _ hx h => hx (Or.inl h)
  let hUL : (K βˆͺ L)ᢜ βŠ† Lᢜ := fun _ hx h => hx (Or.inr h)
  have h := relativeMayerVietoris_ext_of_eq X Kᢜ Lᢜ (K βˆͺ L)ᢜ
    hK.isOpen_compl hL.isOpen_compl n hI (Set.compl_union K L) hUK hUL
  simpa only [HomologyWithSupports.Cycles.singularHomologyWithSupport, homologyWithSupportRestriction,
    LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction, HomologyWithSupports.Cycles.relativeSubsetChainMap] using h

/-- Mayer--Vietoris propagates vanishing from two supports and the next
homology group of their intersection to their union. -/
theorem supportUnion_isZero (K L : Set X) (hK : IsClosed K) (hL : IsClosed L) (n : β„•)
    (hKn : IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport X K n))
    (hLn : IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport X L n))
    (hInt : IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport X (K ∩ L) (n + 1))) :
    IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport X (K βˆͺ L) n) := by
  apply ModuleCat.isZero_iff_subsingleton.mpr
  let : Subsingleton (HomologyWithSupports.Cycles.singularHomologyWithSupport X K n) :=
    ModuleCat.isZero_iff_subsingleton.mp hKn
  let : Subsingleton (HomologyWithSupports.Cycles.singularHomologyWithSupport X L n) :=
    ModuleCat.isZero_iff_subsingleton.mp hLn
  exact ⟨fun a b => supportUnion_ext X K L hK hL n hInt a b
    (Subsingleton.elim _ _) (Subsingleton.elim _ _)⟩

private theorem relativeMayerVietoris_glue_of_eq (A B U V : Set X)
    (hA : IsOpen A) (hB : IsOpen B) (n : β„•)
    (hU : U = A ∩ B) (hV : V = A βˆͺ B)
    (hUA : U βŠ† A) (hUB : U βŠ† B) (hAV : A βŠ† V) (hBV : B βŠ† V) :
    βˆ€ (a : LocalHomology.Cycles.relativeSingularHomology X A n) (b : LocalHomology.Cycles.relativeSingularHomology X B n),
      (HomologicalComplex.homologyMap (HomologyWithSupports.Cycles.relativeSubsetChainMap X hAV) n) a =
        (HomologicalComplex.homologyMap (HomologyWithSupports.Cycles.relativeSubsetChainMap X hBV) n) b β†’
      βˆƒ c : LocalHomology.Cycles.relativeSingularHomology X U n,
        (HomologicalComplex.homologyMap (HomologyWithSupports.Cycles.relativeSubsetChainMap X hUA) n) c = a ∧
        (HomologicalComplex.homologyMap (HomologyWithSupports.Cycles.relativeSubsetChainMap X hUB) n) c = b := by
  subst U
  subst V
  exact HomologyWithSupports.Cycles.relativeMayerVietoris_glue X A B hA hB n

/-- Compatible classes on closed supports glue to an actual relative
homology class supported on their union. -/
theorem supportUnion_glue (K L : Set X) (hK : IsClosed K) (hL : IsClosed L) (n : β„•) :
    βˆ€ (a : HomologyWithSupports.Cycles.singularHomologyWithSupport X K n) (b : HomologyWithSupports.Cycles.singularHomologyWithSupport X L n),
      homologyWithSupportRestriction X (Set.inter_subset_left : K ∩ L βŠ† K) n a =
        homologyWithSupportRestriction X (Set.inter_subset_right : K ∩ L βŠ† L) n b β†’
      βˆƒ c : HomologyWithSupports.Cycles.singularHomologyWithSupport X (K βˆͺ L) n,
        homologyWithSupportRestriction X (Set.subset_union_left : K βŠ† K βˆͺ L) n c = a ∧
        homologyWithSupportRestriction X (Set.subset_union_right : L βŠ† K βˆͺ L) n c = b := by
  let hUA : (K βˆͺ L)ᢜ βŠ† Kᢜ := fun _ hx h => hx (Or.inl h)
  let hUB : (K βˆͺ L)ᢜ βŠ† Lᢜ := fun _ hx h => hx (Or.inr h)
  let hAV : Kᢜ βŠ† (K ∩ L)ᢜ := fun _ hx h => hx h.1
  let hBV : Lᢜ βŠ† (K ∩ L)ᢜ := fun _ hx h => hx h.2
  have h := relativeMayerVietoris_glue_of_eq X Kᢜ Lᢜ (K βˆͺ L)ᢜ (K ∩ L)ᢜ
    hK.isOpen_compl hL.isOpen_compl n (Set.compl_union K L) (Set.compl_inter K L)
    hUA hUB hAV hBV
  simpa only [HomologyWithSupports.Cycles.singularHomologyWithSupport, homologyWithSupportRestriction,
    LocalHomologyPresheaf.Cycles.relativeComplementChainRestriction, HomologyWithSupports.Cycles.relativeSubsetChainMap] using h

end

end OAI.AlgebraicGeometry.CycleClass.Geometric.CompactSupportAssembly.Cycles