Finset.abs_sum_mul_sub_mul_sum_le_of_lipschitzOnWith
Library · theorem
Abel summation against a Lipschitz function on a finite set of reals: if every point of the finite set s lies in [a, t], a \le t \le \mathbf{b}, f is L-Lipschitz on [a, \mathbf{b}], K \ge 0, and every partial sum \sum_{y\in s,\,y\le \mathbf{x}} d(y) with \mathbf{x} \in s is at most K in absolute value, then \Bigl\lvert\sum_{\mathbf{x}\in s} f(\mathbf{x})d(\mathbf{x}) - f(t)\sum_{\mathbf{x}\in s} d(\mathbf{x})\Bigr\rvert \le L(t - a)K\,.
Finset.abs_sum_mul_sub_mul_sum_le_of_lipschitzOnWith {s : Finset ℝ} {a b t : ℝ}
(hs : ∀ x ∈ s, x ∈ Set.Icc a t) (hat : a ≤ t) (htb : t ≤ b) {f : ℝ → ℝ} {L : ℝ≥0}
(hf : LipschitzOnWith L f (Set.Icc a b)) (d : ℝ → ℝ) {K : ℝ} (hK0 : 0 ≤ K)
(hK : ∀ x ∈ s, |∑ y ∈ s with y ≤ x, d y| ≤ K) :
|∑ x ∈ s, f x * d x - f t * ∑ x ∈ s, d x| ≤ ↑L * (t - a) * KImport NLAlib.ForMathlib.Topology.MetricSpace.Lipschitz.