File size: 12,491 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
import Mathlib.Analysis.Complex.CauchyIntegral
import Mathlib.Topology.UniformSpace.HeineCantor
import Mathlib.Analysis.Normed.Module.FiniteDimension
import Mathlib.Analysis.Calculus.ContDiff.Defs
import Mathlib.Analysis.Calculus.InverseFunctionTheorem.ContDiff

/-! # Holomorphic Regularity -/

namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.HolomorphicRegularity.Constructions.Regularity

noncomputable section

/-!
# Cauchy formulas for regularity of finite-dimensional holomorphic maps

Local inverse charts require continuity of derivatives. The ingredients here
express directional derivatives as circle integrals and prove continuity of
circle integrals with respect to a finite-dimensional parameter.
-/

open Set Filter _root_.Metric _root_.Complex
open scoped _root_.Topology Real BigOperators ContDiff

/-- A circle integral depends continuously on a parameter when its integrand
is continuous on a neighborhood times the circle. -/
theorem continuousAt_circleIntegral {n : โ„•}
    {F : (Fin n โ†’ โ„‚) โ†’ โ„‚ โ†’ โ„‚} {U : Set (Fin n โ†’ โ„‚)}
    {x : Fin n โ†’ โ„‚} {c : โ„‚} {R : โ„}
    (hR : 0 โ‰ค R) (hU : IsOpen U) (hx : x โˆˆ U)
    (hF : ContinuousOn (fun p : (Fin n โ†’ โ„‚) ร— โ„‚ => F p.1 p.2)
      (U ร—หข sphere c R)) :
    ContinuousAt (fun y => โˆฎ z in C(c, R), F y z) x := by
  let K := sphere c R
  let : CompactSpace K := isCompact_iff_compactSpace.mp (isCompact_sphere c R)
  let family : (Fin n โ†’ โ„‚) โ†’ K โ†’ โ„‚ := fun y z => F y z
  have hfamily : ContinuousOn (Function.uncurry family) (U ร—หข univ) := by
    apply hF.comp (continuous_fst.prodMk
      (continuous_subtype_val.comp continuous_snd)).continuousOn
    intro p hp
    exact โŸจhp.1, p.2.propertyโŸฉ
  have huniform : TendstoUniformly family (family x) (๐“ x) :=
    ContinuousOn.tendstoUniformly (hU.mem_nhds hx) hfamily
  have huniformOn : TendstoUniformlyOn F (F x) (๐“ x) (sphere c R) :=
    tendstoUniformlyOn_iff_tendstoUniformly_comp_coe.mpr huniform
  have hcontinuous : โˆ€แถ  y in ๐“ x, ContinuousOn (F y) (sphere c R) := by
    filter_upwards [hU.mem_nhds hx] with y hy
    exact hF.comp (continuous_const.prodMk continuous_id).continuousOn
      (fun z hz => โŸจhy, hzโŸฉ)
  exact huniformOn.tendsto_circleIntegral_of_continuousOn hR hcontinuous

