AFTD Auto-Formalizing Theoretical Domains

PauliMatrix.vectorMatrix

defimported Lean

The matrix a · σ associated to a real three-vector a.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Matrix in
open Complex in
open TensorProduct in
noncomputable def PauliMatrix.vectorMatrix (a : Fin 3 → ℝ) :
    Matrix (Fin 2) (Fin 2) ℂ
Defined in
Physlib, `PauliMatrix.vectorMatrix`
Lean proof
By Joseph Tooby-Smith, from github.com/leanprover-community/physlib at e411c6e89692 (Copyright (c) 2024 Joseph Tooby-Smith. 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.
What was changed in PauliMatrix.vectorMatrix
--- Physlib/Relativity/PauliMatrices/Basic.lean:228 (PauliMatrix.vectorMatrix)
+++ as compiled here
@@ -1,4 +1,8 @@
-/-- The matrix `a · σ` associated to a real three-vector `a`. -/
-noncomputable def vectorMatrix (a : Fin 3 → ℝ) :
+set_option autoImplicit true in
+set_option relaxedAutoImplicit true in
+open Matrix in
+open Complex in
+open TensorProduct in
+noncomputable def PauliMatrix.vectorMatrix (a : Fin 3 → ℝ) :
     Matrix (Fin 2) (Fin 2) ℂ :=
-  ∑ i : Fin 3, (a i : ℂ) • pauliMatrix (Sum.inr i)
+  ∑ i : Fin 3, (a i : ℂ) • PauliMatrix.pauliMatrix (Sum.inr i)
Verified
10 Oct 2026
Axioms
none listed
Built on 1

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open Matrix in
open Complex in
open TensorProduct in
/-- The matrix `a · σ` associated to a real three-vector `a`. -/
noncomputable def PauliMatrix.vectorMatrix (a : Fin 3 → ℝ) :
    Matrix (Fin 2) (Fin 2) ℂ :=
  ∑ i : Fin 3, (a i : ℂ) • PauliMatrix.pauliMatrix (Sum.inr i)
See it in the graphDiscuss this resultChallenge it