Mathlib.Analysis.Calculus.HolderTaylor
Quantitative Hölder calculus on compact real intervals: affine normalization, lower-jet interpolation, primitive and exponential closure, product closure, and uniform endpoint Taylor remainders.
HolderTaylor 3 core · 6 supporting Hölder–Taylor remainder bounds for approximating a smooth regression function near a target point by its degree-⌊β⌋ Taylor polynomial. ★ holder_taylor_remainder
Hölder–Taylor remainder bound
Hölder–Taylor remainder bounds for approximating a smooth regression function near a target point
by its degree-⌊β⌋ Taylor polynomial.
This file proves the standard nonparametric Hölder–Taylor remainder estimate
(Tsybakov, Introduction to Nonparametric Estimation, 2009, Chapter 1): if a
scalar function f is ⌊β⌋-times continuously differentiable and its top
derivative is (β − ⌊β⌋)-Hölder with constant M, then f is approximated near
t by its degree-⌊β⌋ Taylor polynomial with error O(|a − t|^β):
|f a − T_p(a; t)| ≤ (M / p!) · |a − t|^β.
For noninteger β, p = ⌊β⌋. For positive integer β, p = β − 1 and the
Hölder exponent is 1, matching the usual Tsybakov-style convention.
This is the bias-controlling lemma behind interior local-polynomial / kernel
regression: a kernel of order at least p annihilates the Taylor polynomial, leaving
only this remainder, which is the source of the O(h^β) smoothing bias.
Given a real smoothness index, the Hölder derivative order is the nonnegative integer obtained by subtracting one, with truncation at zero, from the least nonnegative integer that is at least the smoothness index. For positive noninteger this equals , and for positive integer it equals .
Definition (Lean source)
Given a nonnegative degree, a real-valued function, a real base point, and a real evaluation point, the degree- Taylor polynomial evaluated at the evaluation point is .
Definition (Lean source)
Hölder–Taylor remainder bound under the standard Hölder convention. Let p denote the largest natural number strictly below the smoothness index β. If β is positive, the Hölder constant M is nonnegative, the expansion point t lies in a window [lo,hi], the evaluation point a lies in the same window, f is p times continuously differentiable, and its p-th derivative is (β − p)-Hölder with constant M on the window, then the error of the degree-p Taylor approximation of f at t, evaluated at a, is bounded by (M / p!) · |a − t|^β. For positive integer β = m, this uses derivative order m - 1 and Hölder exponent 1.
Formal statement
Proof (Lean source)
6 supporting declarations (lemmas, instances)
-
holderDerivOrder_ltlemmahypothesesβ :ℝhβ :0 < βconclusion(holderDerivOrder β : ℝ) < βProof (Lean source)
lemma holderDerivOrder_lt {β : ℝ} (hβ : 0 < β) : (holderDerivOrder β : ℝ) < β := by have hceil_one : 1 ≤ ⌈β⌉₊ := Nat.one_le_ceil_iff.mpr hβ have hcast : ((⌈β⌉₊ - 1 : ℕ) : ℝ) = (⌈β⌉₊ : ℝ) - 1 := by rw [Nat.cast_sub hceil_one, Nat.cast_one] rw [holderDerivOrder, hcast] linarith [Nat.ceil_lt_add_one hβ.le] -
taylorPoly_eval_basetheorem — The Taylor polynomial of f at base point t, evaluated at t itself, is f t (every positive-degree term carries a (t − t)^k = 0 factor).Proof (Lean source)
theorem taylorPoly_eval_base (p : ℕ) (f : ℝ → ℝ) (t : ℝ) : taylorPoly p f t t = f t := by have h : taylorPoly p f t t = iteratedDeriv 0 f t / (factorial 0 : ℝ) * (t - t) ^ 0 := by unfold taylorPoly refine Finset.sum_eq_single 0 (fun k _ hk => ?_) (fun h => ?_) · rw [sub_self, zero_pow hk, mul_zero] · exact absurd (Finset.mem_range.mpr p.succ_pos) h simpa [iteratedDeriv_zero] using h -
taylorWithinEval_eq_taylorPolylemma — On an interval with distinct endpoints, the Taylor polynomial computed from derivatives restricted to the interval equals the usual Taylor polynomial computed from ordinary derivatives.hypothesesconclusionProof (Lean source)
lemma taylorWithinEval_eq_taylorPoly {f : ℝ → ℝ} {p n : ℕ} {x₀ x : ℝ} (hf : ContDiff ℝ p f) (hn : n ≤ p) (hx : x₀ < x) : taylorWithinEval f n (Icc x₀ x) x₀ x = taylorPoly n f x₀ x := by rw [taylor_within_apply] unfold taylorPoly refine Finset.sum_congr rfl ?_ intro k hk have hk_le_n : k ≤ n := Nat.lt_succ_iff.mp (Finset.mem_range.mp hk) have hk_le_p : k ≤ p := hk_le_n.trans hn have hwithin : iteratedDerivWithin k f (Icc x₀ x) x₀ = iteratedDeriv k f x₀ := by exact iteratedDerivWithin_eq_iteratedDeriv (uniqueDiffOn_Icc hx) ((hf.of_le (WithTop.coe_le_coe.mpr (ENat.coe_le_coe.mpr hk_le_p))).contDiffAt) (Set.left_mem_Icc.mpr hx.le) rw [hwithin] simp [smul_eq_mul, div_eq_mul_inv, mul_comm, mul_left_comm] -
taylorPoly_succlemma — Split the last term off the Taylor polynomial.hypothesesn :ℕf :ℝ → ℝt a :ℝconclusiontaylorPoly (n + 1) f t a= taylorPoly n f t a+ iteratedDeriv (n + 1) f t / ((n + 1).factorial : ℝ) * (a - t) ^ (n + 1)Proof (Lean source)
lemma taylorPoly_succ (n : ℕ) (f : ℝ → ℝ) (t a : ℝ) : taylorPoly (n + 1) f t a = taylorPoly n f t a + iteratedDeriv (n + 1) f t / ((n + 1).factorial : ℝ) * (a - t) ^ (n + 1) := by unfold taylorPoly rw [Finset.sum_range_succ] -
taylorPoly_reflectlemma — Reflecting across the base point preserves the Taylor polynomial value at the reflected evaluation point.hypothesesp :ℕf :ℝ → ℝt a :ℝconclusiontaylorPoly p (fun x => f (2 * t - x)) t (2 * t - a) = taylorPoly p f t aProof (Lean source)
lemma taylorPoly_reflect (p : ℕ) (f : ℝ → ℝ) (t a : ℝ) : taylorPoly p (fun x => f (2 * t - x)) t (2 * t - a) = taylorPoly p f t a := by unfold taylorPoly refine Finset.sum_congr rfl ?_ intro k hk have hder := congrFun (iteratedDeriv_comp_const_sub (n := k) (f := f) (s := 2 * t)) t rw [hder] simp only [smul_eq_mul] have hbase : 2 * t - t = t := by ring have harg : 2 * t - a - t = t - a := by ring have hpow : (-1 : ℝ) ^ k * (t - a) ^ k = (a - t) ^ k := by rw [← mul_pow] congr 1 ring rw [hbase, harg, div_eq_mul_inv] calc ((-1 : ℝ) ^ k * iteratedDeriv k f t) * (↑k.factorial)⁻¹ * (t - a) ^ k = iteratedDeriv k f t * (↑k.factorial)⁻¹ * ((-1 : ℝ) ^ k * (t - a) ^ k) := by ring _ = iteratedDeriv k f t * (↑k.factorial)⁻¹ * (a - t) ^ k := by rw [hpow] -
holder_taylor_remainder_of_ltlemma — Hölder-Taylor remainder when the evaluation point lies to the right of the base.hypothesesf :ℝ → ℝM β lo hi t a :ℝp :ℕhM :0 ≤ Mht :t ∈ Icc lo hiha :a ∈ Icc lo hihf :ContDiff ℝ p fhb :∀ x ∈ Icc lo hi,∀ y ∈ Icc lo hi,|iteratedDeriv p f x - iteratedDeriv p f y| ≤ M * |x - y| ^ (β - (p : ℝ))hp_pos :0 < php_le_beta :(p : ℝ) ≤ βhlt :t < aconclusion|f a - taylorPoly p f t a| ≤ M / (p.factorial : ℝ) * |a - t| ^ βProof (Lean source)
lemma holder_taylor_remainder_of_lt {f : ℝ → ℝ} {M β lo hi t a : ℝ} {p : ℕ} (hM : 0 ≤ M) (ht : t ∈ Icc lo hi) (ha : a ∈ Icc lo hi) (hf : ContDiff ℝ p f) (hb : ∀ x ∈ Icc lo hi, ∀ y ∈ Icc lo hi, |iteratedDeriv p f x - iteratedDeriv p f y| ≤ M * |x - y| ^ (β - (p : ℝ))) (hp_pos : 0 < p) (hp_le_beta : (p : ℝ) ≤ β) (hlt : t < a) : |f a - taylorPoly p f t a| ≤ M / (p.factorial : ℝ) * |a - t| ^ β := by have hexp_nonneg : 0 ≤ β - (p : ℝ) := sub_nonneg.mpr hp_le_beta have habs_pos : 0 < |a - t| := abs_pos.mpr (sub_ne_zero.mpr hlt.ne') set n : ℕ := p - 1 with hn have hn_succ : n + 1 = p := by simpa [hn] using Nat.succ_pred_eq_of_pos hp_pos have hcont : ContDiffOn ℝ (n + 1) f (uIcc t a) := by change ContDiffOn ℝ (((n + 1 : ℕ) : WithTop ℕ∞)) f (uIcc t a) rw [hn_succ] exact hf.contDiffOn rcases taylor_mean_remainder_lagrange_iteratedDeriv (f := f) (x := a) (x₀ := t) (n := n) hlt.ne hcont with ⟨ξ, hξ, hrem⟩ rw [Set.uIcc_of_le hlt.le] at hrem rw [Set.uIoo_of_le hlt.le] at hξ have hwithin_eq : taylorWithinEval f n (Icc t a) t a = taylorPoly n f t a := taylorWithinEval_eq_taylorPoly hf (by rw [← hn_succ] exact le_succ n) hlt have hrem_poly : f a - taylorPoly n f t a = iteratedDeriv p f ξ * (a - t) ^ p / (p.factorial : ℝ) := by rw [← hwithin_eq] simpa [hn_succ] using hrem have hpoly_succ : taylorPoly p f t a = taylorPoly n f t a + iteratedDeriv p f t / (p.factorial : ℝ) * (a - t) ^ p := by rw [← hn_succ] exact taylorPoly_succ n f t a have hdiff : f a - taylorPoly p f t a = (iteratedDeriv p f ξ - iteratedDeriv p f t) / (p.factorial : ℝ) * (a - t) ^ p := by rw [hpoly_succ] rw [sub_add_eq_sub_sub, hrem_poly] have hfac : (p.factorial : ℝ) ≠ 0 := by positivity field_simp [hfac] have hξ_window : ξ ∈ Icc lo hi := ⟨ht.1.trans hξ.1.le, hξ.2.le.trans ha.2⟩ have hdist : |ξ - t| ≤ |a - t| := by rw [abs_of_nonneg (sub_nonneg.mpr hξ.1.le), abs_of_nonneg (sub_nonneg.mpr hlt.le)] exact sub_le_sub_right hξ.2.le t have hpow_le : |ξ - t| ^ (β - (p : ℝ)) ≤ |a - t| ^ (β - (p : ℝ)) := Real.rpow_le_rpow (abs_nonneg _) hdist hexp_nonneg have htop : |iteratedDeriv p f ξ - iteratedDeriv p f t| ≤ M * |a - t| ^ (β - (p : ℝ)) := (hb ξ hξ_window t ht).trans (mul_le_mul_of_nonneg_left hpow_le hM) rw [hdiff] calc |(iteratedDeriv p f ξ - iteratedDeriv p f t) / (p.factorial : ℝ) * (a - t) ^ p| = |iteratedDeriv p f ξ - iteratedDeriv p f t| / (p.factorial : ℝ) * |a - t| ^ p := by rw [abs_mul, abs_div, abs_pow, abs_of_nonneg (by positivity : 0 ≤ (p.factorial : ℝ))] _ ≤ (M * |a - t| ^ (β - (p : ℝ))) / (p.factorial : ℝ) * |a - t| ^ p := by gcongr _ = M / (p.factorial : ℝ) * |a - t| ^ β := by have hcombine : |a - t| ^ (β - (p : ℝ)) * |a - t| ^ p = |a - t| ^ β := by rw [← Real.rpow_natCast] rw [← Real.rpow_add habs_pos] ring_nf rw [← hcombine] ring
AffineHolder 1 core · 0 supporting The top within-interval Hölder modulus transfers to the intrinsic top coordinate jet on the one-dimensional normalized cube. ★ affine_cube_topHolderOn
Hölder data under interval normalization
The top within-interval Hölder modulus transfers to the intrinsic top coordinate jet on the one-dimensional normalized cube. This supplies the data expected by the existing fixed-cube interpolation theorem.
Let f be a function of one real variable on the closed interval from a to a + d, with a derivative order k, where the length d is positive, and suppose its order-k derivative taken within that interval changes between any two points of the interval by at most L times their distance to the power α. Then the rescaled function z ↦ f(a + d/2 + (d/2)·z) on the one-dimensional normalized cube, the interval from −1 to 1, satisfies the intrinsic (within-cube) top-order Hölder condition of order k with exponent α and constant L·(d/2)^k·(d/2)^α.
Formal statement
Proof (Lean source)
AffineWithin 1 core · 1 supporting These lemmas transport within-set derivatives from a translated real interval to the normalized one-dimensional cube. ★ affine_cube_coordJetOn
Affine transfer of intrinsic interval jets
These lemmas transport within-set derivatives from a translated real interval to the normalized one-dimensional cube. They are the geometric adapter for fixed-cube Hölder interpolation, including the interval endpoints.
For a function f, a derivative order j, and the closed interval from a to a + d of positive length, at every point z of the closed one-dimensional unit cube and for every choice of j coordinate directions, the order-j within-cube coordinate derivative of the affine pullback of f equals (d/2)^j times the order-j within-interval derivative of f at the image point. This includes both endpoints and order zero.
Formal statement
Proof (Lean source)
1 supporting declaration (lemmas, instances)
-
affine_cube_contDiffOntheorem — If a function f is k times continuously differentiable on the closed interval from a to a + d of positive length, then its pullback by the affine map sending the closed one-dimensional unit cube onto that interval is k times continuously differentiable on the cube.hypothesesconclusionContDiffOn ℝ k (fun z : Fin 1 → ℝ => f (a + d / 2 + (d / 2) * z 0)) (cube 1)Proof (Lean source)
theorem affine_cube_contDiffOn (k : ℕ) (a d : ℝ) (hd : 0 < d) (f : ℝ → ℝ) (hf : ContDiffOn ℝ k f (Icc a (a + d))) : ContDiffOn ℝ k (fun z : Fin 1 → ℝ => f (a + d / 2 + (d / 2) * z 0)) (cube 1) := by have hmap (z : Fin 1 → ℝ) (hz : z ∈ cube 1) : a + d / 2 + (d / 2) * z 0 ∈ Icc a (a + d) := by have hz0 : z 0 ∈ Icc (-1 : ℝ) 1 := hz 0 rcases hz0 with ⟨hzlo, hzhi⟩ constructor <;> nlinarith have hinner : ContDiff ℝ k (fun z : Fin 1 → ℝ => a + d / 2 + (d / 2) * z 0) := by fun_prop exact hf.comp hinner.contDiffOn (fun z hz => hmap z hz)
AmbientGrid 1 core · 0 supporting This one-dimensional adapter isolates the finite-grid estimate behind interval interpolation. ★ uniform_interior_ambient_jet_bound
Interior interpolation from ambient Hölder data
This one-dimensional adapter isolates the finite-grid estimate behind interval interpolation. It uses ambient derivatives only at points where the function is smooth in a neighborhood. The later local-window bridge applies it to within derivative data without imposing ambient regularity at the original endpoints.
Fix a derivative order k, a Hölder exponent α with α positive, an interval length d that is positive, and a nonnegative value envelope M and a nonnegative Hölder constant L. Then there is one nonnegative constant B such that, for every interval from a to a + d and every function f that is k times continuously differentiable on it, bounded by M there, and whose ambient k-th derivative is Hölder with constant L and exponent α there, every ambient derivative of f of order at most k is bounded by B at the interior points. This includes order zero.
Formal statement
Proof (Lean source)
BoundaryTransfer 1 core · 0 supporting Continuity of the within jet on a compact interval carries any common interior bound to both endpoints. ★ within_jet_bound_of_interior_ambient_bound
Transfer of interior derivative bounds to endpoint within derivatives
Continuity of the within jet on a compact interval carries any common interior bound to both endpoints. The statement makes no global smoothness assumption outside the interval.
If a function f is k times continuously differentiable on a compact interval from a to b that is nondegenerate, and for one constant B all its ordinary (ambient) derivatives of order at most k are bounded in absolute value by B at every interior point, then all its within-interval derivatives of order at most k are bounded in absolute value by B at every point of the closed interval, both endpoints included. No smoothness outside the interval is assumed.
Formal statement
Proof (Lean source)
BoundedTopGrid 1 core · 0 supporting This isolates the finite-grid estimate for a bounded highest derivative. ★ uniform_interior_ambient_jet_bound_of_top_bound
Interior interpolation from a bounded top derivative
This isolates the finite-grid estimate for a bounded highest derivative.
The boundary trace is handled separately by BoundaryTransfer.
Fix a derivative order k, an interval length d that is positive, a nonnegative value envelope M and a nonnegative top-derivative envelope T. Then there is one nonnegative constant B such that, for every interval from a to a + d and every function f that is k times continuously differentiable on it, bounded by M there, and whose k-th within-interval derivative is bounded by T there, every ambient derivative of f of order at most k is bounded by B at the interior points.
Formal statement
Proof (Lean source)
Endpoint 1 core · 1 supporting The endpoint result needs only within-interval regularity; its coefficients are chosen separately for each function and its constant is uniform over all translated intervals of the same length. ★ endpoint_holder_taylor
Endpoint Taylor remainder from a top Hölder modulus
The endpoint result needs only within-interval regularity; its coefficients are chosen separately for each function and its constant is uniform over all translated intervals of the same length.
Fix a derivative order k, a Hölder exponent α with α positive, an interval length d that is positive, and a nonnegative Hölder constant L. Then there is one nonnegative constant C such that every function f that is k times continuously differentiable on an interval from a to a + d, with k-th within-interval derivative Hölder with constant L and exponent α there, has a polynomial of degree at most k in the distance a + d − t to the right endpoint whose error at every point t of the interval is at most C times that distance to the power k + α. The polynomial coefficients may depend on f; this includes k = 0.
Formal statement
Proof (Lean source)
1 supporting declaration (lemmas, instances)
-
endpoint_holder_taylor_Icctheorem — Fix a derivative order k, a Hölder exponent α with α positive, endpoints a and b with a < b, and a nonnegative Hölder constant L. Then there is one nonnegative constant C such that every function f that is k times continuously differentiable on the interval from a to b, with k-th within-interval derivative Hölder with constant L and exponent α there, has a polynomial of degree at most k in b − t whose error at every point t of the interval is at most C·(b − t)^(k + α). The coefficients may depend on the function, while the remainder constant depends only on the order, exponent, length, and Hölder constant.hypothesesk :ℕα a b L :ℝhα :0 < αhab :a < bhL :0 ≤ Lconclusion∃ C : ℝ,0 ≤ Cconclusion 1f :ℝ → ℝContDiffOn ℝ k f (Icc a b)(∀ x ∈ Icc a b, ∀ y ∈ Icc a b, |iteratedDerivWithin k f (Icc a b) x - iteratedDerivWithin k f (Icc a b) y| ≤ L * |x - y| ^ α)Proof (Lean source)
theorem endpoint_holder_taylor_Icc (k : ℕ) (α a b L : ℝ) (hα : 0 < α) (hab : a < b) (hL : 0 ≤ L) : ∃ C : ℝ, 0 ≤ C ∧ ∀ (f : ℝ → ℝ), ContDiffOn ℝ k f (Icc a b) → (∀ x ∈ Icc a b, ∀ y ∈ Icc a b, |iteratedDerivWithin k f (Icc a b) x - iteratedDerivWithin k f (Icc a b) y| ≤ L * |x - y| ^ α) → ∃ coeff : Fin (k + 1) → ℝ, ∀ t ∈ Icc a b, |f t - ∑ j : Fin (k + 1), coeff j * (b - t) ^ j.val| ≤ C * (b - t) ^ ((k : ℝ) + α) := by obtain ⟨C, hC, hbound⟩ := endpoint_holder_taylor k α (b - a) L hα (sub_pos.mpr hab) hL refine ⟨C, hC, ?_⟩ intro f hf hholder have heq : a + (b - a) = b := by ring simpa [heq] using (hbound a f (by simpa [heq] using hf) (by simpa [heq] using hholder))
Interpolation 1 core · 2 supporting Finite-interval interpolation for scalar functions, stated directly in terms of ContDiffOn and iteratedDerivWithin. ★ uniform_iteratedDerivWithin_bound
Uniform derivative bounds from a top Hölder modulus
Finite-interval interpolation for scalar functions, stated directly in terms of
ContDiffOn and iteratedDerivWithin. The constant is uniform under translation
of an interval of fixed positive length.
Fix a derivative order k, a Hölder exponent α with α positive, an interval length d that is positive, and a nonnegative value envelope M and a nonnegative Hölder constant L. Then there is one nonnegative constant B such that, for every interval from a to a + d and every function f that is k times continuously differentiable on it, bounded by M there, and whose k-th within-interval derivative is Hölder with constant L and exponent α there, every within-interval derivative of f of order at most k is bounded by B on the whole interval.
Formal statement
Proof (Lean source)
2 supporting declarations (lemmas, instances)
-
uniform_top_iteratedDerivWithin_boundtheorem — Fix a derivative order k, a Hölder exponent α with α positive, an interval length d that is positive, and a nonnegative value envelope M and a nonnegative Hölder constant L. Then there is one nonnegative constant B such that, for every interval from a to a + d and every function f that is k times continuously differentiable on it, bounded by M there, and whose k-th within-interval derivative is Hölder with constant L and exponent α there, that k-th derivative is bounded by B on the whole interval. The bound is independent of the interval location and the function.hypothesesk :ℕα d M L :ℝhα :0 < αhd :0 < dhM :0 ≤ MhL :0 ≤ Lconclusion∃ B : ℝ,0 ≤ Bconclusion 1a :ℝf :ℝ → ℝContDiffOn ℝ k f (Icc a (a + d))(∀ x ∈ Icc a (a + d), |f x| ≤ M)(∀ x ∈ Icc a (a + d), ∀ y ∈ Icc a (a + d), |iteratedDerivWithin k f (Icc a (a + d)) x - iteratedDerivWithin k f (Icc a (a + d)) y| ≤ L * |x - y| ^ α)x ∈ Set.Icc a (a + d) :|iteratedDerivWithin k f (Icc a (a + d)) x| ≤ BProof (Lean source)
theorem uniform_top_iteratedDerivWithin_bound (k : ℕ) (α d M L : ℝ) (hα : 0 < α) (hd : 0 < d) (hM : 0 ≤ M) (hL : 0 ≤ L) : ∃ B : ℝ, 0 ≤ B ∧ ∀ (a : ℝ) (f : ℝ → ℝ), ContDiffOn ℝ k f (Icc a (a + d)) → (∀ x ∈ Icc a (a + d), |f x| ≤ M) → (∀ x ∈ Icc a (a + d), ∀ y ∈ Icc a (a + d), |iteratedDerivWithin k f (Icc a (a + d)) x - iteratedDerivWithin k f (Icc a (a + d)) y| ≤ L * |x - y| ^ α) → ∀ x ∈ Icc a (a + d), |iteratedDerivWithin k f (Icc a (a + d)) x| ≤ B := by obtain ⟨K, hK, hfixed⟩ := fixed_cube_interpolation_within 1 k α hα let c : ℝ := d / 2 have hc : 0 < c := by dsimp [c]; linarith let R : ℝ := K * (M + L * c ^ k * c ^ α) let B : ℝ := R / c ^ k have hR : 0 ≤ R := by dsimp [R]; positivity refine ⟨B, div_nonneg hR (pow_nonneg hc.le _), ?_⟩ intro a f hf hval hholder x hx let u : (Fin 1 → ℝ) → ℝ := fun z => f (a + c + c * z 0) have hmap (z : Fin 1 → ℝ) (hz : z ∈ cube 1) : a + c + c * z 0 ∈ Icc a (a + d) := by have hz0 := hz 0 dsimp [c] at * constructor <;> nlinarith [hz0.1, hz0.2] have hu : ContDiffOn ℝ k u (cube 1) := by simpa [u, c] using affine_cube_contDiffOn k a d hd f hf have hval' : ∀ z ∈ cube 1, |u z| ≤ M := by intro z hz exact hval _ (hmap z hz) have hL' : 0 ≤ L * c ^ k * c ^ α := by positivity have hholder' : TopHolderOn (cube 1) k α (L * c ^ k * c ^ α) u := by simpa [u, c] using affine_cube_topHolderOn k α a d L hd f hholder let z : Fin 1 → ℝ := fun _ => (x - a - c) / c have hz : z ∈ cube 1 := by intro i have hi : i = 0 := Fin.fin_one_eq_zero i subst i change -1 ≤ (x - a - c) / c ∧ (x - a - c) / c ≤ 1 constructor · apply (le_div_iff₀ hc).2 dsimp [c] nlinarith [hx.1] · apply (div_le_iff₀ hc).2 dsimp [c] nlinarith [hx.2] have heq : a + c + c * z 0 = x := by dsimp [z] field_simp ring have hbound := hfixed u M (L * c ^ k * c ^ α) hM hL' hu hval' hholder' k (le_refl k) (fun _ => (0 : Fin 1)) z hz rw [affine_cube_coordJetOn k a d hd f (fun _ => (0 : Fin 1)) z hz] at hbound change |c ^ k * iteratedDerivWithin k f (Icc a (a + d)) (a + c + c * z 0)| ≤ R at hbound rw [heq, abs_mul, abs_of_pos (pow_pos hc _)] at hbound change |iteratedDerivWithin k f (Icc a (a + d)) x| ≤ R / c ^ k apply (le_div_iff₀ (pow_pos hc _)).2 nlinarith [hbound] -
uniform_lower_iteratedDerivWithin_of_top_boundtheorem — Fix a derivative order k, an interval length d that is positive, a nonnegative value envelope M and a nonnegative top-derivative envelope T. Then there is one nonnegative constant B such that, for every interval from a to a + d and every function f that is k times continuously differentiable on it, bounded by M there, and whose k-th within-interval derivative is bounded by T there, every within-interval derivative of f of order at most k is bounded by B on the whole interval, endpoints included.hypothesesk :ℕd M T :ℝhd :0 < dhM :0 ≤ MhT :0 ≤ Tconclusion∃ B : ℝ,0 ≤ Bconclusion 1a :ℝf :ℝ → ℝContDiffOn ℝ k f (Icc a (a + d))(∀ x ∈ Icc a (a + d), |f x| ≤ M)j ≤ k :x ∈ Set.Icc a (a + d) :|iteratedDerivWithin j f (Icc a (a + d)) x| ≤ BProof (Lean source)
theorem uniform_lower_iteratedDerivWithin_of_top_bound (k : ℕ) (d M T : ℝ) (hd : 0 < d) (hM : 0 ≤ M) (hT : 0 ≤ T) : ∃ B : ℝ, 0 ≤ B ∧ ∀ (a : ℝ) (f : ℝ → ℝ), ContDiffOn ℝ k f (Icc a (a + d)) → (∀ x ∈ Icc a (a + d), |f x| ≤ M) → (∀ x ∈ Icc a (a + d), |iteratedDerivWithin k f (Icc a (a + d)) x| ≤ T) → ∀ j ≤ k, ∀ x ∈ Icc a (a + d), |iteratedDerivWithin j f (Icc a (a + d)) x| ≤ B := by obtain ⟨B, hB, hinterior⟩ := uniform_interior_ambient_jet_bound_of_top_bound k d M T hd hM hT refine ⟨B, hB, ?_⟩ intro a f hf hval htop exact within_jet_bound_of_interior_ambient_bound k a (a + d) B (by linarith) f hf (hinterior a f hf hval htop)
JetHolder 1 core · 0 supporting A bound on one more derivative gives a Lipschitz estimate on a compact interval and hence a Hölder estimate at every exponent up to one. ★ lower_jet_holder_of_next_bound
Hölder control of a lower within-interval jet
A bound on one more derivative gives a Lipschitz estimate on a compact interval and hence a Hölder estimate at every exponent up to one.
If a function f is j + 1 times continuously differentiable on the closed interval from a to a + d of positive length, and its within-interval derivative of order j + 1 is bounded in absolute value by B on that interval, with B nonnegative, then for every exponent α that is positive and at most one, the order-j within-interval derivative is Hölder with exponent α and constant B·d^(1 − α): at any two points x, y of the interval its values differ by at most B·d^(1 − α)·|x − y|^α. Pairs involving either endpoint are included.
Formal statement
Proof (Lean source)
PrimitiveExp 1 core · 1 supporting Quantitative regularity of an interval primitive and of its survival-type exponential, using only a value bound and a top derivative Hölder bound for the integrand. ★ survival_holder_closure
Primitive and exponential closure on an interval
Quantitative regularity of an interval primitive and of its survival-type exponential, using only a value bound and a top derivative Hölder bound for the integrand. All constants are uniform under translation of the interval.
Fix a derivative order k, a Hölder exponent α with α positive and at most one, an interval length d that is positive, and a nonnegative value envelope M and a nonnegative Hölder constant L. Then there is one nonnegative constant B such that, for every interval from a to a + d and every integrand h that is k times continuously differentiable on it, bounded by M there, and whose k-th within-interval derivative is Hölder with constant L and exponent α there, the survival-type function exp(−∫ from a to t of h) is k times continuously differentiable on the interval, bounded by B there, and has k-th within-interval derivative Hölder with constant B and exponent α. The constant depends only on the order, exponent, length, and the two envelopes.
Formal statement
Proof (Lean source)
1 supporting declaration (lemmas, instances)
-
primitive_quantitative_closuretheorem — Fix a derivative order k, a Hölder exponent α with α positive, an interval length d that is positive, and a nonnegative value envelope M and a nonnegative Hölder constant L. Then there is one nonnegative constant B such that, for every interval from a to a + d and every integrand h that is k times continuously differentiable on it, bounded by M there, and whose k-th within-interval derivative is Hölder with constant L and exponent α there, the primitive of h from a is k + 1 times continuously differentiable on the interval, all its within-interval derivatives up to order k + 1 are bounded by B there, and its (k + 1)-th within-interval derivative is Hölder with constant B and exponent α.hypothesesk :ℕα d M L :ℝhα :0 < αhd :0 < dhM :0 ≤ MhL :0 ≤ Lconclusion∃ B : ℝ,0 ≤ Bconclusion 1a :ℝh :ℝ → ℝContDiffOn ℝ k h (Icc a (a + d))(∀ x ∈ Icc a (a + d), |h x| ≤ M)(∀ x ∈ Icc a (a + d), ∀ y ∈ Icc a (a + d), |iteratedDerivWithin k h (Icc a (a + d)) x - iteratedDerivWithin k h (Icc a (a + d)) y| ≤ L * |x - y| ^ α)H :fun t : ℝ => ∫ x in a..t, h xContDiffOn ℝ (k + 1) H (Icc a (a + d))j ≤ k + 1 :x ∈ Set.Icc a (a + d) :|iteratedDerivWithin j H (Icc a (a + d)) x| ≤ Bx ∈ Set.Icc a (a + d) :y ∈ Set.Icc a (a + d) :|iteratedDerivWithin (k + 1) H (Icc a (a + d)) x- iteratedDerivWithin (k + 1) H (Icc a (a + d)) y|≤ B * |x - y| ^ αProof (Lean source)
theorem primitive_quantitative_closure (k : ℕ) (α d M L : ℝ) (hα : 0 < α) (hd : 0 < d) (hM : 0 ≤ M) (hL : 0 ≤ L) : ∃ B : ℝ, 0 ≤ B ∧ ∀ (a : ℝ) (h : ℝ → ℝ), ContDiffOn ℝ k h (Icc a (a + d)) → (∀ x ∈ Icc a (a + d), |h x| ≤ M) → (∀ x ∈ Icc a (a + d), ∀ y ∈ Icc a (a + d), |iteratedDerivWithin k h (Icc a (a + d)) x - iteratedDerivWithin k h (Icc a (a + d)) y| ≤ L * |x - y| ^ α) → let H := fun t : ℝ => ∫ x in a..t, h x ContDiffOn ℝ (k + 1) H (Icc a (a + d)) ∧ (∀ j ≤ k + 1, ∀ x ∈ Icc a (a + d), |iteratedDerivWithin j H (Icc a (a + d)) x| ≤ B) ∧ (∀ x ∈ Icc a (a + d), ∀ y ∈ Icc a (a + d), |iteratedDerivWithin (k + 1) H (Icc a (a + d)) x - iteratedDerivWithin (k + 1) H (Icc a (a + d)) y| ≤ B * |x - y| ^ α) := by obtain ⟨C, hC, hbound⟩ := uniform_iteratedDerivWithin_bound k α d M L hα hd hM hL refine ⟨d * M + C + L, by positivity, ?_⟩ intro a h hh hval hholder let s := Icc a (a + d) let H := fun t : ℝ => ∫ x in a..t, h x have hjet := interval_primitive_iteratedDerivWithin_succ k a d hd h hh have hCb := hbound a h hh hval hholder refine ⟨interval_primitive_contDiffOn k a d hd h hh, ?_, ?_⟩ · intro j hj x hx cases j with | zero => have hsub : ∀ t ∈ Set.uIoc a x, ‖h t‖ ≤ M := by intro t ht have ht' : t ∈ Ioc a x := by simpa [Set.uIoc_of_le hx.1] using ht simpa [Real.norm_eq_abs] using hval t ⟨ht'.1.le, ht'.2.trans hx.2⟩ have hi := intervalIntegral.norm_integral_le_of_norm_le_const hsub have hlen : |x - a| ≤ d := by rw [abs_of_nonneg (sub_nonneg.mpr hx.1)] linarith [hx.2] have hmul : M * |x - a| ≤ M * d := mul_le_mul_of_nonneg_left hlen hM simpa only [iteratedDerivWithin_zero, Real.norm_eq_abs] using (hi.trans (hmul.trans (by linarith [hC, hL]))) | succ j => have hjk : j ≤ k := by omega rw [hjet j hjk x hx] exact (hCb j hjk x hx).trans (by linarith [mul_nonneg hd.le hM, hL]) · intro x hx y hy rw [hjet k (le_refl k) x hx, hjet k (le_refl k) y hy] exact (hholder x hx y hy).trans (by have hp : 0 ≤ |x - y| ^ α := Real.rpow_nonneg (abs_nonneg _) _ nlinarith [mul_nonneg (add_nonneg (mul_nonneg hd.le hM) hC) hp])
PrimitiveJet 1 core · 2 supporting These identities isolate the fundamental theorem of calculus and its finite-order within-interval consequences, including both endpoints. ★ interval_primitive_contDiffOn
Within-interval jets of an interval primitive
These identities isolate the fundamental theorem of calculus and its finite-order within-interval consequences, including both endpoints.
If an integrand h is k times continuously differentiable on the closed interval from a to a + d of positive length, then its primitive from a is k + 1 times continuously differentiable on that same interval.
Formal statement
Proof (Lean source)
2 supporting declarations (lemmas, instances)
-
interval_primitive_derivWithintheorem — If an integrand h is continuous on the closed interval from a to a + d of positive length, then at every point t of the interval, endpoints included, the within-interval derivative of the primitive of h from a equals h(t).hypothesesconclusionderivWithin (fun u : ℝ => ∫ x in a..u, h x) (Icc a (a + d)) t = h tProof (Lean source)
theorem interval_primitive_derivWithin (a d : ℝ) (hd : 0 < d) (h : ℝ → ℝ) (hh : ContDiffOn ℝ 0 h (Icc a (a + d))) : ∀ t ∈ Icc a (a + d), derivWithin (fun u : ℝ => ∫ x in a..u, h x) (Icc a (a + d)) t = h t := by /- Apply the interval FTC at interior points and transfer the derivative identity to each endpoint through the one-sided within derivative. -/ have hab : a < a + d := lt_add_of_pos_right a hd have hcont : ContinuousOn h (Icc a (a + d)) := hh.continuousOn intro t ht have : Fact (t ∈ Icc a (a + d)) := ⟨ht⟩ have hint : IntervalIntegrable h MeasureTheory.volume a t := (hcont.mono (by intro x hx exact ⟨hx.1, hx.2.trans ht.2⟩)).intervalIntegrable_of_Icc ht.1 have hmeas : StronglyMeasurableAtFilter h (nhdsWithin t (Icc a (a + d))) := hcont.stronglyMeasurableAtFilter_nhdsWithin measurableSet_Icc t exact (intervalIntegral.integral_hasDerivWithinAt_right (s := Icc a (a + d)) (t := Icc a (a + d)) hint hmeas (hcont t ht)).derivWithin ((uniqueDiffOn_Icc hab) t ht) -
interval_primitive_iteratedDerivWithin_succtheorem — If an integrand h is k times continuously differentiable on the closed interval from a to a + d of positive length, then for every order j at most k and every point t of the interval, endpoints included, the (j + 1)-th within-interval derivative of the primitive of h from a equals the j-th within-interval derivative of h.hypothesesk :ℕa d :ℝhd :0 < dh :ℝ → ℝhh :ContDiffOn ℝ k h (Icc a (a + d))j ≤ k :t ∈ Set.Icc a (a + d) :conclusioniteratedDerivWithin (j + 1) (fun u : ℝ => ∫ x in a..u, h x) (Icc a (a + d)) t= iteratedDerivWithin j h (Icc a (a + d)) tProof (Lean source)
theorem interval_primitive_iteratedDerivWithin_succ (k : ℕ) (a d : ℝ) (hd : 0 < d) (h : ℝ → ℝ) (hh : ContDiffOn ℝ k h (Icc a (a + d))) : ∀ j ≤ k, ∀ t ∈ Icc a (a + d), iteratedDerivWithin (j + 1) (fun u : ℝ => ∫ x in a..u, h x) (Icc a (a + d)) t = iteratedDerivWithin j h (Icc a (a + d)) t := by /- Rewrite the successor iterated derivative as the derivative of the preceding jet and use the base FTC identity inductively. -/ intro j hj t ht rw [iteratedDerivWithin_succ'] exact (iteratedDerivWithin_congr (n := j) (interval_primitive_derivWithin a d hd h (hh.of_le (by norm_num)))) ht
Product 1 core · 1 supporting The product estimate uses only the two factors' value and top-derivative Hölder bounds. ★ survival_product_holder_closure
Quantitative product closure for interval Hölder jets
The product estimate uses only the two factors' value and top-derivative Hölder bounds. A specialization covers an exponential primitive times a second Hölder-smooth function.
Fix a derivative order k, a Hölder exponent α with α positive and at most one, an interval length d that is positive, and nonnegative value envelopes Mh and Mg and Hölder constants Lh and Lg. Then there is one nonnegative constant B such that, for every interval from a to a + d and every integrand h and second factor g that are k times continuously differentiable on it, bounded there by Mh and Mg, and whose k-th within-interval derivatives are Hölder with exponent α and constants Lh and Lg there, the survival-weighted product t ↦ exp(−∫ from a to t of h)·g(t) is k times continuously differentiable on the interval, bounded by B there, and has k-th within-interval derivative Hölder with constant B and exponent α. No product seminorm is an input.
Formal statement
Proof (Lean source)
1 supporting declaration (lemmas, instances)
-
product_holder_closuretheorem — Fix a derivative order k, a Hölder exponent α with α positive and at most one, an interval length d that is positive, and nonnegative value envelopes Mf and Mg and Hölder constants Lf and Lg for two factors. Then there is one nonnegative constant B such that, for every interval from a to a + d and all functions f and g that are k times continuously differentiable on it, bounded there by Mf and Mg, and whose k-th within-interval derivatives are Hölder with exponent α and constants Lf and Lg there, the product f·g is k times continuously differentiable on the interval, bounded by B there, and has k-th within-interval derivative Hölder with constant B and exponent α.hypothesesk :ℕα d Mf Lf Mg Lg :ℝhα :0 < αhα1 :α ≤ 1hd :0 < dhMf :0 ≤ MfhLf :0 ≤ LfhMg :0 ≤ MghLg :0 ≤ Lgconclusion∃ B : ℝ,0 ≤ Bconclusion 1a :ℝf g :ℝ → ℝContDiffOn ℝ k f (Icc a (a + d))ContDiffOn ℝ k g (Icc a (a + d))(∀ x ∈ Icc a (a + d), |f x| ≤ Mf)(∀ x ∈ Icc a (a + d), |g x| ≤ Mg)(∀ x ∈ Icc a (a + d), ∀ y ∈ Icc a (a + d), |iteratedDerivWithin k f (Icc a (a + d)) x - iteratedDerivWithin k f (Icc a (a + d)) y| ≤ Lf * |x - y| ^ α)(∀ x ∈ Icc a (a + d), ∀ y ∈ Icc a (a + d), |iteratedDerivWithin k g (Icc a (a + d)) x - iteratedDerivWithin k g (Icc a (a + d)) y| ≤ Lg * |x - y| ^ α)ContDiffOn ℝ k (fun t => f t * g t) (Icc a (a + d))x ∈ Set.Icc a (a + d) :|f x * g x| ≤ Bx ∈ Set.Icc a (a + d) :y ∈ Set.Icc a (a + d) :|iteratedDerivWithin k (fun t => f t * g t) (Icc a (a + d)) x- iteratedDerivWithin k (fun t => f t * g t) (Icc a (a + d)) y|≤ B * |x - y| ^ αProof (Lean source)
theorem product_holder_closure (k : ℕ) (α d Mf Lf Mg Lg : ℝ) (hα : 0 < α) (hα1 : α ≤ 1) (hd : 0 < d) (hMf : 0 ≤ Mf) (hLf : 0 ≤ Lf) (hMg : 0 ≤ Mg) (hLg : 0 ≤ Lg) : ∃ B : ℝ, 0 ≤ B ∧ ∀ (a : ℝ) (f g : ℝ → ℝ), ContDiffOn ℝ k f (Icc a (a + d)) → ContDiffOn ℝ k g (Icc a (a + d)) → (∀ x ∈ Icc a (a + d), |f x| ≤ Mf) → (∀ x ∈ Icc a (a + d), |g x| ≤ Mg) → (∀ x ∈ Icc a (a + d), ∀ y ∈ Icc a (a + d), |iteratedDerivWithin k f (Icc a (a + d)) x - iteratedDerivWithin k f (Icc a (a + d)) y| ≤ Lf * |x - y| ^ α) → (∀ x ∈ Icc a (a + d), ∀ y ∈ Icc a (a + d), |iteratedDerivWithin k g (Icc a (a + d)) x - iteratedDerivWithin k g (Icc a (a + d)) y| ≤ Lg * |x - y| ^ α) → ContDiffOn ℝ k (fun t => f t * g t) (Icc a (a + d)) ∧ (∀ x ∈ Icc a (a + d), |f x * g x| ≤ B) ∧ (∀ x ∈ Icc a (a + d), ∀ y ∈ Icc a (a + d), |iteratedDerivWithin k (fun t => f t * g t) (Icc a (a + d)) x - iteratedDerivWithin k (fun t => f t * g t) (Icc a (a + d)) y| ≤ B * |x - y| ^ α) := by obtain ⟨Cf, hCf, hCf_bound⟩ := uniform_iteratedDerivWithin_bound k α d Mf Lf hα hd hMf hLf obtain ⟨Cg, hCg, hCg_bound⟩ := uniform_iteratedDerivWithin_bound k α d Mg Lg hα hd hMg hLg let Hf := Lf + Cf * d ^ (1 - α) let Hg := Lg + Cg * d ^ (1 - α) have hHf : 0 ≤ Hf := by dsimp [Hf]; positivity have hHg : 0 ≤ Hg := by dsimp [Hg]; positivity have hLf_le : Lf ≤ Hf := by dsimp [Hf] exact le_add_of_nonneg_right (mul_nonneg hCf (Real.rpow_nonneg hd.le _)) have hCf_le : Cf * d ^ (1 - α) ≤ Hf := by dsimp [Hf] exact le_add_of_nonneg_left hLf have hLg_le : Lg ≤ Hg := by dsimp [Hg] exact le_add_of_nonneg_right (mul_nonneg hCg (Real.rpow_nonneg hd.le _)) have hCg_le : Cg * d ^ (1 - α) ≤ Hg := by dsimp [Hg] exact le_add_of_nonneg_left hLg let C := Cf * Hg + Cg * Hf have hC : 0 ≤ C := by dsimp [C]; positivity let B := Mf * Mg + ∑ i ∈ range (k + 1), (Nat.choose k i : ℝ) * C have hB : 0 ≤ B := by dsimp [B] apply add_nonneg (mul_nonneg hMf hMg) exact Finset.sum_nonneg fun i hi => mul_nonneg (Nat.cast_nonneg _) hC refine ⟨B, hB, ?_⟩ intro a f g hf hg hfv hgv hfh hgh let s := Icc a (a + d) have hu : UniqueDiffOn ℝ s := uniqueDiffOn_Icc (by linarith) have hfb := hCf_bound a f hf hfv hfh have hgb := hCg_bound a g hg hgv hgh have hfh_all (j : ℕ) (hj : j ≤ k) (x : ℝ) (hx : x ∈ s) (y : ℝ) (hy : y ∈ s) : |iteratedDerivWithin j f s x - iteratedDerivWithin j f s y| ≤ Hf * |x - y| ^ α := by by_cases hk0 : k = 0 · have hj0 : j = 0 := by omega subst k subst j exact (hfh x hx y hy).trans (mul_le_mul_of_nonneg_right hLf_le (Real.rpow_nonneg (abs_nonneg _) _)) by_cases heq : j = k · subst j exact (hfh x hx y hy).trans (mul_le_mul_of_nonneg_right hLf_le (Real.rpow_nonneg (abs_nonneg _) _)) · have hj1 : j + 1 ≤ k := by omega have h := lower_jet_holder_of_next_bound j α a d Cf hα hα1 hd hCf f (hf.of_le (by exact_mod_cast hj1)) (fun t ht => hfb (j + 1) hj1 t ht) x hx y hy exact h.trans (mul_le_mul_of_nonneg_right hCf_le (Real.rpow_nonneg (abs_nonneg _) _)) have hgh_all (j : ℕ) (hj : j ≤ k) (x : ℝ) (hx : x ∈ s) (y : ℝ) (hy : y ∈ s) : |iteratedDerivWithin j g s x - iteratedDerivWithin j g s y| ≤ Hg * |x - y| ^ α := by by_cases hk0 : k = 0 · have hj0 : j = 0 := by omega subst k subst j exact (hgh x hx y hy).trans (mul_le_mul_of_nonneg_right hLg_le (Real.rpow_nonneg (abs_nonneg _) _)) by_cases heq : j = k · subst j exact (hgh x hx y hy).trans (mul_le_mul_of_nonneg_right hLg_le (Real.rpow_nonneg (abs_nonneg _) _)) · have hj1 : j + 1 ≤ k := by omega have h := lower_jet_holder_of_next_bound j α a d Cg hα hα1 hd hCg g (hg.of_le (by exact_mod_cast hj1)) (fun t ht => hgb (j + 1) hj1 t ht) x hx y hy exact h.trans (mul_le_mul_of_nonneg_right hCg_le (Real.rpow_nonneg (abs_nonneg _) _)) refine ⟨hf.mul hg, ?_, ?_⟩ · intro x hx calc |f x * g x| = |f x| * |g x| := abs_mul _ _ _ ≤ Mf * Mg := mul_le_mul (hfv x hx) (hgv x hx) (abs_nonneg _) hMf _ ≤ B := by dsimp [B] exact le_add_of_nonneg_right (Finset.sum_nonneg fun i hi => mul_nonneg (Nat.cast_nonneg _) hC) · intro x hx y hy have hpow : 0 ≤ |x - y| ^ α := Real.rpow_nonneg (abs_nonneg _) _ have hterm (i : ℕ) (hi : i ∈ range (k + 1)) : |(Nat.choose k i : ℝ) * iteratedDerivWithin i f s x * iteratedDerivWithin (k - i) g s x - (Nat.choose k i : ℝ) * iteratedDerivWithin i f s y * iteratedDerivWithin (k - i) g s y| ≤ ((Nat.choose k i : ℝ) * C) * |x - y| ^ α := by have hik : i ≤ k := by have hi' := Finset.mem_range.mp hi omega have hki : k - i ≤ k := sub_le _ _ let u := iteratedDerivWithin i f s x let u' := iteratedDerivWithin i f s y let v := iteratedDerivWithin (k - i) g s x let v' := iteratedDerivWithin (k - i) g s y have huv : |u * v - u' * v'| ≤ C * |x - y| ^ α := by have heq : u * v - u' * v' = (u - u') * v + u' * (v - v') := by ring rw [heq] calc |(u - u') * v + u' * (v - v')| ≤ |u - u'| * |v| + |u'| * |v - v'| := by simpa only [abs_mul] using abs_add_le ((u - u') * v) (u' * (v - v')) _ ≤ (Hf * |x - y| ^ α) * Cg + Cf * (Hg * |x - y| ^ α) := by apply add_le_add · exact mul_le_mul (hfh_all i hik x hx y hy) (hgb (k - i) hki x hx) (abs_nonneg _) (mul_nonneg hHf hpow) · exact mul_le_mul (hfb i hik y hy) (hgh_all (k - i) hki x hx y hy) (abs_nonneg _) hCf _ = C * |x - y| ^ α := by dsimp [C]; ring have hc : 0 ≤ (Nat.choose k i : ℝ) := Nat.cast_nonneg _ calc _ = (Nat.choose k i : ℝ) * |u * v - u' * v'| := by have heq : (Nat.choose k i : ℝ) * iteratedDerivWithin i f s x * iteratedDerivWithin (k - i) g s x - (Nat.choose k i : ℝ) * iteratedDerivWithin i f s y * iteratedDerivWithin (k - i) g s y = (Nat.choose k i : ℝ) * (u * v - u' * v') := by dsimp [u, u', v, v']; ring rw [heq, abs_mul, abs_of_nonneg hc] _ ≤ (Nat.choose k i : ℝ) * (C * |x - y| ^ α) := mul_le_mul_of_nonneg_left huv hc _ = ((Nat.choose k i : ℝ) * C) * |x - y| ^ α := by ring have hsum : |(∑ i ∈ range (k + 1), (Nat.choose k i : ℝ) * iteratedDerivWithin i f s x * iteratedDerivWithin (k - i) g s x) - (∑ i ∈ range (k + 1), (Nat.choose k i : ℝ) * iteratedDerivWithin i f s y * iteratedDerivWithin (k - i) g s y)| ≤ (∑ i ∈ range (k + 1), (Nat.choose k i : ℝ) * C) * |x - y| ^ α := by rw [← Finset.sum_sub_distrib, Finset.sum_mul] exact (Finset.abs_sum_le_sum_abs _ _).trans (Finset.sum_le_sum fun i hi => hterm i hi) change |iteratedDerivWithin k (f * g) s x - iteratedDerivWithin k (f * g) s y| ≤ B * |x - y| ^ α rw [iteratedDerivWithin_mul hx hu (hf x hx) (hg x hx), iteratedDerivWithin_mul hy hu (hf y hy) (hg y hy)] exact hsum.trans (mul_le_mul_of_nonneg_right (by dsimp [B]; exact le_add_of_nonneg_left (mul_nonneg hMf hMg)) hpow)
SurvivalDerivative 1 core · 1 supporting The survival-type exponential satisfies a first-order derivative identity on a nondegenerate closed interval, including both endpoints. ★ survival_iteratedDerivWithin_succ
First within derivative of an exponential primitive
The survival-type exponential satisfies a first-order derivative identity on a nondegenerate closed interval, including both endpoints.
If an integrand h is k times continuously differentiable on the closed interval from a to a + d of positive length, then for every order j at most k and every point t of the interval, the (j + 1)-th within-interval derivative of the survival function S(t) = exp(−∫ from a to t of h) equals minus the Leibniz sum over i from 0 to j of (j choose i) times the i-th within-interval derivative of h times the (j − i)-th within-interval derivative of S, as obtained from the differential equation S′ = −h·S.
Formal statement
Proof (Lean source)
1 supporting declaration (lemmas, instances)
-
survival_derivWithintheorem — If an integrand h is continuous on the closed interval from a to a + d of positive length, then at every point t of the interval, endpoints included, the within-interval derivative of the survival function exp(−∫ from a to t of h) equals −h(t) times that survival function at t.hypothesesconclusion= -h t * exp (-(∫ x in a..t, h x))Proof (Lean source)
theorem survival_derivWithin (a d : ℝ) (hd : 0 < d) (h : ℝ → ℝ) (hh : ContDiffOn ℝ 0 h (Icc a (a + d))) : ∀ t ∈ Icc a (a + d), derivWithin (fun u : ℝ => exp (-(∫ x in a..u, h x))) (Icc a (a + d)) t = -h t * exp (-(∫ x in a..t, h x)) := by /- Combine interval_primitive_derivWithin with the within-set chain rule for negation and Real.exp. -/ intro t ht let s := Icc a (a + d) let H := fun u : ℝ => ∫ x in a..u, h x have hHdiff : DifferentiableWithinAt ℝ H s t := (interval_primitive_contDiffOn 0 a d hd h hh).differentiableOn (by norm_num) t ht have hHderiv : derivWithin H s t = h t := interval_primitive_derivWithin a d hd h hh t ht have hHas : HasDerivWithinAt H (h t) s t := by simpa [hHderiv] using hHdiff.hasDerivWithinAt have hsurv := hHas.neg.exp.derivWithin ((uniqueDiffOn_Icc (lt_add_of_pos_right a hd)) t ht) simpa [H, s, mul_comm] using hsurv
SurvivalJetBound 1 core · 0 supporting The differential equation for an exponential primitive bounds each derivative from lower derivatives. ★ survival_jet_bound_of_integrand_jet_bound
Uniform jet bounds for an exponential interval primitive
The differential equation for an exponential primitive bounds each derivative from lower derivatives. This module isolates the finite recurrence from the Hölder argument in the survival closure theorem.
Fix a derivative order k, an interval length d that is positive, a nonnegative derivative envelope C and a nonnegative value envelope E. Then there is one nonnegative constant B such that, for every interval from a to a + d and every integrand h that is k times continuously differentiable on it, whose within-interval derivatives of every order at most k are bounded by C there, and whose survival-type function exp(−∫ from a to t of h) is bounded by E there, every within-interval derivative of that survival-type function of order at most k + 1 is bounded by B on the whole interval. The constant does not depend on the interval location or on the integrand.
Formal statement
Proof (Lean source)
SurvivalTaylor 1 core · 1 supporting For functions h and g that are k times continuously differentiable on an interval, bounded there, and whose k-th derivatives are Hölder with exponent α ∈ (0, 1], the survival-weighted product t ↦ exp(−∫_a^t h)·g(t) is ap ★ survival_product_endpoint_taylor
Endpoint Taylor expansion of exp(−∫h)·g with a uniform constant
For functions h and g that are k times continuously differentiable on an interval, bounded there, and whose k-th derivatives are Hölder with exponent α ∈ (0, 1], the survival-weighted product t ↦ exp(−∫_a^t h)·g(t) is approximated by a polynomial of degree at most k in the distance to the right endpoint b, with error at most C·(b − t)^(k + α) on the whole interval. The constant C depends only on k, α, the interval length and the sup and Hölder bounds on h and g, not on the functions themselves. The functional form is that of a survival function (the exponential of minus a cumulative hazard) times a second factor.
Main results
* survival_product_endpoint_taylor — the expansion on [a, a + d], with C also independent of
the location a of the interval.
* survival_product_endpoint_taylor_Icc — the same statement on a fixed interval [a, b].
Fix a derivative order k, a Hölder exponent α with α positive and at most one, an interval length d that is positive, and nonnegative value envelopes Mh and Mg and Hölder constants Lh and Lg. Then there is one nonnegative constant C such that, for every interval from a to a + d and every integrand h and second factor g that are k times continuously differentiable on it, bounded there by Mh and Mg, and whose k-th within-interval derivatives are Hölder with exponent α and constants Lh and Lg there, the survival-weighted product exp(−∫ from a to t of h)·g(t) has a polynomial of degree at most k in the distance a + d − t to the right endpoint whose error at every point t of the interval is at most C times that distance to the power k + α. The constant depends only on the shared input bounds and interval length, not on the functions or interval location.
Formal statement
Proof (Lean source)
1 supporting declaration (lemmas, instances)
-
survival_product_endpoint_taylor_Icctheorem — Fix a derivative order k, a Hölder exponent α with α positive and at most one, endpoints a and b with a < b, and nonnegative value envelopes Mh and Mg and Hölder constants Lh and Lg. Then there is one nonnegative constant C such that, for every integrand h and second factor g that are k times continuously differentiable on the interval from a to b, bounded there by Mh and Mg, and whose k-th within-interval derivatives are Hölder with exponent α and constants Lh and Lg there, the survival-weighted product exp(−∫ from a to t of h)·g(t) has a polynomial of degree at most k in b − t whose error at every point t of the interval is at most C·(b − t)^(k + α). No product seminorm is an input.hypothesesk :ℕα a b Mh Lh Mg Lg :ℝhα :0 < αhα1 :α ≤ 1hab :a < bhMh :0 ≤ MhhLh :0 ≤ LhhMg :0 ≤ MghLg :0 ≤ Lgconclusion∃ C : ℝ,0 ≤ Cconclusion 1h g :ℝ → ℝContDiffOn ℝ k h (Icc a b)ContDiffOn ℝ k g (Icc a b)(∀ x ∈ Icc a b, |h x| ≤ Mh)(∀ x ∈ Icc a b, |g x| ≤ Mg)(∀ x ∈ Icc a b, ∀ y ∈ Icc a b, |iteratedDerivWithin k h (Icc a b) x - iteratedDerivWithin k h (Icc a b) y| ≤ Lh * |x - y| ^ α)(∀ x ∈ Icc a b, ∀ y ∈ Icc a b, |iteratedDerivWithin k g (Icc a b) x - iteratedDerivWithin k g (Icc a b) y| ≤ Lg * |x - y| ^ α)Proof (Lean source)
theorem survival_product_endpoint_taylor_Icc (k : ℕ) (α a b Mh Lh Mg Lg : ℝ) (hα : 0 < α) (hα1 : α ≤ 1) (hab : a < b) (hMh : 0 ≤ Mh) (hLh : 0 ≤ Lh) (hMg : 0 ≤ Mg) (hLg : 0 ≤ Lg) : ∃ C : ℝ, 0 ≤ C ∧ ∀ (h g : ℝ → ℝ), ContDiffOn ℝ k h (Icc a b) → ContDiffOn ℝ k g (Icc a b) → (∀ x ∈ Icc a b, |h x| ≤ Mh) → (∀ x ∈ Icc a b, |g x| ≤ Mg) → (∀ x ∈ Icc a b, ∀ y ∈ Icc a b, |iteratedDerivWithin k h (Icc a b) x - iteratedDerivWithin k h (Icc a b) y| ≤ Lh * |x - y| ^ α) → (∀ x ∈ Icc a b, ∀ y ∈ Icc a b, |iteratedDerivWithin k g (Icc a b) x - iteratedDerivWithin k g (Icc a b) y| ≤ Lg * |x - y| ^ α) → ∃ coeff : Fin (k + 1) → ℝ, ∀ t ∈ Icc a b, |exp (-(∫ x in a..t, h x)) * g t - ∑ j : Fin (k + 1), coeff j * (b - t) ^ j.val| ≤ C * (b - t) ^ ((k : ℝ) + α) := by obtain ⟨C, hC, hbound⟩ := survival_product_endpoint_taylor k α (b - a) Mh Lh Mg Lg hα hα1 (sub_pos.mpr hab) hMh hLh hMg hLg refine ⟨C, hC, ?_⟩ intro h g hh hg hMh' hMg' hLh' hLg' have heq : a + (b - a) = b := by ring simpa [heq] using (hbound a h g (by simpa [heq] using hh) (by simpa [heq] using hg) (by simpa [heq] using hMh') (by simpa [heq] using hMg') (by simpa [heq] using hLh') (by simpa [heq] using hLg'))
Within 1 core · 1 supporting holder_taylor_remainder_within is the counterpart of holder_taylor_remainder for a function that is p times continuously differentiable on a closed interval only, with p-th within-interval derivative Hölder of order β − ★ holder_taylor_remainder_within
Hölder–Taylor remainder for a function smooth only on an interval
holder_taylor_remainder_within is the counterpart of holder_taylor_remainder for a function
that is p times continuously differentiable on a closed interval only, with p-th
within-interval derivative Hölder of order β − p: its within-interval Taylor polynomial at a
point t of the interval has error at most (M / p!) |a − t|^β at every point a of the
interval. The proof applies the Lagrange form of the remainder on the segment between t and
a and identifies the derivatives within that segment with those within the interval.
Hölder–Taylor remainder for a function that is smooth only on an interval. Let p be the largest integer strictly below the smoothness index β. If β is positive, the Hölder constant M is nonnegative, the expansion point t and the evaluation point a lie in an interval [lo, hi], f is p times continuously differentiable on that interval, and its p-th derivative within the interval is (β − p)-Hölder there with constant M, then the degree-p Taylor polynomial of f at t, built from derivatives within the interval, approximates f(a) with error at most (M / p!) · |a − t|^β.
Formal statement
Proof (Lean source)
1 supporting declaration (lemmas, instances)
-
iteratedDerivWithin_eq_of_subsettheorem — Let a set s be contained in a set t, where s and t are sets within which derivatives are unique, and let f be n times continuously differentiable on t. Then at every point of s, the n-th derivative of f taken within s equals the one taken within t.hypothesesf :ℝ → ℝs t :Set ℝn :ℕx :ℝst :s ⊆ ths :UniqueDiffOn ℝ sht :UniqueDiffOn ℝ th :ContDiffOn ℝ n f thx :x ∈ sconclusioniteratedDerivWithin n f s x = iteratedDerivWithin n f t xProof (Lean source)
theorem iteratedDerivWithin_eq_of_subset {f : ℝ → ℝ} {s t : Set ℝ} {n : ℕ} {x : ℝ} (st : s ⊆ t) (hs : UniqueDiffOn ℝ s) (ht : UniqueDiffOn ℝ t) (h : ContDiffOn ℝ n f t) (hx : x ∈ s) : iteratedDerivWithin n f s x = iteratedDerivWithin n f t x := by rw [iteratedDerivWithin, iteratedDerivWithin, iteratedFDerivWithin_subset st hs ht h hx]