Documentation

TauCeti.Algebra.Order.BigOperators.Sum.Slack

A term-by-term lower bound, summed with an error budget #

If every term of a family a is within η' below its counterpart in d, then summing over a finite set accumulates that slack at most once per index, so the sum of a falls short of the sum of d by at most #s • η'.

Stating the conclusion with an arbitrary η dominating #s • η', rather than with #s • η' itself, lets a caller fix an error budget first and choose η' afterwards — which is how the bound is used when η is a prescribed ε and η' is solved for.

Main results #

theorem Finset.sum_sub_le_sum_of_forall_sub_le {ι : Type u_1} {M : Type u_2} [AddCommGroup M] [PartialOrder M] [IsOrderedAddMonoid M] {s : Finset ι} {d a : ι → M} {η η' : M} (ha : ∀ i ∈ s, d i - η' ≤ a i) (hη : s.card • η' ≤ η) :
∑ i ∈ s, d i - η ≤ ∑ i ∈ s, a i

A term-by-term lower bound, summed. If every a i is within η' below d i on s, and η dominates the accumulated slack #s • η', then ∑ d - η ≤ ∑ a.

Purely additive: no multiplication, no linearity and no strict monotonicity are used, so this lives in an ordered additive group rather than an ordered ring. A caller working in a ring rewrites the nsmul with nsmul_eq_mul.