AFTD Auto-Formalizing Theoretical Domains

Matrix.unitaryGroup_row_norm

theoremverifiedformalizationimported Lean

Matrix.unitaryGroup_row_norm

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Matrix in
open BigOperators in
variable {n ๐•œ : Type*} in
variable [RCLike ๐•œ] [DecidableEq n] in
open scoped ComplexOrder MatrixOrder in
theorem Matrix.unitaryGroup_row_norm [Fintype n] (U : Matrix.unitaryGroup n โ„‚) (i : n) :
    โˆ‘ j, โ€–U j iโ€–^2 = 1
Formalizes
QuantumInfo, `Matrix.unitaryGroup_row_norm`
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.
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
open BigOperators in
variable {n ๐•œ : Type*} in
variable [RCLike ๐•œ] [DecidableEq n] in
open scoped ComplexOrder MatrixOrder in
theorem Matrix.unitaryGroup_row_norm [Fintype n] (U : Matrix.unitaryGroup n โ„‚) (i : n) :
    โˆ‘ j, โ€–U j iโ€–^2 = 1 := by
  suffices โˆ‘ j, โ€–U j iโ€–^2 = (1 : โ„‚) by exact_mod_cast this
  simpa [Matrix.mul_apply, Complex.sq_norm, Complex.normSq_eq_conj_mul_self]
    using congr($(U.prop.left) i i)
See it in the graphDiscuss this resultChallenge it