NLAlib.exists_card_eq_and_sum_eq_sumLargest
Library · theorem
The maximum defining sumLargest is attained: for k \le \lvert \iota \rvert there is an index set s with k elements and \sum_{i \in s} \mathbf{x}_i = S_k(\mathbf{x}).
NLAlib.exists_card_eq_and_sum_eq_sumLargest.{u_1} {ι : Type u_1} [Fintype ι] (x : ι → ℝ) {k : ℕ}
(hk : k ≤ Fintype.card ι) : ∃ s, s.card = k ∧ ∑ i ∈ s, x i = sumLargest x kImport NLAlib.Matrix.Majorization.Basic.