Beginning of Section SurQuaternions
Axiom. (quaternion_tag_fresh) We take the following as an axiom:
∀z, CSNo z∀uz, {3}u
Definition. We define CSNo_pair to be pair_tag {3} of type setsetset.
Axiom. (CSNo_pair_0) We take the following as an axiom:
∀x, CSNo_pair x 0 = x
Axiom. (CSNo_pair_prop_1) We take the following as an axiom:
∀x1 y1 x2 y2, CSNo x1CSNo x2CSNo_pair x1 y1 = CSNo_pair x2 y2x1 = x2
Axiom. (CSNo_pair_prop_2) We take the following as an axiom:
∀x1 y1 x2 y2, CSNo x1CSNo y1CSNo x2CSNo y2CSNo_pair x1 y1 = CSNo_pair x2 y2y1 = y2
Definition. We define HSNo to be CD_carr {3} CSNo of type setprop.
Axiom. (HSNo_I) We take the following as an axiom:
∀x y, CSNo xCSNo yHSNo (CSNo_pair x y)
Axiom. (HSNo_E) We take the following as an axiom:
∀z, HSNo z∀p : setprop, (∀x y, CSNo xCSNo yz = CSNo_pair x yp (CSNo_pair x y))p z
Axiom. (CSNo_HSNo) We take the following as an axiom:
∀x, CSNo xHSNo x
Axiom. (HSNo_0) We take the following as an axiom:
Axiom. (HSNo_1) We take the following as an axiom:
Let ctag : setsetλalpha ⇒ SetAdjoin alpha {3}
Notation. We use '' as a postfix operator with priority 100 corresponding to applying term ctag.
Axiom. (HSNo_ExtendedSNoElt_4) We take the following as an axiom:
∀z, HSNo zExtendedSNoElt_ 4 z
Notation. We use - as a prefix operator with priority 358 corresponding to applying term minus_CSNo.
Notation. We use + as an infix operator with priority 360 and which associates to the right corresponding to applying term add_CSNo.
Notation. We use * as an infix operator with priority 355 and which associates to the right corresponding to applying term mul_CSNo.
Notation. We use :/: as an infix operator with priority 353 and no associativity corresponding to applying term div_CSNo.
Notation. We use ' as a postfix operator with priority 100 corresponding to applying term conj_CSNo.
Let i ≝ Complex_i
Definition. We define Quaternion_j to be CSNo_pair 0 1 of type set.
Definition. We define Quaternion_k to be CSNo_pair 0 i of type set.
Let j ≝ Quaternion_j
Let k ≝ Quaternion_k
Definition. We define HSNo_proj0 to be CD_proj0 {3} CSNo of type setset.
Definition. We define HSNo_proj1 to be CD_proj1 {3} CSNo of type setset.
Let p0 : setsetHSNo_proj0
Let p1 : setsetHSNo_proj1
Let pa : setsetsetCSNo_pair
Axiom. (HSNo_proj0_1) We take the following as an axiom:
∀z, HSNo zCSNo (p0 z)∃y, CSNo yz = pa (p0 z) y
Axiom. (HSNo_proj0_2) We take the following as an axiom:
∀x y, CSNo xCSNo yp0 (pa x y) = x
Axiom. (HSNo_proj1_1) We take the following as an axiom:
∀z, HSNo zCSNo (p1 z)z = pa (p0 z) (p1 z)
Axiom. (HSNo_proj1_2) We take the following as an axiom:
∀x y, CSNo xCSNo yp1 (pa x y) = y
Axiom. (HSNo_proj0R) We take the following as an axiom:
∀z, HSNo zCSNo (p0 z)
Axiom. (HSNo_proj1R) We take the following as an axiom:
∀z, HSNo zCSNo (p1 z)
Axiom. (HSNo_proj0p1) We take the following as an axiom:
∀z, HSNo zz = pa (p0 z) (p1 z)
Axiom. (HSNo_proj0proj1_split) We take the following as an axiom:
∀z w, HSNo zHSNo wp0 z = p0 wp1 z = p1 wz = w
Definition. We define HSNoLev to be λz ⇒ CSNoLev (p0 z)CSNoLev (p1 z) of type setset.
Axiom. (HSNoLev_ordinal) We take the following as an axiom:
∀z, HSNo zordinal (HSNoLev z)
Definition. We define minus_HSNo to be CD_minus {3} CSNo minus_CSNo of type setset.
Definition. We define conj_HSNo to be CD_conj {3} CSNo minus_CSNo conj_CSNo of type setset.
Definition. We define add_HSNo to be CD_add {3} CSNo add_CSNo of type setsetset.
Definition. We define mul_HSNo to be CD_mul {3} CSNo minus_CSNo conj_CSNo add_CSNo mul_CSNo of type setsetset.
Definition. We define exp_HSNo_nat to be CD_exp_nat {3} CSNo minus_CSNo conj_CSNo add_CSNo mul_CSNo of type setsetset.
Let plus' ≝ add_HSNo
Let mult' ≝ mul_HSNo
Notation. We use :-: as a prefix operator with priority 358 corresponding to applying term minus_HSNo.
Notation. We use '' as a postfix operator with priority 100 corresponding to applying term conj_HSNo.
Notation. We use + as an infix operator with priority 360 and which associates to the right corresponding to applying term add_HSNo.
Notation. We use as an infix operator with priority 355 and which associates to the right corresponding to applying term mul_HSNo.
Notation. We use :^: as an infix operator with priority 355 and which associates to the right corresponding to applying term exp_HSNo_nat.
Axiom. (HSNo_Complex_i) We take the following as an axiom:
Axiom. (HSNo_Quaternion_j) We take the following as an axiom:
Axiom. (HSNo_Quaternion_k) We take the following as an axiom:
Axiom. (HSNo_minus_HSNo) We take the following as an axiom:
∀z, HSNo zHSNo (minus_HSNo z)
Axiom. (minus_HSNo_proj0) We take the following as an axiom:
∀z, HSNo zp0 (:-: z) = - p0 z
Axiom. (minus_HSNo_proj1) We take the following as an axiom:
∀z, HSNo zp1 (:-: z) = - p1 z
Axiom. (HSNo_conj_HSNo) We take the following as an axiom:
∀z, HSNo zHSNo (conj_HSNo z)
Axiom. (conj_HSNo_proj0) We take the following as an axiom:
∀z, HSNo zp0 (z '') = (p0 z) '
Axiom. (conj_HSNo_proj1) We take the following as an axiom:
∀z, HSNo zp1 (z '') = - p1 z
Axiom. (HSNo_add_HSNo) We take the following as an axiom:
∀z w, HSNo zHSNo wHSNo (add_HSNo z w)
Axiom. (add_HSNo_proj0) We take the following as an axiom:
∀z w, HSNo zHSNo wp0 (plus' z w) = p0 z + p0 w
Axiom. (add_HSNo_proj1) We take the following as an axiom:
∀z w, HSNo zHSNo wp1 (plus' z w) = p1 z + p1 w
Axiom. (HSNo_mul_HSNo) We take the following as an axiom:
∀z w, HSNo zHSNo wHSNo (z w)
Axiom. (mul_HSNo_proj0) We take the following as an axiom:
∀z w, HSNo zHSNo wp0 (mult' z w) = p0 z * p0 w + - (p1 w ' * p1 z)
Axiom. (mul_HSNo_proj1) We take the following as an axiom:
∀z w, HSNo zHSNo wp1 (mult' z w) = p1 w * p0 z + p1 z * p0 w '
Axiom. (CSNo_HSNo_proj0) We take the following as an axiom:
∀x, CSNo xp0 x = x
Axiom. (CSNo_HSNo_proj1) We take the following as an axiom:
∀x, CSNo xp1 x = 0
Axiom. (HSNo_p0_0) We take the following as an axiom:
p0 0 = 0
Axiom. (HSNo_p1_0) We take the following as an axiom:
p1 0 = 0
Axiom. (HSNo_p0_1) We take the following as an axiom:
p0 1 = 1
Axiom. (HSNo_p1_1) We take the following as an axiom:
p1 1 = 0
Axiom. (HSNo_p0_i) We take the following as an axiom:
p0 i = i
Axiom. (HSNo_p1_i) We take the following as an axiom:
p1 i = 0
Axiom. (HSNo_p0_j) We take the following as an axiom:
p0 j = 0
Axiom. (HSNo_p1_j) We take the following as an axiom:
p1 j = 1
Axiom. (HSNo_p0_k) We take the following as an axiom:
p0 k = 0
Axiom. (HSNo_p1_k) We take the following as an axiom:
p1 k = i
Axiom. (minus_HSNo_minus_CSNo) We take the following as an axiom:
∀x, CSNo x:-: x = - x
Axiom. (minus_HSNo_0) We take the following as an axiom:
:-: 0 = 0
Axiom. (conj_HSNo_conj_CSNo) We take the following as an axiom:
∀x, CSNo xx '' = x '
Axiom. (conj_HSNo_id_SNo) We take the following as an axiom:
∀x, SNo xx '' = x
Axiom. (conj_HSNo_0) We take the following as an axiom:
0 '' = 0
Axiom. (conj_HSNo_1) We take the following as an axiom:
1 '' = 1
Axiom. (add_HSNo_add_CSNo) We take the following as an axiom:
∀x y, CSNo xCSNo yx + y = x + y
Axiom. (mul_HSNo_mul_CSNo) We take the following as an axiom:
∀x y, CSNo xCSNo yx y = x * y
Axiom. (minus_HSNo_invol) We take the following as an axiom:
∀z, HSNo z:-: :-: z = z
Axiom. (conj_HSNo_invol) We take the following as an axiom:
∀z, HSNo zz '' '' = z
Axiom. (conj_minus_HSNo) We take the following as an axiom:
∀z, HSNo z(:-: z) '' = :-: (z '')
Axiom. (minus_add_HSNo) We take the following as an axiom:
∀z w, HSNo zHSNo w:-: (z + w) = :-: z + :-: w
Axiom. (conj_add_HSNo) We take the following as an axiom:
∀z w, HSNo zHSNo w(z + w) '' = z '' + w ''
Axiom. (add_HSNo_com) We take the following as an axiom:
∀z w, HSNo zHSNo wz + w = w + z
Axiom. (add_HSNo_assoc) We take the following as an axiom:
∀z w v, HSNo zHSNo wHSNo v(z + w) + v = z + (w + v)
Axiom. (add_HSNo_0L) We take the following as an axiom:
∀z, HSNo zadd_HSNo 0 z = z
Axiom. (add_HSNo_0R) We take the following as an axiom:
∀z, HSNo zadd_HSNo z 0 = z
Axiom. (add_HSNo_minus_HSNo_linv) We take the following as an axiom:
∀z, HSNo zadd_HSNo (minus_HSNo z) z = 0
Axiom. (add_HSNo_minus_HSNo_rinv) We take the following as an axiom:
∀z, HSNo zadd_HSNo z (minus_HSNo z) = 0
Axiom. (mul_HSNo_0R) We take the following as an axiom:
∀z, HSNo zz 0 = 0
Axiom. (mul_HSNo_0L) We take the following as an axiom:
∀z, HSNo z0 z = 0
Axiom. (mul_HSNo_1R) We take the following as an axiom:
∀z, HSNo zz 1 = z
Axiom. (mul_HSNo_1L) We take the following as an axiom:
∀z, HSNo z1 z = z
Axiom. (conj_mul_HSNo) We take the following as an axiom:
∀z w, HSNo zHSNo w(z w) '' = w '' z ''
Axiom. (mul_HSNo_distrL) We take the following as an axiom:
∀z w u, HSNo zHSNo wHSNo uz (w + u) = z w + z u
Axiom. (mul_HSNo_distrR) We take the following as an axiom:
∀z w u, HSNo zHSNo wHSNo u(z + w) u = z u + w u
Axiom. (minus_mul_HSNo_distrR) We take the following as an axiom:
∀z w, HSNo zHSNo wz (:-: w) = :-: z w
Axiom. (minus_mul_HSNo_distrL) We take the following as an axiom:
∀z w, HSNo zHSNo w(:-: z) w = :-: z w
Axiom. (exp_HSNo_nat_0) We take the following as an axiom:
∀z, z0 = 1
Axiom. (exp_HSNo_nat_S) We take the following as an axiom:
∀z n, nat_p nz(ordsucc n) = z zn
Axiom. (exp_HSNo_nat_1) We take the following as an axiom:
∀z, HSNo zz1 = z
Axiom. (exp_HSNo_nat_2) We take the following as an axiom:
∀z, HSNo zz2 = z z
Axiom. (HSNo_exp_HSNo_nat) We take the following as an axiom:
∀z, HSNo z∀n, nat_p nHSNo (zn)
Axiom. (add_CSNo_com_3b_1_2) We take the following as an axiom:
∀x y z, CSNo xCSNo yCSNo z(x + y) + z = (x + z) + y
Axiom. (add_CSNo_com_4_inner_mid) We take the following as an axiom:
∀x y z w, CSNo xCSNo yCSNo zCSNo w(x + y) + (z + w) = (x + z) + (y + w)
Axiom. (add_CSNo_rotate_4_0312) We take the following as an axiom:
∀x y z w, CSNo xCSNo yCSNo zCSNo w(x + y) + (z + w) = (x + w) + (y + z)
Axiom. (Quaternion_i_sqr) We take the following as an axiom:
i i = :-: 1
Axiom. (Quaternion_j_sqr) We take the following as an axiom:
j j = :-: 1
Axiom. (Quaternion_k_sqr) We take the following as an axiom:
k k = :-: 1
Axiom. (Quaternion_i_j) We take the following as an axiom:
i j = k
Axiom. (Quaternion_j_k) We take the following as an axiom:
j k = i
Axiom. (Quaternion_k_i) We take the following as an axiom:
k i = j
Axiom. (Quaternion_j_i) We take the following as an axiom:
j i = :-: k
Axiom. (Quaternion_k_j) We take the following as an axiom:
k j = :-: i
Axiom. (Quaternion_i_k) We take the following as an axiom:
i k = :-: j
Axiom. (add_CSNo_rotate_3_1) We take the following as an axiom:
∀x y z, CSNo xCSNo yCSNo zx + y + z = z + x + y
Axiom. (mul_CSNo_rotate_3_1) We take the following as an axiom:
∀x y z, CSNo xCSNo yCSNo zx * y * z = z * x * y
Axiom. (mul_HSNo_assoc) We take the following as an axiom:
∀z w v, HSNo zHSNo wHSNo vz (w v) = (z w) v
Axiom. (conj_HSNo_i) We take the following as an axiom:
i '' = :-: i
Axiom. (conj_HSNo_j) We take the following as an axiom:
j '' = :-: j
Axiom. (conj_HSNo_k) We take the following as an axiom:
k '' = :-: k
End of Section SurQuaternions
Beginning of Section Quaternions
Notation. We use - as a prefix operator with priority 358 corresponding to applying term minus_HSNo.
Notation. We use + as an infix operator with priority 360 and which associates to the right corresponding to applying term add_HSNo.
Notation. We use * as an infix operator with priority 355 and which associates to the right corresponding to applying term mul_HSNo.
Let i ≝ Complex_i
Let j ≝ Quaternion_j
Let k ≝ Quaternion_k
Let p0 : setsetHSNo_proj0
Let p1 : setsetHSNo_proj1
Let pa : setsetsetCSNo_pair
Definition. We define quaternion to be {pa (u 0) (u 1)|u ∈ complexcomplex} of type set.
Axiom. (quaternion_I) We take the following as an axiom:
∀x ycomplex, pa x y quaternion
Axiom. (quaternion_E) We take the following as an axiom:
∀zquaternion, ∀p : prop, (∀x ycomplex, z = pa x yp)p
Axiom. (quaternion_HSNo) We take the following as an axiom:
Axiom. (complex_quaternion) We take the following as an axiom:
complex quaternion
Axiom. (quaternion_0) We take the following as an axiom:
Axiom. (quaternion_1) We take the following as an axiom:
Axiom. (quaternion_i) We take the following as an axiom:
Axiom. (quaternion_j) We take the following as an axiom:
Axiom. (quaternion_k) We take the following as an axiom:
Axiom. (quaternion_p0_eq) We take the following as an axiom:
∀x ycomplex, p0 (pa x y) = x
Axiom. (quaternion_p1_eq) We take the following as an axiom:
∀x ycomplex, p1 (pa x y) = y
Axiom. (quaternion_p0_complex) We take the following as an axiom:
∀zquaternion, p0 z complex
Axiom. (quaternion_p1_complex) We take the following as an axiom:
∀zquaternion, p1 z complex
Axiom. (quaternion_proj0proj1_split) We take the following as an axiom:
∀z wquaternion, p0 z = p0 wp1 z = p1 wz = w
Axiom. (quaternion_minus_HSNo) We take the following as an axiom:
Axiom. (quaternion_conj_HSNo) We take the following as an axiom:
Axiom. (quaternion_add_HSNo) We take the following as an axiom:
Axiom. (quaternion_mul_HSNo) We take the following as an axiom:
Axiom. (complex_p0_eq) We take the following as an axiom:
∀xcomplex, p0 x = x
Axiom. (complex_p1_eq) We take the following as an axiom:
∀xcomplex, p1 x = 0
End of Section Quaternions