File size: 8,509 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
import OAI.AlgebraicGeometry.Comparison.Betti.PointModuleFunctor
import Mathlib.Algebra.Category.ModuleCat.Sheaf.PushforwardContinuous
import OAI.AlgebraicGeometry.Comparison.Betti.RingModuleStalkFunctor

/-! # Ringed Stalk Pushforward -/

namespace OAI.AlgebraicGeometry.Comparison.Betti.Module.RingedStalkPushforward.Local

noncomputable section

section

/-! The map of native ring stalks induced by a continuous map and a
morphism into the direct image, with its formula on every section. -/

open _root_.CategoryTheory _root_.TopologicalSpace Opposite

variable {X Y : TopCat.{0}} (f : X ⟶ Y)
  {R : TopCat.Presheaf RingCat.{0} X} {S : TopCat.Presheaf RingCat.{0} Y}
  (φ : S ⟶ (Opens.map f).op ⋙ R) (x : X)

def ringedStalkMap : S.stalk (f x) →+* R.stalk x :=
  ((TopCat.Presheaf.stalkFunctor RingCat (f x)).map φ ≫
    TopCat.Presheaf.stalkPushforward RingCat f R x).hom

theorem ringedStalkMap_germ (U : Opens Y) (hx : f x ∈ U) (s : S.obj (op U)) :
    ringedStalkMap f φ x (S.germ U (f x) hx s) =
      R.germ ((Opens.map f).obj U) x hx (φ.app (op U) s) := by
  change TopCat.Presheaf.stalkPushforward RingCat f R x
    ((TopCat.Presheaf.stalkFunctor RingCat (f x)).map φ (S.germ U (f x) hx s)) = _
  rw [TopCat.Presheaf.stalkFunctor_map_germ_apply]
  exact ConcreteCategory.congr_hom
    (TopCat.Presheaf.stalkPushforward_germ RingCat f R U x hx) (φ.app (op U) s)

end

section

/-! The actual stalk map for module pushforward is semilinear over the original ringed stalk map. -/

open _root_.CategoryTheory _root_.TopologicalSpace Opposite

variable {X Y : TopCat.{0}} (f : X ⟶ Y)
  {R : TopCat.Presheaf RingCat.{0} X} {S : TopCat.Presheaf RingCat.{0} Y}
  (φ : S ⟶ (Opens.map f).op ⋙ R) (M : PresheafOfModules.{0} R) (x : X)

def modulePushforwardAdditiveStalkMap :
    TopCat.Presheaf.stalk (C := AddCommGrpCat) (X := Y)
      ((PresheafOfModules.pushforward φ).obj M).presheaf (f x) →+
    TopCat.Presheaf.stalk (C := AddCommGrpCat) (X := X) M.presheaf x :=
  (TopCat.Presheaf.stalkPushforward AddCommGrpCat f M.presheaf x).hom

theorem modulePushforwardAdditiveStalkMap_germ (U : Opens Y) (hx : f x ∈ U)
    (m : ((PresheafOfModules.pushforward φ).obj M).obj (op U)) :
    modulePushforwardAdditiveStalkMap f φ M x
      (TopCat.Presheaf.germ (C := AddCommGrpCat) (X := Y)
        ((PresheafOfModules.pushforward φ).obj M).presheaf U (f x) hx m) =
    TopCat.Presheaf.germ (C := AddCommGrpCat) (X := X) M.presheaf
      ((Opens.map f).obj U) x hx m :=
  ConcreteCategory.congr_hom (TopCat.Presheaf.stalkPushforward_germ AddCommGrpCat f M.presheaf U x hx) m

