Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

The unit quaternion comparison model

Abstract

The unit quaternions with the half-shifted inner product form a ternary comparison structure that is order sensitive, touches zero, is chain connected and has feature rank five.

Lemma 1.1 (The quaternion inner product in components).

\forall p \in \mathbb{H}[\mathbb{R}], q \in \mathbb{H}[\mathbb{R}],\; \langle p, q \rangle_{\mathbb{R}} = \operatorname{re}\left(p\right) \cdot \operatorname{re}\left(q\right) + \operatorname{imI}\left(p\right) \cdot \operatorname{imI}\left(q\right) + \operatorname{imJ}\left(p\right) \cdot \operatorname{imJ}\left(q\right) + \operatorname{imK}\left(p\right) \cdot \operatorname{imK}\left(q\right)

Proof. Machine-checked in Lean as D5/S3/Quantum/AURICOmega/QuaternionComparisonModel.inner_eq_components (✓ std3). ∎

Source. Repository-derived.

Commentary.

The real inner product of two quaternions is the real part of star p * q. Since star p has components re p, -imI p, -imJ p and -imK p, that real part is the sum of the four products of corresponding components.

Definition 1.2 (The feature map).

Lean statement: D5/S3/Quantum/AURICOmega/QuaternionComparisonModel.feature

Formalization. D5/S3/Quantum/AURICOmega/QuaternionComparisonModel.feature (✓ std3).

Source. Repository-derived.

Commentary.

The feature map sends a quaternion q to the vector (1 / sqrt 2) * (1, re q, imI q, imJ q, imK q) of Euclidean five-space.

Lemma 1.3 (The inner product of features).

\forall p \in \mathbb{H}[\mathbb{R}], q \in \mathbb{H}[\mathbb{R}],\; \langle \operatorname{feature}\left(p\right), \operatorname{feature}\left(q\right) \rangle_{\mathbb{R}} = \frac{1 + \langle p, q \rangle_{\mathbb{R}}}{2}

Proof. Machine-checked in Lean as D5/S3/Quantum/AURICOmega/QuaternionComparisonModel.inner_feature (✓ std3). ∎

Source. Repository-derived.

Commentary.

For all quaternions p and q, the Euclidean inner product of the features of p and q is (1 + <p, q>) / 2, where <p, q> is the real inner product of quaternions. The inner product of the two vectors (1, re p, imI p, imJ p, imK p) and (1, re q, imI q, imJ q, imK q) is 1 plus the sum of the products of corresponding components, which is 1 + <p, q> by the component formula above, and the two factors 1 / sqrt 2 contribute 1 / 2.

Definition 1.4 (The unit quaternions as a ternary comparison structure).

Lean statement: D5/S3/Quantum/AURICOmega/QuaternionComparisonModel.quaternionModel

Formalization. D5/S3/Quantum/AURICOmega/QuaternionComparisonModel.quaternionModel (✓ std3).

Source. Repository-derived.

Commentary.

The carrier is the group of unit quaternions, the unitary elements of the real quaternion algebra. The transfer is tri x y z = x * y^-1 * z and the reading is kappa x y = (1 + <x, y>) / 2, where <p, q> = re p * re q + imI p * imI q + imJ p * imJ q + imK p * imK q is the real inner product of the quaternion algebra. The transfer identities are group identities. The reading is symmetric; it equals one exactly when x = y, because two unit vectors have inner product one only when they coincide; it is nonnegative because the inner product of two unit vectors is at least -1. Left and right multiplication by a unit quaternion preserve the inner product, which gives the two invariance laws of the reading under transfer. The Gram forms are nonnegative because the reading is the inner product of the feature vectors described below, so each Gram form is the squared norm of a combination of feature vectors.

Definition 1.5 (The unit quaternion i).

Lean statement: D5/S3/Quantum/AURICOmega/QuaternionComparisonModel.unitI

Formalization. D5/S3/Quantum/AURICOmega/QuaternionComparisonModel.unitI (✓ std3).

Source. Repository-derived.

Commentary.

unitI is the quaternion with real part 0 and imaginary components imI = 1, imJ = 0, imK = 0, regarded as a unit quaternion: star i * i = 1 and i * star i = 1.

Definition 1.6 (The unit quaternion j).

Lean statement: D5/S3/Quantum/AURICOmega/QuaternionComparisonModel.unitJ

Formalization. D5/S3/Quantum/AURICOmega/QuaternionComparisonModel.unitJ (✓ std3).

Source. Repository-derived.

Commentary.

unitJ is the quaternion with real part 0 and imaginary components imI = 0, imJ = 1, imK = 0, regarded as a unit quaternion: star j * j = 1 and j * star j = 1.

Theorem 1.7 (The model is order sensitive).

\operatorname{Noncommutative}\left(\operatorname{quaternionModel}\right)

