matrixFrobeniusNormSq
def
The squared Frobenius norm of a d by d complex matrix M is the sum over all matrix entries of the squared absolute value |M_{ij}|^2.
Statement
def matrixFrobeniusNormSq {d : ℕ} (M : Matrix (Fin d) (Fin d) ℂ) : ℝ- Defined in
- Horn and Johnson, Matrix Analysis, Section 5.6
- Verified
- 26 Nov 2026
- Axioms
- none listed
Read back from the Lean
For a given natural number $d$ and a $d \times d$ complex matrix $M$ (with rows and columns indexed by Fin d), matrixFrobeniusNormSq M is defined as the sum over all row indices $i \in \mathrm{Fin}\ d$ and column indices $j \in \mathrm{Fin}\ d$ of the squared complex absolute value $\operatorname{normSq}(M_{i, j}) \in \mathbb{R}$.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- Squared Frobenius norm of a d by d complex matrix M. -/ def matrixFrobeniusNormSq {d : ℕ} (M : Matrix (Fin d) (Fin d) ℂ) : ℝ := ∑ i, ∑ j, Complex.normSq (M i j)