A scaled unitary matrix is flat if its leading codimension-one block is flat
ProvedMatrix.normSq_eq_of_scaled_unitary_coreLet be an integer, let be real, and let be a complex square matrix of order . Suppose that its column Gram matrix is a scalar identity and that every entry of its leading block of order has squared modulus :
Then every entry of the entire matrix has squared modulus :
This is a reusable completion statement for scaled unitary and Hadamard matrices. In the order-six MUB problem it removes the final row and column of entry-modulus equations from both individual matrices and cross-Gram matrices. For the block hypothesis is empty, and the conclusion still holds.
Formalization Note. The Lean parameter is . The coefficient is strictly positive, all entries are arbitrary complex numbers, and only the column Gram identity is assumed. The corresponding row Gram identity is a consequence for square matrices. This border-completion lemma is an algebraic consequence of the cited normalization identities, rather than a verbatim theorem in the source.
import Mathlib.LinearAlgebra.Matrix.ConjTranspose import Mathlib.LinearAlgebra.Matrix.SemiringInverse import Mathlib.Data.Complex.BigOperators import Mathlib.Algebra.BigOperators.Fin import Mathlib.Tactic.Linarith import Mathlib.Tactic.NormNum open Matrix open scoped BigOperators ComplexConjugate Matrix
theorem Matrix.normSq_eq_of_scaled_unitary_core (n : ℕ) (a : ℝ) (ha : 0 < a)
(M : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ)
(hgram : Mᴴ * M = (((n + 1 : ℕ) : ℂ) * (a : ℂ)) •
(1 : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ))
(hcore : ∀ i j : Fin n, Complex.normSq (M i.castSucc j.castSucc) = a) :
∀ i j, Complex.normSq (M i j) = a := by sorry