Physlib Documentation

QuantumInfo.ForMathlib.Majorization

Majorization and weak log-majorization #

This file develops the theory of majorization for finite sequences, leading to the key singular value inequality needed for the Schatten–Hölder inequality.

Main results #

Sorted singular values #

def singularValues {d : Type u_1} [Fintype d] [DecidableEq d] (A : Matrix d d ) :
d

The singular values of a square complex matrix A, defined as the square roots of the eigenvalues of A†A. These are indexed by d without a particular ordering.

Note: We use A.conjTranspose as the argument to isHermitian_mul_conjTranspose_self so that the underlying Hermitian matrix is A† * A (matching the convention in schattenNorm).

Equations
Instances For
    theorem singularValues_nonneg {d : Type u_1} [Fintype d] [DecidableEq d] (A : Matrix d d ) (i : d) :

    Singular values are nonneg.

    noncomputable def singularValuesSorted {d : Type u_1} [Fintype d] [DecidableEq d] (A : Matrix d d ) :

    The sorted singular values of a square complex matrix, in decreasing order, indexed by Fin (Fintype.card d).

    We define them by sorting the multiset of singular values.

    Equations
    Instances For

      Sorted singular values are nonneg.

      theorem sum_singularValues_rpow_eq_sum_sorted {d : Type u_1} [Fintype d] [DecidableEq d] (A : Matrix d d ) (p : ) :
      i : d, singularValues A i ^ p = i : Fin (Fintype.card d), singularValuesSorted A i ^ p

      The sum singularValues A i ^ p equals the sum over sorted singular values.

      Weak log-majorization and its consequences #

      Sorted singular values are antitone (decreasing).

      theorem antitone_mul_of_antitone_nonneg {n : } {f g : Fin n} (hf : Antitone f) (hg : Antitone g) (hf_nn : ∀ (i : Fin n), 0 f i) (hg_nn : ∀ (i : Fin n), 0 g i) :
      Antitone fun (i : Fin n) => f i * g i

      The product of nonneg antitone sequences is antitone.

      Compound matrices and auxiliary lemmas for Horn's inequality #

      The proof of Horn's inequality uses the compound matrix (or k-th exterior power of a matrix). For a d × d matrix M and k ≤ card d, the k-th compound matrix C_k(M) is indexed by k-element subsets of the index type, with entry (S, T) being the minor det M[S, T].

      The key properties are:

      1. Cauchy–Binet: C_k(M N) = C_k(M) · C_k(N).
      2. Spectral characterisation: the largest singular value of C_k(M) is ∏_{i=1}^k σ↓ᵢ(M).
      3. Operator-norm submultiplicativity: σ₁(A B) ≤ σ₁(A) · σ₁(B).

      Combining these gives Horn's inequality: ∏ σ↓(AB) = σ₁(C_k(AB)) = σ₁(C_k(A) C_k(B)) ≤ σ₁(C_k(A)) σ₁(C_k(B)) = (∏ σ↓(A))(∏ σ↓(B)).

      A LinearOrder on any Fintype, obtained classically via well-ordering.

      Equations
      Instances For
        noncomputable def compoundMatrix {d : Type u_1} [Fintype d] [DecidableEq d] (M : Matrix d d ) (k : ) :
        Matrix { S : Finset d // S.card = k } { S : Finset d // S.card = k }

        The k-th compound (exterior-power) matrix of M.

        Equations
        Instances For
          theorem cauchyBinet {m : } {n : Type u_2} [Fintype n] [DecidableEq n] [LinearOrder n] {R : Type u_3} [CommRing R] (A : Matrix (Fin m) n R) (B : Matrix n (Fin m) R) :
          (A * B).det = S : { S : Finset n // S.card = m }, (A.submatrix id ((↑S).orderEmbOfFin )).det * (B.submatrix (⇑((↑S).orderEmbOfFin )) id).det

          Cauchy–Binet formula for rectangular matrices: if A is m × n and B is n × m, then det(A * B) = ∑_S det(A[:,S]) * det(B[S,:]) where the sum is over m-element subsets S of the column/row index.

          theorem compoundMatrix_mul {d : Type u_1} [Fintype d] [DecidableEq d] (M N : Matrix d d ) (k : ) :

          The compoundMatrix of a product is the product of the compoundMatrixs.

          compoundMatrix commutes with conjTranspose.

          theorem compoundMatrix_diagonal {d : Type u_1} [Fintype d] [DecidableEq d] (f : d) (k : ) :
          compoundMatrix (Matrix.diagonal f) k = Matrix.diagonal fun (S : { S : Finset d // S.card = k }) => i : Fin k, f (((↑S).orderEmbOfFin ) i)

          The compound matrix of a diagonal matrix is diagonal, with entries being products of eigenvalues over k-subsets.

          theorem singularValues_compoundMatrix_eq {d : Type u_1} [Fintype d] [DecidableEq d] (M : Matrix d d ) (k : ) (S : { S : Finset d // S.card = k }) :
          ∃ (j : { S : Finset d // S.card = k }), singularValues (compoundMatrix M k) j = i : Fin k, singularValues M (((↑S).orderEmbOfFin ) i)

          The eigenvalues of the compound matrix of a Hermitian matrix are the products of eigenvalues over k-subsets. More precisely, the singular values of compoundMatrix M k are the square roots of products of eigenvalues of M†M over k-subsets.

          theorem prod_le_prod_sorted {n : } {f : Fin n} (hf : Antitone f) (hf_nn : ∀ (i : Fin n), 0 f i) (k : ) (hk : k n) (g : Fin kFin n) (hg : Function.Injective g) :
          i : Fin k, f (g i) i : Fin k, f i,

          The product of nonneg values over a k-subset is at most the product of the k largest values.

          The 0th sorted singular value is the maximum of the singular values.

          theorem singularValues_mem_sorted {e : Type u_2} [Fintype e] [DecidableEq e] (A : Matrix e e ) (i : e) :

          Each singular value appears in the sorted list.

          theorem singularValuesSorted_mem_values {e : Type u_2} [Fintype e] [DecidableEq e] (A : Matrix e e ) (j : Fin (Fintype.card e)) :

          Each sorted singular value appears among the original singular values.

          theorem singularValues_compoundMatrix_perm {d : Type u_1} [Fintype d] [DecidableEq d] (M : Matrix d d ) (k : ) :
          ∃ (σ : { S : Finset d // S.card = k } { S : Finset d // S.card = k }), ∀ (S : { S : Finset d // S.card = k }), singularValues (compoundMatrix M k) (σ S) = i : Fin k, singularValues M (((↑S).orderEmbOfFin ) i)

          Stronger version of singularValues_compoundMatrix_eq that exposes the permutation.

          theorem singularValues_compoundMatrix_rev {d : Type u_1} [Fintype d] [DecidableEq d] (M : Matrix d d ) (k : ) (j : { S : Finset d // S.card = k }) :
          ∃ (S : { S : Finset d // S.card = k }), singularValues (compoundMatrix M k) j = i : Fin k, singularValues M (((↑S).orderEmbOfFin ) i)

          Converse of singularValues_compoundMatrix_eq: every singular value of the compound matrix is a product of singular values of M over some k-subset.

          theorem exists_sorting_equiv {d : Type u_1} [Fintype d] [DecidableEq d] (M : Matrix d d ) :
          ∃ (σ : Fin (Fintype.card d) d), ∀ (i : Fin (Fintype.card d)), singularValues M (σ i) = singularValuesSorted M i

          There exists a bijection σ : Fin (card d) ≃ d such that singularValues M (σ i) = singularValuesSorted M i for all i.

          theorem prod_singularValues_subset_le_sorted_prod {d : Type u_1} [Fintype d] [DecidableEq d] (M : Matrix d d ) (k : ) (hk : k Fintype.card d) (S : { S : Finset d // S.card = k }) :
          i : Fin k, singularValues M (((↑S).orderEmbOfFin ) i) i : Fin k, singularValuesSorted M i,

          For any k-subset S of d, the product of singular values over S is ≤ the product of the top k sorted singular values.

          theorem exists_subset_prod_eq_sorted_prod {d : Type u_1} [Fintype d] [DecidableEq d] (M : Matrix d d ) (k : ) (hk : k Fintype.card d) :
          ∃ (S : { S : Finset d // S.card = k }), i : Fin k, singularValues M (((↑S).orderEmbOfFin ) i) = i : Fin k, singularValuesSorted M i,
          theorem IsHermitian.inner_le_sup_eigenvalue_mul_inner {e : Type u_2} [Fintype e] [DecidableEq e] (H : Matrix e e ) (hH : H.IsHermitian) (he : 0 < Fintype.card e) (v : e) :

          The Rayleigh quotient bound: For a Hermitian matrix H with eigenvalues λ, we have v† H v ≤ (max λ) · v† v for all v.

          The quadratic form of A† A is bounded by (max singular value)² * ‖v‖².

          The largest singular value of a matrix product is at most the product of the largest singular values: σ₁(M * N) ≤ σ₁(M) * σ₁(N). This is operator-norm submultiplicativity.

          theorem horn_weak_log_majorization {d : Type u_1} [Fintype d] [DecidableEq d] (A B : Matrix d d ) (k : ) (hk : k Fintype.card d) :
          i : Fin k, singularValuesSorted (A * B) i, i : Fin k, singularValuesSorted A i, * singularValuesSorted B i,

          Horn's inequality (weak log-majorization of singular values): For all k, ∏_{i<k} σ↓ᵢ(AB) ≤ ∏_{i<k} σ↓ᵢ(A) · σ↓ᵢ(B). This follows from submultiplicativity of the operator norm applied to exterior powers of the matrices.

          Weak log-majorization implies sum of powers inequality #

          theorem rpow_antitone_of_nonneg_antitone {n : } {f : Fin n} (hf : Antitone f) (hf_nn : ∀ (i : Fin n), 0 f i) {r : } (hr : 0 < r) :
          Antitone fun (i : Fin n) => f i ^ r

          Raising nonneg antitone sequences to a positive power preserves antitonicity.

          theorem rpow_preserves_weak_log_maj {n : } {x y : Fin n} (hx_nn : ∀ (i : Fin n), 0 x i) (hy_nn : ∀ (i : Fin n), 0 y i) (h_log_maj : ∀ (k : ) (x_1 : k n), i : Fin k, x i, i : Fin k, y i, ) {r : } (hr : 0 < r) (k : ) (x✝ : k n) :
          i : Fin k, (fun (j : Fin n) => x j ^ r) i, i : Fin k, (fun (j : Fin n) => y j ^ r) i,

          Weak log-majorization is preserved under positive powers.

          theorem sum_mul_log_nonneg_of_weak_log_maj {n : } {x y : Fin n} (hx_pos : ∀ (i : Fin n), 0 < x i) (hy_pos : ∀ (i : Fin n), 0 < y i) (hx_anti : Antitone x) (h_log_maj : ∀ (k : ) (x_1 : k n), i : Fin k, x i, i : Fin k, y i, ) :
          0 i : Fin n, x i * Real.log (y i / x i)
          theorem sub_ge_mul_log_div {a b : } (ha : 0 < a) (hb : 0 < b) :
          b - a a * Real.log (b / a)
          theorem weak_log_maj_sum_le {n : } {x y : Fin n} (hx_nn : ∀ (i : Fin n), 0 x i) (hy_nn : ∀ (i : Fin n), 0 y i) (hx_anti : Antitone x) (hy_anti : Antitone y) (h_log_maj : ∀ (k : ) (x_1 : k n), i : Fin k, x i, i : Fin k, y i, ) :
          i : Fin n, x i i : Fin n, y i
          theorem weak_log_maj_sum_rpow_le {n : } {x y : Fin n} (hx_nn : ∀ (i : Fin n), 0 x i) (hy_nn : ∀ (i : Fin n), 0 y i) (hx_anti : Antitone x) (hy_anti : Antitone y) (h_log_maj : ∀ (k : ) (x_1 : k n), i : Fin k, x i, i : Fin k, y i, ) {r : } (hr : 0 < r) :
          i : Fin n, x i ^ r i : Fin n, y i ^ r

          Weak log-majorization of nonneg antitone sequences implies the sum of powers inequality.

          Key singular value inequality for products #

          theorem sum_rpow_singularValues_mul_le {d : Type u_1} [Fintype d] [DecidableEq d] (A B : Matrix d d ) {r : } (hr : 0 < r) :

          Hölder inequality for singular values #

          theorem holder_step_for_singularValues {d : Type u_1} [Fintype d] [DecidableEq d] (A B : Matrix d d ) {r p q : } (hr : 0 < r) (hp : 0 < p) (hq : 0 < q) (hpqr : 1 / r = 1 / p + 1 / q) :
          i : Fin (Fintype.card d), singularValuesSorted A i ^ r * singularValuesSorted B i ^ r (∑ i : Fin (Fintype.card d), singularValuesSorted A i ^ p) ^ (r / p) * (∑ i : Fin (Fintype.card d), singularValuesSorted B i ^ q) ^ (r / q)

          The finite-sum Hölder inequality applied to sequences of r-th powers of sorted singular values.

          With conjugate exponents p' = p/r > 1 and q' = q/r > 1 (which satisfy 1/p' + 1/q' = 1 when 1/r = 1/p + 1/q), this gives: ∑ σ↓ᵢ(A)^r · σ↓ᵢ(B)^r ≤ (∑ σ↓ᵢ(A)^p)^{r/p} · (∑ σ↓ᵢ(B)^q)^{r/q}

          Note: The sums on the RHS don't depend on the ordering, so we can replace sorted singular values with unsorted ones.