Comparing a Stieltjes-type sum with an integral #
An abstract form of the summation by parts in [I71, Lemma 13]: if g is a cumulative counting
function that is within ε of F at the points a 0 ≤ a 1 ≤ ⋯ ≤ a n, with F' = f ≥ 0 and
increments F (a (j+1)) - F (a j) ≤ δ, then for b ≥ 0 monotone
∑_j b (a (j+1)) (g (j+1) - g j) = ∫ b f + O((δ + 2ε) b (a n)).
theorem
IwaniecLinearSieve.abs_sum_sub_integral_le
{n : ℕ}
{a : ℕ → ℝ}
(ha : Monotone a)
{b f F : ℝ → ℝ}
{g : ℕ → ℝ}
{δ ε : ℝ}
(hδ0 : 0 ≤ δ)
(hb : MonotoneOn b (Set.Icc (a 0) (a n)))
(hb0 : 0 ≤ b (a 0))
(hf : ∀ x ∈ Set.Icc (a 0) (a n), 0 ≤ f x)
(hfc : ContinuousOn f (Set.Icc (a 0) (a n)))
(hFf : ∀ j < n, ∫ (x : ℝ) in a j..a (j + 1), f x = F (a (j + 1)) - F (a j))
(hδ : ∀ j < n, F (a (j + 1)) - F (a j) ≤ δ)
(hε : ∀ j ≤ n, |g j - F (a j)| ≤ ε)
:
Abstract form of [I71, Lemma 13]. The points a 0 ≤ ⋯ ≤ a n partition [a 0, a n];
g j is a cumulative counting function at a j, within ε of F (a j), where F' = f ≥ 0
and F increases by at most δ on each piece. Then for b ≥ 0 monotone,
∑_j b (a (j+1)) (g (j+1) - g j) is within (δ + 2ε) b (a n) of ∫ b f.