The Exercise
Take two real vectors and with entries each, labelled by the same finite set of indices, such as two probability distributions over the same outcomes. Rearrange the entries of by a permutation chosen at random and average over the choice: the result is a mixture of permuted copies of . Proposition 12.11 says which vectors are mixtures of this kind. They are exactly the vectors reachable this way, as the next section makes precise.
Majorization
The largest -sum of a real vector , for a whole number , is the largest sum of of its entries, (1)✦ where runs over the sets of indices.
A real vector is majorized by a real vector with the same indices, written , when the entries of and of have the same sum and the entries of in any set of indices sum to at most the largest -sum of : (2)✦
The Claim
A permutation of the indices acts on through its permutation matrix : the vector is with its entries rearranged by .
Theorem 1. Let and be real vectors with entries labelled by the same finite set of indices. Then if and only if there is a probability distribution over the permutations of the indices with (3)✦
What Is Checked
The theorem is stated over majorization (2), which is defined through the largest -sums (1), and over mixtures of the rearranged vectors . What the library proves about these constructions is the theorem above, in both directions and for any finite set of indices.