quaternion_bloch_rotation_neg
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
- quaternion_bloch_rotationThe homogeneous real 3 by 3 rotation matrix associated with four quaternion coordinates.
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.
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).
ext i jThe 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.
fin_cases i <;> fin_cases j <;>
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.
uses
quaternion_bloch_rotation,Matrix.cons_val_twosimp [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.
- In Lean, matrices defined with `![...]` are represented via nested `vecCons`, so looking up entries at index 2 requires the library lemma `Matrix.cons_val_two`; on paper this is just reading off matrix entries.
- The verification that $(-q_a)(-q_b) = q_a q_b$ across all nine entries is handled entirely by automated ring simplification (`ring`).
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
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