NLA-lib Explorer

NLAlib.sumLargest_fin_eq_sum_range

Library · theorem

Partial sums of a sorted sequence: if a real sequence f is non-increasing below N, the sum of the k largest of its first N values is the partial sum \sum_{i < \min(k, N)} f(i). This is the bridge between sumLargest and the \mathbb{N}-indexed eigenvalues and singular values.

NLAlib.sumLargest_fin_eq_sum_range {f : ℕ → ℝ} {N : ℕ} (hf : AntitoneOn f (Set.Iio N)) (k : ℕ) :
  sumLargest (fun i ↦ f ↑i) k = ∑ i ∈ Finset.range (min k N), f i

Full source on GitHub

Import NLAlib.Matrix.Majorization.Basic.