AFTD Auto-Formalizing Theoretical Domains

quaternion_spinor_projector

theoremverified

A unit quaternion rotates a spinor and its Bloch projector consistently.

Statement

theorem quaternion_spinor_projector (q : Fin 4 → ℝ) (b : Fin 3 → ℝ)
    (u : Fin 2 → ℂ) (hq : (∑ i, (q i)^2) = 1)
    (hu : ∀ i j, u i * star (u j) = (1 + pauli_bloch_matrix b) i j / 2) :
    ∀ i j, ((quaternion_spinor_matrix q).mulVec u) i *
      star (((quaternion_spinor_matrix q).mulVec u) j) =
      (1 + pauli_bloch_matrix ((quaternion_bloch_rotation q).mulVec b)) i j / 2
Source
arXiv:2611.19367v1, Lemma 3, quaternion reference spinor construction.
Verified
18 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 5
Used by 1
  • quaternion_reference_spinor_familyA fixed reference spinor acted on by a fixed quaternion and a varying quaternion gives a continuous odd spinor family with the displayed…

The proof, explained

Under the correspondence between unit quaternions, SU(2) spinor matrices, and SO(3) Bloch rotations, transforming a spinor u by the matrix U rotates its Bloch vector b accordingly. The proof expresses the projector of u in matrix form as V = (1/2)(I + B) and shows that the projector of the rotated spinor U u equals the conjugation U V U†. Using the unitarity of U and the Pauli conjugation identity U B U† = C, this conjugation evaluates to (1/2)(I + C), confirming consistency entrywise.

  1. Define the spinor matrix U, the Bloch matrices B and C, and the projector matrix V of the spinor u.

    We introduce local abbreviations: U is the 2 × 2 spinor matrix for the quaternion q; B is the Pauli-Bloch matrix for the vector b; C is the Pauli-Bloch matrix for the rotated Bloch vector (quaternion_bloch_rotation q) b; and V is the 2 × 2 outer product matrix with entries Vᵢⱼ = uᵢ ūⱼ.

    lines 7–10

      let U := quaternion_spinor_matrix q
      let B := pauli_bloch_matrix b
      let C := pauli_bloch_matrix ((quaternion_bloch_rotation q).mulVec b)
      let V : Matrix (Fin 2) (Fin 2) ℂ := Matrix.of (fun i j => u i * star (u j))
  2. V = (1/2) • (1 + B)

    By matrix extensionality (`ext i j`), the matrix equality holds if and only if each entry satisfies Vᵢⱼ = (1/2) (1 + B)ᵢⱼ. This entrywise relation is precisely the hypothesis `hu`, rewriting division by 2 as multiplication by 2⁻¹.

    lines 11–13

    uses div_eq_mul_inv, mul_comm

      have hV : V = (2 : ℂ)⁻¹ • (1 + B) := by
        ext i j
        simpa [V, B, div_eq_mul_inv, mul_comm] using hu i j
  3. The outer product matrix of the transformed spinor U u equals U * V * U†.

    By matrix extensionality, the (i, j)-th entry of the left-hand side is (U u)ᵢ (U u)ⱼ* = (∑ₖ Uᵢₖ uₖ)(∑ₗ Uⱼₗ uₗ)*. Expanding sums over Fin 2 and distributing complex conjugation using `simp`, and simplifying the resulting polynomial products in the commutative ring ℂ using `ring`, shows this matches the (i, j)-th entry ∑_{k,l} Uᵢₖ (uₖ ūₗ) Uⱼₗ* of U * V * U†.

    lines 14–19

    uses Matrix.mulVec, dotProduct, Matrix.mul_apply, Matrix.conjTranspose_apply, Fin.sum_univ_two, map_add, map_mul

      have houter : Matrix.of (fun i j => (U.mulVec u) i * star ((U.mulVec u) j)) =
          U * V * U.conjTranspose := by
        ext i j
        simp [V, Matrix.mulVec, dotProduct, Matrix.mul_apply, Matrix.conjTranspose_apply,
          Fin.sum_univ_two, map_add, map_mul]
        ring
  4. U * U† = 1, so U is unitary.

    The lemma `quaternion_spinor_unitary_scaled q` gives U * U† = (∑ᵢ qᵢ²) • I. Since q is a unit quaternion (`hq`, ∑ᵢ qᵢ² = 1), the scalar factor is 1, so U * U† = 1.

    lines 20–21

    uses quaternion_spinor_unitary_scaled

      have hU : U * U.conjTranspose = 1 := by
        simpa [U, hq] using quaternion_spinor_unitary_scaled q
  5. U * B * U† = C

    Conjugating the Pauli-Bloch matrix B by U yields the Pauli-Bloch matrix C of the rotated vector, by the lemma `quaternion_spinor_pauli_conjugation q b`.

    lines 22–23

    uses quaternion_spinor_pauli_conjugation

      have hrot : U * B * U.conjTranspose = C := by
        simpa [U, B, C] using quaternion_spinor_pauli_conjugation q b
  6. U * V * U† = (1/2) • (1 + C)

    Substituting V = (1/2) • (1 + B), we pull the scalar factor 1/2 outside the matrix products using `Matrix.mul_smul` and `Matrix.smul_mul`. Distributing matrix multiplication over addition via `Matrix.mul_add` and `Matrix.add_mul` gives U * (1 + B) * U† = U * U† + U * B * U†. Substituting U * U† = 1 from `hU` and U * B * U† = C from `hrot` reduces this to 1 + C.

    lines 24–31

    uses Matrix.mul_smul, Matrix.smul_mul, Matrix.mul_add, Matrix.add_mul

      have hfinal : U * V * U.conjTranspose = (2 : ℂ)⁻¹ • (1 + C) := by
        rw [hV]
        simp only [Matrix.mul_smul, Matrix.smul_mul]
        congr 1
        calc
          U * (1 + B) * U.conjTranspose = U * U.conjTranspose + U * B * U.conjTranspose := by
            simp [Matrix.mul_add, Matrix.add_mul]
          _ = 1 + C := by rw [hU, hrot]
  7. For all indices i and j, the (i, j)-th entry of the rotated spinor projector equals (1 + C)ᵢⱼ / 2.

    Fix indices i and j. Combining `houter` and `hfinal` shows that the outer product matrix of U u equals (1/2) • (1 + C). Applying `congrArg` with the entry evaluation function A ↦ Aᵢⱼ extracts the (i, j)-th entry of both sides, and rewriting multiplication by 2⁻¹ back to division by 2 concludes the theorem.

    lines 32–34

    uses congrArg, div_eq_mul_inv, mul_comm

      intro i j
      have hentry := congrArg (fun A : Matrix (Fin 2) (Fin 2) ℂ => A i j) (houter.trans hfinal)
      simpa [U, C, div_eq_mul_inv, mul_comm] using hentry