/-- Cauchy's formula computes a directional derivative using a disk in the
holomorphy domain. -/
theorem fderiv_apply_eq_circleIntegral
    {E : Type*} [NormedAddCommGroup E] [NormedSpace โ„‚ E] {f : E โ†’ โ„‚}
    {U : Set E} (hU : IsOpen U) (hf : DifferentiableOn โ„‚ f U)
    (x v : E) {R : โ„} (hR : 0 < R)
    (hball : โˆ€ z โˆˆ closedBall (0 : โ„‚) R, x + z โ€ข v โˆˆ U) :
    fderiv โ„‚ f x v = (2 * ฯ€ * I : โ„‚)โปยน *
      โˆฎ z in C(0, R), (z ^ 2)โปยน * f (x + z โ€ข v) := by
  have hx : x โˆˆ U := by
    simpa only [zero_smul, add_zero] using hball 0 (mem_closedBall_self hR.le)
  have hline : Differentiable โ„‚ (fun z : โ„‚ => x + z โ€ข v) :=
    (differentiable_const x).add (differentiable_id.smul_const v)
  have hlineDeriv : HasDerivAt (fun z : โ„‚ => x + z โ€ข v) v 0 := by
    simpa only [id_eq, zero_add, one_smul] using!
      (hasDerivAt_const (0 : โ„‚) x).add ((hasDerivAt_id (0 : โ„‚)).smul_const v)
  have hcomp : HasDerivAt (fun z : โ„‚ => f (x + z โ€ข v)) (fderiv โ„‚ f x v) 0 := by
    exact (hf.differentiableAt (hU.mem_nhds hx)).hasFDerivAt.comp_hasDerivAt_of_eq
      0 hlineDeriv (by simp)
  have hdiff : DifferentiableOn โ„‚ (fun z : โ„‚ => f (x + z โ€ข v)) (closedBall 0 R) :=
    hf.comp hline.differentiableOn hball
  have hformula := hdiff.deriv_eq_smul_circleIntegral hR
  rw [hcomp.deriv] at hformula
  have hformula' : (โˆฎ z in C(0, R), (z ^ 2)โปยน * f (x + z โ€ข v)) =
      (2 * ฯ€ * I : โ„‚) * fderiv โ„‚ f x v := by
    simpa only [sub_zero, one_div, smul_eq_mul] using hformula
  rw [hformula', โ† mul_assoc, inv_mul_cancelโ‚€ two_pi_I_ne_zero, one_mul]

/-- An open neighborhood contains a uniform family of small translated disks
in any fixed complex direction. -/
theorem exists_disk_neighborhood
    {E : Type*} [NormedAddCommGroup E] [NormedSpace โ„‚ E] {U : Set E}
    (hU : IsOpen U) {x : E} (hx : x โˆˆ U) (v : E) :
    โˆƒ R : โ„, 0 < R โˆง โˆƒ V : Set E, IsOpen V โˆง x โˆˆ V โˆง
      โˆ€ y โˆˆ V, โˆ€ z โˆˆ closedBall (0 : โ„‚) R, y + z โ€ข v โˆˆ U := by
  have hline : Continuous (fun z : โ„‚ => x + z โ€ข v) :=
    continuous_const.add (continuous_id.smul continuous_const)
  have hpre : (fun z : โ„‚ => x + z โ€ข v) โปยน' U โˆˆ ๐“ 0 :=
    (hU.preimage hline).mem_nhds (by simpa only [mem_preimage, zero_smul, add_zero] using hx)
  obtain โŸจR, hR, hballโŸฉ := nhds_basis_closedBall.mem_iff.mp hpre
  have hmap : Continuous (fun p : E ร— โ„‚ => p.1 + p.2 โ€ข v) :=
    continuous_fst.add (continuous_snd.smul continuous_const)
  have hp : ({x} : Set E) ร—หข closedBall (0 : โ„‚) R โІ
      (fun p : E ร— โ„‚ => p.1 + p.2 โ€ข v) โปยน' U := by
    rintro โŸจy, zโŸฉ โŸจhy, hzโŸฉ
    rcases mem_singleton_iff.mp hy with rfl
    exact hball hz
  obtain โŸจV, W, hV, _, hxV, hRW, hVWโŸฉ := generalized_tube_lemma
    isCompact_singleton (isCompact_closedBall (0 : โ„‚) R) (hU.preimage hmap) hp
  exact โŸจR, hR, V, hV, hxV (mem_singleton x),
    fun y hy z hz => hVW (show (y, z) โˆˆ V ร—หข W from โŸจhy, hRW hzโŸฉ)โŸฉ

/-- The Cauchy formula makes every fixed directional derivative continuous
on an open holomorphy domain. -/
theorem continuousAt_fderiv_apply {n : โ„•} {f : (Fin n โ†’ โ„‚) โ†’ โ„‚}
    {U : Set (Fin n โ†’ โ„‚)} (hU : IsOpen U) (hf : DifferentiableOn โ„‚ f U)
    {x : Fin n โ†’ โ„‚} (hx : x โˆˆ U) (v : Fin n โ†’ โ„‚) :
    ContinuousAt (fun y => fderiv โ„‚ f y v) x := by
  obtain โŸจR, hR, V, hV, hxV, hballโŸฉ := exists_disk_neighborhood hU hx v
  have hmap : Continuous (fun p : (Fin n โ†’ โ„‚) ร— โ„‚ => p.1 + p.2 โ€ข v) :=
    continuous_fst.add (continuous_snd.smul continuous_const)
  have hvalue : ContinuousOn (fun p : (Fin n โ†’ โ„‚) ร— โ„‚ => f (p.1 + p.2 โ€ข v))
      (V ร—หข sphere (0 : โ„‚) R) :=
    hf.continuousOn.comp hmap.continuousOn
      (fun p hp => hball p.1 hp.1 p.2 (sphere_subset_closedBall hp.2))
  have hkernel : ContinuousOn (fun p : (Fin n โ†’ โ„‚) ร— โ„‚ => (p.2 ^ 2)โปยน)
      (V ร—หข sphere (0 : โ„‚) R) := by
    apply (continuous_snd.pow 2).continuousOn.invโ‚€
    intro p hp
    apply pow_ne_zero
    intro hp0
    have hnorm : โ€–p.2โ€– = R := by
      simpa only [mem_sphere_iff_norm, sub_zero] using hp.2
    rw [hp0, norm_zero] at hnorm
    exact hR.ne' hnorm.symm
  have hint := continuousAt_circleIntegral
    (F := fun y z => (z ^ 2)โปยน * f (y + z โ€ข v)) (c := 0)
    hR.le hV hxV (hkernel.fun_mul hvalue)
  have hnormalized := hint.const_mul ((2 * ฯ€ * I : โ„‚)โปยน)
  have heq : (fun y => fderiv โ„‚ f y v) =แถ [๐“ x]
      (fun y => (2 * ฯ€ * I : โ„‚)โปยน * โˆฎ z in C(0, R), (z ^ 2)โปยน * f (y + z โ€ข v)) := by
    filter_upwards [hV.mem_nhds hxV] with y hy
    exact fderiv_apply_eq_circleIntegral hU hf y v hR (hball y hy)
  exact hnormalized.congr_of_eventuallyEq heq

/-- An operator on a finite coordinate space is the finite sum of its
coordinate projections, weighted by its values on coordinate basis vectors. -/
theorem clm_eq_sum_basis {n : โ„•} (L : (Fin n โ†’ โ„‚) โ†’L[โ„‚] โ„‚) :
    L = โˆ‘ i : Fin n, (ContinuousLinearMap.proj i).smulRight (L (Pi.single i 1)) := by
  ext z
  simp only [sum_apply, ContinuousLinearMap.smulRight_apply,
    ContinuousLinearMap.proj_apply]
  have hz : (โˆ‘ i : Fin n, z i โ€ข (Pi.single i 1 : Fin n โ†’ โ„‚)) = z := by
    ext j
    simp [Pi.single_apply]
  calc
    L z = L (โˆ‘ i : Fin n, z i โ€ข (Pi.single i 1 : Fin n โ†’ โ„‚)) := congrArg L hz.symm
    _ = _ := by simp only [map_sum, map_smul]

/-- Complex differentiability on an open finite-dimensional domain forces
the full Frรฉchet derivative to be continuous. -/
theorem continuousAt_fderiv {n : โ„•} {f : (Fin n โ†’ โ„‚) โ†’ โ„‚}
    {U : Set (Fin n โ†’ โ„‚)} (hU : IsOpen U) (hf : DifferentiableOn โ„‚ f U)
    {x : Fin n โ†’ โ„‚} (hx : x โˆˆ U) : ContinuousAt (fderiv โ„‚ f) x := by
  have heq : fderiv โ„‚ f = (fun y => โˆ‘ i : Fin n,
      (ContinuousLinearMap.proj i).smulRight (fderiv โ„‚ f y (Pi.single i 1))) :=
    funext (fun y => clm_eq_sum_basis (fderiv โ„‚ f y))
  rw [heq]
  apply tendsto_finsetSum
  intro i _
  change ContinuousAt (fun y => ContinuousLinearMap.smulRightL โ„‚ (Fin n โ†’ โ„‚) โ„‚
    (ContinuousLinearMap.proj i) (fderiv โ„‚ f y (Pi.single i 1))) x
  exact (ContinuousLinearMap.smulRightL โ„‚ (Fin n โ†’ โ„‚) โ„‚
    (ContinuousLinearMap.proj i)).continuous.continuousAt.comp
      (continuousAt_fderiv_apply hU hf hx (Pi.single i 1))

/-- A complex differentiable scalar function on an open coordinate domain is
continuously differentiable there. -/
theorem contDiffOn_one_of_differentiableOn {n : โ„•} {f : (Fin n โ†’ โ„‚) โ†’ โ„‚}
    {U : Set (Fin n โ†’ โ„‚)} (hU : IsOpen U) (hf : DifferentiableOn โ„‚ f U) :
    ContDiffOn โ„‚ 1 f U := by
  change ContDiffOn โ„‚ ((0 : โ„•โˆžฯ‰) + 1) f U
  rw [contDiffOn_succ_iff_fderiv_of_isOpen hU]
  exact โŸจhf, by simp, contDiffOn_zero.mpr
    (fun x hx => (continuousAt_fderiv hU hf hx).continuousWithinAt)โŸฉ

/-- The same regularity holds for maps between finite complex coordinate
spaces, by applying the scalar result to each target coordinate. -/
theorem contDiffOn_one_of_differentiableOn_pi {n m : โ„•}
    {f : (Fin n โ†’ โ„‚) โ†’ (Fin m โ†’ โ„‚)} {U : Set (Fin n โ†’ โ„‚)}
    (hU : IsOpen U) (hf : DifferentiableOn โ„‚ f U) : ContDiffOn โ„‚ 1 f U := by
  apply contDiffOn_pi.mpr
  intro i
  have heval : Differentiable โ„‚ (fun z : Fin m โ†’ โ„‚ => z i) := differentiable_apply i
  exact contDiffOn_one_of_differentiableOn hU (heval.comp_differentiableOn hf)

/-- Coordinate transport gives continuous differentiability for holomorphic
maps between arbitrary finite-dimensional complex normed spaces. -/
theorem contDiffOn_one_of_differentiableOn_finiteDimensional
    {E F : Type*} [NormedAddCommGroup E] [NormedSpace โ„‚ E] [FiniteDimensional โ„‚ E]
    [NormedAddCommGroup F] [NormedSpace โ„‚ F] [FiniteDimensional โ„‚ F]
    {f : E โ†’ F} {U : Set E} (hU : IsOpen U) (hf : DifferentiableOn โ„‚ f U) :
    ContDiffOn โ„‚ 1 f U := by
  let e := (Module.finBasis โ„‚ E).equivFunL
  let e' := (Module.finBasis โ„‚ F).equivFunL
  have hd : DifferentiableOn โ„‚ (e' โˆ˜ f โˆ˜ e.symm) (e.symm โปยน' U) :=
    e'.differentiable.comp_differentiableOn
      (hf.comp e.symm.differentiable.differentiableOn (mapsTo_preimage e.symm U))
  have hc := contDiffOn_one_of_differentiableOn_pi (hU.preimage e.symm.continuous) hd
  have hmaps : MapsTo e U (e.symm โปยน' U) := by
    intro x hx
    simpa only [mem_preimage, e.symm_apply_apply] using hx
  have hret := e'.symm.contDiff.comp_contDiffOn (hc.comp e.contDiff.contDiffOn hmaps)
  simpa only [Function.comp_def, e.symm_apply_apply, e'.symm_apply_apply] using hret

/-- A holomorphic coordinate map with an invertible derivative has an actual
local inverse which is holomorphic on its open domain. -/
theorem exists_holomorphic_localInverse
    {E F : Type*} [NormedAddCommGroup E] [NormedSpace โ„‚ E] [FiniteDimensional โ„‚ E]
    [NormedAddCommGroup F] [NormedSpace โ„‚ F] [FiniteDimensional โ„‚ F]
    {f : E โ†’ F} {U : Set E}
    (hU : IsOpen U) (hf : DifferentiableOn โ„‚ f U) {x : E} (hx : x โˆˆ U)
    (e : E โ‰ƒL[โ„‚] F)
    (he : fderiv โ„‚ f x = e.toContinuousLinearMap) :
    โˆƒ q : OpenPartialHomeomorph E F,
      x โˆˆ q.source โˆง (q : E โ†’ F) = f โˆง
      DifferentiableOn โ„‚ q q.source โˆง DifferentiableOn โ„‚ q.symm q.target := by
  let : CompleteSpace E := FiniteDimensional.complete โ„‚ E
  have hcd : ContDiffAt โ„‚ 1 f x :=
    (contDiffOn_one_of_differentiableOn_finiteDimensional hU hf).contDiffAt (hU.mem_nhds hx)
  have hd : HasFDerivAt f e.toContinuousLinearMap x := by
    rw [โ† he]
    exact (hf.differentiableAt (hU.mem_nhds hx)).hasFDerivAt
  let qโ‚€ := hcd.toOpenPartialHomeomorph f hd (by simp)
  have hxโ‚€ : x โˆˆ qโ‚€.source := hcd.mem_toOpenPartialHomeomorph_source hd (by simp)
  have hinv : ContDiffAt โ„‚ 1 qโ‚€.symm (qโ‚€ x) := hcd.to_localInverse hd (by simp)
  refine โŸจqโ‚€.restrContDiff โ„‚ 1 (by simp), โŸจhxโ‚€, hcd, hinvโŸฉ, rfl, ?_, ?_โŸฉ
  ยท exact (qโ‚€.contDiffOn_restrContDiff_source โ„‚ (by simp)).differentiableOn one_ne_zero
  ยท exact (qโ‚€.contDiffOn_restrContDiff_target โ„‚ (by simp)).differentiableOn one_ne_zero

end

end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.HolomorphicRegularity.Constructions.Regularity