lemmapolynomialTransformJet_add (p q : Polynomialℝ) (k : ℕ) (u : ℝ) :
polynomialTransformJet (p+q) k u = polynomialTransformJet p k u + polynomialTransformJet q k u :=by
lemmapolynomialTransformJet_smul (a : ℝ) (p : Polynomialℝ) (k : ℕ) (u : ℝ) :
polynomialTransformJet (a • p) k u = a * polynomialTransformJet p k u :=by
proof · 6
lines
unfold polynomialTransformJet
rw [Polynomial.sum_smul_index p a _ (by intros; simp)]
simp only [Polynomial.sum, Finset.mul_sum]
apply sum_congr rfl
intro i hi
ring
lemmapolynomialTransformJet_X_mul (p : Polynomialℝ) (k : ℕ) (u : ℝ) :
polynomialTransformJet (X*p) k u = polynomialTransformJet p (k+2) u :=by
proof · 8
lines
induction p usingPolynomial.induction_on' with
| add p q hp hq =>
rw [mul_add, polynomialTransformJet_add, polynomialTransformJet_add, hp, hq]
| monomial n a =>
rw [Polynomial.X_mul_monomial]
simp only [polynomialTransformJet, Polynomial.sum_monomial_index, zero_mul]
congr 2
omega
lemmapolynomialTransformJet_two {p : Polynomialℝ} {u : ℝ} (hu : |u| < Real.pi/2) :
iteratedDeriv 2 (polynomialTransformJet p 0) u = polynomialTransformJet (X*p) 0 u :=by
proof · 6
lines
havehn : ∀ᶠ t in 𝓝 u, |t| < Real.pi/2:=
(isOpen_lt continuous_abs continuous_const).mem_nhds hu
havehe : deriv (polynomialTransformJet p 0) =ᶠ[𝓝 u] polynomialTransformJet p 1:=
hn.mono (fun t ht => (polynomialTransformJet_hasDerivAt p 0 ht).deriv)
rw [show iteratedDeriv 2 (polynomialTransformJet p 0) = deriv (deriv (polynomialTransformJet p 0)) by rw [iteratedDeriv_succ, iteratedDeriv_one],
he.deriv_eq, (polynomialTransformJet_hasDerivAt p 1 hu).deriv, polynomialTransformJet_X_mul]
lemmapolynomialTransform_eq_integral (p : Polynomialℝ) {u : ℝ} (hu : |u| < Real.pi/2) :
polynomialTransformJet p 0 u = ∫ z inSet.Ioi (0:ℝ), polynomialKernel p u z :=by
proof · 4
lines
simp only [polynomialKernel_eq_sum]
rw [integral_finsetSum p.support (fun j _ =>
(transformJet_integrable (2*j+1) (by simpa using hu)).const_mul (p.coeff j))]
simp only [integral_const_mul, polynomialTransformJet, Polynomial.sum, Nat.add_zero, integralJet]
lemmatriangular_span {KV : Type*} [FieldK] [AddCommGroupV] [ModuleKV]
(v w : ℕ→V) (c : ℕ→ℕ→K)
(hw : ∀ k,w k=∑ j ∈ range (k+1),c k j • v j)
(hc : ∀ k,c k k ≠0) (N : ℕ) :
Submodule.span K (v '' Set.IioN) = Submodule.span K (w '' Set.IioN) :=by
proof · 23
lines
apply le_antisymm
· apply Submodule.span_le.mpr
rintro _ ⟨k,hk,rfl⟩
induction k usingNat.strong_induction_on with
| h k ih =>havehwk : w k ∈Submodule.span K (w '' Set.IioN) :=Submodule.subset_span ⟨k,hk,rfl⟩
havehsum : (∑ j ∈ range k,c k j • v j) ∈Submodule.span K (w '' Set.IioN) :=by
apply Submodule.sum_mem
intro j hj
exact Submodule.smul_mem _ _ (ih j (mem_range.mp hj) (lt_trans (mem_range.mp hj) hk))
rw [hw, sum_range_succ] at hwk
have hmem :=Submodule.sub_mem _ hwk hsum
simp only [add_sub_cancel_left] at hmem
have hmem' :=Submodule.smul_mem (Submodule.span K (w '' Set.IioN)) (c k k)⁻¹ hmem
rw [smul_smul,inv_mul_cancel₀ (hc k),one_smul] at hmem'
exact hmem'
· apply Submodule.span_le.mpr
rintro _ ⟨k,hk,rfl⟩
rw [hw]
apply Submodule.sum_mem
intro j hj
apply Submodule.smul_mem
exact Submodule.subset_span ⟨j,lt_of_le_of_lt (Nat.lt_succ_iff.mp (mem_range.mp hj)) hk,rfl⟩
| 0, 0=> a
| 0, _+1=>0
| n+1, 0=> deriv (poleCoeff a b n 0)
| n+1, k+1=>fun m => deriv (poleCoeff a b n (k+1)) m -
(k+1 : ℕ) * deriv b m * poleCoeff a b n k m
lemmapoleCoeff_smooth {a b : ℝ→ℝ} (ha : ContDiffℝ ⊤ a)
(hb : ContDiffℝ ⊤ b) (n k : ℕ) : ContDiffℝ ⊤ (poleCoeff a b n k) :=by
proof · 7
lines
induction n generalizing k with
| zero => cases k <;> simp only [poleCoeff]; exact ha; exact contDiff_const
| succ n ih =>
cases k with
| zero => exact (ih 0).deriv'
| succ k =>
exact (ih (k+1)).deriv'.sub ((contDiff_const.mul hb.deriv').mul (ih k))
lemmapoleCoeff_eq_zero {a b : ℝ→ℝ} {n k : ℕ} (h : n < k) :
poleCoeff a b n k = 0:=by
proof · 10
lines
induction n generalizing k with
| zero => cases k <;> first | omega | rfl
| succ n ih =>
cases k with
| zero => omega
| succ k =>have h1 := ih (show n < k+1by omega)
have h2 := ih (show n < k by omega)
ext m
simp [poleCoeff, h1, h2]
lemmapoleCoeff_diagonal_ne_zero {a b : ℝ→ℝ} {m : ℝ}
(ha : a m ≠0) (hb : deriv b m ≠0) (n : ℕ) : poleCoeff a b n n m ≠0:=by
proof · 9
lines
induction n with
| zero => exact ha
| succ n ih =>have hz := poleCoeff_eq_zero (a:=a) (b:=b) (show n < n+1by omega)
change deriv (poleCoeff a b n (n+1)) m -
(n+1 : ℕ) * deriv b m * poleCoeff a b n n m ≠0
rw [hz, show deriv (0 : ℝ→ℝ) m = 0from deriv_const m 0, zero_sub]
exact neg_ne_zero.mpr (mul_ne_zero (mul_ne_zero
(Nat.cast_ne_zero.mpr (Nat.succ_ne_zero n)) hb) ih)
lemmareciprocal_power_hasDerivAt {b : ℝ→ℝ} {m X : ℝ} (k : ℕ)
(hb : DifferentiableAtℝ b m) (hXm : X + b m ≠0) :
HasDerivAt (fun t => (X + b t)⁻¹ ^ (k+1))
(-(k+1:ℕ) * deriv b m * (X + b m)⁻¹ ^ (k+2)) m :=by
proof · 4
lines
have h := ((hb.hasDerivAt.const_add X).inv hXm).pow (k+1)
convert h using1; try rfl
simp only [Pi.inv_apply, Nat.add_sub_cancel, Nat.cast_add, Nat.cast_one, div_eq_mul_inv, ← inv_pow]
ring
lemmapoleJet_expansion {a b : ℝ→ℝ} (ha : ContDiffℝ ⊤ a)
(hb : ContDiffℝ ⊤ b) (n : ℕ) {m X : ℝ} (hXm : X + b m ≠0) :
iteratedDeriv n (fun t => a t / (X + b t)) m =
∑ k ∈ range (n+1), poleCoeff a b n k m * (X+b m)⁻¹ ^ (k+1) :=by
proof · 49
lines
induction n generalizing m with
| zero => simp [poleCoeff, div_eq_mul_inv]
| succ n ih =>havehe : iteratedDeriv n (fun t => a t / (X+b t)) =ᶠ[𝓝 m]
(fun t =>∑ k ∈ range (n+1), poleCoeff a b n k t * (X+b t)⁻¹ ^ (k+1)) :=by
filter_upwards [(continuous_const.add hb.continuous).continuousAt.eventually_ne hXm] with t ht
exact ih ht
rw [iteratedDeriv_succ, he.deriv_eq]
have hd (k : ℕ) := ((poleCoeff_smooth ha hb n k).differentiable (by simp)).differentiableAt.hasDerivAt.mul
(reciprocal_power_hasDerivAt k (hb.differentiable (by simp)).differentiableAt hXm)
have hds :=HasDerivAt.fun_sum (fun k (_ : k ∈ range (n+1)) => hd k)
simp only [Pi.mul_apply] at hds
rw [hds.deriv]
havehz : deriv (poleCoeff a b n (n+1)) m = 0:=by
rw [poleCoeff_eq_zero (by omega)]
exact deriv_const m 0letA:=fun k => deriv (poleCoeff a b n k) m * (X+b m)⁻¹ ^ (k+1)
havehshift : (∑ k ∈ range (n+1), A k) =
A0 + ∑ k ∈ range (n+1), A (k+1) :=byhave h1 := sum_range_succ A (n+1)
have h2 := sum_range_succ' A (n+1)
havehzero : A (n+1) = 0:=by simp only [A, hz, zero_mul]
rw [hzero, add_zero] at h1
rw [h1] at h2
exact h2.trans (add_comm _ _)
calc
(∑ k ∈ range (n+1),
(deriv (poleCoeff a b n k) m * (X+b m)⁻¹ ^ (k+1) +
poleCoeff a b n k m * (-(k+1:ℕ) * deriv b m * (X+b m)⁻¹ ^ (k+2))))
= (∑ k ∈ range (n+1), A k) -
∑ k ∈ range (n+1), (k+1:ℕ) * deriv b m * poleCoeff a b n k m * (X+b m)⁻¹ ^ (k+2) :=by
rw [← sum_sub_distrib]
apply sum_congr rfl
intro k hk
dsimp [A]
ring
_ = A0 + ∑ k ∈ range (n+1),
(deriv (poleCoeff a b n (k+1)) m - (k+1:ℕ) * deriv b m * poleCoeff a b n k m) *
(X+b m)⁻¹ ^ (k+2) :=by
rw [hshift, add_sub_assoc, ← sum_sub_distrib]
congr 1
apply sum_congr rfl
intro k hk
dsimp [A]
ring
_ = ∑ k ∈ range (n+1+1), poleCoeff a b (n+1) k m * (X+b m)⁻¹ ^ (k+1) :=by
conv_rhs => rw [sum_range_succ']
simp only [poleCoeff, A, Nat.zero_add, pow_one]
rw [add_comm]
lemmapoleJet_span {ι : Type*} (X : ι →ℝ) {a b : ℝ→ℝ}
(ha : ContDiffℝ ⊤ a) (hb : ContDiffℝ ⊤ b) {m : ℝ}
(ham : a m ≠0) (hbm : deriv b m ≠0) (hden : ∀ i, X i + b m ≠0) (N : ℕ) :
Submodule.span ℂ ((funk : ℕ=>fun i => (((X i+b m)⁻¹ ^ (k+1) : ℝ) : ℂ)) '' Set.IioN) =
Submodule.span ℂ ((funk : ℕ=>fun i => ((iteratedDeriv k (fun t => a t / (X i+b t)) m : ℝ) : ℂ)) '' Set.IioN) :=by
proof · 8
lines
apply triangular_span _ _ (fun n k => (poleCoeff a b n k m : ℂ))
· intro k
ext i
simp only [Finset.sum_apply, Pi.smul_apply, smul_eq_mul]
rw [poleJet_expansion ha hb k (hden i)]
simp only [Complex.ofReal_sum, Complex.ofReal_mul]
· intro k
exact Complex.ofReal_ne_zero.mpr (poleCoeff_diagonal_ne_zero ham hbm k)
have h := reciprocal_power_hasDerivAt (m:=u) (X:=1) n
(cosineDouble_hasDerivAt u).differentiableAt hu
rw [(cosineDouble_hasDerivAt u).deriv] at h
convert h using1; try rfl
dsimp [reciprocalCosinePower]
ring
have hn := reciprocalCosine_den_ne_zero hu
have hd := (sineDouble_hasDerivAt u).div
((cosineDouble_hasDerivAt u).const_add 1) hn
rw [integralJet_eq_iteratedDeriv 1 (by simpa using hu), iteratedDeriv_one]
simp only [mul_zero, Real.cos_zero]
change HasDerivAt (fun t =>Real.sin (2*t) / (1+Real.cos (2*t))) _ u at hd
rw [hd.deriv]
have hid :=Real.sin_sq_add_cos_sq (2*u)
field_simp
nlinarith [hid]
lemmazKernel_g_integrable {m u : ℝ} (hu : |u|+|m| < Real.pi/2) :
IntegrableOn (zKernel (zG m) u) (Set.Ioi0) :=by
proof · 3
lines
apply ((transformJet_integrable 0 (bylinarith : |m|+|u| < Real.pi/2)).ofReal (𝕜:=ℂ)).congr
filter_upwards [ae_restrict_mem measurableSet_Ioi] with z hz
exact (zKernel_g m u hz).symm
lemmazTransform_add {f g : ℝ→ℂ} {u : ℝ}
(hf : IntegrableOn (zKernel f u) (Set.Ioi0))
(hg : IntegrableOn (zKernel g u) (Set.Ioi0)) :
zTransform (f+g) u = zTransform f u + zTransform g u :=by
noncomputabledefzTransformLinear (m : ℝ) (N : ℕ) :
zDensity m N→ₗ[ℂ] (TransformDomain m →ℂ) where
body · 4
lines
toFun f u := zTransform f.val u.val
map_add' f g := funext (fun u => zTransform_add
(zDensity_integrable f.property u.property) (zDensity_integrable g.property u.property))
map_smul' c f := funext (fun u => zTransform_smul c f.val u.val)
lemmareciprocalProduct_mem {ι : Type*} (x : ι →ℂ) (a b : ℂ)
(ha : ∀ i, x i+a ≠0) (hb : ∀ i, x i+b ≠0) (hab : b-a ≠0)
(S : Submoduleℂ (ι →ℂ)) (NM : ℕ)
(haS : ∀ k, 0<k → k≤N→ (fun i => (x i+a)⁻¹^k) ∈S)
(hbS : ∀ k, 0<k → k≤M→ (fun i => (x i+b)⁻¹^k) ∈S)
(n m : ℕ) (hn : n≤N) (hm : m≤M) (hpos : 0<n+m) :
(fun i => (x i+a)⁻¹^n * (x i+b)⁻¹^m) ∈S:=by
proof · 13
lines
induction n generalizing m with
| zero => simpa only [pow_zero, one_mul] using hbS m (by omega) hm
| succ n ih =>
induction m with
| zero => simpa only [pow_zero, mul_one] using haS (n+1) (by omega) hn
| succ m ihm =>have h1 := ihm (by omega) (by omega)
have h2 := ih (m+1) (by omega) hm (by omega)
have hs :=S.smul_mem (b-a)⁻¹ (S.sub_mem h1 h2)
convert hs using1
ext i
simp only [Pi.smul_apply, Pi.sub_apply, smul_eq_mul]
exact mixed_inverse_step (ha i) (hb i) hab n m
lemmaproperMonomial_mem {ι : Type*} (x : ι →ℂ) (a b : ℂ)
(ha : ∀ i, x i+a ≠0) (hb : ∀ i, x i+b ≠0) (hab : b-a ≠0)
(S : Submoduleℂ (ι →ℂ)) (NM : ℕ)
(haS : ∀ k, 0<k → k≤N→ (fun i => (x i+a)⁻¹^k) ∈S)
(hbS : ∀ k, 0<k → k≤M→ (fun i => (x i+b)⁻¹^k) ∈S)
(j n m : ℕ) (hn : n≤N) (hm : m≤M) (hj : j<n+m) :
(fun i => x i^j * (x i+a)⁻¹^n * (x i+b)⁻¹^m) ∈S:=by
proof · 24
lines
induction j generalizing n m with
| zero => simpa only [pow_zero, one_mul] using
reciprocalProduct_mem x a b ha hb hab SNM haS hbS n m hn hm hj
| succ j ih =>
cases n with
| succ n =>have h1 := ih n m (by omega) hm (by omega)
have h2 := ih (n+1) m hn hm (by omega)
have hs :=S.sub_mem h1 (S.smul_mem a h2)
convert hs using1
ext i
simp only [Pi.smul_apply, Pi.sub_apply, smul_eq_mul]
exact monomial_inverse_step (ha i) j n m
| zero =>havehm0 : 0 < m :=by omega
obtain ⟨m,rfl⟩ :=Nat.exists_eq_succ_of_ne_zero (ne_of_gt hm0)
have h1 := ih 0 m hn (by omega) (by omega)
have h2 := ih 0 (m+1) hn hm (by omega)
have hs :=S.sub_mem h1 (S.smul_mem b h2)
convert hs using1
ext i
simp only [Pi.smul_apply, Pi.sub_apply, smul_eq_mul, pow_zero, mul_one]
simpa only [pow_zero, mul_one] using
monomial_inverse_step (b:=a) (hb i) j m 0
havehp : |u+m| < Real.pi/2:= (abs_add_le u m).trans_lt hu
havehm : |u-m| < Real.pi/2:= (abs_sub u m).trans_lt hu
have hcp :=Real.cos_pos_of_mem_Ioo (abs_lt.mp hp)
have hcm :=Real.cos_pos_of_mem_Ioo (abs_lt.mp hm)
rw [Real.cos_add_cos, show (2*u+2*m)/2 = u+m by ring, show (2*u-2*m)/2 = u-m by ring]
exact mul_pos (mul_pos (bynorm_num : (0:ℝ)<2) hcp) hcm