AFTD Auto-Formalizing Theoretical Domains

pauli_bloch_matrix_square

theoremverified

The square of a Bloch Pauli matrix is the squared Euclidean length of its Bloch vector times the identity.

Statement

theorem pauli_bloch_matrix_square (b : Fin 3 → ℝ) :
    pauli_bloch_matrix b * pauli_bloch_matrix b =
      ((∑ i, b i ^ 2 : ℝ) : ℂ) • (1 : Matrix (Fin 2) (Fin 2) ℂ)
Source
arXiv:2611.19367v1, Lemma 3, Eqs. (29)–(31), for the Pauli alignment construction.
Verified
17 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
  • pauli_bloch_matrixThe Hermitian two by two Pauli matrix corresponding to a real three-dimensional Bloch vector.
Used by 2

The proof, explained

The proof proceeds by direct entry-by-entry verification. By applying extensionality for matrices and complex numbers, the identity between $2 \times 2$ matrices is reduced to eight real scalar equations, corresponding to the real and imaginary parts of each entry. Unfolding the definitions of the Pauli Bloch matrix, matrix multiplication, and complex operations expands both sides into polynomial expressions in the components of the vector $b$, all of which hold by commutative ring arithmetic.

  1. It suffices to show that the real and imaginary parts of both sides agree at each of the four matrix entries $(0, 0)$, $(0, 1)$, $(1, 0)$, and $(1, 1)$.

    By matrix extensionality, two matrices are equal if and only if they agree at every entry $(i, j)$. Since the row and column indices take values in $\operatorname{Fin} 2$, a case exhaustion over $i$ and $j$ separates the matrix equation into four entry-wise scalar equalities. Applying complex extensionality (`Complex.ext`) to each entry reduces each equality of complex numbers to separate equalities for its real and imaginary parts, producing eight real scalar equations in total.

    lines 4–6

    uses Complex.ext

      ext i j
      fin_cases i <;> fin_cases j <;>
        apply Complex.ext <;>
  2. Each of the eight scalar equations holds as an identity in the coordinates of the Bloch vector $b$.

    For each of the eight goals, the simplifier expands the definition of `pauli_bloch_matrix`, the definition of matrix multiplication (`Matrix.mul_apply`), the explicit sums over two terms (`Fin.sum_univ_two`) and three terms (`Fin.sum_univ_three`), the real and imaginary parts of complex multiplication (`Complex.mul_re`, `Complex.mul_im`), and the squaring operation (`pow_two`). This simplifies each entry to an equality between real polynomials in the components $b(0), b(1), b(2)$. On the diagonal, the real part simplifies to $b(2)^2 + b(0)^2 + b(1)^2 = b(0)^2 + b(1)^2 + b(2)^2$ and the imaginary part vanishes; off the diagonal, both the real and imaginary parts simplify to $0 = 0$. All eight identities are verified by commutative ring arithmetic (`ring`).

    lines 7–8

    uses pauli_bloch_matrix, Matrix.mul_apply, Fin.sum_univ_two, Fin.sum_univ_three, Complex.mul_re, Complex.mul_im, pow_two

        simp [pauli_bloch_matrix, Matrix.mul_apply, Fin.sum_univ_two, Fin.sum_univ_three,
          Complex.mul_re, Complex.mul_im, pow_two] <;> ring
Complex.ext
Two complex numbers are equal if and only if their real parts are equal and their imaginary parts are equal.
Complex.mul_im
The imaginary part of the product of two complex numbers $z$ and $w$ is $z_{\mathrm{re}} w_{\mathrm{im}} + z_{\mathrm{im}} w_{\mathrm{re}}$.
Complex.mul_re
The real part of the product of two complex numbers $z$ and $w$ is $z_{\mathrm{re}} w_{\mathrm{re}} - z_{\mathrm{im}} w_{\mathrm{im}}$.
Fin.sum_univ_three
A sum of a function over $\operatorname{Fin} 3$ equals the sum of its values at $0$, $1$, and $2$.
Fin.sum_univ_two
A sum of a function over $\operatorname{Fin} 2$ equals the sum of its values at $0$ and $1$.
Matrix.mul_apply
The $(i, k)$-th entry of the product of two matrices is the sum over intermediate indices $j$ of the product of their corresponding entries.
pauli_bloch_matrix
The $2 \times 2$ complex matrix associated to a 3-vector $b$, with first row $[b(2), b(0) - i b(1)]$ and second row $[b(0) + i b(1), -b(2)]$.
pow_two
The square of an element $a$ in a monoid equals $a * a$.

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

theorem pauli_bloch_matrix_square (b : Fin 3 → ℝ) :    pauli_bloch_matrix b * pauli_bloch_matrix b =      ((∑ i, b i ^ 2 : ℝ) : ℂ) • (1 : Matrix (Fin 2) (Fin 2) ℂ) := by  ext i j  fin_cases i <;> fin_cases j <;>    apply Complex.ext <;>    simp [pauli_bloch_matrix, Matrix.mul_apply, Fin.sum_univ_two, Fin.sum_univ_three,      Complex.mul_re, Complex.mul_im, pow_two] <;> ring
See it in the graphDiscuss this resultChallenge it