File size: 12,707 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
231
232
233
234
235
236
237
238
239
240
import OAI.AlgebraicGeometry.CycleClass.Thom.ProperImage.EtaleDifferential
import Mathlib.Analysis.Calculus.InverseFunctionTheorem.ContDiff
import Mathlib.Geometry.Manifold.LocalDiffeomorph
import Mathlib.Geometry.Manifold.ContMDiff.Atlas

/-! # Analytic Local Inverse At -/

namespace OAI

noncomputable section

namespace AlgebraicGeometry.CycleClass.Thom.AnalyticLocalInverseAt.Constructions.ProperImage.Construction

open scoped ContDiff _root_.Manifold _root_.Topology
open Filter IsManifold

/-- The analytic inverse function theorem, restricted so that both
directions are analytic throughout their open domains. -/
theorem exists_analytic_localInverse
    {E F : Type*} [NormedAddCommGroup E] [NormedSpace β„‚ E]
    [NormedAddCommGroup F] [NormedSpace β„‚ F]
    [FiniteDimensional β„‚ E] [FiniteDimensional β„‚ F]
    (f : E β†’ F) (x : E) (hf : ContDiffAt β„‚ Ο‰ f x)
    (hbij : Function.Bijective (fderiv β„‚ f x)) :
    βˆƒ q : OpenPartialHomeomorph E F,
      x ∈ q.source ∧ (q : E β†’ F) = f ∧
      ContDiffOn β„‚ Ο‰ q q.source ∧ ContDiffOn β„‚ Ο‰ q.symm q.target := by
  let := FiniteDimensional.complete β„‚ E
  let L : E ≃L[β„‚] F :=
    (LinearEquiv.ofBijective (fderiv β„‚ f x).toLinearMap hbij).toContinuousLinearEquiv
  have hd : HasFDerivAt f L.toContinuousLinearMap x := by
    change HasFDerivAt f (fderiv β„‚ f x) x
    exact (hf.differentiableAt (by simp)).hasFDerivAt
  let qβ‚€ := hf.toOpenPartialHomeomorph f hd (by simp)
  have hx : x ∈ qβ‚€.source := hf.mem_toOpenPartialHomeomorph_source hd (by simp)
  have hi : ContDiffAt β„‚ Ο‰ qβ‚€.symm (qβ‚€ x) := hf.to_localInverse hd (by simp)
  refine ⟨qβ‚€.restrContDiff β„‚ Ο‰ (by simp), ⟨hx, hf, hi⟩, rfl, ?_, ?_⟩
  Β· exact qβ‚€.contDiffOn_restrContDiff_source β„‚ (by simp)
  Β· exact qβ‚€.contDiffOn_restrContDiff_target β„‚ (by simp)

/-- On equal-dimensional regular affine charts, an unramified map has
an actual analytic local inverse. -/
theorem exists_unramified_affineChart_localInverse
    {A B : Type*} [CommRing A] [Algebra β„‚ A] [CommRing B] [Algebra β„‚ B]
    {n : β„•} (h : A →ₐ[β„‚] B) (hh : h.toRingHom.FormallyUnramified)
    (e : OpenPartialHomeomorph (Foundations.Scheme.AffineComplexPoints.affineComplexPoints B) (Fin n β†’ β„‚))
    (f : OpenPartialHomeomorph (Foundations.Scheme.AffineComplexPoints.affineComplexPoints A) (Fin n β†’ β„‚))
    (he : e ∈ ComplexPoints.Analytic.SmoothSchemeManifold.affineRegularAtlas B n) (hf : f ∈ ComplexPoints.Analytic.SmoothSchemeManifold.affineRegularAtlas A n)
    (x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints B) (hx : x ∈ e.source)
    (hfx : x.comp h ∈ f.source) :
    βˆƒ q : OpenPartialHomeomorph (Fin n β†’ β„‚) (Fin n β†’ β„‚),
      e x ∈ q.source ∧ (q : (Fin n β†’ β„‚) β†’ (Fin n β†’ β„‚)) =
        (fun z => f ((e.symm z).comp h)) ∧
      ContDiffOn β„‚ Ο‰ q q.source ∧ ContDiffOn β„‚ Ο‰ q.symm q.target := by
  have hinj := ProperImage.EtaleDifferential.Constructions.Construction.fderiv_affineChartComap_injective_of_unramified h hh e f he hf x hx hfx
  exact exists_analytic_localInverse _ _
    (ComplexPoints.Analytic.SmoothClosedImmersion.contDiffAt_affineChartComap h e f he hf x hx hfx)
    ⟨hinj, LinearMap.surjective_of_injective hinj⟩

