quaternion_bloch_rotation_orthogonal
For unit quaternion coordinates, the associated real matrix is orthogonal and has determinant one.
Statement
theorem quaternion_bloch_rotation_orthogonal (q : Fin 4 → ℝ)
(hq : (∑ i, (q i)^2) = 1) :
(quaternion_bloch_rotation q).transpose * quaternion_bloch_rotation q = 1 ∧
(quaternion_bloch_rotation q).det = 1- 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.
- Used by 1
- invertible_quaternion_axis_normalizationA unit quaternion has unit rotation columns, and an invertible real linear image of such a column can be normalized to a unit vector.
The proof, explained
The proof establishes two general polynomial identities for the Bloch rotation matrix $R(q)$ associated with an arbitrary quaternion $q \in \mathbb{R}^4$: namely, $R(q)^T R(q) = (\sum_{i=0}^3 q_i^2)^2 I_3$ and $\det(R(q)) = (\sum_{i=0}^3 q_i^2)^3$. Both identities are proven by finite coordinate expansion and polynomial ring arithmetic. Substituting the unit quaternion condition $\sum_{i=0}^3 q_i^2 = 1$ into these identities immediately shows that $R(q)$ is orthogonal and has determinant one.
For any quaternion $q \in \mathbb{R}^4$, the Bloch rotation matrix satisfies $R(q)^T R(q) = \left(\sum_{i=0}^3 q_i^2\right)^2 I_3$.
By matrix extensionality, it suffices to check equality entry by entry for each pair of indices $(i, j)$ with $i, j \in \{0, 1, 2\}$. Exhausting all nine index combinations, expanding the matrix product definition, and evaluating the finite sums over coordinate indices reduces each entry to an explicit polynomial identity in the four quaternion components $q_0, q_1, q_2, q_3$. Commutative ring arithmetic verifies that all diagonal entries equal $(\sum_i q_i^2)^2$ and all off-diagonal entries vanish.
uses
Matrix.mul_apply,Fin.sum_univ_three,Fin.sum_univ_four,Matrix.cons_val_twohave hm : (quaternion_bloch_rotation q).transpose * quaternion_bloch_rotation q = (∑ i, (q i)^2)^2 • (1 : Matrix (Fin 3) (Fin 3) ℝ) := by ext i j fin_cases i <;> fin_cases j <;> simp [quaternion_bloch_rotation, Matrix.mul_apply, Fin.sum_univ_three, Fin.sum_univ_four, Matrix.cons_val_two] <;> ring
For any quaternion $q \in \mathbb{R}^4$, the determinant of the Bloch rotation matrix satisfies $\det(R(q)) = \left(\sum_{i=0}^3 q_i^2\right)^3$.
Expanding the determinant of the $3 \times 3$ matrix via the standard six-term formula and unfolding the entries as polynomials in $q$ yields a single polynomial equality, which is verified by commutative ring arithmetic.
uses
Matrix.det_fin_three,Fin.sum_univ_four,Matrix.cons_val_twohave hd : (quaternion_bloch_rotation q).det = (∑ i, (q i)^2)^3 := by simp [quaternion_bloch_rotation, Matrix.det_fin_three, Fin.sum_univ_four, Matrix.cons_val_two] ring
The matrix is orthogonal: $R(q)^T R(q) = 1$.
We split the conjunction into its two components. For the first, we substitute the general identity for $R(q)^T R(q)$ (from hypothesis hm) and the unit quaternion condition $\sum_i q_i^2 = 1$ (hypothesis hq), simplifying $1^2 \cdot I_3$ to the identity matrix.
constructor · rw [hm, hq] simp
The matrix has determinant one: $\det(R(q)) = 1$.
For the second component, we substitute the general determinant identity (from hypothesis hd) and the unit condition $\sum_i q_i^2 = 1$ (hypothesis hq), which reduces the goal to $1^3 = 1$, verified by numerical computation.
· rw [hd, hq] norm_num
Matrix.mul_apply- The entry at index $(i, k)$ of the matrix product $M N$ is given by the sum $\sum_j M_{i, j} N_{j, k}$.
Fin.sum_univ_three- The sum of a function $f$ over the index set $\{0, 1, 2\}$ equals $f(0) + f(1) + f(2)$.
Fin.sum_univ_four- The sum of a function $f$ over the index set $\{0, 1, 2, 3\}$ equals $f(0) + f(1) + f(2) + f(3)$.
Matrix.cons_val_two- Evaluating a vector constructed by prepending an element, $\mathrm{vecCons}\; x\; u$, at index 2 yields the head of the tail of $u$ (the element at index 2).
Matrix.det_fin_three- The determinant of a $3 \times 3$ matrix $A$ equals the six-term expansion $A_{00} A_{11} A_{22} - A_{00} A_{12} A_{21} - A_{01} A_{10} A_{22} + A_{01} A_{12} A_{20} + A_{02} A_{10} A_{21} - A_{02} A_{11} A_{20}$.
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_orthogonal (q : Fin 4 → ℝ) (hq : (∑ i, (q i)^2) = 1) : (quaternion_bloch_rotation q).transpose * quaternion_bloch_rotation q = 1 ∧ (quaternion_bloch_rotation q).det = 1 := by have hm : (quaternion_bloch_rotation q).transpose * quaternion_bloch_rotation q = (∑ i, (q i)^2)^2 • (1 : Matrix (Fin 3) (Fin 3) ℝ) := by ext i j fin_cases i <;> fin_cases j <;> simp [quaternion_bloch_rotation, Matrix.mul_apply, Fin.sum_univ_three, Fin.sum_univ_four, Matrix.cons_val_two] <;> ring have hd : (quaternion_bloch_rotation q).det = (∑ i, (q i)^2)^3 := by simp [quaternion_bloch_rotation, Matrix.det_fin_three, Fin.sum_univ_four, Matrix.cons_val_two] ring constructor · rw [hm, hq] simp · rw [hd, hq] norm_num