The rearrangement inequality is a classic inequality. It is not inherently difficult to understand, and many readers may have already encountered it during secondary school, especially those who prepared for math competitions. But the rearrangement inequality is also far from being as simple as it looks on the surface: it has a profound counterpart in the matrix realm—von Neumann's trace inequality; and it can be further generalized in the directions of "multiple sequences" and "multiple matrices".
Following this thread, this article connects these pieces together and introduces them.
Basic Form #
Suppose there are two real sequences sorted in descending order,
that is, "reversed product ≤ disordered product ≤ similarly ordered product". The standard way to prove the rearrangement inequality is the local adjustment method: suppose
That is to say, if there is a pair of positions in the sequences that are out of order, swapping one side to make them ordered in the same direction ensures that the corresponding inner product will at least not decrease, and thus the maximum must be attained when they are completely in the same order. By repeating the same procedure on
Note that the rearrangement inequality itself does not require the sequences to be non-negative, but later when we generalize it, we will add non-negativity constraints. It is worth pointing out that adding non-negativity constraints does not alter the coverage of the current rearrangement inequality, because any finite real sequence can be made non-negative by adding a sufficiently large constant without changing its ordering, and expanding both sides recovers the rearrangement inequality without non-negativity constraints.
Trace Inequality #
The rearrangement inequality has a very important counterpart in matrices: let
Evidently, when
When
, so we only need to focus on proving the symmetric version.
Orthogonal Optimization #
In this section, we prove the symmetric version
There are many ways to prove von Neumann's trace inequality; here we consider a rather distinctive proof that is closer to von Neumann's original ideas. Introducing an
Next, we will show that, for
where
Note that
Multiple Sequences #
A very natural question is: can the rearrangement inequality be generalized to multiple sequences? Let us take three sequences as an example, and consider non-negative sequences
The proof is not complicated and can be written in a single line:
The first equality uses summation by parts to perform an identity transformation (setting
This proof and result can be generalized recursively to any number of non-negative sequences. Note that non-negativity is necessary, because "
Automatic Balancing #
However, the minimum side cannot be generalized as simply as the maximum side.
The reason is also intuitive: "same ordering" satisfies transitivity—the Hadamard product of two monotonically decreasing non-negative sequences is still monotonically decreasing, so we can repeatedly reuse the binary rearrangement inequality to obtain the maximum. However, "reverse ordering" is inherently defined for two sequences; for multiple sequences, it is difficult to define what "reverse order" means, and the Hadamard product of an increasing non-negative sequence and a decreasing non-negative sequence also has no fixed monotonicity.
Nevertheless, we can still gain some insights regarding the minimum from the AM-GM inequality:
The equality holds if and only if all
Experienced readers might keenly realize that solving such balanced pairing problems in discrete settings is usually quite difficult. And indeed it is: it can essentially be abstracted into a three-dimensional axial assignment problem, which is known to be NP-hard. In other words, there is no general analytical solution for the minimum side of the multi-sequence rearrangement inequality; this is the intrinsic difficulty of the problem.
Multiple Matrices #
Similarly, can trace inequalities be generalized to multiple matrices? Consider three
The proof is also similar:
That is, we first bound it once using the bivariate trace inequality, and then still apply summation by parts, bounding, and summation by parts, where the second
This can also be seen as a generalization of Eq.
The last inequality uses
Another Generalization #
Eq.
The answer is no. The eigenvalues of positive semi-definite matrices are always non-negative, so
This guarantees non-negativity. From this, one might guess that a reasonable generalization for three matrices may be
However,
Equality holds when all singular values of
Summary #
Starting from the rearrangement inequality, this article traces its main generalizations along the two lines of "matrixification" and "multi-sequencing".