cfahlgren1/math / lean /OAI /Analysis /NodalLength /ComplexDerivatives.lean
cfahlgren1's picture
download
raw
19.6 kB
import OAI.Analysis.NodalLength.Multipliers
namespace OAI
noncomputable section
open scoped ContDiff Bundle ENNReal
open Bundle Manifold MeasureTheory
open scoped ContDiff ENNReal Topology
open MeasureTheory Filter Set
open scoped Topology ENNReal
open MeasureTheory Filter Set
open scoped Topology ENNReal ContDiff
open MeasureTheory Filter Set
open scoped Topology ENNReal ContDiff
open MeasureTheory Filter Set
open scoped Topology ENNReal ContDiff
open MeasureTheory Filter Set
open scoped Topology ContDiff
open Filter Set
open scoped Topology ContDiff
open Filter Set
open scoped Topology ENNReal
open Filter Set MeasureTheory TopologicalSpace
open scoped Topology ContDiff
open Filter Set
open scoped Topology ENNReal
open Filter Set MeasureTheory TopologicalSpace
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory TopologicalSpace
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory Laplacian
open scoped Topology ENNReal ContDiff ComplexConjugate
open Filter Set MeasureTheory Laplacian
open scoped Topology ENNReal ContDiff ComplexConjugate
open Filter Set MeasureTheory Laplacian
open scoped Topology ENNReal NNReal
open Filter Set MeasureTheory
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory
open scoped Topology ENNReal
open Set MeasureTheory Filter
open scoped Topology ENNReal
open Filter Set MeasureTheory
open scoped Topology ENNReal
open Filter Set MeasureTheory
open scoped Topology ENNReal
open Filter Set MeasureTheory
open scoped Topology ContDiff
open Filter Set MeasureTheory
open scoped Topology ContDiff Laplacian
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ContDiff
open Filter Set MeasureTheory
open scoped Topology ENNReal
open Filter Set MeasureTheory
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory
open scoped Topology ENNReal ContDiff CompactlySupported
open Set MeasureTheory
open scoped Topology ENNReal ContDiff CompactlySupported
open Set MeasureTheory
open scoped Topology ENNReal ContDiff CompactlySupported
open Set MeasureTheory
open scoped Topology ContDiff
open Filter Set MeasureTheory
open scoped Topology ContDiff
open Filter Set MeasureTheory
open scoped Topology ContDiff
open Filter Set MeasureTheory
open scoped Topology ContDiff
open Filter Set MeasureTheory
open scoped Topology ContDiff
open Filter Set MeasureTheory
open scoped Topology ContDiff
open Filter Set MeasureTheory
open scoped Topology ContDiff Laplacian
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ContDiff Convolution
open Filter Set MeasureTheory
open scoped Topology ContDiff Convolution
open Filter Set MeasureTheory
open scoped Topology ContDiff Convolution
open Filter Set MeasureTheory
open scoped Topology ContDiff Convolution
open Filter Set MeasureTheory
open scoped Topology ContDiff Convolution
open Filter Set MeasureTheory
open scoped Topology ContDiff Convolution ENNReal
open Filter Set MeasureTheory
open scoped Topology ContDiff ENNReal
open Filter Set MeasureTheory
open scoped Topology ContDiff ENNReal
open Filter Set MeasureTheory
open scoped Topology ContDiff ENNReal
open Filter Set MeasureTheory
open scoped Topology ContDiff
open Filter Set MeasureTheory
open scoped Topology ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ContDiff ENNReal
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ContDiff ENNReal
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ContDiff
open Filter Set MeasureTheory Function
open scoped Topology
open Filter Set MeasureTheory
open scoped Topology ENNReal
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ENNReal
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ENNReal
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ENNReal
open Filter Set MeasureTheory
open scoped Topology ENNReal
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ENNReal
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped BigOperators
open Filter Set MeasureTheory
open scoped BigOperators
open scoped Topology ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ContDiff Convolution
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology
open Filter Set MeasureTheory
open scoped Topology ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ENNReal ContDiff BigOperators
open Filter Set MeasureTheory InnerProductSpace
open scoped Topology ENNReal ContDiff BigOperators
open Filter Set MeasureTheory InnerProductSpace
open scoped BigOperators
open MeasureTheory
open scoped BigOperators
open Set MeasureTheory
open scoped BigOperators
open scoped Classical
open scoped BigOperators Topology ENNReal
open Set MeasureTheory
open scoped BigOperators
open scoped Topology ENNReal ContDiff
open Filter Set MeasureTheory InnerProductSpace
open scoped BigOperators Classical Topology
open Filter Set MeasureTheory
open scoped BigOperators Classical Topology
open Filter Set MeasureTheory
open scoped BigOperators
open Set
open scoped BigOperators Topology
open Set MeasureTheory
open scoped BigOperators
open Set
open scoped BigOperators symmDiff
open Set
open scoped BigOperators
open Set
open scoped BigOperators symmDiff
open Set
open scoped BigOperators Classical
open Set
open scoped BigOperators
open Set
open scoped BigOperators Classical
open Set
open scoped BigOperators Classical
open Set
open scoped Topology ContDiff Convolution
open Filter Set MeasureTheory
open scoped Topology ContDiff Convolution
open Filter Set MeasureTheory
open scoped Topology ContDiff BigOperators
open Filter Set MeasureTheory
open scoped Topology ContDiff BigOperators
open Filter Set MeasureTheory
open scoped Topology ContDiff BigOperators
open Filter Set MeasureTheory
open scoped Topology ContDiff
open Filter Set MeasureTheory
namespace SharpNodal.Profiles
open Carleman
def complexPartial (f : Plane → ℂ) (i : Fin 2) (x : Plane) : ℂ :=
fderiv ℝ f x (EuclideanSpace.single i 1)
def barPartial (f : Plane → ℂ) (x : Plane) : ℂ :=
(complexPartial f 0 x+Complex.I*complexPartial f 1 x)/2
abbrev CSmooth (f : Plane → ℂ) : Prop := ContDiff ℝ ∞ f
lemma csmooth_partial {f : Plane → ℂ} (hf : CSmooth f) (i : Fin 2) :
CSmooth (complexPartial f i) :=
(hf.fderiv_right (by simp : (∞ : ℕ∞ω)+1≤(∞ : ℕ∞ω))).clm_apply contDiff_const
lemma csmooth_ofReal {f : Plane → ℝ} (hf : Smooth f) : CSmooth (fun x =>(f x : ℂ)) :=
Complex.ofRealCLM.contDiff.comp hf
lemma complexPartial_ofReal {f : Plane → ℝ} (hf : Smooth f) (i : Fin 2) (x : Plane) :
complexPartial (fun y =>(f y : ℂ)) i x=(coordPartial f i x : ℂ) := by
have he := Complex.ofRealCLM.hasFDerivAt.comp x (hf.differentiable (by simp) |>.differentiableAt.hasFDerivAt)
exact congrFun (congrArg DFunLike.coe he.fderiv) (EuclideanSpace.single i 1)
lemma complexPartial_add {f g : Plane → ℂ} (hf : CSmooth f) (hg : CSmooth g)
(i : Fin 2) (x : Plane) :
complexPartial (fun y =>f y+g y) i x=complexPartial f i x+complexPartial g i x := by
unfold complexPartial
rw [fderiv_fun_add (hf.differentiable (by simp) |>.differentiableAt)
(hg.differentiable (by simp) |>.differentiableAt)]
rfl
lemma complexPartial_mul {f g : Plane → ℂ} (hf : CSmooth f) (hg : CSmooth g)
(i : Fin 2) (x : Plane) :
complexPartial (fun y =>f y*g y) i x=complexPartial f i x*g x+f x*complexPartial g i x := by
unfold complexPartial
rw [fderiv_fun_mul (hf.differentiable (by simp) |>.differentiableAt)
(hg.differentiable (by simp) |>.differentiableAt)]
simp only [add_apply,smul_apply,smul_eq_mul]
ring
lemma complexPartial_const_mul {f : Plane → ℂ} (hf : CSmooth f) (c : ℂ)
(i : Fin 2) (x : Plane) :
complexPartial (fun y =>c*f y) i x=c*complexPartial f i x := by
rw [complexPartial_mul contDiff_const hf]
simp [complexPartial]
lemma complexPartial_sub {f g : Plane → ℂ} (hf : CSmooth f) (hg : CSmooth g)
(i : Fin 2) (x : Plane) :
complexPartial (fun y =>f y-g y) i x=complexPartial f i x-complexPartial g i x := by
unfold complexPartial
rw [fderiv_fun_sub (hf.differentiable (by simp) |>.differentiableAt)
(hg.differentiable (by simp) |>.differentiableAt)]
rfl
lemma barPartial_add {f g : Plane → ℂ} (hf : CSmooth f) (hg : CSmooth g) (x : Plane) :
barPartial (fun y =>f y+g y) x=barPartial f x+barPartial g x := by
simp only [barPartial,complexPartial_add hf hg]; ring
lemma barPartial_sub {f g : Plane → ℂ} (hf : CSmooth f) (hg : CSmooth g) (x : Plane) :
barPartial (fun y =>f y-g y) x=barPartial f x-barPartial g x := by
simp only [barPartial,complexPartial_sub hf hg]; ring
lemma barPartial_mul {f g : Plane → ℂ} (hf : CSmooth f) (hg : CSmooth g) (x : Plane) :
barPartial (fun y =>f y*g y) x=barPartial f x*g x+f x*barPartial g x := by
simp only [barPartial,complexPartial_mul hf hg]; ring
lemma barPartial_const_mul {f : Plane → ℂ} (hf : CSmooth f) (c : ℂ) (x : Plane) :
barPartial (fun y =>c*f y) x=c*barPartial f x := by
simp only [barPartial,complexPartial_const_mul hf]; ring
def complexGradient (f : Plane → ℝ) (x : Plane) : ℂ :=
(coordPartial f 0 x : ℂ)-Complex.I*(coordPartial f 1 x : ℂ)
lemma csmooth_gradient {f : Plane → ℝ} (hf : Smooth f) : CSmooth (complexGradient f) :=
(csmooth_ofReal (smooth_partial hf 0)).sub (contDiff_const.mul (csmooth_ofReal (smooth_partial hf 1)))
lemma barPartial_gradient {f : Plane → ℝ} (hf : Smooth f) (x : Plane) :
barPartial (complexGradient f) x=(euclideanLaplacian f x : ℂ)/2 := by
unfold barPartial complexGradient
simp only [
complexPartial_sub (csmooth_ofReal (smooth_partial hf 0))
(contDiff_const.mul (csmooth_ofReal (smooth_partial hf 1))),
complexPartial_const_mul (csmooth_ofReal (smooth_partial hf 1)),
complexPartial_ofReal (smooth_partial hf 0),complexPartial_ofReal (smooth_partial hf 1)]
rw [partial_partial hf 0 1]
simp only [euclideanLaplacian,Fin.sum_univ_two,Complex.ofReal_add]
ring_nf
simp only [Complex.I_sq]
ring
end SharpNodal.Profiles
noncomputable section
open scoped Topology ContDiff
open Filter Set MeasureTheory
namespace SharpNodal.Profiles
open Carleman
def cauchyPotential (g : Plane → ℂ) : Plane → ℂ := fun x =>
2*complexGradient (newtonPotential (fun y =>(g y).re)) x+
Complex.I*(2*complexGradient (newtonPotential (fun y =>(g y).im)) x)
lemma smooth_real_component {g : Plane → ℂ} (hg : CSmooth g) :
Smooth (fun x =>(g x).re) := Complex.reCLM.contDiff.comp hg
lemma smooth_imag_component {g : Plane → ℂ} (hg : CSmooth g) :
Smooth (fun x =>(g x).im) := Complex.imCLM.contDiff.comp hg
lemma compact_real_component {g : Plane → ℂ} (hg : HasCompactSupport g) :
HasCompactSupport (fun x =>(g x).re) := hg.comp_left Complex.zero_re
lemma compact_imag_component {g : Plane → ℂ} (hg : HasCompactSupport g) :
HasCompactSupport (fun x =>(g x).im) := hg.comp_left Complex.zero_im
lemma csmooth_cauchyPotential {g : Plane → ℂ} (hg : CSmooth g)
(hc : HasCompactSupport g) : CSmooth (cauchyPotential g) :=
(contDiff_const.mul (csmooth_gradient (smooth_newtonPotential
(smooth_real_component hg) (compact_real_component hc)))).add
(contDiff_const.mul (contDiff_const.mul (csmooth_gradient (smooth_newtonPotential
(smooth_imag_component hg) (compact_imag_component hc)))))
lemma barPartial_cauchyPotential {g : Plane → ℂ} (hg : CSmooth g)
(hc : HasCompactSupport g) (x : Plane) : barPartial (cauchyPotential g) x=g x := by
have hr:=smooth_newtonPotential (smooth_real_component hg) (compact_real_component hc)
have hi:=smooth_newtonPotential (smooth_imag_component hg) (compact_imag_component hc)
unfold cauchyPotential
rw [barPartial_add (contDiff_const.mul (csmooth_gradient hr))
(contDiff_const.mul (contDiff_const.mul (csmooth_gradient hi))),
barPartial_const_mul (csmooth_gradient hr),
barPartial_const_mul (contDiff_const.mul (csmooth_gradient hi)),
barPartial_const_mul (csmooth_gradient hi),barPartial_gradient hr,barPartial_gradient hi,
laplacian_newtonPotential (smooth_real_component hg) (compact_real_component hc),
laplacian_newtonPotential (smooth_imag_component hg) (compact_imag_component hc)]
have he:=Complex.re_add_im (g x)
linear_combination he
lemma norm_complexGradient_le {f : Plane → ℝ} {B : ℝ} {x : Plane}
(hb : ∀i : Fin 2,|coordPartial f i x|≤B) : ‖complexGradient f x‖≤2*B := by
unfold complexGradient
calc
_ ≤ ‖(coordPartial f 0 x : ℂ)‖+‖Complex.I*(coordPartial f 1 x : ℂ)‖ := norm_sub_le _ _
_ ≤ B+B := by simpa only [norm_mul,Complex.norm_I,one_mul,Complex.norm_real,Real.norm_eq_abs] using add_le_add (hb 0) (hb 1)
_ = _ := by ring
lemma norm_cauchyPotential_le {C B : ℝ} (hC : NewtonControl C) (hB : 0≤B)
{g : Plane → ℂ} (hg : CSmooth g) (hc : HasCompactSupport g)
(hs : ∀x,3≤‖x‖ → g x=0) (hb : ∀x∈Metric.ball (0:Plane) 3,‖g x‖≤B)
{x : Plane} (hx : x∈Metric.ball 0 3) : ‖cauchyPotential g x‖≤8*C*B := by
have hsr : ∀x,3≤‖x‖ → (g x).re=0 := fun x hx =>by simp [hs x hx]
have hsi : ∀x,3≤‖x‖ → (g x).im=0 := fun x hx =>by simp [hs x hx]
have hbr : ∀x∈Metric.ball (0:Plane) 3,|(g x).re|≤B := fun x hx =>(Complex.abs_re_le_norm _).trans (hb x hx)
have hbi : ∀x∈Metric.ball (0:Plane) 3,|(g x).im|≤B := fun x hx =>(Complex.abs_im_le_norm _).trans (hb x hx)
have hr:=norm_complexGradient_le (hC.2 _ (smooth_real_component hg) (compact_real_component hc) B hB hsr hbr x hx).2
have hi:=norm_complexGradient_le (hC.2 _ (smooth_imag_component hg) (compact_imag_component hc) B hB hsi hbi x hx).2
unfold cauchyPotential
calc
_ ≤ ‖(2:ℂ)*complexGradient (newtonPotential (fun y =>(g y).re)) x‖+
‖Complex.I*(2*complexGradient (newtonPotential (fun y =>(g y).im)) x)‖ := norm_add_le _ _
_ ≤ 2*(2*(C*B))+2*(2*(C*B)) := by
norm_num only [norm_mul,Complex.norm_I,one_mul,Complex.norm_ofNat]
gcongr
_ = _ := by ring
end SharpNodal.Profiles
noncomputable section
open scoped Topology ContDiff
open Filter Set MeasureTheory
namespace SharpNodal.Profiles
open Carleman
lemma complexPartial_exp {f : Plane → ℂ} (hf : CSmooth f) (i : Fin 2) (x : Plane) :
complexPartial (fun y =>Complex.exp (f y)) i x=Complex.exp (f x)*complexPartial f i x := by
have he:=(hf.differentiable (by simp) |>.differentiableAt (x:=x) |>.hasFDerivAt).cexp
exact congrFun (congrArg DFunLike.coe he.fderiv) (EuclideanSpace.single i 1)
lemma barPartial_exp {f : Plane → ℂ} (hf : CSmooth f) (x : Plane) :
barPartial (fun y =>Complex.exp (f y)) x=Complex.exp (f x)*barPartial f x := by
simp only [barPartial,complexPartial_exp hf]; ring
lemma complexPartial_neg {f : Plane → ℂ} (hf : CSmooth f) (i : Fin 2) (x : Plane) :
complexPartial (fun y => -f y) i x= -complexPartial f i x := by
have he:=(hf.differentiable (by simp) |>.differentiableAt (x:=x) |>.hasFDerivAt).neg
exact congrFun (congrArg DFunLike.coe he.fderiv) (EuclideanSpace.single i 1)
lemma barPartial_neg {f : Plane → ℂ} (hf : CSmooth f) (x : Plane) :
barPartial (fun y => -f y) x= -barPartial f x := by
simp only [barPartial,complexPartial_neg hf]; ring
lemma barPartial_similarity {w α : Plane → ℂ} (hw : CSmooth w) (ha : CSmooth α)
(hc : HasCompactSupport α) (x : Plane) :
barPartial (fun y =>Complex.exp (-cauchyPotential α y)*w y) x=
Complex.exp (-cauchyPotential α x)*(barPartial w x-α x*w x) := by
have hs:=csmooth_cauchyPotential ha hc
rw [barPartial_mul hs.neg.cexp hw,barPartial_exp hs.neg,barPartial_neg hs,
barPartial_cauchyPotential ha hc]
ring
def complexToPlane : ℂ ≃ₗᵢ[ℝ] Plane := Complex.orthonormalBasisOneI.repr
def planeToComplex : Plane ≃ₗᵢ[ℝ] ℂ := complexToPlane.symm
lemma complexToPlane_one : complexToPlane (1:ℂ)=EuclideanSpace.single 0 1 := by
ext i
fin_cases i <;> simp [complexToPlane,Complex.orthonormalBasisOneI_repr_apply]
lemma complexToPlane_I : complexToPlane Complex.I=EuclideanSpace.single 1 1 := by
ext i
fin_cases i <;> simp [complexToPlane,Complex.orthonormalBasisOneI_repr_apply]
lemma holomorphic_of_barPartial_eq_zero {f : Plane → ℂ} {x : Plane}
(hf : DifferentiableAt ℝ f x) (hz : barPartial f x=0) :
DifferentiableAt ℂ (fun z =>f (complexToPlane z)) (planeToComplex x) := by
have hbase : HasFDerivAt f (fderiv ℝ f x) (complexToPlane (planeToComplex x)) := by
simpa only [planeToComplex,LinearIsometryEquiv.apply_symm_apply] using hf.hasFDerivAt
have hcomp:=hbase.comp (planeToComplex x) complexToPlane.toContinuousLinearEquiv.hasFDerivAt
simp only [Function.comp_def] at hcomp
apply differentiableAt_complex_iff_differentiableAt_real.mpr
refine ⟨hcomp.differentiableAt,?_⟩
rw [hcomp.fderiv]
change (fderiv ℝ f x) (complexToPlane Complex.I)=Complex.I*(fderiv ℝ f x) (complexToPlane 1)
rw [complexToPlane_I,complexToPlane_one]
have hzero : complexPartial f 0 x+Complex.I*complexPartial f 1 x=0 :=
by simpa only [barPartial,div_eq_zero_iff,OfNat.ofNat_ne_zero,or_false] using hz
have hi:=congrArg (fun z : ℂ => Complex.I*z) hzero
simp only [mul_add,←mul_assoc,Complex.I_mul_I,neg_one_mul,mul_zero] at hi
change complexPartial f 1 x=Complex.I*complexPartial f 0 x
linear_combination -hi
end SharpNodal.Profiles
end
end
end
end OAI

Xet Storage Details

Size:
19.6 kB
·
Xet hash:
fcb48039d1b3443083bdf2e525a469bfd4d292a8a7927740852aaf9f73f4a175

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.