Theorem C.4 (proof, p. 17):
ProvedContrastiveDuality.trace_mul_extractedDiag_eq_sum_pow_fourLet . Since and ,
This is the step of the proof of Theorem 3.3 that turns the diagonal corrections into sums of fourth powers of column and row norms.
import Mathlib import Definitions.Def_ContrastiveDuality_Basic open MeasureTheory ProbabilityTheory Matrix
namespace ContrastiveDuality
theorem trace_mul_extractedDiag_eq_sum_pow_four {M N : ℕ} (K : Matrix (Fin M) (Fin N) ℝ) :
Matrix.trace (Kᵀ * K * extractedDiag (Kᵀ * K)) = ∑ i, colNorm K i ^ 4 ∧
Matrix.trace (K * Kᵀ * extractedDiag (K * Kᵀ)) = ∑ j, rowNorm K j ^ 4 := by sorry
end ContrastiveDualityRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
For arbitrary natural numbers and (both implicit, and each allowed to be ), and an arbitrary real matrix with entries (row index , column index ), the statement asserts that both of the following equalities hold.
Notation used in the statement:
- For a real matrix , is the diagonal matrix with diagonal entries and every off-diagonal entry equal to .
- The -th column norm is
- The -th row norm is
- Both norms are the nonnegative real square root of a nonnegative sum, so their fourth powers equal the squares of those sums of squares.
First equality. This concerns the Gram matrix :
Second equality. This concerns the matrix :
There are no hypotheses on beyond its dimensions.
Degenerate cases. If , then is the empty matrix. Its trace and the sum over are then both . In the same situation, each row norm is , and is the zero matrix, so both sides of the second equality are . Symmetrically, if , both sides of the second equality are empty sums, and every column norm is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.