NLA-lib Explorer

NLAlib.sumLargest_succ_of_antitone

Library · theorem

For a non-increasing family indexed by Fin N, the sum of the i + 1 largest entries is the sum of the i largest plus the entry i: S_{i+1}(\mathbf{y}) = S_i(\mathbf{y}) + \mathbf{y}_i.

NLAlib.sumLargest_succ_of_antitone {N : ℕ} {y : Fin N → ℝ} (hy : Antitone y) (i : Fin N) :
  sumLargest y (↑i + 1) = sumLargest y ↑i + y i

Full source on GitHub

Import NLAlib.Matrix.Majorization.Basic.