File size: 15,228 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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
import OAI.AlgebraicGeometry.ComplexPoints.Analytic.IntrinsicSmoothImmersion
import OAI.AlgebraicGeometry.ComplexPoints.Analytic.LinearImmersionComplement
import OAI.AlgebraicGeometry.ComplexPoints.Analytic.ImmersionChartDerivative
import OAI.AlgebraicGeometry.ComplexPoints.Analytic.ImmersionComplementDimension
import Mathlib.Analysis.Calculus.InverseFunctionTheorem.ContDiff
import Mathlib.Geometry.Manifold.Immersion
import Mathlib.LinearAlgebra.Complex.FiniteDimensional

/-! # Immersion Normal Form -/

namespace OAI.AlgebraicGeometry.ComplexPoints.Analytic.ImmersionNormalForm

noncomputable section

/-!
# Analytic normal forms from injective differentials

The normal coordinates are constructed by adjoining complementary linear
directions to the given map and applying the genuine inverse function theorem.
No implication from an injective differential to an immersion is assumed.
-/

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

section InverseFunctionConstruction

variable {K E F : Type*} [RCLike K]
variable [NormedAddCommGroup E] [NormedSpace K E]
variable [NormedAddCommGroup F] [NormedSpace K F]

/-- Adjoin actual complementary target directions to a nonlinear map. -/
def immersionExtension (f : E β†’ F) (C : Submodule K F) (z : E Γ— C) : F :=
  f z.1 + (z.2 : F)

/-- The extension's differential is the original differential together with
the inclusion of the complementary directions. -/
theorem hasFDerivAt_immersionExtension (f : E β†’ F) (C : Submodule K F)
    (L : E β†’L[K] F) (x : E) (hf : HasFDerivAt f L x) :
    HasFDerivAt (immersionExtension f C)
      (L.comp (ContinuousLinearMap.fst K E C) +
        C.subtypeL.comp (ContinuousLinearMap.snd K E C)) (x, 0) :=
  (hf.comp (x, 0) hasFDerivAt_fst).add
    (C.subtypeL.hasFDerivAt.comp (x, 0) hasFDerivAt_snd)

/-- The extension is analytic whenever the original map is analytic. -/
theorem contDiffAt_immersionExtension (f : E β†’ F) (C : Submodule K F)
    (x : E) {n : β„•βˆžΟ‰} (hf : ContDiffAt K n f x) :
    ContDiffAt K n (immersionExtension f C) (x, 0) :=
  (hf.comp (x, 0) contDiffAt_fst).add
    (C.subtypeL.contDiff.contDiffAt.comp (x, 0) contDiffAt_snd)

variable [FiniteDimensional K E] [FiniteDimensional K F]

/-- The inverse function theorem turns a proved linear complement into
actual analytic normal coordinates, with both maps analytic on their domains. -/
theorem exists_analytic_immersionExtension_chart (f : E β†’ F) (x : E)
    (hf : ContDiffAt K Ο‰ f x) (C : Submodule K F)
    (e : (E Γ— C) ≃L[K] F)
    (he : βˆ€ z : E Γ— C, e z = fderiv K f x z.1 + (z.2 : F)) :
    βˆƒ q : OpenPartialHomeomorph (E Γ— C) F,
      (x, 0) ∈ q.source ∧
      (q : E Γ— C β†’ F) = immersionExtension f C ∧
      ContDiffOn K Ο‰ q q.source ∧ ContDiffOn K Ο‰ q.symm q.target := by
  let := FiniteDimensional.complete K (E Γ— C)
  have hd := hasFDerivAt_immersionExtension f C (fderiv K f x) x
    (hf.differentiableAt (by simp)).hasFDerivAt
  have heq : (fderiv K f x).comp (ContinuousLinearMap.fst K E C) +
      C.subtypeL.comp (ContinuousLinearMap.snd K E C) = e.toContinuousLinearMap := by
    apply ContinuousLinearMap.ext
    intro z
    exact (he z).symm
  rw [heq] at hd
  have hg := contDiffAt_immersionExtension f C x hf
  let qβ‚€ := hg.toOpenPartialHomeomorph (immersionExtension f C) hd (by simp)
  have hx : (x, (0 : C)) ∈ qβ‚€.source :=
    hg.mem_toOpenPartialHomeomorph_source hd (by simp)
  have hi : ContDiffAt K Ο‰ qβ‚€.symm (qβ‚€ (x, 0)) :=
    hg.to_localInverse hd (by simp)
  refine ⟨qβ‚€.restrContDiff K Ο‰ (by simp), ?_, rfl, ?_, ?_⟩
  Β· change (x, (0 : C)) ∈ qβ‚€.source ∩
      {z | ContDiffAt K Ο‰ qβ‚€ z ∧ ContDiffAt K Ο‰ qβ‚€.symm (qβ‚€ z)}
    exact ⟨hx, hg, hi⟩
  Β· exact qβ‚€.contDiffOn_restrContDiff_source K (by simp)
  Β· exact qβ‚€.contDiffOn_restrContDiff_target K (by simp)

