∃CN₀ : ℕ,0<C∧∀N : ℕ,N₀≤N→0<N→∀a : Fin (2*N) →ℝ,
∃P : Polynomialℝ,P.natDegree<C*N∧
stripSquaredNorm (fun x=>twoJetCombination N a x-P.eval x) ≤Real.exp (-2*(N:ℝ))*stripSquaredNorm (twoJetCombination N a)
have hi := (exp_div_cosh_integrable ha).const_mul ((1-(1/4:ℝ)^2)^(-(1:ℝ)/2))
apply hi.congr
filter_upwards [ae_restrict_mem measurableSet_Ioi] with p hp
rw [pollaczekMajorant_exp hp.le,abs_of_nonneg hp.le,add_mul,Real.exp_add]
ring
lemmasymmetricSechPair_sub_left (f g h : ℝ→ℝ)
(hf : IntegrableOn (sechPairIntegrand f h) (Set.Ioi0))
(hg : IntegrableOn (sechPairIntegrand g h) (Set.Ioi0)) :
symmetricSechPair (fun p=>f p-g p) h=symmetricSechPair f h-symmetricSechPair g h :=by
proof · 7
lines
change (∫ p inSet.Ioi (0:ℝ),sechPairIntegrand (fun p=>f p-g p) h p)=
(∫ p inSet.Ioi (0:ℝ),sechPairIntegrand f h p)-(∫ p inSet.Ioi (0:ℝ),sechPairIntegrand g h p)
rw [←integral_sub hf hg]
apply integral_congr_ae
filter_upwards with p
unfold sechPairIntegrand
ring
havehe : pollaczekMajorant p=(1-(1/4:ℝ)^2)^(-(1:ℝ)/2)*Real.exp (2*Real.artanh (1/4)*|p|) :=by
rw [pollaczekMajorant,meixnerGenerator_exp (by norm_num)]
congr 2; ring
simpa only [he,mul_assoc] using pollaczekCoeff_majorant p n
lemmapollaczekGenerator_pair_integrable {t u : ℝ} (ht : |t|<1) (hu : |u|<1) :
IntegrableOn (sechPairIntegrand (fun p=>pollaczekGenerator p t) (fun p=>pollaczekGenerator p u)) (Set.Ioi0) :=by
proof · 5
lines
apply sechPairIntegrand_exp_integrable (pollaczekGenerator_continuous_p t) (pollaczekGenerator_continuous_p u)
(C:=1) (D:=1) (a:=2*|Real.arctan t|) (b:=2*|Real.arctan u|)
(by norm_num) (by linarith [arctan_quarter_bound ht,arctan_quarter_bound hu])
· intro p;simpa only [one_mul] using pollaczekGenerator_exp_bound_sharp p t
· intro p;simpa only [one_mul] using pollaczekGenerator_exp_bound_sharp p u
lemmakernelJetTruncation_eval (r K : ℕ) (b x : ℝ) :
(kernelJetTruncation r b K).eval x=∑ k∈range K,kernelJetTerm r 0 b x k :=by
proof · 5
lines
simp only [kernelJetTruncation,eval_finsetSum,eval_mul,eval_C,eval_pow,eval_X,
kernelJetTerm,polynomialJet_X_pow,Nat.choose_zero_right,Nat.cast_one,one_mul,Nat.sub_zero]
apply sum_congr rfl
intro k _
ring
lemmakernelJetTruncation_bounds (r K : ℕ) {b x : ℝ} (hb : 0≤b) (hx : 0≤x) :
0≤(kernelJetTruncation r b K).eval x ∧ (kernelJetTruncation r b K).eval x≤cosineKernelJet r 0 b x :=by
proof · 5
lines
have hnon (k : ℕ) : 0≤kernelJetTerm r 0 b x k :=by
simp only [kernelJetTerm,polynomialJet_X_pow]
positivity
rw [kernelJetTruncation_eval]
exact ⟨sum_nonneg (fun k _=>hnon k),(kernelJetTerm_summable r 0 b x).sum_le_tsum (range K) (fun k _=>hnon k)⟩
lemmakernelJetTruncation_L2_tendsto {b δ : ℝ} (hb : 0≤b) (hd : 0<δ)
(hlim : Real.sqrt (b+δ)<Real.pi/2) (r : ℕ) :
Tendsto (funK=>∫ p inSet.Ioi (0:ℝ),
(cosineKernelJet r 0 b (p^2)-(kernelJetTruncation r b K).eval (p^2))^2/Real.cosh (Real.pi*p)) atTop (𝓝 0) :=by
proof · 20
lines
havehc : Continuous (fun x=>cosineKernelJet r 0 b x) := continuous_iff_continuousAt.mpr
(fun x=>(cosineKernelJet_hasDerivAt_right r 0 b x).continuousAt)
have hh := tendsto_integral_of_dominated_convergence (μ:=volume.restrict (Set.Ioi (0:ℝ)))
(fun p=>(cosineKernelJet r 0 b (p^2))^2/Real.cosh (Real.pi*p))
(F:=funK p=>(cosineKernelJet r 0 b (p^2)-(kernelJetTruncation r b K).eval (p^2))^2/Real.cosh (Real.pi*p))
(f:=fun _=>0)
convert! hh ?_ (kernelJetSech_square_integrable hb hd hlim r) ?_ ?_ using1 <;> try simp only [integral_zero]
· intro K
apply Continuous.aestronglyMeasurable
exact (((hc.comp (continuous_id.pow 2)).sub ((kernelJetTruncation r b K).continuous.comp (continuous_id.pow 2))).pow 2).div
(by fun_prop) (fun p=>(Real.cosh_pos _).ne')
· intro K
filter_upwards [ae_restrict_mem measurableSet_Ioi] with p hp
rw [Real.norm_eq_abs,abs_of_nonneg (by positivity)]
apply div_le_div_of_nonneg_right _ (Real.cosh_pos _).le
obtain ⟨hl,hu⟩ := kernelJetTruncation_bounds r K hb (sq_nonneg p)
have hj:=cosineKernelJet_nonneg hb (sq_nonneg p) r 0
nlinarith
· filter_upwards with p
convert! ((tendsto_const_nhds.sub (kernelJetTruncation_tendsto r b (p^2))).pow 2).div_const (Real.cosh (Real.pi*p)) using1; simp
lemmasechPairIntegrand_pollaczekFinite (s : Finsetℕ) (a : ℕ→ℝ) (f : ℝ→ℝ) :
sechPairIntegrand (pollaczekFinite s a) f=
fun p=>∑ n∈s,a n*sechPairIntegrand (fun p=>pollaczekCoeff p n) f p :=by
proof · 5
lines
funext p
simp only [sechPairIntegrand,pollaczekFinite,sum_mul,←sum_add_distrib,sum_div]
apply sum_congr rfl
intro n _
ring
lemmasymmetricSechPair_pollaczekFinite (s : Finsetℕ) (a : ℕ→ℝ) (f : ℝ→ℝ)
(h : ∀ n∈s,IntegrableOn (sechPairIntegrand (fun p=>pollaczekCoeff p n) f) (Set.Ioi0)) :
symmetricSechPair (pollaczekFinite s a) f=∑ n∈s,a n*symmetricSechPair (fun p=>pollaczekCoeff p n) f :=by
proof · 3
lines
change (∫ p inSet.Ioi (0:ℝ),sechPairIntegrand (pollaczekFinite s a) f p)=_
rw [sechPairIntegrand_pollaczekFinite,integral_finsetSum s (fun n hn=>(h n hn).const_mul (a n))]
simp only [integral_const_mul,symmetricSechPair,sechPairIntegrand]
lemmapollaczekFinite_coeff (s : Finsetℕ) (a : ℕ→ℝ) (n : ℕ) :
symmetricSechPair (pollaczekFinite s a) (fun p=>pollaczekCoeff p n)=if n∈s then a n else0:=by
proof · 3
lines
rw [symmetricSechPair_pollaczekFinite s a _ (fun _ _=>pollaczekCoeff_pair_integrable _ n)]
simp only [symmetricSechPair_orthogonal,mul_ite,mul_one,mul_zero]
simp
lemmapollaczekFinite_pair_integrable (s t : Finsetℕ) (a b : ℕ→ℝ) :
IntegrableOn (sechPairIntegrand (pollaczekFinite s a) (pollaczekFinite t b)) (Set.Ioi0) :=by
proof · 4
lines
apply sechPairIntegrand_pollaczekFinite_integrable
intro n _
rw [sechPairIntegrand_comm]
exact sechPairIntegrand_pollaczekFinite_integrable t b _ (fun _ _=>pollaczekCoeff_pair_integrable _ n)
lemmapollaczek_projection_squared_error (s : Finsetℕ) (f : ℝ→ℝ)
(hff : IntegrableOn (sechPairIntegrand f f) (Set.Ioi0))
(hf : ∀ n∈s,IntegrableOn (sechPairIntegrand (fun p=>pollaczekCoeff p n) f) (Set.Ioi0)) :
let a :=fun n=>symmetricSechPair (fun p=>pollaczekCoeff p n) f
proof · 9
lines
symmetricSechPair (fun p=>f p-pollaczekFinite s a p) (fun p=>f p-pollaczekFinite s a p)=
symmetricSechPair f f-∑ n∈s,(a n)^2:=by
intro a
rw [symmetricSechPair_difference_norm f _ hff (pollaczekFinite_pair_integrable _ _ _ _)
(by rw [sechPairIntegrand_comm];exact sechPairIntegrand_pollaczekFinite_integrable s a f hf),
pollaczekFinite_norm,symmetricSechPair_comm f (pollaczekFinite s a),symmetricSechPair_pollaczekFinite s a f hf]
change symmetricSechPair f f-2*(∑ n∈s,a n*a n)+(∑ n∈s,(a n)^2)=_
simp only [←pow_two]
ring
lemmapollaczek_bessel (s : Finsetℕ) (f : ℝ→ℝ)
(hff : IntegrableOn (sechPairIntegrand f f) (Set.Ioi0))
(hf : ∀ n∈s,IntegrableOn (sechPairIntegrand (fun p=>pollaczekCoeff p n) f) (Set.Ioi0)) :
(∑ n∈s,(symmetricSechPair (fun p=>pollaczekCoeff p n) f)^2) ≤ symmetricSechPair f f :=by
proof · 3
lines
have h:=symmetricSechPair_nonneg (fun p=>f p-pollaczekFinite s (fun n=>symmetricSechPair (fun p=>pollaczekCoeff p n) f) p)
rw [pollaczek_projection_squared_error s f hff hf] at h
linarith
lemmasechPairIntegrand_evenFinite (K : ℕ) (a : FinK→ℝ) (f : ℝ→ℝ) :
sechPairIntegrand (evenPollaczekFinite K a) f=
fun p=>∑ j,a j*sechPairIntegrand (fun p=>pollaczekCoeff p (2*j)) f p :=by
proof · 5
lines
funext p
simp only [sechPairIntegrand,evenPollaczekFinite,sum_mul,←sum_add_distrib,sum_div]
apply sum_congr rfl
intro j _
ring
lemmaevenFinite_pair (K : ℕ) (a : FinK→ℝ) (f : ℝ→ℝ)
(hf : ∀j:FinK,IntegrableOn (sechPairIntegrand (fun p=>pollaczekCoeff p (2*j)) f) (Set.Ioi0)) :
symmetricSechPair (evenPollaczekFinite K a) f=
∑ j,a j*symmetricSechPair (fun p=>pollaczekCoeff p (2*j)) f :=by
proof · 3
lines
change (∫ p inSet.Ioi (0:ℝ),sechPairIntegrand (evenPollaczekFinite K a) f p)=_
rw [sechPairIntegrand_evenFinite,integral_finsetSum univ (fun j _=>(hf j).const_mul (a j))]
simp only [integral_const_mul,symmetricSechPair,sechPairIntegrand]
lemmaevenFinite_coeff (K : ℕ) (a : FinK→ℝ) (j : FinK) :
symmetricSechPair (evenPollaczekFinite K a) (fun p=>pollaczekCoeff p (2*j))=a j :=by
proof · 5
lines
rw [evenFinite_pair K a _ (fun i=>pollaczekCoeff_pair_integrable _ _)]
simp only [symmetricSechPair_orthogonal]
have he (i : FinK) : (2*(i:ℕ)=2*j)↔i=j :=by constructor <;> intro h <;> omega
simp only [he,mul_ite,mul_one,mul_zero]
simp
lemmaevenFinite_square_integrable (K : ℕ) (a : FinK→ℝ) :
IntegrableOn (sechPairIntegrand (evenPollaczekFinite K a) (evenPollaczekFinite K a)) (Set.Ioi0) :=by
proof · 4
lines
apply evenFinite_pair_integrable
intro j
rw [sechPairIntegrand_comm]
exact evenFinite_pair_integrable K a _ (fun _=>pollaczekCoeff_pair_integrable _ _)
lemmaeven_projection_error (K : ℕ) (f : ℝ→ℝ)
(hff : IntegrableOn (sechPairIntegrand f f) (Set.Ioi0))
(hf : ∀j:FinK,IntegrableOn (sechPairIntegrand (fun p=>pollaczekCoeff p (2*j)) f) (Set.Ioi0))
(a : FinK→ℝ) :
symmetricSechPair (fun p=>f p-evenPollaczekFinite K a p) (fun p=>f p-evenPollaczekFinite K a p)=
symmetricSechPair f f-2*(∑ j,a j*symmetricSechPair (fun p=>pollaczekCoeff p (2*j)) f)+∑ j,(a j)^2:=by
proof · 3
lines
rw [symmetricSechPair_difference_norm f _ hff (evenFinite_square_integrable K a)
(by rw [sechPairIntegrand_comm];exact evenFinite_pair_integrable K a f hf),
evenFinite_norm,symmetricSechPair_comm f (evenPollaczekFinite K a),evenFinite_pair K a f hf]
lemmaeven_projection_minimal (K : ℕ) (f : ℝ→ℝ)
(hff : IntegrableOn (sechPairIntegrand f f) (Set.Ioi0))
(hf : ∀j:FinK,IntegrableOn (sechPairIntegrand (fun p=>pollaczekCoeff p (2*j)) f) (Set.Ioi0))
(a : FinK→ℝ) :
symmetricSechPair f f-∑j:FinK,(symmetricSechPair (fun p=>pollaczekCoeff p (2*j)) f)^2≤
symmetricSechPair (fun p=>f p-evenPollaczekFinite K a p) (fun p=>f p-evenPollaczekFinite K a p) :=by
proof · 4
lines
rw [even_projection_error K f hff hf a]
have h:=sum_nonneg (s:=univ) (fun (j:FinK) _=>sq_nonneg (a j-symmetricSechPair (fun p=>pollaczekCoeff p (2*j)) f))
simp only [sub_sq,sum_add_distrib,sum_sub_distrib,mul_assoc,←mul_sum] at h
linarith
lemmaeven_projection_bessel (K : ℕ) (f : ℝ→ℝ)
(hff : IntegrableOn (sechPairIntegrand f f) (Set.Ioi0))
(hf : ∀j:FinK,IntegrableOn (sechPairIntegrand (fun p=>pollaczekCoeff p (2*j)) f) (Set.Ioi0)) :
0≤ symmetricSechPair f f-∑j:FinK,(symmetricSechPair (fun p=>pollaczekCoeff p (2*j)) f)^2:=by
proof · 5
lines
have h:=symmetricSechPair_nonneg (fun p=>f p-evenPollaczekFinite K
(fun j=>symmetricSechPair (fun p=>pollaczekCoeff p (2*j)) f) p)
rw [even_projection_error K f hff hf] at h
simp only [←pow_two] at h
linarith
lemmakernelJetTruncation_degree (r n : ℕ) (b : ℝ) :
(kernelJetTruncation r b (n+1)).natDegree≤n :=by
proof · 3
lines
apply natDegree_sum_le_of_forall_le
intro k hk
exact ((natDegree_C_mul_le _ _).trans (show (X^k:Polynomialℝ).natDegree≤k by simp)).trans (byhave:=mem_range.mp hk;omega)
lemmakernelJetSech_pair_integrable {b δ : ℝ} (hb : 0≤b) (hd : 0<δ)
(hlim : Real.sqrt (b+δ)<Real.pi/2) (r n : ℕ) :
IntegrableOn (sechPairIntegrand (fun p=>pollaczekCoeff p n) (fun p=>cosineKernelJet r 0 b (p^2))) (Set.Ioi0) :=by
proof · 9
lines
havehc : Continuous (fun p=>cosineKernelJet r 0 b (p^2)) :=
(continuous_iff_continuousAt.mpr (fun x=>(cosineKernelJet_hasDerivAt_right r 0 b x).continuousAt)).comp
(continuous_id.pow 2)
apply sechPairIntegrand_exp_integrable (pollaczekCoeff_continuous n) hc
(C:=4^n*(1-(1/4:ℝ)^2)^(-(1:ℝ)/2)) (D:=δ^(-(r:ℤ)))
(a:=2*Real.artanh (1/4)) (b:=Real.sqrt (b+δ)) (by positivity)
(by linarith [quarter_artanh_bounds.2]) (pollaczekCoeff_exp_bound n)
intro p
simpa only [sq_abs] using cosineKernelJet_exp_bound hb hd r (abs_nonneg p)
lemmakernelJetSech_norm_integrable {b δ : ℝ} (hb : 0≤b) (hd : 0<δ)
(hlim : Real.sqrt (b+δ)<Real.pi/2) (r : ℕ) :
IntegrableOn (sechPairIntegrand (fun p=>cosineKernelJet r 0 b (p^2)) (fun p=>cosineKernelJet r 0 b (p^2))) (Set.Ioi0) :=by
proof · 7
lines
havehe : sechPairIntegrand (fun p=>cosineKernelJet r 0 b (p^2)) (fun p=>cosineKernelJet r 0 b (p^2))=
fun p=>2*((cosineKernelJet r 0 b (p^2))^2/Real.cosh (Real.pi*p)) :=by
funext p
simp only [sechPairIntegrand,neg_sq]
ring
rw [he]
exact (kernelJetSech_square_integrable hb hd hlim r).const_mul 2
lemmakernelJetSech_parseval_residual {b δ : ℝ} (hb : 0≤b) (hd : 0<δ)
(hlim : Real.sqrt (b+δ)<Real.pi/2) (r : ℕ) :
Tendsto (fun n=>symmetricSechPair (fun p=>cosineKernelJet r 0 b (p^2)) (fun p=>cosineKernelJet r 0 b (p^2))-
∑j:Fin (n+1),(symmetricSechPair (fun p=>pollaczekCoeff p (2*j)) (fun p=>cosineKernelJet r 0 b (p^2)))^2)
atTop (𝓝 0) :=by
proof · 15
lines
let f:=fun p=>cosineKernelJet r 0 b (p^2)
apply squeeze_zero (g:=fun n=>2*(∫ p inSet.Ioi (0:ℝ),
(cosineKernelJet r 0 b (p^2)-(kernelJetTruncation r b (n+1)).eval (p^2))^2/Real.cosh (Real.pi*p))) (fun n=>even_projection_bessel (n+1) f (kernelJetSech_norm_integrable hb hd hlim r)
(fun j=>kernelJetSech_pair_integrable hb hd hlim r (2*j)))
· intro n
obtain ⟨a,ha⟩:=polynomial_evenPollaczekFinite (kernelJetTruncation r b (n+1)) (kernelJetTruncation_degree r n b)
have hh:=even_projection_minimal (n+1) f (kernelJetSech_norm_integrable hb hd hlim r)
(fun j=>kernelJetSech_pair_integrable hb hd hlim r (2*j)) a
rw [←ha] at hh
change _ ≤ symmetricSechPair (fun p=>(fun x=>cosineKernelJet r 0 b x-(kernelJetTruncation r b (n+1)).eval x) (p^2))
(fun p=>(fun x=>cosineKernelJet r 0 b x-(kernelJetTruncation r b (n+1)).eval x) (p^2)) at hh
rw [evenSech_squaredNorm (fun x=>cosineKernelJet r 0 b x-(kernelJetTruncation r b (n+1)).eval x)] at hh
exact hh
· have hh:=((kernelJetTruncation_L2_tendsto hb hd hlim r).comp (tendsto_add_atTop_nat 1)).const_mul 2
simpa only [Function.comp_apply,mul_zero] using hh
lemmafiniteJetSech_pair_integrable (M : ℕ) (a b δ : FinM→ℝ) (r : FinM→ℕ)
(hb : ∀ i,0≤b i) (hd : ∀ i,0<δ i) (hlim : ∀ i,Real.sqrt (b i+δ i)<Real.pi/2) (n : ℕ) :
IntegrableOn (sechPairIntegrand (fun p=>pollaczekCoeff p n) (fun p=>finiteJetCombination M a b r (p^2))) (Set.Ioi0) :=by
proof · 9
lines
havehe : sechPairIntegrand (fun p=>pollaczekCoeff p n) (fun p=>finiteJetCombination M a b r (p^2))=
fun p=>∑ i,a i*sechPairIntegrand (fun p=>pollaczekCoeff p n) (fun p=>cosineKernelJet (r i) 0 (b i) (p^2)) p :=by
funext p
simp only [sechPairIntegrand,finiteJetCombination,mul_sum,←sum_add_distrib,sum_div]
apply sum_congr rfl
intro i _
ring
rw [he]
exact integrable_finsetSum univ (fun i _=>(kernelJetSech_pair_integrable (hb i) (hd i) (hlim i) (r i) n).const_mul _)
lemmafiniteJetSech_norm_integrable (M : ℕ) (a b δ : FinM→ℝ) (r : FinM→ℕ)
(hb : ∀ i,0≤b i) (hd : ∀ i,0<δ i) (hlim : ∀ i,Real.sqrt (b i+δ i)<Real.pi/2) :
IntegrableOn (sechPairIntegrand (fun p=>finiteJetCombination M a b r (p^2)) (fun p=>finiteJetCombination M a b r (p^2))) (Set.Ioi0) :=by
proof · 18
lines
letB:=fun p=>2*(∑ i,(a i)^2)*(∑ i,(cosineKernelJet (r i) 0 (b i) (p^2))^2/Real.cosh (Real.pi*p))
havehB : IntegrableOnB (Set.Ioi0) :=
(integrable_finsetSum univ (fun i _=>kernelJetSech_square_integrable (hb i) (hd i) (hlim i) (r i))).const_mul _
refine hB.mono' ?_ ?_
· apply Continuous.aestronglyMeasurable
havehc:Continuous (fun p=>finiteJetCombination M a b r (p^2)):=
(finiteJetCombination_continuous M a b r).comp (continuous_id.pow 2)
exact ((hc.mul hc).add ((hc.comp continuous_neg).mul (hc.comp continuous_neg))).div
(by fun_prop) (fun p=>(Real.cosh_pos _).ne')
· filter_upwards with p
have hh:=finiteJetTruncation_error_bound M0 a b r hb (sq_nonneg p)
simp only [finiteJetTruncation,kernelJetTruncation,sum_range_zero,smul_zero,sum_const_zero,eval_zero,sub_zero] at hh
simp only [sechPairIntegrand,neg_sq,Real.norm_eq_abs]
rw [abs_of_nonneg (div_nonneg (add_nonneg (mul_self_nonneg _) (mul_self_nonneg _)) (Real.cosh_pos _).le)]
dsimp [B]
rw [←sum_div,←mul_div_assoc]
apply div_le_div_of_nonneg_right _ (Real.cosh_pos _).le
nlinarith
lemmafiniteJetSech_parseval_residual (M : ℕ) (a b δ : FinM→ℝ) (r : FinM→ℕ)
(hb : ∀ i,0≤b i) (hd : ∀ i,0<δ i) (hlim : ∀ i,Real.sqrt (b i+δ i)<Real.pi/2) :
Tendsto (fun n=>symmetricSechPair (fun p=>finiteJetCombination M a b r (p^2)) (fun p=>finiteJetCombination M a b r (p^2))-
∑j:Fin (n+1),(symmetricSechPair (fun p=>pollaczekCoeff p (2*j)) (fun p=>finiteJetCombination M a b r (p^2)))^2)
atTop (𝓝 0) :=by
proof · 16
lines
let f:=fun p=>finiteJetCombination M a b r (p^2)
have hff:=finiteJetSech_norm_integrable M a b δ r hb hd hlim
have hf:=finiteJetSech_pair_integrable M a b δ r hb hd hlim
apply squeeze_zero (g:=fun n=>2*(∫ p inSet.Ioi (0:ℝ),
(finiteJetCombination M a b r (p^2)-(finiteJetTruncation M (n+1) a b r).eval (p^2))^2/Real.cosh (Real.pi*p)))
(fun n=>even_projection_bessel (n+1) f hff (fun j=>hf (2*j)))
· intro n
obtain ⟨c,hc⟩:=polynomial_evenPollaczekFinite (finiteJetTruncation M (n+1) a b r) (finiteJetTruncation_degree M n a b r)
have hh:=even_projection_minimal (n+1) f hff (fun j=>hf (2*j)) c
rw [←hc] at hh
change _ ≤ symmetricSechPair (fun p=>(fun x=>finiteJetCombination M a b r x-(finiteJetTruncation M (n+1) a b r).eval x) (p^2))
(fun p=>(fun x=>finiteJetCombination M a b r x-(finiteJetTruncation M (n+1) a b r).eval x) (p^2)) at hh
rw [evenSech_squaredNorm (fun x=>finiteJetCombination M a b r x-(finiteJetTruncation M (n+1) a b r).eval x)] at hh
exact hh
· have hh:=((finiteJetTruncation_L2_tendsto M a b δ r hb hd hlim).comp (tendsto_add_atTop_nat 1)).const_mul 2
simpa only [Function.comp_apply,mul_zero] using hh
lemmacosineKernelJet_polynomials {m : ℝ} (hm : m≠0) (r : ℕ) (p : ℝ) :
cosineKernelJet r 0 (m^2) (p^2)=
(jetCoshPolynomial m r).eval p*Real.cosh (m*p)+(jetSinhPolynomial m r).eval p*Real.sinh (m*p) :=by
proof · 15
lines
induction r usingNat.twoStepInduction with
| zero => simp [jetCoshPolynomial,jetSinhPolynomial,cosineKernelJet_square_cosh]
| one =>
simp only [jetCoshPolynomial,jetSinhPolynomial,eval_zero,eval_mul,eval_C,eval_X,zero_mul,zero_add]
have hd := cosineKernelJet_first_square m p
field_simp [hm]
nlinarith only [hd]
| more r ih ih' =>
rw [jetCoshPolynomial,jetSinhPolynomial]
simp only [eval_mul,eval_C,eval_sub,eval_pow,eval_X]
have hd := cosineKernelJet_ode r (sq_pos_of_ne_zero hm) p
rw [ih,ih'] at hd
havehden : 4*m^2*((r:ℝ)+1)*((r:ℝ)+2)≠0:=by positivity
field_simp [hm]
nlinarith only [hd]
have h :=Real.pow_div_factorial_le_exp (δ*|p|) (by positivity) k
rw [div_le_iff₀ (bypositivity : (0:ℝ)<(k.factorial:ℝ)),mul_pow] at h
rw [div_mul_eq_mul_div,le_div_iff₀ (pow_pos hδ k)]
nlinarith only [h]
change symmetricSechPair (fun p=>pollaczekCoeff p n) (fun p=>p^0*pollaczekGenerator p u)=_
simpa only [pow_zero,one_mul] using symmetricSechPair_coeff_generator_full hu n
lemmageneratorMomentCoefficient_succ {u : ℝ} (hu : |u|<1) (k n : ℕ) :
generatorMomentCoefficient u (k+1) (n+1)=
(((n:ℝ)+2)*generatorMomentCoefficient u k (n+2)+((n:ℝ)+1)*generatorMomentCoefficient u k n)/2:=by
proof · 13
lines
havehe : sechPairIntegrand (fun p=>pollaczekCoeff p (n+1)) (generatorMoment u (k+1))=
fun p=>(((n:ℝ)+2)/2)*sechPairIntegrand (fun p=>pollaczekCoeff p (n+2)) (generatorMoment u k) p+
(((n:ℝ)+1)/2)*sechPairIntegrand (fun p=>pollaczekCoeff p n) (generatorMoment u k) p :=by
funext p
unfold sechPairIntegrand generatorMoment
rw [pow_succ,pow_succ]
linear_combination (p^k*pollaczekGenerator p u)/(2*Real.cosh (Real.pi*p))*pollaczek_coeff_recurrence n p+
((-p)^k*pollaczekGenerator (-p) u)/(2*Real.cosh (Real.pi*p))*pollaczek_coeff_recurrence n (-p)
change (∫ p inSet.Ioi (0:ℝ),sechPairIntegrand (fun p=>pollaczekCoeff p (n+1)) (generatorMoment u (k+1)) p)=_
rw [he,integral_add ((pollaczekCoeff_moment_integrable hu (n+2) k).const_mul _)
((pollaczekCoeff_moment_integrable hu n k).const_mul _),integral_const_mul,integral_const_mul]
change (((n:ℝ)+2)/2)*generatorMomentCoefficient u k (n+2)+(((n:ℝ)+1)/2)*generatorMomentCoefficient u k n=_
ring
lemmageneratorMomentPolynomial_degree (u : ℝ) (k : ℕ) : (generatorMomentPolynomial u k).natDegree ≤ k :=by
proof · 18
lines
induction k with
| zero => simp [generatorMomentPolynomial]
| succ k ih =>
rw [generatorMomentPolynomial]
apply (natDegree_C_mul_le _ _).trans
apply natDegree_add_le_of_degree_le
· apply natDegree_mul_le.trans
havehcomp : ((generatorMomentPolynomial u k).comp (X+1)).natDegree ≤ k :=byhave h := (natDegree_comp_le (p:=generatorMomentPolynomial u k) (q:=(X+1)))
simpa using h.trans (Nat.mul_le_mul ih (show (X+1:Polynomialℝ).natDegree ≤1by simpa only [←C_1] using (natDegree_X_add_C (1:ℝ)).le))
apply (Nat.add_le_add ((natDegree_C_mul_le _ _).trans (show (X+1:Polynomialℝ).natDegree≤1by simpa only [←C_1] using (natDegree_X_add_C (1:ℝ)).le)) hcomp).trans
omega
· apply natDegree_mul_le.trans
havehcomp : ((generatorMomentPolynomial u k).comp (X-1)).natDegree ≤ k :=byhave h := (natDegree_comp_le (p:=generatorMomentPolynomial u k) (q:=(X-1)))
simpa using h.trans (Nat.mul_le_mul ih (show (X-1:Polynomialℝ).natDegree ≤1by simpa only [←C_1] using (natDegree_X_sub_C (1:ℝ)).le))
apply (Nat.add_le_add ((natDegree_C_mul_le _ _).trans (show (X:Polynomialℝ).natDegree≤1by simp)) hcomp).trans
omega
lemmageneratorMomentCoefficient_polynomial {u : ℝ} (hu : |u|<1) (hu0 : u≠0) (k n : ℕ) (hkn : k≤n) :
generatorMomentCoefficient u k n=u^n*(generatorMomentPolynomial u k).eval (n:ℝ) :=by
proof · 8
lines
induction k generalizing n with
| zero => simp only [generatorMomentCoefficient_zero hu,generatorMomentPolynomial,eval_one,mul_one]
| succ k ih =>
obtain ⟨n,rfl⟩ :=Nat.exists_eq_succ_of_ne_zero (show n≠0by omega)
rw [generatorMomentCoefficient_succ hu,ih (n+2) (by omega),ih n (by omega),generatorMomentPolynomial]
simp only [eval_mul,eval_C,eval_add,eval_sub,eval_X,eval_one,eval_comp,Nat.cast_succ]
rw [show (n:ℝ)+1+1=(n:ℝ)+2by ring,show (n:ℝ)+1-1=(n:ℝ) by ring,pow_succ,pow_succ]
field_simp [hu0]
lemmageneratorPolynomial_sum (u : ℝ) (P : Polynomialℝ) :
generatorPolynomial u P=fun p=>∑ k∈range (P.natDegree+1),P.coeff k*generatorMoment u k p :=by
proof · 7
lines
funext p
have h:=congrArg (funQ:Polynomialℝ=>Q.eval p) P.as_sum_range_C_mul_X_pow
simp only [eval_finsetSum,eval_mul,eval_C,eval_pow,eval_X] at h
simp only [generatorPolynomial,generatorMoment,h,sum_mul]
apply sum_congr rfl
intro k _
ring
rw [generatorPolynomial_sum]
havehe : sechPairIntegrand (fun p=>∑ k∈range (P.natDegree+1),P.coeff k*generatorMoment u k p) (fun p=>pollaczekCoeff p n)=
fun p=>∑ k∈range (P.natDegree+1),P.coeff k*sechPairIntegrand (generatorMoment u k) (fun p=>pollaczekCoeff p n) p :=by
funext p
simp only [sechPairIntegrand,sum_mul,←sum_add_distrib,sum_div]
apply sum_congr rfl
intro k _
ring
rw [he]
apply integrable_finsetSum
intro k _
rw [sechPairIntegrand_comm]
exact (pollaczekCoeff_moment_integrable hu n k).const_mul _
lemmageneratorPolynomialCoefficient_degree (u : ℝ) (P : Polynomialℝ) :
(generatorPolynomialCoefficient u P).natDegree≤P.natDegree :=by
proof · 3
lines
apply natDegree_sum_le_of_forall_le
intro k hk
exact ((natDegree_C_mul_le _ _).trans (generatorMomentPolynomial_degree u k)).trans (by simpa using mem_range.mp hk)
rw [symmetricSechPair_comm,generatorPolynomial_sum]
rw [symmetricSechPair_sum_left]
· simp only [symmetricSechPair_smul_left]
simp only [generatorPolynomialCoefficient,eval_finsetSum,eval_mul,eval_C,mul_sum]
apply sum_congr rfl
intro k hk
rw [symmetricSechPair_comm]
change P.coeff k*generatorMomentCoefficient u k n=_
rw [generatorMomentCoefficient_polynomial hu hu0 k n (byhave:=mem_range.mp hk;omega)]
ring
· intro k _
rw [sechPairIntegrand_smul_left,sechPairIntegrand_comm]
exact (pollaczekCoeff_moment_integrable hu n k).const_mul _
lemmagenerator_even_sum (u p : ℝ) :
pollaczekGenerator p u+pollaczekGenerator p (-u)=
2*Real.cos (Real.arctan u)*Real.cosh ((2*Real.arctan u)*p) :=by
proof · 3
lines
simp only [pollaczekGenerator,generator_prefactor,Real.arctan_neg,Real.cos_neg,Real.cosh_eq]
rw [show2*p*(-Real.arctan u)=-(2*Real.arctan u*p) by ring,show2*p*Real.arctan u=2*Real.arctan u*p by ring]
ring
lemmagenerator_odd_sum (u p : ℝ) :
pollaczekGenerator p u-pollaczekGenerator p (-u)=
2*Real.cos (Real.arctan u)*Real.sinh ((2*Real.arctan u)*p) :=by
proof · 3
lines
simp only [pollaczekGenerator,generator_prefactor,Real.arctan_neg,Real.cos_neg,Real.sinh_eq]
rw [show2*p*(-Real.arctan u)=-(2*Real.arctan u*p) by ring,show2*p*Real.arctan u=2*Real.arctan u*p by ring]
ring
lemmacosineKernelJet_generator_polynomials {u : ℝ} (hu : u≠0) (r : ℕ) :
∃AB : Polynomialℝ,A.natDegree≤r ∧B.natDegree≤r ∧
(fun p=>cosineKernelJet r 0 ((2*Real.arctan u)^2) (p^2))=
fun p=>generatorPolynomial u A p+generatorPolynomial (-u) B p :=by
proof · 18
lines
let m:=2*Real.arctan u
let c:=2*Real.cos (Real.arctan u)
havehm : m≠0:= mul_ne_zero (by norm_num) (Real.arctan_eq_zero_iff.not.mpr hu)
havehc : c≠0:=by dsimp [c];positivity
letA:=Polynomial.C c⁻¹*(jetCoshPolynomial m r+jetSinhPolynomial m r)
letB:=Polynomial.C c⁻¹*(jetCoshPolynomial m r-jetSinhPolynomial m r)
refine ⟨A,B,?_,?_,?_⟩
· exact (natDegree_C_mul_le _ _).trans (natDegree_add_le_of_degree_le (jetPolynomial_degrees m r).1 (jetPolynomial_degrees m r).2)
· exact (natDegree_C_mul_le _ _).trans ((natDegree_sub_le _ _).trans (max_le (jetPolynomial_degrees m r).1 (jetPolynomial_degrees m r).2))
· funext p
rw [cosineKernelJet_polynomials hm]
simp only [generatorPolynomial,A,B,eval_mul,eval_C,eval_add,eval_sub]
have he:=generator_even_sum u p
have ho:=generator_odd_sum u p
change pollaczekGenerator p u+pollaczekGenerator p (-u)=c*Real.cosh (m*p) at he
change pollaczekGenerator p u-pollaczekGenerator p (-u)=c*Real.sinh (m*p) at ho
field_simp
linear_combination -((jetCoshPolynomial m r).eval p)*he-((jetSinhPolynomial m r).eval p)*ho
lemmasymmetricSechPair_add_right (f g h : ℝ→ℝ)
(hg : IntegrableOn (sechPairIntegrand f g) (Set.Ioi0))
(hh : IntegrableOn (sechPairIntegrand f h) (Set.Ioi0)) :
symmetricSechPair f (fun p=>g p+h p)=symmetricSechPair f g+symmetricSechPair f h :=by
proof · 7
lines
change (∫ p inSet.Ioi (0:ℝ),sechPairIntegrand f (fun p=>g p+h p) p)=
(∫ p inSet.Ioi (0:ℝ),sechPairIntegrand f g p)+(∫ p inSet.Ioi (0:ℝ),sechPairIntegrand f h p)
rw [←integral_add hg hh]
apply integral_congr_ae
filter_upwards with p
unfold sechPairIntegrand
ring
lemmakernelJet_arctan_pair_integrable {u : ℝ} (hu : |u|<1) (hu0 : u≠0) (r n : ℕ) :
IntegrableOn (sechPairIntegrand (fun p=>cosineKernelJet r 0 ((2*Real.arctan u)^2) (p^2))
(fun p=>pollaczekCoeff p n)) (Set.Ioi0) :=by
proof · 11
lines
obtain ⟨A,B,_,_,he⟩:=cosineKernelJet_generator_polynomials hu0 r
rw [he]
havehe' : sechPairIntegrand (fun p=>generatorPolynomial u A p+generatorPolynomial (-u) B p)
(fun p=>pollaczekCoeff p n)=
fun p=>sechPairIntegrand (generatorPolynomial u A) (fun p=>pollaczekCoeff p n) p+
sechPairIntegrand (generatorPolynomial (-u) B) (fun p=>pollaczekCoeff p n) p :=by
funext p
unfold sechPairIntegrand
ring
rw [he']
exact (generatorPolynomial_pair_integrable hu A n).add (generatorPolynomial_pair_integrable (by simpa using hu) B n)
lemmacompleteJetCombination_finite (N : ℕ) (b : ℝ) (a c : FinN→ℝ) :
completeJetCombination N b a c=fun p=>finiteJetCombination (N+N) (Fin.addCases a c)
(Fin.addCases (fun _=>(0:ℝ)) (fun _=>b)) (Fin.addCases Fin.val Fin.val) (p^2) :=by
proof · 2
lines
funext p
simp only [finiteJetCombination,Fin.sum_univ_add,Fin.addCases_left,Fin.addCases_right,completeJetCombination]
lemmacompleteJetSech_norm_integrable {b δ : ℝ} (hb : 0≤b) (hd : 0<δ) (hlim : Real.sqrt (b+δ)<Real.pi/2)
(N : ℕ) (a c : FinN→ℝ) :
IntegrableOn (sechPairIntegrand (completeJetCombination N b a c) (completeJetCombination N b a c)) (Set.Ioi0) :=by
lemmacompleteJetSech_parseval_residual {b δ : ℝ} (hb : 0≤b) (hd : 0<δ) (hlim : Real.sqrt (b+δ)<Real.pi/2)
(N : ℕ) (a c : FinN→ℝ) :
Tendsto (fun n=>symmetricSechPair (completeJetCombination N b a c) (completeJetCombination N b a c)-
∑j:Fin (n+1),(symmetricSechPair (fun p=>pollaczekCoeff p (2*j)) (completeJetCombination N b a c))^2)
atTop (𝓝 0) :=by
lemmaevenProjection_coefficient_le_one (f : ℝ→ℝ)
(hff : IntegrableOn (sechPairIntegrand f f) (Set.Ioi0))
(hf : ∀j:ℕ,IntegrableOn (sechPairIntegrand (fun p=>pollaczekCoeff p (2*j)) f) (Set.Ioi0))
(hnorm : symmetricSechPair f f≤1) (j : ℕ) :
|symmetricSechPair (fun p=>pollaczekCoeff p (2*j)) f|≤1:=by
proof · 6
lines
have hB:=even_projection_bessel (j+1) f hff (fun i=>hf i)
have hs:=single_le_sum (s:=univ) (f:=funi:Fin (j+1)=>(symmetricSechPair (fun p=>pollaczekCoeff p (2*i)) f)^2)
(fun i _=>sq_nonneg _) (mem_univ (⟨j,by omega⟩:Fin (j+1)))
simp only at hs
rw [abs_le]
constructor <;> nlinarith