AFTD Auto-Formalizing Theoretical Domains

diagPhaseShift_coe_matrix

theoremverifiedformalizationimported Lean

The underlying matrix of the phase-shift element of the unitary group is the phase-shift matrix.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Matrix Complex in
@[simp]
lemma diagPhaseShift_coe_matrix (θ : Fin 3 → ℝ) : ↑(diagPhaseUnitary θ) = diagPhase θ
Formalizes
Physlib, `diagPhaseShift_coe_matrix`
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.
Verified
09 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 6
  • 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
  • diagPhaseUnitarydiagonal phase matrix diag(iθ_i) is part of the unitary group
Used by 7

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Matrix Complex in
/-- The underlying matrix of the phase-shift element of the unitary group is the phase-shift matrix. -/
@[simp]
lemma diagPhaseShift_coe_matrix (θ : Fin 3 → ℝ) : ↑(diagPhaseUnitary θ) = diagPhase θ := rfl
See it in the graphDiscuss this resultChallenge it