AFTD Auto-Formalizing Theoretical Domains

diagPhase_mul

theoremverifiedformalizationimported Lean

lemma stating that multiplying two phase matrices is equivalent to adding the phases

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Matrix Complex in
@[simp]
lemma diagPhase_mul (θ φ : Fin 3 → ℝ) :
    diagPhase θ * diagPhase φ = diagPhase (θ + φ)
Formalizes
Physlib, `diagPhase_mul`
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 4
  • 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 9

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true inopen Matrix Complex in/-- lemma stating that multiplying two phase matrices is equivalent to adding the phases -/@[simp]lemma diagPhase_mul (θ φ : Fin 3 → ℝ) :    diagPhase θ * diagPhase φ = diagPhase (θ + φ) := by    show Matrix.diagonal _ * Matrix.diagonal _ = Matrix.diagonal _    simp [Matrix.diagonal_mul_diagonal, ← exp_add, mul_add]
See it in the graphDiscuss this resultChallenge it