theorem modulePushforwardAdditiveStalkMap_smul
    (r : S.stalk (f x))
    (m : TopCat.Presheaf.stalk (C := AddCommGrpCat) (X := Y)
      ((PresheafOfModules.pushforward φ).obj M).presheaf (f x)) :
    modulePushforwardAdditiveStalkMap f φ M x (r • m) =
      ringedStalkMap f φ x r • modulePushforwardAdditiveStalkMap f φ M x m := by
  let P := (PresheafOfModules.pushforward φ).obj M
  obtain ⟨U, hxU, a, rfl⟩ := S.exists_germ_eq r
  obtain ⟨V, hxV, b, rfl⟩ := TopCat.Presheaf.exists_germ_eq (C := AddCommGrpCat) (X := Y) P.presheaf m
  change P.obj (op V) at b
  let W := U ⊓ V
  have hxW : f x ∈ W := ⟨hxU, hxV⟩
  have hWU : W ≤ U := inf_le_left
  have hWV : W ≤ V := inf_le_right
  have hr := S.germ_res_apply (homOfLE hWU) (f x) hxW a
  have hm := TopCat.Presheaf.germ_res_apply (C := AddCommGrpCat) (X := Y)
    P.presheaf (homOfLE hWV) (f x) hxW b
  rw [← hr, ← hm]
  erw [← P.germ_ringCat_smul (f x) W hxW (S.map (homOfLE hWU).op a) (P.map (homOfLE hWV).op b)]
  erw [modulePushforwardAdditiveStalkMap_germ, ringedStalkMap_germ,
    modulePushforwardAdditiveStalkMap_germ]
  exact M.germ_ringCat_smul x ((Opens.map f).obj W) hxW
    (φ.app (op W) (S.map (homOfLE hWU).op a)) (P.map (homOfLE hWV).op b)

def ringModulePushforwardStalkMap :
    TopCat.Presheaf.stalk (C := AddCommGrpCat) (X := Y)
      ((PresheafOfModules.pushforward φ).obj M).presheaf (f x) →ₛₗ[ringedStalkMap f φ x]
    TopCat.Presheaf.stalk (C := AddCommGrpCat) (X := X) M.presheaf x where
  __ := modulePushforwardAdditiveStalkMap f φ M x
  map_smul' := modulePushforwardAdditiveStalkMap_smul f φ M x

theorem ringModulePushforwardStalkMap_bijective (hf : Topology.IsInducing f) :
    Function.Bijective (ringModulePushforwardStalkMap f φ M x) := by
  let : IsIso (TopCat.Presheaf.stalkPushforward AddCommGrpCat f M.presheaf x) :=
    TopCat.Presheaf.stalkPushforward.stalkPushforward_iso_of_isInducing AddCommGrpCat hf M.presheaf x
  exact ConcreteCategory.bijective_of_isIso
    (TopCat.Presheaf.stalkPushforward AddCommGrpCat f M.presheaf x)

theorem ringModulePushforwardStalkMap_naturality {N : PresheafOfModules.{0} R} (g : M ⟶ N)
    (m : TopCat.Presheaf.stalk (C := AddCommGrpCat) (X := Y)
      ((PresheafOfModules.pushforward φ).obj M).presheaf (f x)) :
    ringModulePushforwardStalkMap f φ N x
        (RingModuleStalkMap.Local.ringModuleStalkMap ((PresheafOfModules.pushforward φ).map g) (f x) m) =
      RingModuleStalkMap.Local.ringModuleStalkMap g x (ringModulePushforwardStalkMap f φ M x m) := by
  obtain ⟨U, hxU, a, rfl⟩ := TopCat.Presheaf.exists_germ_eq (C := AddCommGrpCat) (X := Y)
    ((PresheafOfModules.pushforward φ).obj M).presheaf m
  erw [RingModuleStalkMap.Local.ringModuleStalkMap_germ]
  change modulePushforwardAdditiveStalkMap f φ N x _ =
    RingModuleStalkMap.Local.ringModuleStalkMap g x (modulePushforwardAdditiveStalkMap f φ M x _)
  erw [modulePushforwardAdditiveStalkMap_germ, modulePushforwardAdditiveStalkMap_germ,
    RingModuleStalkMap.Local.ringModuleStalkMap_germ]
  rfl