end InverseFunctionConstruction

section EuclideanNormalForm

variable {K E F C : Type*} [RCLike K]
variable [NormedAddCommGroup E] [NormedSpace K E]
variable [NormedAddCommGroup F] [NormedSpace K F]
variable [NormedAddCommGroup C] [NormedSpace K C]

/-- An analytic inverse-function chart whose zero slice is the original map
gives the standard manifold immersion normal form. -/
theorem isImmersionAtOfComplement_of_normal_chart
    (f : E β†’ F) (x : E) (e : (E Γ— C) ≃L[K] F)
    (q : OpenPartialHomeomorph (E Γ— C) F)
    (hx : (x, 0) ∈ q.source) (hzero : βˆ€ y, q (y, 0) = f y)
    (hq : ContDiffOn K Ο‰ q q.source)
    (hqi : ContDiffOn K Ο‰ q.symm q.target) :
    Manifold.IsImmersionAtOfComplement C π“˜(K, E) π“˜(K, F) Ο‰ f x := by
  let U : Set E := (fun y : E => (y, (0 : C))) ⁻¹' q.source
  have hU : IsOpen U := q.open_source.preimage (continuous_id.prodMk continuous_const)
  let dom : OpenPartialHomeomorph E E := OpenPartialHomeomorph.ofSet U hU
  let cod : OpenPartialHomeomorph F F := q.symm.transHomeomorph e.toHomeomorph
  have hdom : dom ∈ IsManifold.maximalAtlas π“˜(K, E) Ο‰ E := by
    apply OpenPartialHomeomorph.mem_maximalAtlas_of_contMDiffOn
    Β· exact contMDiff_id.contMDiffOn
    Β· exact contMDiff_id.contMDiffOn
  have hcod : cod ∈ IsManifold.maximalAtlas π“˜(K, F) Ο‰ F := by
    apply OpenPartialHomeomorph.mem_maximalAtlas_of_contMDiffOn
    Β· apply ContDiffOn.contMDiffOn
      exact e.contDiff.comp_contDiffOn hqi
    Β· apply ContDiffOn.contMDiffOn
      exact hq.comp e.symm.contDiff.contDiffOn (fun _ hz => hz)
  refine Manifold.IsImmersionAtOfComplement.mk_of_charts e dom cod hx ?_
    hdom hcod ?_ ?_
  · change f x ∈ q.target
    rw [← hzero x]
    exact q.map_source hx
  Β· intro y hy
    change f y ∈ q.target
    rw [← hzero y]
    exact q.map_source hy
  Β· intro y hy
    have hy' : (y, (0 : C)) ∈ q.source := by
      have : y ∈ dom.target := by
        simpa only [OpenPartialHomeomorph.extend_target, modelWithCornersSelf_coe,
          modelWithCornersSelf_coe_symm, Set.range_id, Set.preimage_id,
          Set.inter_univ] using hy
      exact this
    change e (q.symm (f y)) = e (y, 0)
    rw [← hzero y, q.left_inv hy']

variable [FiniteDimensional K E] [FiniteDimensional K F]

/-- In finite dimensions, an injective derivative of an analytic map yields
genuine analytic manifold immersion charts. -/
theorem isImmersionAt_of_injective_fderiv (f : E β†’ F) (x : E)
    (hf : ContDiffAt K Ο‰ f x) (hi : Function.Injective (fderiv K f x)) :
    Manifold.IsImmersionAt π“˜(K, E) π“˜(K, F) Ο‰ f x := by
  obtain ⟨C, e, he⟩ := LinearImmersionComplement.exists_linearImmersionComplement (fderiv K f x) hi
  obtain ⟨q, hx, hqf, hq, hqi⟩ :=
    exists_analytic_immersionExtension_chart f x hf C e he
  have hzero : βˆ€ y, q (y, 0) = f y := by
    intro y
    rw [hqf]
    simp only [immersionExtension, ZeroMemClass.coe_zero, add_zero]
  exact (isImmersionAtOfComplement_of_normal_chart f x e q hx hzero hq hqi).isImmersionAt

end EuclideanNormalForm

section ChartTransport

variable {K E : Type*} [RCLike K]
variable [NormedAddCommGroup E] [NormedSpace K E]
variable {M : Type*} [TopologicalSpace M] [ChartedSpace E M]
variable {n : β„•βˆžΟ‰} [IsManifold π“˜(K, E) n M]

/-- Composition with an actual smooth model-space coordinate change stays
in the same maximal atlas. -/
theorem mem_maximalAtlas_trans_self
    (c : OpenPartialHomeomorph M E) (d : OpenPartialHomeomorph E E)
    (hc : c ∈ IsManifold.maximalAtlas π“˜(K, E) n M)
    (hd : d ∈ IsManifold.maximalAtlas π“˜(K, E) n E) :
    c.trans d ∈ IsManifold.maximalAtlas π“˜(K, E) n M := by
  apply OpenPartialHomeomorph.mem_maximalAtlas_of_contMDiffOn
  Β· exact (contMDiffOn_of_mem_maximalAtlas hd).comp'
      (contMDiffOn_of_mem_maximalAtlas hc)
  Β· exact (contMDiffOn_symm_of_mem_maximalAtlas hc).comp'
      (contMDiffOn_symm_of_mem_maximalAtlas hd)

variable {F N : Type*} [NormedAddCommGroup F] [NormedSpace K F]
variable [TopologicalSpace N] [ChartedSpace F N] [IsManifold π“˜(K, F) n N]

/-- A normal form constructed in genuine manifold coordinates transports
back to a normal form on the manifolds themselves. -/
theorem isImmersionAt_of_coordinate_normal_form
    (f : M β†’ N) (x : M) (c : OpenPartialHomeomorph M E)
    (d : OpenPartialHomeomorph N F)
    (hx : x ∈ c.source) (hfx : f x ∈ d.source)
    (hc : c ∈ IsManifold.maximalAtlas π“˜(K, E) n M)
    (hd : d ∈ IsManifold.maximalAtlas π“˜(K, F) n N)
    (hf : ContinuousAt f x)
    (h : Manifold.IsImmersionAt π“˜(K, E) π“˜(K, F) n
      (d ∘ f ∘ c.symm) (c x)) :
    Manifold.IsImmersionAt π“˜(K, E) π“˜(K, F) n f x := by
  apply Manifold.IsImmersionAt.mk_of_continuousAt hf h.equiv
    (c.trans h.domChart) (d.trans h.codChart)
  · exact ⟨hx, h.mem_domChart_source⟩
  · refine ⟨hfx, ?_⟩
    change d (f x) ∈ h.codChart.source
    simpa only [Function.comp_apply, c.left_inv hx] using h.mem_codChart_source
  Β· exact mem_maximalAtlas_trans_self c h.domChart hc h.domChart_mem_maximalAtlas
  Β· exact mem_maximalAtlas_trans_self d h.codChart hd h.codChart_mem_maximalAtlas
  Β· intro z hz
    have hzt : z ∈ (c.trans h.domChart).target := by
      simpa only [OpenPartialHomeomorph.extend_target, modelWithCornersSelf_coe,
        modelWithCornersSelf_coe_symm, Set.range_id, Set.preimage_id,
        Set.inter_univ] using hz
    have hzd : z ∈ (h.domChart.extend π“˜(K, E)).target := by
      simpa only [OpenPartialHomeomorph.extend_target, modelWithCornersSelf_coe,
        modelWithCornersSelf_coe_symm, Set.range_id, Set.preimage_id,
        Set.inter_univ] using hzt.1
    exact h.writtenInCharts hzd

end ChartTransport

section InjectiveManifoldDifferential

variable {K E F M N : Type*} [RCLike K]
variable [NormedAddCommGroup E] [NormedSpace K E] [FiniteDimensional K E]
variable [NormedAddCommGroup F] [NormedSpace K F] [FiniteDimensional K F]
variable [TopologicalSpace M] [ChartedSpace E M] [IsManifold π“˜(K, E) Ο‰ M]
variable [TopologicalSpace N] [ChartedSpace F N] [IsManifold π“˜(K, F) Ο‰ N]

/-- An injective actual manifold differential gives genuine analytic normal
charts. The coordinate derivative is identified with the manifold derivative,
then a complement and the inverse function theorem construct those charts. -/
theorem isImmersionAt_of_injective_mfderiv (f : M β†’ N) (x : M)
    (hf : ContMDiffAt π“˜(K, E) π“˜(K, F) Ο‰ f x)
    (hi : Function.Injective (mfderiv π“˜(K, E) π“˜(K, F) f x)) :
    Manifold.IsImmersionAt π“˜(K, E) π“˜(K, F) Ο‰ f x := by
  apply isImmersionAt_of_coordinate_normal_form f x (chartAt E x) (chartAt F (f x))
    (mem_chart_source E x) (mem_chart_source F (f x))
    (IsManifold.chart_mem_maximalAtlas x) (IsManifold.chart_mem_maximalAtlas (f x))
    hf.continuousAt
  exact isImmersionAt_of_injective_fderiv (ImmersionChartDerivative.preferredChartMap (E := E) (F := F) f x)
    (chartAt E x x) (ImmersionChartDerivative.contDiffAt_preferredChartMap hf)
    (ImmersionChartDerivative.preferredChartDerivative_injective hf (by simp) hi)

/-- In finite dimensions, an analytic map with injective manifold
differential everywhere is a global immersion with one fixed complement. -/
theorem isImmersion_of_injective_mfderiv (f : M β†’ N)
    (hf : ContMDiff π“˜(K, E) π“˜(K, F) Ο‰ f)
    (hi : βˆ€ x, Function.Injective (mfderiv π“˜(K, E) π“˜(K, F) f x)) :
    Manifold.IsImmersion π“˜(K, E) π“˜(K, F) Ο‰ f :=
  ImmersionComplementDimension.isImmersion_of_forall_isImmersionAt
    (fun x => isImmersionAt_of_injective_mfderiv f x (hf x) (hi x))

end InjectiveManifoldDifferential

open _root_.CategoryTheory _root_.AlgebraicGeometry

variable {X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase}
variable [IsIntegral X.left] [Smooth X.hom] [IsIntegral Y.left] [Smooth Y.hom]

local notation "ModelX" => (Fin (OAI.AlgebraicGeometry.Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) β†’ β„‚)
local notation "ModelY" => (Fin (OAI.AlgebraicGeometry.Betti.AffineDimension.Realization.functionFieldDifferentialDimension Y.hom) β†’ β„‚)

/-- An actual immersion of smooth integral complex schemes has analytic
normal charts on its native complex-point manifolds. -/
theorem nativeScheme_isImmersionAt (Ο† : X ⟢ Y) [AlgebraicGeometry.IsImmersion Ο†.left]
    (x : SchemePointHomeomorphs.schemeComplexPoints X) :
    Manifold.IsImmersionAt π“˜(β„‚, ModelX) π“˜(β„‚, ModelY) Ο‰ (SchemePointHomeomorphs.schemeComplexPoints.map Ο†) x :=
  isImmersionAt_of_injective_mfderiv (SchemePointHomeomorphs.schemeComplexPoints.map Ο†) x
    (IntrinsicSmoothSchemeMaps.contMDiff_nativeScheme_map Ο† Ο‰ x) (IntrinsicSmoothImmersion.mfderiv_nativeScheme_immersion_injective Ο† x)

/-- The same native immersion admits genuine real analytic normal charts. -/
theorem real_nativeScheme_isImmersionAt (Ο† : X ⟢ Y)
    [AlgebraicGeometry.IsImmersion Ο†.left] (x : SchemePointHomeomorphs.schemeComplexPoints X) :
    Manifold.IsImmersionAt π“˜(ℝ, ModelX) π“˜(ℝ, ModelY) Ο‰ (SchemePointHomeomorphs.schemeComplexPoints.map Ο†) x :=
  isImmersionAt_of_injective_mfderiv (SchemePointHomeomorphs.schemeComplexPoints.map Ο†) x
    (IntrinsicSmoothSchemeMaps.real_contMDiff_nativeScheme_map Ο† Ο‰ x) (IntrinsicSmoothImmersion.real_mfderiv_nativeScheme_immersion_injective Ο† x)

/-- Native complex points of an actual algebraic immersion have a fixed
normal model of precisely the difference in algebraic dimensions. -/
theorem nativeScheme_isImmersionOfComplement (Ο† : X ⟢ Y)
    [AlgebraicGeometry.IsImmersion Ο†.left] :
    Manifold.IsImmersionOfComplement
      (Fin (Betti.AffineDimension.Realization.functionFieldDifferentialDimension Y.hom -
        Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) β†’ β„‚)
      π“˜(β„‚, ModelX) π“˜(β„‚, ModelY) Ο‰ (SchemePointHomeomorphs.schemeComplexPoints.map Ο†) := by
  intro x
  let h := nativeScheme_isImmersionAt Ο† x
  let := ImmersionComplementDimension.immersionComplement_finiteDimensional h
  let e : h.complement ≃L[β„‚]
      (Fin (Betti.AffineDimension.Realization.functionFieldDifferentialDimension Y.hom -
        Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) β†’ β„‚) :=
    ContinuousLinearEquiv.ofFinrankEq (by
      rw [ImmersionComplementDimension.immersionComplement_finrank h]
      simp only [Module.finrank_fin_fun])
  exact h.isImmersionAtOfComplement_complement.trans_F e

/-- Actual scheme immersions realize as genuine complex analytic manifold
immersions, including mathlib's requirement of one global normal model. -/
theorem nativeScheme_isImmersion (Ο† : X ⟢ Y) [AlgebraicGeometry.IsImmersion Ο†.left] :
    Manifold.IsImmersion π“˜(β„‚, ModelX) π“˜(β„‚, ModelY) Ο‰ (SchemePointHomeomorphs.schemeComplexPoints.map Ο†) :=
  (nativeScheme_isImmersionOfComplement Ο†).isImmersion

/-- The underlying native real manifolds likewise form a genuine global
real analytic immersion. -/
theorem real_nativeScheme_isImmersion (Ο† : X ⟢ Y)
    [AlgebraicGeometry.IsImmersion Ο†.left] :
    Manifold.IsImmersion π“˜(ℝ, ModelX) π“˜(ℝ, ModelY) Ο‰ (SchemePointHomeomorphs.schemeComplexPoints.map Ο†) :=
  ImmersionComplementDimension.isImmersion_of_forall_isImmersionAt (real_nativeScheme_isImmersionAt Ο†)

end

end OAI.AlgebraicGeometry.ComplexPoints.Analytic.ImmersionNormalForm