div_eq_mul_inv
Division is defined as multiplication by the inverse: a / b = a * b⁻¹
mul_comm
Multiplication is commutative: a * b = b * a
Matrix.mulVec
Matrix-vector multiplication: (M v)ᵢ = ∑ⱼ Mᵢⱼ vⱼ
dotProduct
The dot product of two vectors: v ⬝ w = ∑ᵢ vᵢ wᵢ
Matrix.mul_apply
The (i, k)-th entry of a matrix product M * N is ∑ⱼ Mᵢⱼ Nⱼₖ
Matrix.conjTranspose_apply
The (j, i)-th entry of the conjugate transpose M† is the complex conjugate of Mᵢⱼ
Fin.sum_univ_two
A sum over Fin 2 evaluates to f(0) + f(1)
map_add
A homomorphism preserves addition: f(x + y) = f(x) + f(y)
map_mul
A homomorphism preserves multiplication: f(x * y) = f(x) * f(y)
quaternion_spinor_unitary_scaled
The spinor matrix U of a quaternion q satisfies U * U† = (∑ᵢ qᵢ²) • I
quaternion_spinor_pauli_conjugation
Conjugating the Pauli-Bloch matrix of b by the spinor matrix of q yields the Pauli-Bloch matrix of the rotated vector R_q b
Matrix.mul_smul
Scalar multiplication factors out of matrix multiplication on the right: M * (a • N) = a • (M * N)
Matrix.smul_mul
Scalar multiplication factors out of matrix multiplication on the left: (a • M) * N = a • (M * N)
Matrix.mul_add
Matrix multiplication distributes over addition on the left: L * (M + N) = L * M + L * N
Matrix.add_mul
Matrix multiplication distributes over addition on the right: (L + M) * N = L * N + M * N
congrArg
Applying a function to equal values preserves equality: if a₁ = a₂ then f(a₁) = f(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 quaternion_spinor_projector (q : Fin 4 → ℝ) (b : Fin 3 → ℝ)    (u : Fin 2 → ℂ) (hq : (∑ i, (q i)^2) = 1)    (hu : ∀ i j, u i * star (u j) = (1 + pauli_bloch_matrix b) i j / 2) :    ∀ i j, ((quaternion_spinor_matrix q).mulVec u) i *      star (((quaternion_spinor_matrix q).mulVec u) j) =      (1 + pauli_bloch_matrix ((quaternion_bloch_rotation q).mulVec b)) i j / 2 := by  let U := quaternion_spinor_matrix q  let B := pauli_bloch_matrix b  let C := pauli_bloch_matrix ((quaternion_bloch_rotation q).mulVec b)  let V : Matrix (Fin 2) (Fin 2) ℂ := Matrix.of (fun i j => u i * star (u j))  have hV : V = (2 : ℂ)⁻¹ • (1 + B) := by    ext i j    simpa [V, B, div_eq_mul_inv, mul_comm] using hu i j  have houter : Matrix.of (fun i j => (U.mulVec u) i * star ((U.mulVec u) j)) =      U * V * U.conjTranspose := by    ext i j    simp [V, Matrix.mulVec, dotProduct, Matrix.mul_apply, Matrix.conjTranspose_apply,      Fin.sum_univ_two, map_add, map_mul]    ring  have hU : U * U.conjTranspose = 1 := by    simpa [U, hq] using quaternion_spinor_unitary_scaled q  have hrot : U * B * U.conjTranspose = C := by    simpa [U, B, C] using quaternion_spinor_pauli_conjugation q b  have hfinal : U * V * U.conjTranspose = (2 : ℂ)⁻¹ • (1 + C) := by    rw [hV]    simp only [Matrix.mul_smul, Matrix.smul_mul]    congr 1    calc      U * (1 + B) * U.conjTranspose = U * U.conjTranspose + U * B * U.conjTranspose := by        simp [Matrix.mul_add, Matrix.add_mul]      _ = 1 + C := by rw [hU, hrot]  intro i j  have hentry := congrArg (fun A : Matrix (Fin 2) (Fin 2) ℂ => A i j) (houter.trans hfinal)  simpa [U, C, div_eq_mul_inv, mul_comm] using hentry
See it in the graphDiscuss this resultChallenge it