AFTD Auto-Formalizing Theoretical Domains

quaternion_bloch_rotation_neg

theoremverified

The homogeneous quaternion rotation matrix is invariant under negation of all four quaternion coordinates.

Statement

theorem quaternion_bloch_rotation_neg (q : Fin 4 → ℝ) :
    quaternion_bloch_rotation (-q) = quaternion_bloch_rotation q
Source
arXiv:2611.19367v1, Lemma 3, quaternion-to-rotation parametrization.
Verified
17 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1

The proof, explained

The rotation matrix associated with a quaternion q consists of entries that are homogeneous quadratic polynomials in the coordinates of q. By matrix extensionality, it suffices to show that each entry is invariant under replacing q with -q. The proof exhausts all nine index pairs (i, j) ∈ {0, 1, 2}² of the 3 × 3 matrix and verifies by ring arithmetic that each entry is unchanged, since (-1)² = 1 in every quadratic term.

  1. Matrix equality reduces to showing that corresponding entries are equal for all row and column indices i, j ∈ {0, 1, 2}.

    By matrix extensionality (`ext i j`), two 3 × 3 matrices are equal if and only if their entries agree at every coordinate (i, j).

    line 3

      ext i j
  2. The identity reduces to nine concrete scalar equations corresponding to index pairs (i, j) ∈ {0, 1, 2}².

    Since row and column indices range over the three-element type Fin 3, exhaustive case analysis on i and j (`fin_cases`) enumerates all nine positions in the matrix.

    line 4

      fin_cases i <;> fin_cases j <;>
  3. Each of the nine entrywise equalities holds. automation

    For each position (i, j), unfolding the definition of `quaternion_bloch_rotation` and evaluating the matrix elements using `Matrix.cons_val_two` produces quadratic expressions in the coordinates of -q on the left and q on the right. Because every term in each entry has degree 2 (such as (-qₖ)² or (-qₐ)(-q_b)), the signs cancel out, which polynomial ring arithmetic (`ring`) verifies automatically.

    line 5

    uses quaternion_bloch_rotation, Matrix.cons_val_two

        simp [quaternion_bloch_rotation, Matrix.cons_val_two] <;> ring
quaternion_bloch_rotation
The 3 × 3 rotation matrix constructed from the coordinates of a quaternion q ∈ ℝ⁴.
Matrix.cons_val_two
The entry at index 2 of a prepended vector `vecCons x u` is the head of the tail of u.

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_bloch_rotation_neg (q : Fin 4 → ℝ) :    quaternion_bloch_rotation (-q) = quaternion_bloch_rotation q := by  ext i j  fin_cases i <;> fin_cases j <;>    simp [quaternion_bloch_rotation, Matrix.cons_val_two] <;> ring
See it in the graphDiscuss this resultChallenge it