Buckets:
import OAI.Analysis.NodalLength.LocalLength
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
open scoped Topology ContDiff
open Filter Set MeasureTheory
open scoped Topology ContDiff
open Filter Set MeasureTheory
open scoped Topology ContDiff
open Filter Set MeasureTheory ComplexConjugate
open scoped Topology ContDiff
open Filter Set MeasureTheory ComplexConjugate
open scoped Topology NNReal BoundedContinuousFunction
open Filter Set Metric
open scoped Topology ContDiff
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 ComplexConjugate BigOperators
open Filter Set Metric Complex MeromorphicOn
open scoped Topology ComplexConjugate BigOperators
open Filter Set Metric Complex MeromorphicOn
open scoped Topology ComplexConjugate BigOperators
open Filter Set Metric Complex
open scoped Topology ContDiff ENNReal
open Set MeasureTheory Metric
open scoped Topology
open Set Metric
open scoped Topology ComplexConjugate BigOperators
open Filter Set Metric Complex MeromorphicOn
open scoped Topology
open Set Metric Complex
open scoped Topology
open Set Metric
open scoped Topology ContDiff ENNReal
open Set MeasureTheory Metric
open scoped Topology
open Set Metric Complex MeasureTheory
open scoped ENNReal Topology
open Set Metric MeasureTheory TopologicalSpace Function
open scoped Topology ENNReal
open Set Metric MeasureTheory Filter
open scoped Topology ENNReal
open Set Metric MeasureTheory Filter
open scoped Topology ENNReal
open Set Metric MeasureTheory
open scoped Topology ComplexConjugate BigOperators ENNReal
open Filter Set Metric Complex MeasureTheory MeromorphicOn
open scoped Topology ContDiff Convolution ENNReal
open Filter Set MeasureTheory Metric
open scoped Topology ContDiff NNReal ENNReal
open Filter Set Metric MeasureTheory
open scoped Topology ContDiff NNReal ENNReal
open Filter Set Metric MeasureTheory
open scoped Topology ContDiff ENNReal
open Filter Set MeasureTheory Metric
open scoped Topology ContDiff ENNReal
open Filter Set Metric MeasureTheory
open scoped Topology ContDiff ENNReal
open Filter Set Metric MeasureTheory
open scoped Topology ContDiff Convolution
open Filter Set Metric MeasureTheory
namespace SharpNodal.Profiles
open Carleman
lemma l2norm_add_le {f g : Plane → ℝ} (hf : Smooth f) (hg : Smooth g)
(hcf : HasCompactSupport f) (hcg : HasCompactSupport g) :
l2norm (fun x=>f x+g x)≤l2norm f+l2norm g := by
have hp:=pairing_sq_le hf hg hcf hcg
have ha:=l2norm_sq f
have hb:=l2norm_sq g
have hc:=l2norm_sq (fun x=>f x+g x)
rw [l2sq_add hf hg hcf hcg] at hc
have hh : (∫x,f x*g x)≤l2norm f*l2norm g := by
have hp' : (∫x,f x*g x)^2≤(l2norm f*l2norm g)^2:=by rw [mul_pow,ha,hb]; exact hp
nlinarith only [hp',mul_nonneg (l2norm_nonneg f) (l2norm_nonneg g)]
nlinarith [l2norm_nonneg (fun x=>f x+g x),l2norm_nonneg f,l2norm_nonneg g]
lemma l2norm_const_mul (f : Plane → ℝ) (c : ℝ) :
l2norm (fun x=>c*f x)=|c| *l2norm f := by
unfold l2norm
rw [l2sq_const_mul,Real.sqrt_mul (sq_nonneg c),Real.sqrt_sq_eq_abs]
lemma memLp_smooth_compact {f : Plane → ℝ} (hf : Smooth f) (hc : HasCompactSupport f) : MemLp f 2 := by
apply (memLp_two_iff_integrable_sq hf.continuous.aestronglyMeasurable).mpr
simpa only [pow_two] using integrable_mul_compact_left hf hf hc
lemma kernel_global_L2_bound {f g : Plane → ℝ} (hf : MemLp f 2) (hg : MemLp g 2) (x : Plane) :
|rconv f g x|≤l2norm f*l2norm g := by
have hh:=integral_abs_mul_le_sqrt hf (hg.comp_measurePreserving ((volume : Measure Plane).measurePreserving_sub_left x))
simp only [Function.comp_apply] at hh
rw [integral_sub_left_eq_self (fun y=>g y^2) volume x] at hh
simpa only [rconv_eq,l2norm,l2sq,pow_two] using hh
lemma rconv_support_bound {f g : Plane → ℝ} {r s : ℝ}
(hf : ∀x,r≤‖x‖ → f x=0) (hg : ∀x,s≤‖x‖ → g x=0)
{x : Plane} (hx : r+s≤‖x‖) : rconv f g x=0 := by
rw [rconv_eq]
apply integral_eq_zero_of_ae
filter_upwards [] with y
by_cases hy : r≤‖y‖
· simp [hf y hy]
· have hz : s≤‖x-y‖:=by have:=norm_sub_le x y; have h:=norm_add_le (x-y) y; rw [sub_add_cancel] at h; linarith
simp [hg (x-y) hz]
lemma l2norm_support_bound {f : Plane → ℝ} (hf : Smooth f) (hc : HasCompactSupport f)
{B : ℝ} (hB : 0≤B) (hb : ∀x,|f x|≤B) (hs : ∀x,1≤‖x‖ → f x=0) :
l2norm f≤2*B := by
have he : (fun x=>f x*f x)=(ball (0:Plane) 1).indicator (fun x=>f x*f x) := by
funext x
by_cases hx : x∈ball (0:Plane) 1
· simp only [indicator_of_mem hx]
· simp only [indicator_of_notMem hx,hs x (by simpa only [mem_ball_zero_iff,not_lt] using hx),zero_mul]
have hi : l2sq f≤Real.pi*B^2 := by
rw [l2sq,he,integral_indicator measurableSet_ball]
have hh:=integral_mono_ae ((integrable_mul_compact_left hf hf hc).integrableOn)
(integrableOn_const (C:=B^2) (s:=ball (0:Plane) 1) measure_ball_ne_top)
(Eventually.of_forall (fun x=>show f x*f x≤B^2 by have:=hb x; nlinarith [sq_abs (f x),abs_nonneg (f x)]))
have hv : (volume.restrict (ball (0:Plane) 1)).real univ=Real.pi := by
rw [measureReal_def,Measure.restrict_apply_univ]
exact volume_unit_disk_real
simpa only [integral_const,hv,smul_eq_mul] using hh
nlinarith [l2norm_sq f,l2norm_nonneg f,Real.pi_lt_four,sq_nonneg B]
def localNewton (g : Plane → ℝ) : Plane → ℝ := fun x=>(2*Real.pi)⁻¹*rconv logParametrix g x
lemma smooth_localNewton {g : Plane → ℝ} (hg : Smooth g) (hc : HasCompactSupport g) :
Smooth (localNewton g) := contDiff_const.mul (smooth_rconv integrable_logParametrix hg hc)
lemma compact_localNewton {g : Plane → ℝ} (hc : HasCompactSupport g) :
HasCompactSupport (localNewton g) :=
(compact_logParametrix.convolution (ContinuousLinearMap.mul ℝ ℝ) hc).mul_left
lemma localNewton_partial {g : Plane → ℝ} (hg : Smooth g) (hc : HasCompactSupport g) (i : Fin 2) :
coordPartial (localNewton g) i=localNewton (coordPartial g i) := by
funext x
change coordPartial (fun y=>(2*Real.pi)⁻¹*rconv logParametrix g y) i x=(2*Real.pi)⁻¹*rconv logParametrix (coordPartial g i) x
rw [partial_const_mul (smooth_rconv integrable_logParametrix hg hc),partial_rconv integrable_logParametrix hg hc]
lemma laplacian_localNewton {g : Plane → ℝ} (hg : Smooth g) (hc : HasCompactSupport g) (x : Plane) :
euclideanLaplacian (localNewton g) x=g x+(2*Real.pi)⁻¹*rconv parametrixKernel g x := by
change euclideanLaplacian (fun y=>(2*Real.pi)⁻¹*rconv logParametrix g y) x=_
rw [laplacian_const_mul (smooth_rconv integrable_logParametrix hg hc)]
dsimp only
rw [laplacian_parametrix_convolution hg hc]
field_simp
lemma parametrixKernel_inner {x : Plane} (hx : ‖x‖<1/8) : parametrixKernel x=0 := by
have he : parametrixCorrection=ᶠ[𝓝 x](fun _=>0) := by
filter_upwards [continuous_norm.continuousAt.eventually (eventually_lt_nhds hx)] with y hy
have hχ : parametrixCutoff y=1:=parametrixCutoff.one_of_mem_closedBall (by simpa only [parametrixCutoff,mem_closedBall_zero_iff] using hy.le)
simp only [parametrixCorrection,hχ,sub_self,zero_mul]
rw [parametrixKernel,laplacian_germ he]
simp only [euclideanLaplacian,show coordPartial (fun _ : Plane=>(0:ℝ))=(fun _ _=>0) by funext i z; simp [coordPartial]]
simp
lemma localNewton_equation {g : Plane → ℝ} (hg : Smooth g) (hc : HasCompactSupport g)
(hs : ∀x,(1/64:ℝ)≤‖x‖ → g x=0) {x : Plane} (hx : ‖x‖<1/64) :
euclideanLaplacian (localNewton g) x=g x := by
rw [laplacian_localNewton hg hc]
suffices rconv parametrixKernel g x=0 by simp [this]
rw [rconv_eq]
apply integral_eq_zero_of_ae
filter_upwards [] with y
by_cases hy : (1/64:ℝ)≤‖x-y‖
· simp [hs _ hy]
· have hny : ‖y‖<1/8:=by
have hh:=norm_sub_le x (x-y)
rw [sub_sub_cancel] at hh
linarith
simp [parametrixKernel_inner hny]
lemma l2sq_hessian_cross {f : Plane → ℝ} (hf : Smooth f) (hc : HasCompactSupport f) :
(∫x,coordPartial (coordPartial f 0) 0 x*coordPartial (coordPartial f 1) 1 x)=
l2sq (coordPartial (coordPartial f 0) 1) := by
rw [integral_partial_mul (smooth_partial hf 0) (smooth_partial (smooth_partial hf 1) 1) (compact_partial hc 0) 0]
have he : coordPartial (coordPartial (coordPartial f 1) 1) 0=
coordPartial (coordPartial (coordPartial f 0) 1) 1 := by
funext x
rw [partial_partial (smooth_partial hf 1) 1 0]
congr 1
funext y
exact partial_partial hf 1 0 y
rw [he,integral_mul_partial (smooth_partial hf 0) (smooth_partial (smooth_partial hf 0) 1)
(compact_partial (compact_partial hc 0) 1) 1,neg_neg]
rfl
lemma l2sq_hessian_identity {f : Plane → ℝ} (hf : Smooth f) (hc : HasCompactSupport f) :
l2sq (euclideanLaplacian f)=l2sq (coordPartial (coordPartial f 0) 0)+
l2sq (coordPartial (coordPartial f 1) 1)+2*l2sq (coordPartial (coordPartial f 0) 1) := by
have he : euclideanLaplacian f=(fun x=>coordPartial (coordPartial f 0) 0 x+coordPartial (coordPartial f 1) 1 x):=by
funext x; simp only [euclideanLaplacian,Fin.sum_univ_two]
rw [he,l2sq_add (smooth_partial (smooth_partial hf 0) 0) (smooth_partial (smooth_partial hf 1) 1)
(compact_partial (compact_partial hc 0) 0) (compact_partial (compact_partial hc 1) 1),l2sq_hessian_cross hf hc]
lemma l2norm_hessian_le {f : Plane → ℝ} (hf : Smooth f) (hc : HasCompactSupport f) (i j : Fin 2) :
l2norm (coordPartial (coordPartial f i) j)≤l2norm (euclideanLaplacian f) := by
apply Real.sqrt_le_sqrt
have hh:=l2sq_hessian_identity hf hc
fin_cases i <;> fin_cases j <;> simp only [Fin.zero_eta,Fin.isValue,Fin.mk_one]
· linarith [l2sq_nonneg (coordPartial (coordPartial f 1) 1),l2sq_nonneg (coordPartial (coordPartial f 0) 1)]
· linarith [l2sq_nonneg (coordPartial (coordPartial f 0) 0),l2sq_nonneg (coordPartial (coordPartial f 1) 1),l2sq_nonneg (coordPartial (coordPartial f 0) 1)]
· rw [show coordPartial (coordPartial f 1) 0=coordPartial (coordPartial f 0) 1 from funext (partial_partial hf 1 0)]
linarith [l2sq_nonneg (coordPartial (coordPartial f 0) 0),l2sq_nonneg (coordPartial (coordPartial f 1) 1),l2sq_nonneg (coordPartial (coordPartial f 0) 1)]
· linarith [l2sq_nonneg (coordPartial (coordPartial f 0) 0),l2sq_nonneg (coordPartial (coordPartial f 0) 1)]
lemma l2norm_gradient_le {f : Plane → ℝ} (hf : Smooth f) (hc : HasCompactSupport f) (i : Fin 2) :
l2norm (coordPartial f i)≤l2norm f+l2norm (euclideanLaplacian f) := by
have hh:=l2sq_nonneg (fun x=>euclideanLaplacian f x+f x)
rw [l2sq_add (smooth_laplacian hf) hf (compact_laplacian hc) hc,integral_laplacian_mul hf hc] at hh
have hi : l2sq (coordPartial f i)≤∑j:Fin 2,l2sq (coordPartial f j):=
Finset.single_le_sum (fun j _=>l2sq_nonneg (coordPartial f j)) (Finset.mem_univ i)
change 0≤l2sq (euclideanLaplacian f)+l2sq f+2*(-∑j:Fin 2,l2sq (coordPartial f j)) at hh
have hx:=mul_nonneg (l2norm_nonneg f) (l2norm_nonneg (euclideanLaplacian f))
nlinarith [l2norm_sq f,l2norm_sq (euclideanLaplacian f),l2norm_sq (coordPartial f i),
l2norm_nonneg f,l2norm_nonneg (euclideanLaplacian f),l2norm_nonneg (coordPartial f i),
l2sq_nonneg f,l2sq_nonneg (euclideanLaplacian f)]
lemma memLp_logParametrix : MemLp logParametrix 2 :=
(memLp_two_iff_integrable_sq (parametrixCutoff.continuous.measurable.mul measurable_id.norm.log |>.aestronglyMeasurable)).mpr integrable_logParametrix_sq
lemma localNewton_L2_bounds : ∃C:ℝ,1≤C ∧ ∀g:Plane → ℝ, Smooth g → HasCompactSupport g →
(∀x,(1/64:ℝ)≤‖x‖ → g x=0) →
l2norm (localNewton g)≤C*l2norm g ∧
(∀i,l2norm (coordPartial (localNewton g) i)≤C*l2norm g) ∧
(∀i j,l2norm (coordPartial (coordPartial (localNewton g) i) j)≤C*l2norm g) ∧
(∀x,|localNewton g x|≤C*l2norm g) := by
let c : ℝ := (2*Real.pi)⁻¹
let B : ℝ := 2*c*l2norm logParametrix
let D : ℝ := 1+2*c*l2norm parametrixKernel
have hc : 0<c:=inv_pos.mpr (mul_pos (by norm_num) Real.pi_pos)
have hB : 0≤B:=mul_nonneg (by positivity) (l2norm_nonneg _)
have hD : 1≤D:=by dsimp [D]; nlinarith [l2norm_nonneg parametrixKernel]
refine ⟨1+B+D,by linarith,?_⟩
intro g hg hcomp hs
have hm:=memLp_smooth_compact hg hcomp
have hkg:=smooth_rconv (smooth_parametrixKernel.continuous.integrable_of_hasCompactSupport compact_parametrixKernel) hg hcomp
have hcKg : HasCompactSupport (rconv parametrixKernel g) :=compact_parametrixKernel.convolution (ContinuousLinearMap.mul ℝ ℝ) hcomp
have hQcg : HasCompactSupport (rconv logParametrix g) :=compact_logParametrix.convolution (ContinuousLinearMap.mul ℝ ℝ) hcomp
have hQ : l2norm (rconv logParametrix g)≤2*(l2norm logParametrix*l2norm g) := by
apply l2norm_support_bound (smooth_rconv integrable_logParametrix hg hcomp) hQcg (mul_nonneg (l2norm_nonneg _) (l2norm_nonneg _))
(kernel_global_L2_bound memLp_logParametrix hm)
intro x hx
exact rconv_support_bound (fun y hy=>logParametrix_zero hy) hs (by linarith)
have hK : l2norm (rconv parametrixKernel g)≤2*(l2norm parametrixKernel*l2norm g) := by
apply l2norm_support_bound hkg hcKg (mul_nonneg (l2norm_nonneg _) (l2norm_nonneg _))
(kernel_global_L2_bound (memLp_smooth_compact smooth_parametrixKernel compact_parametrixKernel) hm)
intro x hx
exact rconv_support_bound (r:=1/3) (fun y hy=>parametrixKernel_zero (by linarith)) hs (by linarith)
have h0 : l2norm (localNewton g)≤B*l2norm g := by
change l2norm (fun x=>c*rconv logParametrix g x)≤_
rw [l2norm_const_mul,abs_of_pos hc]
dsimp [B,c] at *
nlinarith
have hL : l2norm (euclideanLaplacian (localNewton g))≤D*l2norm g := by
rw [funext (laplacian_localNewton hg hcomp)]
have hh:=l2norm_add_le hg (contDiff_const.mul hkg) hcomp hcKg.mul_left (f:=g) (g:=fun x=>c*rconv parametrixKernel g x)
rw [l2norm_const_mul,abs_of_pos hc] at hh
dsimp [D,c] at *
nlinarith
have h1 (i) : l2norm (coordPartial (localNewton g) i)≤(B+D)*l2norm g :=
(l2norm_gradient_le (smooth_localNewton hg hcomp) (compact_localNewton hcomp) i).trans (by nlinarith)
have h2 (i j) : l2norm (coordPartial (coordPartial (localNewton g) i) j)≤D*l2norm g :=
(l2norm_hessian_le (smooth_localNewton hg hcomp) (compact_localNewton hcomp) i j).trans hL
refine ⟨h0.trans ?_,fun i=>(h1 i).trans ?_,fun i j=>(h2 i j).trans ?_,?_⟩
· nlinarith [l2norm_nonneg g]
· nlinarith [l2norm_nonneg g]
· nlinarith [l2norm_nonneg g]
· intro x
have hh:=kernel_global_L2_bound memLp_logParametrix hm x
change |c*rconv logParametrix g x|≤_
rw [abs_mul,abs_of_pos hc]
have hh':=mul_le_mul_of_nonneg_left hh hc.le
dsimp [B] at *
nlinarith [mul_nonneg hc.le (mul_nonneg (l2norm_nonneg logParametrix) (l2norm_nonneg g)), l2norm_nonneg g]
namespace Elliptic
abbrev Kind := Option (Fin 2) × Fin 2
def jet (f : Plane → ℝ) : Kind → Plane → ℝ
| (none,i) => coordPartial (localNewton f) i
| (some j,i) => coordPartial (coordPartial (localNewton f) j) i
def operator (a : Kind → Plane → ℝ) (f : Plane → ℝ) : Plane → ℝ :=
fun x=>∑α,a α x*jet f α x
def Supported (f : Plane → ℝ) : Prop := ∀x,(1/64:ℝ)≤‖x‖ → f x=0
def Good (f : Plane → ℝ) : Prop := Smooth f ∧ HasCompactSupport f ∧ Supported f
lemma good_partial {f} (hf : Good f) (i) : Good (coordPartial f i) := by
refine ⟨smooth_partial hf.1 i,compact_partial hf.2.1 i,?_⟩
intro x hx
have hsub : tsupport f⊆closedBall (0:Plane) (1/64) := by
apply closure_minimal ?_ isClosed_closedBall
intro y hy
exact mem_closedBall_zero_iff.mpr (le_of_lt (lt_of_not_ge (fun hh=>hy (hf.2.2 y hh))))
by_cases hstrict : (1/64:ℝ)<‖x‖
· apply image_eq_zero_of_notMem_tsupport
intro h
have := hsub (partial_tsupport_subset f i h)
rw [mem_closedBall_zero_iff] at this
linarith
· have he : ‖x‖=(1/64:ℝ):=le_antisymm (le_of_not_gt hstrict) hx
have hv : ∀ᶠy in 𝓝[>] (1:ℝ),coordPartial f i (y • x)=0 := by
filter_upwards [self_mem_nhdsWithin] with y hy
apply image_eq_zero_of_notMem_tsupport
intro h
have hmem:=hsub (partial_tsupport_subset f i h)
rw [mem_closedBall_zero_iff,norm_smul,Real.norm_eq_abs,abs_of_pos (by exact lt_trans zero_lt_one hy),he] at hmem
have hy' : 1<y:=hy
linarith
have ht0 : Continuous (fun y:ℝ=>y • x):=continuous_id.smul continuous_const
have ht : Tendsto (fun y:ℝ=>coordPartial f i (y • x)) (𝓝[>] 1) (𝓝 (coordPartial f i x)) := by
have ht' : ContinuousAt (fun y:ℝ=>coordPartial f i (y • x)) 1 := ((smooth_partial hf.1 i).continuous.comp ht0).continuousAt
simpa only [one_smul] using ht'.tendsto.mono_left (nhdsWithin_le_nhds (s:=Ioi (1:ℝ)))
exact tendsto_nhds_unique ht (tendsto_const_nhds.congr' (hv.mono (fun _ h=>h.symm)))
lemma smooth_jet {f} (hf : Good f) (α : Kind) : Smooth (jet f α) := by
rcases α with ⟨j,i⟩; cases j with
|none=>exact smooth_partial (smooth_localNewton hf.1 hf.2.1) i
|some j=>exact smooth_partial (smooth_partial (smooth_localNewton hf.1 hf.2.1) j) i
lemma compact_jet {f} (hf : Good f) (α : Kind) : HasCompactSupport (jet f α) := by
rcases α with ⟨j,i⟩; cases j with
|none=>exact compact_partial (compact_localNewton hf.2.1) i
|some j=>exact compact_partial (compact_partial (compact_localNewton hf.2.1) j) i
lemma partial_jet {f} (hf : Good f) (α : Kind) (k) :
coordPartial (jet f α) k=jet (coordPartial f k) α := by
have hN:=smooth_localNewton hf.1 hf.2.1
rcases α with ⟨j,i⟩; cases j with
|none=>
change coordPartial (coordPartial (localNewton f) i) k=coordPartial (localNewton (coordPartial f k)) i
rw [←localNewton_partial hf.1 hf.2.1 k]
exact funext (partial_partial hN i k)
|some j=>
change coordPartial (coordPartial (coordPartial (localNewton f) j) i) k=coordPartial (coordPartial (localNewton (coordPartial f k)) j) i
rw [←localNewton_partial hf.1 hf.2.1 k]
funext x
rw [partial_partial (smooth_partial hN j) i k]
congr 1
exact funext (partial_partial hN j k)
lemma smooth_operator {a f} (ha : ∀α,Good (a α)) (hf : Good f) : Smooth (operator a f) :=
ContDiff.sum (fun α _=>(ha α).1.mul (smooth_jet hf α))
lemma compact_fun_sum {ι : Type*} {s : Finset ι} {f : ι → Plane → ℝ}
(hf : ∀i∈s,HasCompactSupport (f i)) : HasCompactSupport (fun x=>∑i∈s,f i x) := by
simpa only [Finset.sum_fn] using HasCompactSupport.finset_sum hf
lemma compact_operator {a f} (ha : ∀α,Good (a α)) : HasCompactSupport (operator a f) := by
apply compact_fun_sum
intro α _
exact (ha α).2.1.mul_right
lemma supported_operator {a f} (ha : ∀α,Good (a α)) : Supported (operator a f) := by
intro x hx
apply Finset.sum_eq_zero
intro α _
rw [(ha α).2.2 x hx,zero_mul]
lemma good_operator {a f} (ha : ∀α,Good (a α)) (hf : Good f) : Good (operator a f) :=
⟨smooth_operator ha hf,compact_operator ha,supported_operator ha⟩
lemma partial_sum {ι : Type*} (s : Finset ι) {f : ι → Plane → ℝ}
(hf : ∀i∈s,Smooth (f i)) (j : Fin 2) (x : Plane) :
coordPartial (fun y=>∑i∈s,f i y) j x=∑i∈s,coordPartial (f i) j x := by
unfold coordPartial
rw [fderiv_fun_sum (fun i hi=>(hf i hi).differentiable (by simp) |>.differentiableAt),sum_apply]
lemma partial_operator {a f} (ha : ∀α,Good (a α)) (hf : Good f) (i) :
coordPartial (operator a f) i=(fun x=>operator a (coordPartial f i) x+operator (fun α=>coordPartial (a α) i) f x) := by
funext x
change coordPartial (fun y=>∑α,a α y*jet f α y) i x=_
rw [partial_sum _ (fun α _=>(ha α).1.mul (smooth_jet hf α))]
simp_rw [partial_mul (ha _).1 (smooth_jet hf _),partial_jet hf]
simp only [operator,Finset.sum_add_distrib]
ring
lemma l2norm_mul_le {a f : Plane → ℝ} (ha : Smooth a) (hf : Smooth f) (hc : HasCompactSupport f)
{C : ℝ} (hC : 0≤C) (hb : ∀x,|a x|≤C) : l2norm (fun x=>a x*f x)≤C*l2norm f := by
have hh:=l2sq_coefficient_mul_le ha hf hc hC (fun x _=>hb x)
have hp:=mul_nonneg hC (l2norm_nonneg f)
nlinarith [l2norm_sq (fun x=>a x*f x),l2norm_sq f,l2norm_nonneg (fun x=>a x*f x)]
lemma l2norm_sum_le {ι : Type*} (s : Finset ι) {f : ι → Plane → ℝ}
(hf : ∀i∈s,Smooth (f i)) (hc : ∀i∈s,HasCompactSupport (f i)) :
l2norm (fun x=>∑i∈s,f i x)≤∑i∈s,l2norm (f i) := by
classical
induction s using Finset.induction_on with
|empty=>simp [l2norm,l2sq]
|@insert a s ha ih=>
simp only [Finset.sum_insert ha]
apply (l2norm_add_le (hf a (Finset.mem_insert_self a s))
(ContDiff.sum (fun i hi=>hf i (Finset.mem_insert_of_mem hi))) (hc a (Finset.mem_insert_self a s))
(compact_fun_sum (fun i hi=>hc i (Finset.mem_insert_of_mem hi)))).trans
exact add_le_add_right (ih (fun i hi=>hf i (Finset.mem_insert_of_mem hi)) (fun i hi=>hc i (Finset.mem_insert_of_mem hi))) _
lemma operator_L2_bound {C : ℝ}
(hC : ∀g,Good g → ∀α,l2norm (jet g α)≤C*l2norm g)
{a f} (ha : ∀α,Good (a α)) (hf : Good f) {b : Kind → ℝ}
(hb0 : ∀α,0≤b α) (hb : ∀α x,|a α x|≤b α) :
l2norm (operator a f)≤(∑α,b α)*C*l2norm f := by
apply (l2norm_sum_le Finset.univ (fun α _=>(ha α).1.mul (smooth_jet hf α))
(fun α _=>(compact_jet hf α).mul_left)).trans
calc
(∑α,l2norm (fun x=>a α x*jet f α x))≤∑α,b α*(C*l2norm f):=by
apply Finset.sum_le_sum
intro α _
exact (l2norm_mul_le (ha α).1 (smooth_jet hf α) (compact_jet hf α) (hb0 α) (hb α)).trans
(mul_le_mul_of_nonneg_left (hC f hf α) (hb0 α))
_ = _ := by rw [←Finset.sum_mul]; ring
lemma operator_L2_bounded {C : ℝ} (hC0 : 0≤C)
(hC : ∀g,Good g → ∀α,l2norm (jet g α)≤C*l2norm g)
{a} (ha : ∀α,Good (a α)) : ∃B:ℝ,0≤B ∧ ∀f,Good f → l2norm (operator a f)≤B*l2norm f := by
have h (α) : ∃b:ℝ,0≤b ∧ ∀x,|a α x|≤b := by
obtain ⟨b,hb⟩:=(ha α).1.continuous.norm.bddAbove_range_of_hasCompactSupport (ha α).2.1.norm
refine ⟨max b 0,le_max_right _ _,?_⟩
intro x
have hh : |a α x|≤b:=by simpa only [Real.norm_eq_abs] using hb (mem_range_self x)
exact hh.trans (le_max_left _ _)
choose b hb0 hb using h
exact ⟨(∑α,b α)*C,mul_nonneg (Finset.sum_nonneg (fun α _=>hb0 α)) hC0,fun f hf=>operator_L2_bound hC ha hf hb0 hb⟩
def SNorm : ℕ → (Plane → ℝ) → ℝ
| 0,f => l2norm f
| n+1,f => SNorm n f+∑i:Fin 2,SNorm n (coordPartial f i)
lemma SNorm_nonneg (n : ℕ) (f : Plane → ℝ) : 0≤SNorm n f := by
induction n generalizing f with
|zero=>exact l2norm_nonneg f
|succ n ih=>exact add_nonneg (ih f) (Finset.sum_nonneg (fun i _=>ih _))
lemma SNorm_le_succ (n : ℕ) (f : Plane → ℝ) : SNorm n f≤SNorm (n+1) f := by
exact le_add_of_nonneg_right (Finset.sum_nonneg (fun i _=>SNorm_nonneg n _))
lemma SNorm_partial_le (n : ℕ) (f : Plane → ℝ) (i : Fin 2) : SNorm n (coordPartial f i)≤SNorm (n+1) f := by
exact (Finset.single_le_sum (fun j _=>SNorm_nonneg n (coordPartial f j)) (Finset.mem_univ i)).trans
(le_add_of_nonneg_left (SNorm_nonneg n f))
lemma l2norm_le_SNorm (n : ℕ) (f : Plane → ℝ) : l2norm f≤SNorm n f := by
induction n with
|zero=>rfl
|succ n ih=>exact ih.trans (SNorm_le_succ n f)
lemma SNorm_add_le (n : ℕ) {f g : Plane → ℝ} (hf : Smooth f) (hg : Smooth g)
(hc : HasCompactSupport f) (hd : HasCompactSupport g) :
SNorm n (fun x=>f x+g x)≤SNorm n f+SNorm n g := by
induction n generalizing f g with
|zero=>exact l2norm_add_le hf hg hc hd
|succ n ih=>
change SNorm n (fun x=>f x+g x)+(∑i:Fin 2,SNorm n (coordPartial (fun x=>f x+g x) i))≤_
have he (i) : coordPartial (fun x=>f x+g x) i=(fun x=>coordPartial f i x+coordPartial g i x):=by
funext x
exact partial_add hf hg i x
simp_rw [he]
have hh:=Finset.sum_le_sum (fun i (_:i∈(Finset.univ:Finset (Fin 2)))=>
ih (smooth_partial hf i) (smooth_partial hg i) (compact_partial hc i) (compact_partial hd i))
have hh0:=ih hf hg hc hd
simp only [Finset.sum_add_distrib] at hh
dsimp only [SNorm]
linarith
lemma operator_SNorm_bounded {C : ℝ} (hC0 : 0≤C)
(hC : ∀g,Good g → ∀α,l2norm (jet g α)≤C*l2norm g)
(n : ℕ) {a} (ha : ∀α,Good (a α)) :
∃B:ℝ,0≤B ∧ ∀f,Good f → SNorm n (operator a f)≤B*SNorm n f := by
induction n generalizing a with
|zero=>exact operator_L2_bounded hC0 hC ha
|succ n ih=>
obtain ⟨B,hB,hbound⟩:=ih ha
have hga (i : Fin 2) : ∀α,Good (coordPartial (a α) i):=fun α=>good_partial (ha α) i
have hi (i : Fin 2) := ih (hga i)
choose D hD hdb using hi
refine ⟨B+∑i,D i,add_nonneg hB (Finset.sum_nonneg (fun i _=>hD i)),?_⟩
intro f hf
have hb0:=hbound f hf
have hb (i : Fin 2) : SNorm n (coordPartial (operator a f) i)≤
B*SNorm n (coordPartial f i)+D i*SNorm n f := by
rw [partial_operator ha hf]
exact (SNorm_add_le n (smooth_operator ha (good_partial hf i)) (smooth_operator (hga i) hf)
(compact_operator ha) (compact_operator (hga i))).trans
(add_le_add (hbound _ (good_partial hf i)) (hdb i f hf))
calc
SNorm (n+1) (operator a f)≤B*SNorm n f+∑i,(B*SNorm n (coordPartial f i)+D i*SNorm n f):=
add_le_add hb0 (Finset.sum_le_sum (fun i _=>hb i))
_ = B*SNorm (n+1) f+(∑i,D i)*SNorm n f:=by simp only [SNorm,Finset.sum_add_distrib,←Finset.mul_sum,←Finset.sum_mul]; ring
_ ≤ (B+∑i,D i)*SNorm (n+1) f := by
have := mul_le_mul_of_nonneg_left (SNorm_le_succ n f) (Finset.sum_nonneg (s:=Finset.univ) (fun i _=>hD i))
nlinarith
lemma operator_SNorm_leading {C r : ℝ} (hC0 : 0≤C)
(hC : ∀g,Good g → ∀α,l2norm (jet g α)≤C*l2norm g)
{a} (ha : ∀α,Good (a α))
(hbase : ∀f,Good f → l2norm (operator a f)≤r*l2norm f) (n : ℕ) :
∃B:ℝ,0≤B ∧ ∀f,Good f → SNorm (n+1) (operator a f)≤r*SNorm (n+1) f+B*SNorm n f := by
induction n with
|zero=>
have hi (i : Fin 2) := operator_L2_bounded hC0 hC (fun α=>good_partial (ha α) i)
choose B hB hb using hi
refine ⟨∑i,B i,Finset.sum_nonneg (fun i _=>hB i),?_⟩
intro f hf
have hh (i : Fin 2) : l2norm (coordPartial (operator a f) i)≤r*l2norm (coordPartial f i)+B i*l2norm f:=by
rw [partial_operator ha hf]
exact (l2norm_add_le (smooth_operator ha (good_partial hf i)) (smooth_operator (fun α=>good_partial (ha α) i) hf)
(compact_operator ha) (compact_operator (fun α=>good_partial (ha α) i))).trans
(add_le_add (hbase _ (good_partial hf i)) (hb i f hf))
have hsum:=Finset.sum_le_sum (fun i (_:i∈(Finset.univ:Finset (Fin 2)))=>hh i)
simp only [Finset.sum_add_distrib,←Finset.mul_sum,←Finset.sum_mul] at hsum
have h0:=hbase f hf
dsimp only [SNorm]
nlinarith
|succ n ih=>
obtain ⟨B,hB,hbound⟩:=ih
have hd (i : Fin 2) := operator_SNorm_bounded hC0 hC (n+1) (fun α=>good_partial (ha α) i)
choose D hD hdb using hd
refine ⟨B+∑i,D i,add_nonneg hB (Finset.sum_nonneg (fun i _=>hD i)),?_⟩
intro f hf
have h0:=hbound f hf
have hh (i : Fin 2) : SNorm (n+1) (coordPartial (operator a f) i)≤
r*SNorm (n+1) (coordPartial f i)+B*SNorm n (coordPartial f i)+D i*SNorm (n+1) f := by
rw [partial_operator ha hf]
exact (SNorm_add_le (n+1) (smooth_operator ha (good_partial hf i))
(smooth_operator (fun α=>good_partial (ha α) i) hf) (compact_operator ha)
(compact_operator (fun α=>good_partial (ha α) i))).trans
(add_le_add (hbound _ (good_partial hf i)) (hdb i f hf))
have hsum:=Finset.sum_le_sum (fun i (_:i∈(Finset.univ:Finset (Fin 2)))=>hh i)
simp only [Finset.sum_add_distrib,←Finset.mul_sum,←Finset.sum_mul] at hsum
change SNorm (n+1) (operator a f)+(∑i:Fin 2,SNorm (n+1) (coordPartial (operator a f) i))≤_
have he : SNorm (n+1) f=SNorm n f+∑i:Fin 2,SNorm n (coordPartial f i):=rfl
change _≤r*(SNorm (n+1) f+∑i:Fin 2,SNorm (n+1) (coordPartial f i))+(B+∑i,D i)*SNorm (n+1) f
calc
_ ≤ (r*SNorm (n+1) f+B*SNorm n f)+
(r*(∑i:Fin 2,SNorm (n+1) (coordPartial f i))+B*(∑i:Fin 2,SNorm n (coordPartial f i))+(∑i,D i)*SNorm (n+1) f) := add_le_add h0 hsum
_ = _ := by rw [he]; ring
def iterate (a : Kind → Plane → ℝ) (f : Plane → ℝ) : ℕ → Plane → ℝ
| 0 => f
| n+1 => operator a (iterate a f n)
lemma good_iterate {a f} (ha : ∀α,Good (a α)) (hf : Good f) (n : ℕ) : Good (iterate a f n) := by
induction n with
|zero=>exact hf
|succ n ih=>exact good_operator ha ih
lemma iterate_SNorm_decay {C : ℝ} (hC0 : 0≤C)
(hC : ∀g,Good g → ∀α,l2norm (jet g α)≤C*l2norm g)
{a f} (ha : ∀α,Good (a α)) (hf : Good f)
(hbase : ∀g,Good g → l2norm (operator a g)≤(1/4)*l2norm g) (m : ℕ) :
∃B:ℝ,0≤B ∧ ∀n,SNorm m (iterate a f n)≤B*(1/2:ℝ)^n := by
induction m with
|zero=>
refine ⟨l2norm f,l2norm_nonneg f,?_⟩
intro n
induction n with
|zero=>simp [iterate,SNorm]
|succ n ih=>
have hh:=hbase _ (good_iterate ha hf n)
change l2norm (operator a (iterate a f n))≤_
change l2norm (iterate a f n)≤_ at ih
rw [pow_succ]
nlinarith [mul_nonneg (l2norm_nonneg f) (pow_nonneg (by norm_num : (0:ℝ)≤1/2) n)]
|succ m ih=>
obtain ⟨D,hD,hd⟩:=ih
obtain ⟨E,hE,he⟩:=operator_SNorm_leading hC0 hC ha hbase m
let B:=SNorm (m+1) f+4*E*D
have hB : 0≤B:=add_nonneg (SNorm_nonneg _ _) (by positivity)
refine ⟨B,hB,?_⟩
intro n
induction n with
|zero=>simp only [iterate,pow_zero,mul_one]; dsimp [B]; nlinarith
|succ n ih=>
have hh:=he _ (good_iterate ha hf n)
have hd':=mul_le_mul_of_nonneg_left (hd n) hE
change SNorm (m+1) (operator a (iterate a f n))≤_
rw [pow_succ]
have hp : 0≤(1/2:ℝ)^n:=by positivity
have hhB : 4*E*D≤B:=by dsimp [B]; linarith [SNorm_nonneg (m+1) f]
have hhB':=mul_le_mul_of_nonneg_right hhB hp
nlinarith
def wordPartial : List (Fin 2) → (Plane → ℝ) → Plane → ℝ
| [],f => f
| i::w,f => coordPartial (wordPartial w f) i
lemma wordPartial_append (w v : List (Fin 2)) (f : Plane → ℝ) :
wordPartial (w++v) f=wordPartial w (wordPartial v f) := by
induction w with
|nil=>rfl
|cons i w ih=>simp only [List.cons_append,wordPartial,ih]
lemma good_wordPartial {f} (hf : Good f) (w) : Good (wordPartial w f) := by
induction w with
|nil=>exact hf
|cons i w ih=>exact good_partial ih i
lemma SNorm_wordPartial_le (f : Plane → ℝ) (w) (n : ℕ) :
SNorm n (wordPartial w f)≤SNorm (n+w.length) f := by
induction w generalizing n with
|nil=>simp only [wordPartial,List.length_nil,add_zero,le_refl]
|cons i w ih=>
exact (SNorm_partial_le n (wordPartial w f) i).trans (by simpa only [List.length_cons,Nat.add_right_comm,Nat.add_assoc,Nat.add_comm 1 w.length] using ih (n+1))
lemma wordPartial_newton {f} (hf : Good f) (w) :
wordPartial w (localNewton f)=localNewton (wordPartial w f) := by
induction w with
|nil=>rfl
|cons i w ih=>
rw [wordPartial,ih,localNewton_partial (good_wordPartial hf w).1 (good_wordPartial hf w).2.1]
rfl
structure Regular (f : ℕ → Plane → ℝ) : Prop where
smooth : ∀n,Smooth (f n)
bound : ∀w:List (Fin 2),∃B:ℝ,0≤B ∧ ∀n x,|wordPartial w (f n) x|≤B*(1/2:ℝ)^n
lemma half_summable (B : ℝ) : Summable (fun n:ℕ=>B*(1/2:ℝ)^n) :=
(summable_geometric_of_norm_lt_one (by norm_num : ‖(1/2:ℝ)‖<1)).mul_left B
lemma Regular.summable {f} (hf : Regular f) (x : Plane) : Summable (fun n=>f n x) := by
obtain ⟨B,_,hB⟩:=hf.bound []
exact .of_norm_bounded (half_summable B) (fun n=>by simpa only [wordPartial,Real.norm_eq_abs] using hB n x)
lemma Regular.partial {f} (hf : Regular f) (i) : Regular (fun n=>coordPartial (f n) i) := by
refine ⟨fun n=>smooth_partial (hf.smooth n) i,?_⟩
intro w
obtain ⟨B,hB,hb⟩:=hf.bound (w++[i])
refine ⟨B,hB,?_⟩
simpa only [wordPartial_append,wordPartial] using hb
lemma Regular.derivative_bound {f} (hf : Regular f) :
∃B:ℝ,0≤B ∧ ∀n x,‖fderiv ℝ (f n) x‖≤B*(1/2:ℝ)^n := by
have h (i : Fin 2) := hf.bound [i]
choose B hB hb using h
refine ⟨2*(B 0+B 1),mul_nonneg (by norm_num) (add_nonneg (hB 0) (hB 1)),?_⟩
intro n x
have hg : 0≤(B 0+B 1)*(1/2:ℝ)^n:=mul_nonneg (add_nonneg (hB 0) (hB 1)) (by positivity)
have hh:=fderiv_norm_le_two hg x (fun i=>show |coordPartial (f n) i x|≤(B 0+B 1)*(1/2:ℝ)^n from by
have hh:=hb i n x
change |coordPartial (f n) i x|≤_ at hh
fin_cases i <;> simp only [Fin.isValue,Fin.zero_eta,Fin.mk_one] at hh ⊢ <;> nlinarith [mul_nonneg (hB 0) (pow_nonneg (by norm_num : (0:ℝ)≤1/2) n),
mul_nonneg (hB 1) (pow_nonneg (by norm_num : (0:ℝ)≤1/2) n)])
nlinarith
lemma Regular.hasFDeriv {f} (hf : Regular f) (x) :
HasFDerivAt (fun y=>∑'n,f n y) (∑'n,fderiv ℝ (f n) x) x := by
obtain ⟨B,_,hB⟩:=hf.derivative_bound
exact hasFDerivAt_tsum (half_summable B) (fun n y=>(hf.smooth n).differentiable (by simp) |>.differentiableAt.hasFDerivAt)
hB (hf.summable (0:Plane)) x
lemma Regular.partial_tsum {f} (hf : Regular f) (i) :
coordPartial (fun x=>∑'n,f n x) i=(fun x=>∑'n,coordPartial (f n) i x) := by
funext x
unfold coordPartial
rw [(hf.hasFDeriv x).fderiv]
obtain ⟨B,_,hB⟩:=hf.derivative_bound
have hs : Summable (fun n=>fderiv ℝ (f n) x):=.of_norm_bounded (half_summable B) (fun n=>hB n x)
exact (ContinuousLinearMap.apply ℝ ℝ (EuclideanSpace.single i 1)).map_tsum hs
lemma Regular.contDiff_tsum {f} (hf : Regular f) (m : ℕ) :
ContDiff ℝ m (fun x=>∑'n,f n x) := by
induction m generalizing f with
|zero=>
rw [Nat.cast_zero,contDiff_zero]
obtain ⟨B,_,hB⟩:=hf.bound []
exact continuous_tsum (fun n=>(hf.smooth n).continuous) (half_summable B)
(fun n x=>by simpa only [wordPartial,Real.norm_eq_abs] using hB n x)
|succ m ih=>
rw [show ((m+1:ℕ):ℕ∞ω)=(m:ℕ∞ω)+1 by simp,contDiff_succ_iff_fderiv_apply]
refine ⟨fun x=>(hf.hasFDeriv x).differentiableAt,by simp,?_⟩
intro v
have he : (fun x=>fderiv ℝ (fun y=>∑'n,f n y) x v)=
(fun x=>(v 0)*(∑'n,coordPartial (f n) 0 x)+(v 1)*(∑'n,coordPartial (f n) 1 x)) := by
funext x
conv_lhs => rw [plane_basis_expansion v]
rw [map_add,map_smul,map_smul]
change (v 0)*coordPartial (fun y=>∑'n,f n y) 0 x+(v 1)*coordPartial (fun y=>∑'n,f n y) 1 x=_
rw [hf.partial_tsum 0,hf.partial_tsum 1]
rw [he]
exact (contDiff_const.mul (ih (hf.partial 0))).add (contDiff_const.mul (ih (hf.partial 1)))
lemma Regular.smooth_tsum {f} (hf : Regular f) : Smooth (fun x=>∑'n,f n x) :=
contDiff_infty.mpr (fun m=>hf.contDiff_tsum m)
lemma regular_newton_iterate {C : ℝ} (hC0 : 0≤C)
(hCb : ∀g,Good g → ∀α,l2norm (jet g α)≤C*l2norm g)
(hCs : ∀g,Good g → ∀x,|localNewton g x|≤C*l2norm g)
{a f} (ha : ∀α,Good (a α)) (hf : Good f)
(hbase : ∀g,Good g → l2norm (operator a g)≤(1/4)*l2norm g) :
Regular (fun n=>localNewton (iterate a f n)) := by
refine ⟨fun n=>smooth_localNewton (good_iterate ha hf n).1 (good_iterate ha hf n).2.1,?_⟩
intro w
obtain ⟨B,hB,hb⟩:=iterate_SNorm_decay hC0 hCb ha hf hbase w.length
refine ⟨C*B,mul_nonneg hC0 hB,?_⟩
intro n x
rw [wordPartial_newton (good_iterate ha hf n)]
have hh:=hCs _ (good_wordPartial (good_iterate ha hf n) w) x
have hw : l2norm (wordPartial w (iterate a f n))≤SNorm w.length (iterate a f n) := by
simpa only [SNorm,Nat.zero_add] using SNorm_wordPartial_le (iterate a f n) w 0
exact hh.trans (by have := mul_le_mul_of_nonneg_left (hw.trans (hb n)) hC0; nlinarith only [this])
def fieldJet (h : Plane → ℝ) : Kind → Plane → ℝ
| (none,i) => coordPartial h i
| (some j,i) => coordPartial (coordPartial h j) i
def differential (a : Kind → Plane → ℝ) (h : Plane → ℝ) : Plane → ℝ :=
fun x=>∑α,a α x*fieldJet h α x
lemma Regular.regular_fieldJet {f} (hf : Regular f) (α : Kind) :
Regular (fun n=>fieldJet (f n) α) := by
rcases α with ⟨j,i⟩; cases j with
|none=>exact hf.partial i
|some j=>exact (hf.partial j).partial i
lemma Regular.fieldJet_tsum {f} (hf : Regular f) (α : Kind) :
fieldJet (fun x=>∑'n,f n x) α=(fun x=>∑'n,fieldJet (f n) α x) := by
rcases α with ⟨j,i⟩; cases j with
|none=>exact hf.partial_tsum i
|some j=>change coordPartial (coordPartial (fun x=>∑'n,f n x) j) i=_
rw [hf.partial_tsum j,(hf.partial j).partial_tsum i]
rfl
lemma Regular.differential_tsum {f} (hf : Regular f) (a) (x) :
differential a (fun y=>∑'n,f n y) x=∑'n,differential a (f n) x := by
simp only [differential,hf.fieldJet_tsum]
rw [Summable.tsum_finsetSum (fun α (_ : α∈(Finset.univ : Finset Kind))=>
((hf.regular_fieldJet α).summable x).mul_left (a α x))]
exact Finset.sum_congr rfl (fun α _=> (tsum_mul_left).symm)
lemma Regular.laplacian_tsum {f} (hf : Regular f) (x) :
euclideanLaplacian (fun y=>∑'n,f n y) x=∑'n,euclideanLaplacian (f n) x := by
simp only [euclideanLaplacian,hf.partial_tsum]
simp_rw [fun i=> (hf.partial i).partial_tsum i]
exact (Summable.tsum_finsetSum (fun i (_ : i∈(Finset.univ : Finset (Fin 2)))=>
(((hf.partial i).partial i).summable x))).symm
lemma Regular.summable_laplacian {f} (hf : Regular f) (x) :
Summable (fun n=>euclideanLaplacian (f n) x) := by
exact summable_sum (fun i (_ : i∈(Finset.univ : Finset (Fin 2)))=>(((hf.partial i).partial i).summable x))
def solution (a : Kind → Plane → ℝ) (f : Plane → ℝ) : Plane → ℝ :=
fun x=>∑'n,localNewton (iterate a f n) x
lemma solution_equation {C : ℝ} (hC0 : 0≤C)
(hCb : ∀g,Good g → ∀α,l2norm (jet g α)≤C*l2norm g)
(hCs : ∀g,Good g → ∀x,|localNewton g x|≤C*l2norm g)
{a f} (ha : ∀α,Good (a α)) (hf : Good f)
(hbase : ∀g,Good g → l2norm (operator a g)≤(1/4)*l2norm g) :
Smooth (solution a f) ∧ ∀x,‖x‖<1/64 →
euclideanLaplacian (solution a f) x=f x+differential a (solution a f) x := by
have hr:=regular_newton_iterate hC0 hCb hCs ha hf hbase
refine ⟨hr.smooth_tsum,?_⟩
intro x hx
have he (n) : euclideanLaplacian (localNewton (iterate a f n)) x=iterate a f n x :=
localNewton_equation (good_iterate ha hf n).1 (good_iterate ha hf n).2.1 (good_iterate ha hf n).2.2 hx
have hs : Summable (fun n=>iterate a f n x):=by simpa only [he] using hr.summable_laplacian x
change euclideanLaplacian (fun y=>∑'n,localNewton (iterate a f n) y) x=_
rw [hr.laplacian_tsum]
simp_rw [he]
rw [hs.tsum_eq_zero_add]
congr 1
exact (hr.differential_tsum a x).symm
lemma operator_SNorm_one_contraction
{a} (ha : ∀α,Good (a α))
(h0 : ∀g,Good g → l2norm (operator a g)≤(1/12)*l2norm g)
(h1 : ∀i g,Good g → l2norm (operator (fun α=>coordPartial (a α) i) g)≤(1/12)*l2norm g)
{f} (hf : Good f) : SNorm 1 (operator a f)≤(1/4)*SNorm 1 f := by
have hh (i : Fin 2) : l2norm (coordPartial (operator a f) i)≤
(1/12)*l2norm (coordPartial f i)+(1/12)*l2norm f := by
rw [partial_operator ha hf]
exact (l2norm_add_le (smooth_operator ha (good_partial hf i))
(smooth_operator (fun α=>good_partial (ha α) i) hf) (compact_operator ha)
(compact_operator (fun α=>good_partial (ha α) i))).trans
(add_le_add (h0 _ (good_partial hf i)) (h1 i f hf))
have hb:=h0 f hf
simp only [SNorm,Fin.sum_univ_two]
nlinarith [hh 0,hh 1,l2norm_nonneg (coordPartial f 0),l2norm_nonneg (coordPartial f 1)]
lemma iterate_SNorm_one_decay {a f} (ha : ∀α,Good (a α)) (hf : Good f)
(h1 : ∀g,Good g → SNorm 1 (operator a g)≤(1/4)*SNorm 1 g)
(n : ℕ) : SNorm 1 (iterate a f n)≤SNorm 1 f*(1/2:ℝ)^n := by
induction n with
|zero=>simp [iterate]
|succ n ih=>
have hh:=h1 _ (good_iterate ha hf n)
change SNorm 1 (operator a (iterate a f n))≤_
rw [pow_succ]
nlinarith [mul_nonneg (SNorm_nonneg 1 f) (pow_nonneg (by norm_num : (0:ℝ)≤1/2) n)]
lemma Regular.abs_partial_tsum_le {f} (hf : Regular f) (i : Fin 2) {B : ℝ}
(hB : ∀n x,|coordPartial (f n) i x|≤B*(1/2:ℝ)^n) (x) :
|coordPartial (fun y=>∑'n,f n y) i x|≤2*B := by
rw [hf.partial_tsum]
have hsum := (hf.partial i).summable x
have hnorm := norm_tsum_le_tsum_norm hsum.norm
have hbound := Summable.tsum_le_tsum (fun n=>hB n x) hsum.abs (half_summable B)
rw [tsum_mul_left,tsum_geometric_of_norm_lt_one (by norm_num : ‖(1/2:ℝ)‖<1)] at hbound
simp only [Real.norm_eq_abs] at hnorm
norm_num at hbound
linarith
lemma solution_gradient_bound {C : ℝ} (hC0 : 0≤C)
(hCb : ∀g,Good g → ∀α,l2norm (jet g α)≤C*l2norm g)
(hCs : ∀g,Good g → ∀x,|localNewton g x|≤C*l2norm g)
{a f} (ha : ∀α,Good (a α)) (hf : Good f)
(hbase : ∀g,Good g → l2norm (operator a g)≤(1/4)*l2norm g)
(h1 : ∀g,Good g → SNorm 1 (operator a g)≤(1/4)*SNorm 1 g) :
∀i x,|coordPartial (solution a f) i x|≤2*C*SNorm 1 f := by
have hr:=regular_newton_iterate hC0 hCb hCs ha hf hbase
have hb := iterate_SNorm_one_decay ha hf h1
intro i x
have hbd (n y) : |coordPartial (localNewton (iterate a f n)) i y|≤(C*SNorm 1 f)*(1/2:ℝ)^n := by
rw [localNewton_partial (good_iterate ha hf n).1 (good_iterate ha hf n).2.1]
apply (hCs _ (good_partial (good_iterate ha hf n) i) y).trans
have hw : l2norm (coordPartial (iterate a f n) i)≤SNorm 1 (iterate a f n):=SNorm_partial_le 0 _ i
have := mul_le_mul_of_nonneg_left (hw.trans (hb n)) hC0
nlinarith only [this]
have hh := hr.abs_partial_tsum_le i hbd x
change |coordPartial (solution a f) i x|≤_ at hh
nlinarith only [hh]
end Elliptic
end SharpNodal.Profiles
end
end OAI
import OAI.Analysis.NodalLength.LocalLength
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
Xet Storage Details
- Size:
- 50 kB
- Xet hash:
- abdab90308c30477d4cbdd4e1d4793fc34714dba114ff7ddaaa72dfb1e636023
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.