Sorting a real vector in non-increasing order
Library · Source module
Sorting a real vector in non-increasing order
Every real vector on a finite index type \iota becomes non-increasing after relabelling its indices by Fin \lvert \iota \rvert, through Mathlib's Tuple.sort. This reduces statements about the largest entries of a vector, or about majorization, to sorted vectors. Upstream candidate for Mathlib.Data.Fin.Tuple.Sort.
Main results
* Fintype.exists_equiv_antitone_comp: a relabelling that sorts a vector.