NLA-lib Explorer

NLAlib.sum_le_sumLargest

Library · theorem

Any sum over an index set is at most the sum of that many largest entries: \sum_{i \in s} \mathbf{x}_i \le S_{\lvert s \rvert}(\mathbf{x}).

NLAlib.sum_le_sumLargest.{u_1} {ι : Type u_1} [Fintype ι] (x : ι → ℝ) (s : Finset ι) :
  ∑ i ∈ s, x i ≤ sumLargest x s.card

Full source on GitHub

Import NLAlib.Matrix.Majorization.Basic.