end

/-! At an embedded point, native module pushforward stalks are restriction of scalars along the actual ring map. -/

open _root_.CategoryTheory _root_.TopologicalSpace Opposite

variable {X Y : TopCat.{0}} (f : X ⟶ Y)
  {R : TopCat.Presheaf RingCat.{0} X} {S : TopCat.Presheaf RingCat.{0} Y}
  (φ : S ⟶ (Opens.map f).op ⋙ R) (x : X)

def modulePushforwardStalkHom (M : PresheafOfModules.{0} R) :
    (RingModuleStalkFunctor.Local.ringModuleStalk S (f x)).obj ((PresheafOfModules.pushforward φ).obj M) ⟶
      (ModuleCat.restrictScalars (ringedStalkMap f φ x)).obj ((RingModuleStalkFunctor.Local.ringModuleStalk R x).obj M) :=
  ModuleCat.ofHom (R := S.stalk (f x))
    (X := (RingModuleStalkFunctor.Local.ringModuleStalk S (f x)).obj ((PresheafOfModules.pushforward φ).obj M))
    (Y := (ModuleCat.restrictScalars (ringedStalkMap f φ x)).obj ((RingModuleStalkFunctor.Local.ringModuleStalk R x).obj M))
    { toFun := ringModulePushforwardStalkMap f φ M x
      map_add' := (ringModulePushforwardStalkMap f φ M x).map_add
      map_smul' := (ringModulePushforwardStalkMap f φ M x).map_smul' }

def modulePushforwardStalkNatTrans :
    PresheafOfModules.pushforward φ ⋙ RingModuleStalkFunctor.Local.ringModuleStalk S (f x) ⟶
      RingModuleStalkFunctor.Local.ringModuleStalk R x ⋙ ModuleCat.restrictScalars (ringedStalkMap f φ x) where
  app := modulePushforwardStalkHom f φ x
  naturality {M N} g := by
    apply ModuleCat.hom_ext
    apply LinearMap.ext
    intro m
    exact ringModulePushforwardStalkMap_naturality f φ M x g m

def modulePushforwardStalkIso (hf : Topology.IsInducing f) :
    PresheafOfModules.pushforward φ ⋙ RingModuleStalkFunctor.Local.ringModuleStalk S (f x) ≅
      RingModuleStalkFunctor.Local.ringModuleStalk R x ⋙ ModuleCat.restrictScalars (ringedStalkMap f φ x) := by
  have (M : PresheafOfModules.{0} R) : IsIso ((modulePushforwardStalkNatTrans f φ x).app M) := by
    apply (ConcreteCategory.isIso_iff_bijective _).mpr
    exact ringModulePushforwardStalkMap_bijective f φ M x hf
  exact NatIso.ofComponents (fun M => asIso ((modulePushforwardStalkNatTrans f φ x).app M))
    (fun g => (modulePushforwardStalkNatTrans f φ x).naturality g)

theorem modulePushforwardStalkIso_germ (hf : Topology.IsInducing f)
    (M : PresheafOfModules.{0} R) (U : Opens Y) (hx : f x ∈ U)
    (m : ((PresheafOfModules.pushforward φ).obj M).obj (op U)) :
    (modulePushforwardStalkIso f φ x hf).hom.app M
      (TopCat.Presheaf.germ (C := AddCommGrpCat) (X := Y)
        ((PresheafOfModules.pushforward φ).obj M).presheaf U (f x) hx m) =
    TopCat.Presheaf.germ (C := AddCommGrpCat) (X := X) M.presheaf
      ((Opens.map f).obj U) x hx m :=
  modulePushforwardAdditiveStalkMap_germ f φ M x U hx m

end

end OAI.AlgebraicGeometry.Comparison.Betti.Module.RingedStalkPushforward.Local