Proof. Machine-checked in Lean as D5/S3/Quantum/AURICOmega/QuaternionComparisonModel.quaternionModel_noncommutative (✓ std3). ∎

Source. Repository-derived.

Commentary.

Take the unit quaternions i, 1 and j. Then tri i 1 j = i * j = k while tri j 1 i = j * i = -k; their k-components are 1 and -1, so the two transfers differ.

Theorem 1.8 (The reading touches zero).

\operatorname{TouchesZero}\left(\operatorname{quaternionModel}\right)

Proof. Machine-checked in Lean as D5/S3/Quantum/AURICOmega/QuaternionComparisonModel.quaternionModel_touchesZero (✓ std3). ∎

Source. Repository-derived.

Commentary.

The antipodal pair 1 and -1 has <1, -1> = -1, so its reading is (1 - 1) / 2 = 0, which is below every positive real e.

Lemma 1.9 (The unit quaternions form the unit sphere).

\operatorname{unitary}\left(\mathbb{H}[\mathbb{R}]\right) = \operatorname{sphere}\left(0, 1\right)

Proof. Machine-checked in Lean as D5/S3/Quantum/AURICOmega/QuaternionComparisonModel.coe_unitary_eq_sphere (✓ std3). ∎

Source. Repository-derived.

Commentary.

As a subset of the quaternions, the set of unit quaternions is the sphere of radius one about zero. A unit quaternion has norm one because the norm is multiplicative and star q * q = 1. Conversely, if the norm of q is one, then star q * q and q * star q both equal the squared norm of q, which is one, so q is unitary.

Theorem 1.10 (The model is chain connected).

\operatorname{ChainConnected}\left(\operatorname{quaternionModel}\right)

Proof. Machine-checked in Lean as D5/S3/Quantum/AURICOmega/QuaternionComparisonModel.quaternionModel_chainConnected (✓ std3). ∎

Source. Repository-derived.

Commentary.

By the lemma that the unit quaternions are path-connected, they form a connected space. By the lemma that the reading of the unit quaternion model is continuous, for a fixed point a the reading kappa a b is continuous in b, and it equals one at b = a, so for positive e every b near a satisfies 1 - e < kappa a b and, by symmetry, 1 - e < kappa b a. Thus, for each point a, the relation holds in both directions, from a to b and from b to a, for every b in a neighbourhood of a. On a connected space, a transitive relation with this two-sided neighbourhood property holds between all pairs; applied to the reflexive transitive closure of 1 - e < kappa a b, this joins any two unit quaternions.

Theorem 1.11 (The reading has feature rank five).

\operatorname{HasFeatureRank}\left(\operatorname{quaternionModel}, 5\right)

Proof. Machine-checked in Lean as D5/S3/Quantum/AURICOmega/QuaternionComparisonModel.quaternionModel_hasFeatureRank_five (✓ std3). ∎

Source. Repository-derived.

Commentary.

The feature map sends q to (1 / sqrt 2) * (1, re q, imI q, imJ q, imK q) in Euclidean five-space. The inner product of the features of p and q is (1 / 2) * (1 + <p, q>), which is the reading of p and q.

Lemma 1.12 (The unit quaternions are path-connected).

\operatorname{PathConnectedSpace}\left(\operatorname{unitary}\left(\mathbb{H}[\mathbb{R}]\right)\right)

Proof. Machine-checked in Lean as D5/S3/Quantum/AURICOmega/QuaternionComparisonModel.pathConnectedSpace_unitary (✓ std3). ∎

Source. Repository-derived.

Commentary.

With the subspace topology of the quaternions, the group of unit quaternions is a path-connected space: it is nonempty and any two unit quaternions are joined by a continuous path of unit quaternions. By the lemma that the unit quaternions form the unit sphere, it is the sphere of radius one about zero in the quaternions, a real normed space of dimension four, and a sphere of nonnegative radius in a real normed space of dimension greater than one is path-connected. A path-connected space is connected, and in particular preconnected.

Lemma 1.13 (The reading of the unit quaternion model is continuous).

\operatorname{Continuous}\left((p: \operatorname{unitary}\left(\mathbb{H}[\mathbb{R}]\right) \times \operatorname{unitary}\left(\mathbb{H}[\mathbb{R}]\right)) \mapsto \operatorname{kappa}\left(\operatorname{quaternionModel}, p.1, p.2\right)\right)

Proof. Machine-checked in Lean as D5/S3/Quantum/AURICOmega/QuaternionComparisonModel.continuous_kappa_quaternionModel (✓ std3). ∎

Source. Repository-derived.

Commentary.

The reading of quaternionModel is (x, y) -> (1 + <x, y>) / 2, where <x, y> is the real inner product of the quaternions. The inclusion of the unit quaternions into the quaternions is continuous and the real inner product is continuous, so the reading is continuous on pairs of unit quaternions.

References