Finset.sum_range_mul_add_le_sum_range_mul_of_antitoneOn
Library · theorem
Abel's inequality, with a slack term. If (a_i) is non-increasing on i < N and bounded below by t there, and \sum_{i < k} \mathbf{b}_i \le \sum_{i < k} c_i for every k \le N, then \sum_{i < N} a_i \mathbf{b}_i + t \Bigl(\sum_{i < N} c_i - \sum_{i < N} \mathbf{b}_i\Bigr) \le \sum_{i < N} a_i c_i \,. The cases t = 0 and equal total sums are Finset.sum_range_mul_le_sum_range_mul_of_antitoneOn_of_nonneg and Finset.sum_range_mul_le_sum_range_mul_of_antitoneOn_of_sum_eq.
Finset.sum_range_mul_add_le_sum_range_mul_of_antitoneOn.{u_1} {R : Type u_1} [CommRing R]
[LinearOrder R] [IsStrictOrderedRing R] {a b c : ℕ → R} {N : ℕ} (ha : AntitoneOn a (Set.Iio N))
(h : ∀ k ≤ N, ∑ i ∈ Finset.range k, b i ≤ ∑ i ∈ Finset.range k, c i) {t : R}
(ht : ∀ i < N, t ≤ a i) :
∑ i ∈ Finset.range N, a i * b i + t * (∑ i ∈ Finset.range N, c i - ∑ i ∈ Finset.range N, b i) ≤
∑ i ∈ Finset.range N, a i * c iImport NLAlib.ForMathlib.Algebra.BigOperators.AbelSummation.