lemmaflatTensorLaplacian_congr_nhds (s : Fin3→ℝ) {f g : Coord3→ℝ} {x : Coord3}
(h : f=ᶠ[𝓝 x] g) : flatTensorLaplacian s f x=flatTensorLaplacian s g x :=
lemmafourierMatchingPair_left_fourier {s : Fin3→ℝ}
(hs : ∀x y : ℝ,(1/2)*(x^2+y^2) ≤ s 0*x^2+2*s 1*x*y+s 2*y^2)
(k : ℤ) {f g : ℝ×Coord3→ℝ} {a b pa pb : (Fin2→ℤ) →ℝ} {Bp : ℝ}
(hb : ∀ h,|b h|≤B) (hp : pb ![0,k]=0)
(hf : ∀y : Coord3,y 0∈Icc06→ f (p,y)=flatFourier s a pa y)
(hg : ∀y : Coord3,y 0∈Icc06→ g (p,y)=flatFourier s b pb y)
{x : Coord3} (hx : x 0∈Ioo02) :
(fun y => fourierMatchingPair s k f g (p,y) 0)=ᶠ[𝓝 x] affineFourierField s a pa 10∧
(fun y => fourierMatchingPair s k f g (p,y) 1)=ᶠ[𝓝 x]
flatFourier s (fun h => (Pi.single ![0,k] (1:ℝ) : (Fin2→ℤ) →ℝ) h+b h) pb :=by
proof · 12
lines
havehn : ∀ᶠ y in 𝓝 x,y 0∈Ioo02:=
(isOpen_Ioo.preimage (continuous_apply 0)).mem_nhds hx
constructor
· filter_upwards [hn] with y hy
change y 0+fourierMatchingCutoff (y 0)*f (p,y)=_
rw [fourierMatchingCutoff_left hy.2.le,one_mul,hf y ⟨hy.1.le,by linarith [hy.2]⟩]
simp only [affineFourierField,one_mul,add_zero]
· filter_upwards [hn] with y hy
change flatPhaseMode s ![0,k] 0 y+fourierMatchingCutoff (y 0)*g (p,y)=_
rw [fourierMatchingCutoff_left hy.2.le,one_mul,hg y ⟨hy.1.le,by linarith [hy.2]⟩,
flatFourier_add hs (single_fourier_coeff_bound ![0,k]) hb hy.1,
flatFourier_single,hp,one_mul]
lemmafourierMatchingPair_right_fourier (s : Fin3→ℝ) (k : ℤ) (f g : ℝ×Coord3→ℝ)
(pa pb : (Fin2→ℤ) →ℝ) (hp : pb ![0,k]=0) (p : ℝ) {x : Coord3} (hx : 4<x 0) :
(fun y => fourierMatchingPair s k f g (p,y) 0)=ᶠ[𝓝 x] affineFourierField s (fun _ =>0) pa 10∧
(fun y => fourierMatchingPair s k f g (p,y) 1)=ᶠ[𝓝 x] flatFourier s (Pi.single ![0,k] 1) pb :=by
proof · 9
lines
havehn : ∀ᶠ y in 𝓝 x,4<y 0:= (isOpen_lt continuous_const (continuous_apply 0)).mem_nhds hx
constructor
· filter_upwards [hn] with y hy
change y 0+fourierMatchingCutoff (y 0)*f (p,y)=_
simp only [fourierMatchingCutoff_right hy.le,zero_mul,add_zero,affineFourierField,
flatFourier_zero,one_mul]
· filter_upwards [hn] with y hy
change flatPhaseMode s ![0,k] 0 y+fourierMatchingCutoff (y 0)*g (p,y)=_
rw [fourierMatchingCutoff_right hy.le,zero_mul,add_zero,flatFourier_single,hp,one_mul]
lemmaperiodicSourceMoment_neg (T : ℝ) (u : Coord3→Fin2→ℝ) (r : Fin2→Coord3→ℝ) :
periodicSourceMoment T u (fun j x => -r j x)=-periodicSourceMoment T u r :=by
proof · 11
lines
have hpoint (x : Coord3) : u x 1*(-r 0 x)-u x 0*(-r 1 x)=
-(u x 1*r 0 x-u x 0*r 1 x) :=by ring
ext i
fin_cases i
· change (∫ t,∫ y in0..T,∫ z in0..T,-r 0 ![t,y,z])=-(∫ t,∫ y in0..T,∫ z in0..T,r 0 ![t,y,z])
simp only [intervalIntegral.integral_neg,integral_neg]
· change (∫ t,∫ y in0..T,∫ z in0..T,-r 1 ![t,y,z])=-(∫ t,∫ y in0..T,∫ z in0..T,r 1 ![t,y,z])
simp only [intervalIntegral.integral_neg,integral_neg]
· change (∫ t,∫ y in0..T,∫ z in0..T,u ![t,y,z] 1*(-r 0 ![t,y,z])-u ![t,y,z] 0*(-r 1 ![t,y,z]))=
-(∫ t,∫ y in0..T,∫ z in0..T,u ![t,y,z] 1*r 0 ![t,y,z]-u ![t,y,z] 0*r 1 ![t,y,z])
simp only [hpoint,intervalIntegral.integral_neg,integral_neg]
lemmafourierMatchingResidual_exact {s : Fin3→ℝ}
(hs : ∀x y : ℝ,(1/2)*(x^2+y^2) ≤ s 0*x^2+2*s 1*x*y+s 2*y^2)
(k : ℤ) {f g : ℝ×Coord3→ℝ} {a b pa pb : (Fin2→ℤ) →ℝ} {ABp : ℝ}
(hfs : ContDiffℝ (↑(⊤:ℕ∞)) f) (hgs : ContDiffℝ (↑(⊤:ℕ∞)) g)
(ha : ∀ h,|a h|≤A) (hb : ∀ h,|b h|≤B) (hp : pb ![0,k]=0)
(hf : ∀y : Coord3,y 0∈Icc06→ f (p,y)=flatFourier s a pa y)
(hg : ∀y : Coord3,y 0∈Icc06→ g (p,y)=flatFourier s b pb y)
(j : Fin2) (x : Coord3) (hx : 0<x 0) :
fourierMatchingResidual s k f g j (p,x)=
-symmetricSource (fun _ => flatBackgroundTensor s) (fun y => fourierMatchingPair s k f g (p,y)) j x :=by
proof · 27
lines
havehu : ContDiffℝ (↑(⊤:ℕ∞)) (funy : Coord3=> fourierMatchingPair s k f g (p,y)) :=
(fourierMatchingPair_smooth s k hfs hgs).comp ((contDiff_const (c:=p)).prodMk contDiff_id)
by_cases hmid : x 0∈Icc24
· simp only [fourierMatchingResidual,fourierResidualCutoff_one hmid,neg_mul,one_mul]
havehz : symmetricSource (fun _ => flatBackgroundTensor s) (fun y => fourierMatchingPair s k f g (p,y)) j x=0:=by
rw [flatBackgroundTensor_source hu]
by_cases hleft : x 0<2
· have he := fourierMatchingPair_left_fourier hs k hb hp hf hg (x:=x) ⟨hx,hleft⟩
fin_cases j
· change flatTensorLaplacian s (fun y => fourierMatchingPair s k f g (p,y) 0) x=0
rw [flatTensorLaplacian_congr_nhds s he.1]
exact affineFourierField_harmonic hs ha 10 hx
· change flatTensorLaplacian s (fun y => fourierMatchingPair s k f g (p,y) 1) x=0
rw [flatTensorLaplacian_congr_nhds s he.2]
exact flatFourier_harmonic hs (fourier_left_coeff_bound hb) hx
· havehright : 4<x 0:=by
by_contra hh
exact hmid ⟨le_of_not_gt hleft,le_of_not_gt hh⟩
have he := fourierMatchingPair_right_fourier s k f g pa pb hp p hright
fin_cases j
· change flatTensorLaplacian s (fun y => fourierMatchingPair s k f g (p,y) 0) x=0
rw [flatTensorLaplacian_congr_nhds s he.1]
exact affineFourierField_harmonic hs (B:=0) (by intro h; simp) 10 (by linarith)
· change flatTensorLaplacian s (fun y => fourierMatchingPair s k f g (p,y) 1) x=0
rw [flatTensorLaplacian_congr_nhds s he.2]
exact flatFourier_harmonic hs (single_fourier_coeff_bound ![0,k]) (by linarith)
simp only [fourierMatchingResidual,hz,mul_zero,neg_zero]
lemmafourierMatchingResidual_moments {s : Fin3→ℝ}
(hs : ∀x y : ℝ,(1/2)*(x^2+y^2) ≤ s 0*x^2+2*s 1*x*y+s 2*y^2)
(k : ℤ) {f g : ℝ×Coord3→ℝ} {a b pa pb : (Fin2→ℤ) →ℝ} {ABp ga : ℝ}
(hfs : ContDiffℝ (↑(⊤:ℕ∞)) f) (hgs : ContDiffℝ (↑(⊤:ℕ∞)) g)
(hfp : ∀ p,AngularPeriodic (2*Real.pi) (fun x => f (p,x)))
(hgp : ∀ p,AngularPeriodic (2*Real.pi) (fun x => g (p,x)))
(ha : ∀ h,|a h|≤A) (hb : ∀ h,|b h|≤B) (hp : pb ![0,k]=0)
(hga : 0<ga) (hgb : 0<torusRate s ![0,k])
(hra : ∀ h,a h≠0→ ga≤torusRate s h)
(hrb : ∀ h,b h≠0→ torusRate s ![0,k]≤torusRate s h)
(hf : ∀y : Coord3,y 0∈Icc06→ f (p,y)=flatFourier s a pa y)
(hg : ∀y : Coord3,y 0∈Icc06→ g (p,y)=flatFourier s b pb y) :
periodicSourceMoment (2*Real.pi) (fun y => fourierMatchingPair s k f g (p,y))
(fun j y => fourierMatchingResidual s k f g j (p,y))=0:=by
proof · 41
lines
classical
letaa : Fin2→ (Fin2→ℤ) →ℝ:= ![a,fun _ =>0]
letbb : Fin2→ (Fin2→ℤ) →ℝ:= ![fun h => (Pi.single ![0,k] (1:ℝ) : (Fin2→ℤ) →ℝ) h+b h,Pi.single ![0,k] 1]
havehaa : ∀ e h,|aa e h|≤![A,0] e :=by intro e h; fin_cases e; exact ha h; simp [aa]
havehbb : ∀ e h,|bb e h|≤![1+B,1] e :=by
intro e h
fin_cases e
· exact fourier_left_coeff_bound hb h
· exact single_fourier_coeff_bound _ _
havehraa : ∀ e h,aa e h≠0→ ga≤torusRate s h :=by
intro e h hh
fin_cases e
· exact hra h hh
· exact False.elim (hh rfl)
havehrbb : ∀ e h,bb e h≠0→ torusRate s ![0,k]≤torusRate s h :=by
intro e h hh
fin_cases e
· exact fourier_single_plus_rate hrb h hh
· by_cases he : h=![0,k]
· subst h; exact le_rfl
· exact False.elim (hh (Pi.single_eq_of_ne he 1))
have he (e : Fin2) (x : Coord3) (hx : x 0=![1,5] e) :
(fun y => fourierMatchingPair s k f g (p,y) 0)=ᶠ[𝓝 x] affineFourierField s (aa e) pa 10∧
(fun y => fourierMatchingPair s k f g (p,y) 1)=ᶠ[𝓝 x] flatFourier s (bb e) pb :=by
fin_cases e
· exact fourierMatchingPair_left_fourier hs k hb hp hf hg ⟨by simpa using hx ▸ (show (0:ℝ)<1by norm_num),by simpa using hx ▸ (show (1:ℝ)<2by norm_num)⟩
· exact fourierMatchingPair_right_fourier s k f g pa pb hp p (by simpa using hx ▸ (show (4:ℝ)<5by norm_num))
have hrs (j : Fin2) : tsupport (fun y => -fourierMatchingResidual s k f g j (p,y))⊆{x | x 0∈Icc15} :=by
rw [show (fun y => -fourierMatchingResidual s k f g j (p,y))= -(fun y => fourierMatchingResidual s k f g j (p,y)) from rfl,tsupport_neg]
exact fourierMatchingResidual_support s k f g p j
have hre (j : Fin2) (x : Coord3) (hx : x 0∈Icc15) :
-fourierMatchingResidual s k f g j (p,x)= symmetricSource (fun _ => flatBackgroundTensor s)
(fun y => fourierMatchingPair s k f g (p,y)) j x :=by
rw [fourierMatchingResidual_exact hs k hfs hgs ha hb hp hf hg j x (by linarith [hx.1]),neg_neg]
havehu : ContDiffℝ (↑(⊤:ℕ∞)) (funy : Coord3=> fourierMatchingPair s k f g (p,y)) :=
(fourierMatchingPair_smooth s k hfs hgs).comp ((contDiff_const (c:=p)).prodMk contDiff_id)
have hm := fourier_matching_three_moments hs haa hbb (fun _ => hga) (fun _ => hgb)
hraa hrbb (bynorm_num : (0:ℝ)<1) (bynorm_num : (1:ℝ)≤5)
hu
(fourierMatchingPair_periodic s k hfp hgp p) (fun e x hx => (he e x hx).1) (fun e x hx => (he e x hx).2) hrs hre
simpa only [neg_neg,Function.comp_apply] using hm.2