Sums of disjoint interval lengths and their costs
Library · Source module
Sums of disjoint interval lengths and their costs
Upstream candidates for Mathlib.Algebra.BigOperators.Intervals. Disjoint finite intervals inside one ambient interval use at most its length. A monotone superadditive cost therefore bounds the sum of the costs of their lengths by the cost of the ambient length. Empty intervals are allowed, so a layout may reserve an indexed slot without placing an object there.
Main results
* Finset.sum_le_of_pairwiseDisjoint_Ico: the sum of the lengths is bounded by the ambient size. * Finset.sum_apply_le_of_pairwiseDisjoint_Ico: the corresponding bound for superadditive costs.