NLA-lib Explorer

NLAlib.sum_le_sumLargest_of_card_eq

Library · theorem

A sum over an index set with \min(k, \lvert \iota \rvert) elements is at most the sum of the k largest entries: \sum_{i \in s} \mathbf{x}_i \le S_k(\mathbf{x}). This is the form of sum_le_sumLargest for a k that is not syntactically a cardinality.

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

Full source on GitHub

Import NLAlib.Matrix.Majorization.Basic.