NLA-lib Explorer

NLAlib.sum_mul_le_sumLargest

Library · theorem

A weight vector with entries in [0, 1] and total k picks out at most the sum of the k largest entries: \sum_i \mathbf{x}_i \mathbf{w}_i \le S_k(\mathbf{x}), where S_k is NLAlib.sumLargest.

NLAlib.sum_mul_le_sumLargest.{u_1} {ι : Type u_1} [Fintype ι] (x w : ι → ℝ)
  (hw0 : ∀ (i : ι), 0 ≤ w i) (hw1 : ∀ (i : ι), w i ≤ 1) {k : ℕ} (hk : ∑ i, w i = ↑k) :
  ∑ i, x i * w i ≤ sumLargest x k

Full source on GitHub

Import NLAlib.Matrix.Majorization.DoublyStochastic.