diagPhaseUnitary
defimported Lean
diagonal phase matrix diag(iθ_i) is part of the unitary group
Statement
set_option autoImplicit true in set_option relaxedAutoImplicit true in open Matrix Complex in noncomputable def diagPhaseUnitary (θ : Fin 3 → ℝ) : unitaryGroup (Fin 3) ℂ
- Defined in
- Physlib, `diagPhaseUnitary`
- Lean proof
- By Prabhoda Chandra Sarjapur, from github.com/leanprover-community/physlib at
e411c6e89692(Copyright (c) 2025 Prabhoda Chandra Sarjapur. 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.diagPhaseUnitary← diagPhaseUnitary (Physlib/Particles/NeutrinoPhysics/Basic.lean:58): verbatim
- Verified
- 09 Oct 2026
- Axioms
- none listed
- Built on 5
- diagPhase_mullemma stating that multiplying two phase matrices is equivalent to adding the phases
- diagPhase_zerolemma stating that the diagonal phase matrix with all zeros is the identity matrix
- diagPhasediagonal phase matrix from a real-valued function on indices
- diagPhase_starlemma stating that the Hermitian conjugate of diagPhase diag(+iθ_i) is just diagPhase with entries diag(-iθ_i)
- diagPhase_zero_eqlemma stating that diagPhase with θ = 0 is equal to diagPhase with all zero phases
- Used by 1
- diagPhaseShift_coe_matrixThe underlying matrix of the phase-shift element of the unitary group is the phase-shift matrix.
Lean source view module on GitHub
set_option autoImplicit true in set_option relaxedAutoImplicit true in open Matrix Complex in /-- diagonal phase matrix diag(iθ_i) is part of the unitary group -/ noncomputable def diagPhaseUnitary (θ : Fin 3 → ℝ) : unitaryGroup (Fin 3) ℂ := ⟨diagPhase θ, by rw[Matrix.mem_unitaryGroup_iff] change _ * (diagPhase θ)ᴴ = 1 ext i j fin_cases i <;> fin_cases j <;> simp [diagPhase, Matrix.mul_apply, ← exp_add]⟩