/-- Invertibility in genuine manifold charts gives a local analytic
diffeomorphism on the original spaces. -/
theorem isLocalDiffeomorphAt_of_chart_bijective
    {E F M N : Type*} [NormedAddCommGroup E] [NormedSpace β„‚ E]
    [NormedAddCommGroup F] [NormedSpace β„‚ F]
    [FiniteDimensional β„‚ E] [FiniteDimensional β„‚ F]
    [TopologicalSpace M] [ChartedSpace E M] [IsManifold (π“˜(β„‚, E)) Ο‰ M]
    [TopologicalSpace N] [ChartedSpace F N] [IsManifold (π“˜(β„‚, F)) Ο‰ N]
    (g : M β†’ N) (hg : Continuous g) (x : M)
    (e : OpenPartialHomeomorph M E) (f : OpenPartialHomeomorph N F)
    (he : e ∈ maximalAtlas (π“˜(β„‚, E)) Ο‰ M)
    (hf : f ∈ maximalAtlas (π“˜(β„‚, F)) Ο‰ N)
    (hx : x ∈ e.source) (hgx : g x ∈ f.source)
    (hC : ContDiffAt β„‚ Ο‰ (fun z => f (g (e.symm z))) (e x))
    (hbij : Function.Bijective (fderiv β„‚ (fun z => f (g (e.symm z))) (e x))) :
    IsLocalDiffeomorphAt (π“˜(β„‚, E)) (π“˜(β„‚, F)) Ο‰ g x := by
  obtain ⟨q, hxq, hq, hqd, hqi⟩ := exists_analytic_localInverse _ _ hC hbij
  let e' : PartialDiffeomorph (π“˜(β„‚, E)) (π“˜(β„‚, E)) M E Ο‰ :=
    { __ := e
      contMDiffOn_toFun := contMDiffOn_of_mem_maximalAtlas he
      contMDiffOn_invFun := contMDiffOn_symm_of_mem_maximalAtlas he }
  let f' : PartialDiffeomorph (π“˜(β„‚, F)) (π“˜(β„‚, F)) N F Ο‰ :=
    { __ := f
      contMDiffOn_toFun := contMDiffOn_of_mem_maximalAtlas hf
      contMDiffOn_invFun := contMDiffOn_symm_of_mem_maximalAtlas hf }
  let q' : PartialDiffeomorph (π“˜(β„‚, E)) (π“˜(β„‚, F)) E F Ο‰ :=
    { __ := q
      contMDiffOn_toFun := contMDiffOn_iff_contDiffOn.mpr hqd
      contMDiffOn_invFun := contMDiffOn_iff_contDiffOn.mpr hqi }
  let l := (e'.trans q').trans f'.symm
  let r := l.toOpenPartialHomeomorph.restr (g ⁻¹' f.source)
  refine ⟨{ __ := r
            contMDiffOn_toFun := l.contMDiffOn_toFun.mono Set.inter_subset_left
            contMDiffOn_invFun := l.contMDiffOn_invFun.mono Set.inter_subset_left }, ?_, ?_⟩
  · change x ∈ l.toOpenPartialHomeomorph.source ∩ interior (g ⁻¹' f.source)
    refine ⟨?_, (f.open_source.preimage hg).interior_eq.symm β–Έ hgx⟩
    change (x ∈ e.source ∧ e x ∈ q.source) ∧ q (e x) ∈ f.target
    refine ⟨⟨hx, hxq⟩, ?_⟩
    rw [hq]
    dsimp only
    rw [e.left_inv hx]
    exact f.map_source hgx
  Β· intro y hy
    change g y = f.symm (q (e y))
    change ((y ∈ e.source ∧ e y ∈ q.source) ∧ q (e y) ∈ f.target) ∧
      y ∈ interior (g ⁻¹' f.source) at hy
    rw [hq]
    dsimp only
    rw [e.left_inv hy.1.1.1]
    have hgy : y ∈ g ⁻¹' f.source := interior_subset hy.2
    exact (f.left_inv hgy).symm

/-- The complex inverse function theorem on the established manifold
structures, with the actual manifold differential as its hypothesis. -/
theorem isLocalDiffeomorphAt_of_bijective_mfderiv
    {E F M N : Type*} [NormedAddCommGroup E] [NormedSpace β„‚ E]
    [NormedAddCommGroup F] [NormedSpace β„‚ F]
    [FiniteDimensional β„‚ E] [FiniteDimensional β„‚ F]
    [TopologicalSpace M] [ChartedSpace E M] [IsManifold (π“˜(β„‚, E)) Ο‰ M]
    [TopologicalSpace N] [ChartedSpace F N] [IsManifold (π“˜(β„‚, F)) Ο‰ N]
    (g : M β†’ N) (hg : ContMDiff (π“˜(β„‚, E)) (π“˜(β„‚, F)) Ο‰ g) (x : M)
    (hbij : Function.Bijective (mfderiv (π“˜(β„‚, E)) (π“˜(β„‚, F)) g x)) :
    IsLocalDiffeomorphAt (π“˜(β„‚, E)) (π“˜(β„‚, F)) Ο‰ g x := by
  have hC := (contMDiffAt_iff_of_mem_source
    (mem_chart_source E x) (mem_chart_source F (g x))).mp (hg x)
  have hC' : ContDiffAt β„‚ Ο‰
      (fun z => chartAt F (g x) (g ((chartAt E x).symm z))) (chartAt E x x) := by
    simpa only [extChartAt_coe, extChartAt_coe_symm,
      modelWithCornersSelf_coe, modelWithCornersSelf_coe_symm,
      Function.comp_def, id_eq, Set.range_id, contDiffWithinAt_univ] using hC.2
  have hder : mfderiv (π“˜(β„‚, E)) (π“˜(β„‚, F)) g x =
      fderiv β„‚ (fun z => chartAt F (g x) (g ((chartAt E x).symm z)))
        (chartAt E x x) := by
    rw [((hg.of_le (show (1 : β„•βˆžΟ‰) ≀ Ο‰ from le_top)).mdifferentiableAt
      (x := x) one_ne_zero).mfderiv]
    simp only [writtenInExtChartAt, extChartAt_coe, extChartAt_coe_symm,
      modelWithCornersSelf_coe, modelWithCornersSelf_coe_symm,
      Function.comp_def, id_eq, Set.range_id, fderivWithin_univ]
    rfl
  exact isLocalDiffeomorphAt_of_chart_bijective g hg.continuous x
    (chartAt E x) (chartAt F (g x)) (chart_mem_maximalAtlas x)
    (chart_mem_maximalAtlas (g x)) (mem_chart_source E x)
    (mem_chart_source F (g x)) hC' (hder β–Έ hbij)

end AlgebraicGeometry.CycleClass.Thom.AnalyticLocalInverseAt.Constructions.ProperImage.Construction

namespace AlgebraicGeometry.CycleClass.Thom.AnalyticLocalInverseAt.Constructions

/-! The analytic inverse function theorem only needs holomorphy at the specified point. -/

open scoped ContDiff _root_.Manifold _root_.Topology
open Filter IsManifold

theorem isLocalDiffeomorphAt_of_chart_bijective
    {E F M N : Type*} [NormedAddCommGroup E] [NormedSpace β„‚ E]
    [NormedAddCommGroup F] [NormedSpace β„‚ F]
    [FiniteDimensional β„‚ E] [FiniteDimensional β„‚ F]
    [TopologicalSpace M] [ChartedSpace E M] [IsManifold (π“˜(β„‚, E)) Ο‰ M]
    [TopologicalSpace N] [ChartedSpace F N] [IsManifold (π“˜(β„‚, F)) Ο‰ N]
    (g : M β†’ N) (x : M) (hg : ContinuousAt g x)
    (e : OpenPartialHomeomorph M E) (f : OpenPartialHomeomorph N F)
    (he : e ∈ maximalAtlas (π“˜(β„‚, E)) Ο‰ M)
    (hf : f ∈ maximalAtlas (π“˜(β„‚, F)) Ο‰ N)
    (hx : x ∈ e.source) (hgx : g x ∈ f.source)
    (hC : ContDiffAt β„‚ Ο‰ (fun z => f (g (e.symm z))) (e x))
    (hbij : Function.Bijective (fderiv β„‚ (fun z => f (g (e.symm z))) (e x))) :
    IsLocalDiffeomorphAt (π“˜(β„‚, E)) (π“˜(β„‚, F)) Ο‰ g x := by
  obtain ⟨q, hxq, hq, hqd, hqi⟩ := ProperImage.Construction.exists_analytic_localInverse _ _ hC hbij
  let e' : PartialDiffeomorph (π“˜(β„‚, E)) (π“˜(β„‚, E)) M E Ο‰ :=
    { __ := e
      contMDiffOn_toFun := contMDiffOn_of_mem_maximalAtlas he
      contMDiffOn_invFun := contMDiffOn_symm_of_mem_maximalAtlas he }
  let f' : PartialDiffeomorph (π“˜(β„‚, F)) (π“˜(β„‚, F)) N F Ο‰ :=
    { __ := f
      contMDiffOn_toFun := contMDiffOn_of_mem_maximalAtlas hf
      contMDiffOn_invFun := contMDiffOn_symm_of_mem_maximalAtlas hf }
  let q' : PartialDiffeomorph (π“˜(β„‚, E)) (π“˜(β„‚, F)) E F Ο‰ :=
    { __ := q
      contMDiffOn_toFun := contMDiffOn_iff_contDiffOn.mpr hqd
      contMDiffOn_invFun := contMDiffOn_iff_contDiffOn.mpr hqi }
  let l := (e'.trans q').trans f'.symm
  let r := l.toOpenPartialHomeomorph.restr (g ⁻¹' f.source)
  refine ⟨{ __ := r
            contMDiffOn_toFun := l.contMDiffOn_toFun.mono Set.inter_subset_left
            contMDiffOn_invFun := l.contMDiffOn_invFun.mono Set.inter_subset_left }, ?_, ?_⟩
  · change x ∈ l.toOpenPartialHomeomorph.source ∩ interior (g ⁻¹' f.source)
    refine ⟨?_, mem_interior_iff_mem_nhds.mpr (hg.preimage_mem_nhds (f.open_source.mem_nhds hgx))⟩
    change (x ∈ e.source ∧ e x ∈ q.source) ∧ q (e x) ∈ f.target
    refine ⟨⟨hx, hxq⟩, ?_⟩
    rw [hq]
    dsimp only
    rw [e.left_inv hx]
    exact f.map_source hgx
  Β· intro y hy
    change g y = f.symm (q (e y))
    change ((y ∈ e.source ∧ e y ∈ q.source) ∧ q (e y) ∈ f.target) ∧
      y ∈ interior (g ⁻¹' f.source) at hy
    rw [hq]
    dsimp only
    rw [e.left_inv hy.1.1.1]
    have hgy : y ∈ g ⁻¹' f.source := interior_subset hy.2
    exact (f.left_inv hgy).symm

/-- The complex inverse function theorem on the established manifold
structures, with the actual manifold differential as its hypothesis. -/
theorem isLocalDiffeomorphAt_of_bijective_mfderiv
    {E F M N : Type*} [NormedAddCommGroup E] [NormedSpace β„‚ E]
    [NormedAddCommGroup F] [NormedSpace β„‚ F]
    [FiniteDimensional β„‚ E] [FiniteDimensional β„‚ F]
    [TopologicalSpace M] [ChartedSpace E M] [IsManifold (π“˜(β„‚, E)) Ο‰ M]
    [TopologicalSpace N] [ChartedSpace F N] [IsManifold (π“˜(β„‚, F)) Ο‰ N]
    (g : M β†’ N) (x : M) (hg : ContMDiffAt (π“˜(β„‚, E)) (π“˜(β„‚, F)) Ο‰ g x)
    (hbij : Function.Bijective (mfderiv (π“˜(β„‚, E)) (π“˜(β„‚, F)) g x)) :
    IsLocalDiffeomorphAt (π“˜(β„‚, E)) (π“˜(β„‚, F)) Ο‰ g x := by
  have hC := (contMDiffAt_iff_of_mem_source
    (mem_chart_source E x) (mem_chart_source F (g x))).mp hg
  have hC' : ContDiffAt β„‚ Ο‰
      (fun z => chartAt F (g x) (g ((chartAt E x).symm z))) (chartAt E x x) := by
    simpa only [extChartAt_coe, extChartAt_coe_symm,
      modelWithCornersSelf_coe, modelWithCornersSelf_coe_symm,
      Function.comp_def, id_eq, Set.range_id, contDiffWithinAt_univ] using hC.2
  have hder : mfderiv (π“˜(β„‚, E)) (π“˜(β„‚, F)) g x =
      fderiv β„‚ (fun z => chartAt F (g x) (g ((chartAt E x).symm z)))
        (chartAt E x x) := by
    rw [((hg.of_le (show (1 : β„•βˆžΟ‰) ≀ Ο‰ from le_top)).mdifferentiableAt
      one_ne_zero).mfderiv]
    simp only [writtenInExtChartAt, extChartAt_coe, extChartAt_coe_symm,
      modelWithCornersSelf_coe, modelWithCornersSelf_coe_symm,
      Function.comp_def, id_eq, Set.range_id, fderivWithin_univ]
    rfl
  exact isLocalDiffeomorphAt_of_chart_bijective g x hg.continuousAt
    (chartAt E x) (chartAt F (g x)) (chart_mem_maximalAtlas x)
    (chart_mem_maximalAtlas (g x)) (mem_chart_source E x)
    (mem_chart_source F (g x)) hC' (hder β–Έ hbij)

end AlgebraicGeometry.CycleClass.Thom.AnalyticLocalInverseAt.Constructions

end

end OAI