invertible_quaternion_axis_normalization
A unit quaternion has unit rotation columns, and an invertible real linear image of such a column can be normalized to a unit vector.
Statement
theorem invertible_quaternion_axis_normalization (L : Matrix (Fin 3) (Fin 3) ℝ) (i : Fin 3) (q : Fin 4 → ℝ) (hL : L.det ≠ 0) (hq : (∑ k, (q k)^2) = 1) : let r : Fin 3 → ℝ := fun k => quaternion_bloch_rotation q k i; let x := L.mulVec r; let d := Real.sqrt (∑ k, (x k)^2); (∑ k, (r k)^2) = 1 ∧ 0 < d ∧ (∑ k, (x k / d)^2) = 1
- Source
- arXiv:2611.19367v1, Lemma 3, normalized axes in Eq. (26).
- Verified
- 18 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- quaternion_bloch_rotationThe homogeneous real 3 by 3 rotation matrix associated with four quaternion coordinates.
- quaternion_bloch_rotation_orthogonalFor unit quaternion coordinates, the associated real matrix is orthogonal and has determinant one.
The proof, explained
The theorem shows that any column r of a unit quaternion's Bloch rotation matrix is a unit vector, and that its image x = L r under an invertible matrix L has strictly positive Euclidean norm d and can be normalized to a unit vector x/d. Orthogonality of the rotation matrix proves that r has unit norm, which implies r ≠ 0. Because det(L) ≠ 0, the linear map L is injective, ensuring x ≠ 0 and therefore d > 0. Finally, algebraic simplification shows that the normalized vector x/d satisfies ∑_k (x_k / d)^2 = d^2 / d^2 = 1.
Define r as the i-th column of the quaternion rotation matrix, x = L r, and d = √(∑_k x_k^2).
We introduce local definitions for the column vector r, its transformed vector x under L, and the Euclidean norm d of x, and restate the conjunction goal in terms of these definitions.
set r : Fin 3 → ℝ := fun k => quaternion_bloch_rotation q k i with hrdef set x : Fin 3 → ℝ := L.mulVec r with hxdef set d : ℝ := Real.sqrt (∑ k, (x k)^2) with hddef change (∑ k, (r k)^2) = 1 ∧ 0 < d ∧ (∑ k, (x k / d)^2) = 1
The column vector r has unit Euclidean norm: ∑_k r_k^2 = 1.
The Bloch rotation matrix R associated to the unit quaternion q is orthogonal (R^T R = I). Evaluating the (i, i)-entry of this matrix equality yields the inner product of the i-th column with itself, which simplifies to ∑_k r_k^2 = 1.
uses
quaternion_bloch_rotation_orthogonal,congrFun,Matrix.mul_apply,Matrix.transpose_apply,Matrix.one_apply_eq,pow_twohave hr : ∑ k, (r k)^2 = 1 := by rw [hrdef] have horth := (quaternion_bloch_rotation_orthogonal q hq).1 have h := congrFun (congrFun horth i) i simp only [Matrix.mul_apply, Matrix.transpose_apply, Matrix.one_apply_eq] at h simpa [pow_two] using h
The vector r is non-zero: r ≠ 0.
If r were zero, the sum of squares of its components would be 0, contradicting ∑_k r_k^2 = 1.
have hrne : r ≠ 0 := by intro h rw [h] at hr simp at hr
The vector x is non-zero: x ≠ 0.
If x were zero, then L r = L 0. Since det(L) ≠ 0, multiplication by L is injective, which would imply r = 0, contradicting r ≠ 0.
uses
Matrix.mulVec_injective_of_det_ne_zerohave hxne : x ≠ 0 := by intro h have hmv : L.mulVec r = L.mulVec 0 := by rw [← hxdef, h]; simp exact hrne (Matrix.mulVec_injective_of_det_ne_zero hL hmv)
The sum of the squared components of x is strictly positive: 0 < ∑_k x_k^2.
Because x ≠ 0, by function extensionality there exists some index k where x_k ≠ 0. Its square x_k^2 is strictly positive. Since each component's square is non-negative, the single term x_k^2 is at most the total sum ∑_j x_j^2, which forces the sum to be strictly positive.
uses
funext,sq_pos_of_ne_zero,Finset.single_le_sum,sq_nonneg,Finset.mem_univhave hSpos : 0 < ∑ k, (x k)^2 := by have hxex : ∃ k, x k ≠ 0 := by by_contra h push Not at h exact hxne (funext h) obtain ⟨k, hk⟩ := hxex have hkpos : 0 < (x k)^2 := sq_pos_of_ne_zero hk have hle : (x k)^2 ≤ ∑ j, (x j)^2 := Finset.single_le_sum (fun j _ => sq_nonneg (x j)) (Finset.mem_univ k) linarith
The Euclidean norm d is strictly positive: 0 < d.
Since d = √(∑_k x_k^2) and the radicand is strictly positive, its square root d is strictly positive.
uses
Real.sqrt_poshave hdpos : 0 < d := by rw [hddef, Real.sqrt_pos] exact hSpos
The normalized vector x / d has unit Euclidean norm: ∑_k (x_k / d)^2 = 1, completing the proof.
Squaring d = √(∑_k x_k^2) gives d^2 = ∑_k x_k^2. Distributing the square over the quotient and factoring out 1/d^2 reduces the sum to (∑_k x_k^2) / d^2 = d^2 / d^2 = 1, which holds because d > 0 implies d^2 ≠ 0.
uses
Real.sq_sqrt,div_pow,Finset.sum_div,div_self,pow_ne_zero,ne_of_gtrefine ⟨hr, hdpos, ?_⟩ have hd2 : d ^ 2 = ∑ k, (x k)^2 := by rw [hddef] exact Real.sq_sqrt hSpos.le simp only [div_pow] rw [← Finset.sum_div, ← hd2, div_self (pow_ne_zero 2 (ne_of_gt hdpos))]
congrFun- Equal functions take equal values on the same input.
div_pow- The n-th power of a quotient is the quotient of the n-th powers.
div_self- Any non-zero element divided by itself equals 1.
Finset.mem_univ- Every element of a finite type belongs to its universal set.
Finset.single_le_sum- A single term in a finite sum of non-negative elements is bounded by the total sum.
Finset.sum_div- Dividing a finite sum by a scalar equals the sum of the individually divided terms.
funext- Two functions that agree pointwise on all inputs are equal.
Matrix.mul_apply- The (i, k)-entry of the matrix product M * N is the sum over j of M_ij * N_jk.
Matrix.mulVec_injective_of_det_ne_zero- A square matrix over a domain with non-zero determinant induces an injective linear map.
Matrix.one_apply_eq- The diagonal entries of the identity matrix equal 1.
Matrix.transpose_apply- The (i, j)-entry of the transpose matrix M^T is M_ji.
ne_of_gt- If b < a, then a ≠ b.
pow_ne_zero- Any positive power of a non-zero element is non-zero.
pow_two- The square of an element equals the product of the element with itself.
quaternion_bloch_rotation_orthogonal- The Bloch rotation matrix associated to a unit quaternion is orthogonal and has determinant 1.
Real.sq_sqrt- The square of the square root of a non-negative real number is the number itself.
Real.sqrt_pos- The square root of a real number is strictly positive if and only if the number is strictly positive.
sq_nonneg- The square of any element in an ordered ring is non-negative.
sq_pos_of_ne_zero- The square of a non-zero element in an ordered ring is strictly positive.
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 invertible_quaternion_axis_normalization (L : Matrix (Fin 3) (Fin 3) ℝ) (i : Fin 3) (q : Fin 4 → ℝ) (hL : L.det ≠ 0) (hq : (∑ k, (q k)^2) = 1) : let r : Fin 3 → ℝ := fun k => quaternion_bloch_rotation q k i; let x := L.mulVec r; let d := Real.sqrt (∑ k, (x k)^2); (∑ k, (r k)^2) = 1 ∧ 0 < d ∧ (∑ k, (x k / d)^2) = 1 := by set r : Fin 3 → ℝ := fun k => quaternion_bloch_rotation q k i with hrdef set x : Fin 3 → ℝ := L.mulVec r with hxdef set d : ℝ := Real.sqrt (∑ k, (x k)^2) with hddef change (∑ k, (r k)^2) = 1 ∧ 0 < d ∧ (∑ k, (x k / d)^2) = 1 have hr : ∑ k, (r k)^2 = 1 := by rw [hrdef] have horth := (quaternion_bloch_rotation_orthogonal q hq).1 have h := congrFun (congrFun horth i) i simp only [Matrix.mul_apply, Matrix.transpose_apply, Matrix.one_apply_eq] at h simpa [pow_two] using h have hrne : r ≠ 0 := by intro h rw [h] at hr simp at hr have hxne : x ≠ 0 := by intro h have hmv : L.mulVec r = L.mulVec 0 := by rw [← hxdef, h]; simp exact hrne (Matrix.mulVec_injective_of_det_ne_zero hL hmv) have hSpos : 0 < ∑ k, (x k)^2 := by have hxex : ∃ k, x k ≠ 0 := by by_contra h push Not at h exact hxne (funext h) obtain ⟨k, hk⟩ := hxex have hkpos : 0 < (x k)^2 := sq_pos_of_ne_zero hk have hle : (x k)^2 ≤ ∑ j, (x j)^2 := Finset.single_le_sum (fun j _ => sq_nonneg (x j)) (Finset.mem_univ k) linarith have hdpos : 0 < d := by rw [hddef, Real.sqrt_pos] exact hSpos refine ⟨hr, hdpos, ?_⟩ have hd2 : d ^ 2 = ∑ k, (x k)^2 := by rw [hddef] exact Real.sq_sqrt hSpos.le simp only [div_pow] rw [← Finset.sum_div, ← hd2, div_self (pow_ne_zero 2 (ne_of_gt hdpos))]