NLA-lib Explorer

NLAlib.sumLargest_le

Library · theorem

A bound on every sum over \min(k, \lvert \iota \rvert) indices bounds the sum of the k largest entries: if \sum_{i \in s} \mathbf{x}_i \le c for all such s, then S_k(\mathbf{x}) \le c.

NLAlib.sumLargest_le.{u_1} {ι : Type u_1} [Fintype ι] {x : ι → ℝ} {k : ℕ} {c : ℝ}
  (h : ∀ (s : Finset ι), s.card = min k (Fintype.card ι) → ∑ i ∈ s, x i ≤ c) : sumLargest x k ≤ c

Full source on GitHub

Import NLAlib.Matrix.Majorization.Basic.