math / data /lean /OAI /AlgebraicGeometry /ComplexGroups /HolomorphicAlgebraicity /HolomorphicRegularity.lean
Download data/lean/OAI/AlgebraicGeometry/ComplexGroups/HolomorphicAlgebraicity/HolomorphicRegularity.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 12.5 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/ComplexGroups/HolomorphicAlgebraicity/HolomorphicRegularity.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/AlgebraicGeometry/ComplexGroups/HolomorphicAlgebraicity/HolomorphicRegularity.lean
-
curl -L -o HolomorphicRegularity.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/AlgebraicGeometry/ComplexGroups/HolomorphicAlgebraicity/HolomorphicRegularity.lean
12.5 kB
| 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 | |