Matrix.unitary_row_sum_norm_sq
theoremverifiedformalizationimported Lean
For a unitary matrix C, the row sums of ‖C i j‖^2 equal 1.
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open Matrix in variable {α : Type*} [NonUnitalNonAssocSemiring α] [StarRing α] in variable {α β : Type*} [DecidableEq α] [Fintype α] [DecidableEq β] [Fintype β] in variable {d : Type*} [Fintype d] [DecidableEq d] in lemma Matrix.unitary_row_sum_norm_sq (C : Matrix d d ℂ) (hC : C * C.conjTranspose = 1) (i : d) : ∑ j, ‖C i j‖ ^ 2 = 1
- Formalizes
- QuantumInfo, `Matrix.unitary_row_sum_norm_sq`
- Lean proof
- By Alex Meiburg, from github.com/leanprover-community/physlib at
e411c6e89692(Copyright (c) 2025 Alex Meiburg. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.Matrix.unitary_row_sum_norm_sq← Matrix.unitary_row_sum_norm_sq (QuantumInfo/ForMathlib/HermitianMat/Unitary.lean:57): verbatim
- Verified
- 17 Oct 2026
- Axioms
Classical.choiceQuot.soundpropext
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in open Matrix in variable {α : Type*} [NonUnitalNonAssocSemiring α] [StarRing α] in variable {α β : Type*} [DecidableEq α] [Fintype α] [DecidableEq β] [Fintype β] in variable {d : Type*} [Fintype d] [DecidableEq d] in /-- For a unitary matrix C, the row sums of ‖C i j‖^2 equal 1. -/ lemma Matrix.unitary_row_sum_norm_sq (C : Matrix d d ℂ) (hC : C * C.conjTranspose = 1) (i : d) : ∑ j, ‖C i j‖ ^ 2 = 1 := by replace hC := congr($hC i i) simp only [Matrix.mul_apply, Matrix.conjTranspose_apply, RCLike.star_def, Complex.mul_conj, Complex.normSq_eq_norm_sq, Complex.ofReal_pow, Matrix.one_apply_eq] at hC exact_mod_cast hC