lemmarate_window_euler {v Ib k : ℝ} (hv : 0 < v) (hvI : v ≤I) (hI : I < ell)
(hk : 0≤ k)
(hwindow : (∫ h in (ell-I)..(ell-v), clipKernel b h) ≤3*k) :
0≤ ((I-(ell-b))*rDeriv I-r I)-((v-(ell-b))*rDeriv v-r v)+rDeriv v*k :=by
proof · 24
lines
havehdom : ∀ u ∈ uIcc v I, u ∈Ioo (0:ℝ) ell :=by
intro u hu
rw [uIcc_of_le hvI] at hu
exact ⟨hv.trans_le hu.1,hu.2.trans_lt hI⟩
havehfc : ContinuousOn (fun u => (u-(ell-b))*rSecondDeriv u) (uIcc v I) :=by
intro u hu
exact ((continuousAt_id.sub continuousAt_const).mul
(continuousAt_rSecondDeriv (hdom u hu))).continuousWithinAt
havehkc : ContinuousOn (fun u => -(2/3:ℝ)*clipKernel b (ell-u)) (uIcc v I) :=by
intro u hu
exact (continuousAt_const.mul ((continuousAt_clipKernel b (by dsimp; linarith [(hdom u hu).2])).comp
(continuousAt_const.sub continuousAt_id))).continuousWithinAt
havehder : ∀ u ∈ uIcc v I,
HasDerivAt (fun z => (z-(ell-b))*rDeriv z-r z) ((u-(ell-b))*rSecondDeriv u) u :=by
intro u hu
convert! (((hasDerivAt_id u).sub_const (ell-b)).mul (hasDerivAt_rDeriv (hdom u hu))).sub
(hasDerivAt_r (hdom u hu)) using1; dsimp; ring
have heq := intervalIntegral.integral_eq_sub_of_hasDerivAt hder hfc.intervalIntegrable
have hcomp := intervalIntegral.integral_mono_on (μ := volume) hvI hkc.intervalIntegrable hfc.intervalIntegrable
(fun u hu => rate_window_point (hdom u (by rwa [uIcc_of_le hvI])))
rw [intervalIntegral.integral_const_mul, intervalIntegral.integral_comp_sub_left] at hcomp
rw [heq] at hcomp
have hsl := mul_le_mul_of_nonneg_right (rDeriv_ge_two hv.le (hvI.trans_lt hI)) hk
nlinarith