The areas / V06. Rings, fields and ordered algebra
Mathlib.Algebra.Quaternion
371 declarations. Mathlib docs · Source
Quaternions
In this file we define quaternions ℍ[R] over a commutative ring R, and define some
algebraic structures on ℍ[R].
Main definitions
QuaternionAlgebra R a b c,ℍ[R, a, b, c]: [Bourbaki, Algebra I][bourbaki1989] with coefficientsa,b,c(Many other references such as Wikipedia assume $\operatorname{char} R ≠ 2$ therefore one can complete the square and WLOG assume $b = 0$.)Quaternion R,ℍ[R]: the space of quaternions, a.k.a.QuaternionAlgebra R (-1) (0) (-1);Quaternion.normSq: square of the norm of a quaternion;
We also define the following algebraic structures on ℍ[R]:
Ring ℍ[R, a, b, c],StarRing ℍ[R, a, b, c], andAlgebra R ℍ[R, a, b, c]: for any commutative ringR;Ring ℍ[R],StarRing ℍ[R], andAlgebra R ℍ[R]: for any commutative ringR;IsDomain ℍ[R]: for a linear ordered commutative ringR;DivisionRing ℍ[R]: for a linear ordered fieldR.
Notation
The following notation is available with open Quaternion or open scoped Quaternion.
ℍ[R,c₁,c₂,c₃]:QuaternionAlgebra R c₁ c₂ c₃ℍ[R,c₁,c₂]:QuaternionAlgebra R c₁ 0 c₂ℍ[R]: quaternions overR.
Implementation notes
We define quaternions over any ring R, not just ℝ to be able to deal with, e.g., integer
or rational quaternions without using real numbers. In particular, all definitions in this file
are computable.
Tags
quaternion
theorem QuaternionAlgebra.mk.injEq E0 #
∀ {R : Type u_1} {a b c : R} (re imI imJ imK re_1 imI_1 imJ_1 imK_1 : R),
({ re := re, imI := imI, imJ := imJ, imK := imK } = { re := re_1, imI := imI_1, imJ := imJ_1, imK := imK_1 }) =
(re = re_1 ∧ imI = imI_1 ∧ imJ = imJ_1 ∧ imK = imK_1)
theorem QuaternionAlgebra.mk.inj E1 #
∀ {R : Type u_1} {a b c re imI imJ imK re_1 imI_1 imJ_1 imK_1 : R},
{ re := re, imI := imI, imJ := imJ, imK := imK } = { re := re_1, imI := imI_1, imJ := imJ_1, imK := imK_1 } →
re = re_1 ∧ imI = imI_1 ∧ imJ = imJ_1 ∧ imK = imK_1
def QuaternionAlgebra.ctorIdx E1 #
{R : Type u_1} → {a b c : R} → QuaternionAlgebra R a b c → ℕ
structure QuaternionAlgebra E1 #
(R : Type u_1) → R → R → R → Type u_1
Quaternion algebra over a type with fixed coefficients where $i^2 = a + bi$ and $j^2 = c$,
denoted as ℍ[R,a,b].
Implemented as a structure with four fields: re, imI, imJ, and imK.
theorem QuaternionAlgebra.ext E1 #
∀ {R : Type u_1} {a b c : R} {x y : QuaternionAlgebra R a b c},
x.re = y.re → x.imI = y.imI → x.imJ = y.imJ → x.imK = y.imK → x = y
theorem QuaternionAlgebra.ext_iff E0 #
∀ {R : Type u_1} {a b c : R} {x y : QuaternionAlgebra R a b c},
x = y ↔ x.re = y.re ∧ x.imI = y.imI ∧ x.imJ = y.imJ ∧ x.imK = y.imK
ctor QuaternionAlgebra.mk E0 #
{R : Type u_1} → {a b c : R} → R → R → R → R → QuaternionAlgebra R a b c
abbrev QuaternionAlgebra.re E1 #
{R : Type u_1} → {a b c : R} → QuaternionAlgebra R a b c → R
Real part of a quaternion.
abbrev QuaternionAlgebra.imI E1 #
{R : Type u_1} → {a b c : R} → QuaternionAlgebra R a b c → R
First imaginary part (i) of a quaternion.
abbrev QuaternionAlgebra.imJ E1 #
{R : Type u_1} → {a b c : R} → QuaternionAlgebra R a b c → R
Second imaginary part (j) of a quaternion.
abbrev QuaternionAlgebra.imK E1 #
{R : Type u_1} → {a b c : R} → QuaternionAlgebra R a b c → R
Third imaginary part (k) of a quaternion.
def Quaternion.«termℍ[_,_,_,_]» E1 #
Lean.ParserDescr
Quaternion algebra over a type with fixed coefficients where $i^2 = a + bi$ and $j^2 = c$,
denoted as ℍ[R,a,b].
Implemented as a structure with four fields: re, imI, imJ, and imK.
def Quaternion.«termℍ[_,_,_]» E1 #
Lean.ParserDescr
Quaternion algebra over a type with fixed coefficients where $i^2 = a + bi$ and $j^2 = c$,
denoted as ℍ[R,a,b].
Implemented as a structure with four fields: re, imI, imJ, and imK.
def QuaternionAlgebra.equivProd E1 #
{R : Type u_1} → (c₁ c₂ c₃ : R) → QuaternionAlgebra R c₁ c₂ c₃ ≃ R × R × R × R
The equivalence between a quaternion algebra over R and R × R × R × R.
theorem QuaternionAlgebra.re_equivProd_symm_apply E0 #
∀ {R : Type u_1} (c₁ c₂ c₃ : R) (a : R × R × R × R), ((QuaternionAlgebra.equivProd c₁ c₂ c₃).symm a).re = a.1
theorem QuaternionAlgebra.imK_equivProd_symm_apply E0 #
∀ {R : Type u_1} (c₁ c₂ c₃ : R) (a : R × R × R × R), ((QuaternionAlgebra.equivProd c₁ c₂ c₃).symm a).imK = a.2.2.2
theorem QuaternionAlgebra.imJ_equivProd_symm_apply E0 #
∀ {R : Type u_1} (c₁ c₂ c₃ : R) (a : R × R × R × R), ((QuaternionAlgebra.equivProd c₁ c₂ c₃).symm a).imJ = a.2.2.1
theorem QuaternionAlgebra.imI_equivProd_symm_apply E0 #
∀ {R : Type u_1} (c₁ c₂ c₃ : R) (a : R × R × R × R), ((QuaternionAlgebra.equivProd c₁ c₂ c₃).symm a).imI = a.2.1
theorem QuaternionAlgebra.equivProd_apply E0 #
∀ {R : Type u_1} (c₁ c₂ c₃ : R) (a : QuaternionAlgebra R c₁ c₂ c₃),
(QuaternionAlgebra.equivProd c₁ c₂ c₃) a = (a.re, a.imI, a.imJ, a.imK)
def QuaternionAlgebra.equivTuple E1 #
{R : Type u_1} → (c₁ c₂ c₃ : R) → QuaternionAlgebra R c₁ c₂ c₃ ≃ (Fin 4 → R)
The equivalence between a quaternion algebra over R and Fin 4 → R.
theorem QuaternionAlgebra.equivTuple_symm_apply E0 #
∀ {R : Type u_1} (c₁ c₂ c₃ : R) (a : Fin 4 → R),
(QuaternionAlgebra.equivTuple c₁ c₂ c₃).symm a = { re := a 0, imI := a 1, imJ := a 2, imK := a 3 }
theorem QuaternionAlgebra.equivTuple_apply E0 #
∀ {R : Type u_1} (c₁ c₂ c₃ : R) (x : QuaternionAlgebra R c₁ c₂ c₃),
(QuaternionAlgebra.equivTuple c₁ c₂ c₃) x = ![x.re, x.imI, x.imJ, x.imK]
theorem QuaternionAlgebra.mk.eta E0 #
∀ {R : Type u_1} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃),
{ re := a.re, imI := a.imI, imJ := a.imJ, imK := a.imK } = a
instance QuaternionAlgebra.instSubsingleton E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [Subsingleton R], Subsingleton (QuaternionAlgebra R c₁ c₂ c₃)
instance QuaternionAlgebra.instNontrivial E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [Nontrivial R], Nontrivial (QuaternionAlgebra R c₁ c₂ c₃)
def QuaternionAlgebra.im E1 #
{R : Type u_3} → {c₁ c₂ c₃ : R} → [Zero R] → QuaternionAlgebra R c₁ c₂ c₃ → QuaternionAlgebra R c₁ c₂ c₃
The imaginary part of a quaternion.
Note that unless c₂ = 0, this definition is not particularly well-behaved;
for instance, QuaternionAlgebra.star_im only says that the star of an imaginary quaternion
is imaginary under this condition.
theorem QuaternionAlgebra.re_im E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : Zero R], a.im.re = 0
theorem QuaternionAlgebra.imI_im E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : Zero R], a.im.imI = a.imI
theorem QuaternionAlgebra.imJ_im E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : Zero R], a.im.imJ = a.imJ
theorem QuaternionAlgebra.imK_im E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : Zero R], a.im.imK = a.imK
theorem QuaternionAlgebra.im_idem E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : Zero R], a.im.im = a.im
def QuaternionAlgebra.coe E1 #
{R : Type u_3} → {c₁ c₂ c₃ : R} → [Zero R] → R → QuaternionAlgebra R c₁ c₂ c₃
Coercion R → ℍ[R,c₁,c₂,c₃].
instance QuaternionAlgebra.instCoeTC E0 #
{R : Type u_3} → {c₁ c₂ c₃ : R} → [Zero R] → CoeTC R (QuaternionAlgebra R c₁ c₂ c₃)
theorem QuaternionAlgebra.re_coe E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (x : R) [inst : Zero R], (↑x).re = x
theorem QuaternionAlgebra.imI_coe E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (x : R) [inst : Zero R], (↑x).imI = 0
theorem QuaternionAlgebra.imJ_coe E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (x : R) [inst : Zero R], (↑x).imJ = 0
theorem QuaternionAlgebra.imK_coe E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (x : R) [inst : Zero R], (↑x).imK = 0
theorem QuaternionAlgebra.coe_injective E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Zero R], Function.Injective QuaternionAlgebra.coe
theorem QuaternionAlgebra.coe_inj E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Zero R] {x y : R}, ↑x = ↑y ↔ x = y
instance QuaternionAlgebra.instZero E0 #
{R : Type u_3} → {c₁ c₂ c₃ : R} → [Zero R] → Zero (QuaternionAlgebra R c₁ c₂ c₃)
theorem QuaternionAlgebra.imI_zero E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Zero R], QuaternionAlgebra.imI 0 = 0
theorem QuaternionAlgebra.re_zero E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Zero R], QuaternionAlgebra.re 0 = 0
theorem QuaternionAlgebra.imJ_zero E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Zero R], QuaternionAlgebra.imJ 0 = 0
theorem QuaternionAlgebra.imK_zero E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Zero R], QuaternionAlgebra.imK 0 = 0
theorem QuaternionAlgebra.im_zero E1 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Zero R], QuaternionAlgebra.im 0 = 0
theorem QuaternionAlgebra.coe_zero E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Zero R], ↑0 = 0
theorem QuaternionAlgebra.mk_zero E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Zero R], { re := 0, imI := 0, imJ := 0, imK := 0 } = 0
instance QuaternionAlgebra.instInhabited E0 #
{R : Type u_3} → {c₁ c₂ c₃ : R} → [Zero R] → Inhabited (QuaternionAlgebra R c₁ c₂ c₃)
theorem QuaternionAlgebra.re_one E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Zero R] [inst_1 : One R], QuaternionAlgebra.re 1 = 1
theorem QuaternionAlgebra.imJ_one E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Zero R] [inst_1 : One R], QuaternionAlgebra.imJ 1 = 0
instance QuaternionAlgebra.instOne E0 #
{R : Type u_3} → {c₁ c₂ c₃ : R} → [Zero R] → [One R] → One (QuaternionAlgebra R c₁ c₂ c₃)
theorem QuaternionAlgebra.imI_one E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Zero R] [inst_1 : One R], QuaternionAlgebra.imI 1 = 0
theorem QuaternionAlgebra.imK_one E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Zero R] [inst_1 : One R], QuaternionAlgebra.imK 1 = 0
theorem QuaternionAlgebra.im_one E1 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Zero R] [inst_1 : One R], QuaternionAlgebra.im 1 = 0
theorem QuaternionAlgebra.coe_one E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Zero R] [inst_1 : One R], ↑1 = 1
theorem QuaternionAlgebra.mk_one E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Zero R] [inst_1 : One R], { re := 1, imI := 0, imJ := 0, imK := 0 } = 1
theorem QuaternionAlgebra.re_add E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Add R] (a b : QuaternionAlgebra R c₁ c₂ c₃), (a + b).re = a.re + b.re
theorem QuaternionAlgebra.imK_add E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Add R] (a b : QuaternionAlgebra R c₁ c₂ c₃), (a + b).imK = a.imK + b.imK
theorem QuaternionAlgebra.imI_add E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Add R] (a b : QuaternionAlgebra R c₁ c₂ c₃), (a + b).imI = a.imI + b.imI
instance QuaternionAlgebra.instAdd E0 #
{R : Type u_3} → {c₁ c₂ c₃ : R} → [Add R] → Add (QuaternionAlgebra R c₁ c₂ c₃)
theorem QuaternionAlgebra.imJ_add E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Add R] (a b : QuaternionAlgebra R c₁ c₂ c₃), (a + b).imJ = a.imJ + b.imJ
theorem QuaternionAlgebra.mk_add_mk E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Add R] (a₁ a₂ a₃ a₄ b₁ b₂ b₃ b₄ : R),
{ re := a₁, imI := a₂, imJ := a₃, imK := a₄ } + { re := b₁, imI := b₂, imJ := b₃, imK := b₄ } =
{ re := a₁ + b₁, imI := a₂ + b₂, imJ := a₃ + b₃, imK := a₄ + b₄ }
def QuaternionAlgebra.addEquivTuple E1 #
{R : Type u_3} → [inst : Add R] → (c₁ c₂ c₃ : R) → QuaternionAlgebra R c₁ c₂ c₃ ≃+ (Fin 4 → R)
The additive equivalence between a quaternion algebra over R and Fin 4 → R.
theorem QuaternionAlgebra.coe_addEquivTuple E0 #
∀ {R : Type u_3} [inst : Add R] (c₁ c₂ c₃ : R),
⇑(QuaternionAlgebra.addEquivTuple c₁ c₂ c₃) = ⇑(QuaternionAlgebra.equivTuple c₁ c₂ c₃)
theorem QuaternionAlgebra.coe_symm_addEquivTuple E0 #
∀ {R : Type u_3} [inst : Add R] (c₁ c₂ c₃ : R),
⇑(QuaternionAlgebra.addEquivTuple c₁ c₂ c₃).symm = ⇑(QuaternionAlgebra.equivTuple c₁ c₂ c₃).symm
def QuaternionAlgebra.addEquivProd E1 #
{R : Type u_3} → [inst : Add R] → (c₁ c₂ c₃ : R) → QuaternionAlgebra R c₁ c₂ c₃ ≃+ R × R × R × R
The additive equivalence between a quaternion algebra over R and R × R × R × R.
theorem QuaternionAlgebra.coe_addEquivProd E0 #
∀ {R : Type u_3} [inst : Add R] (c₁ c₂ c₃ : R),
⇑(QuaternionAlgebra.addEquivProd c₁ c₂ c₃) = ⇑(QuaternionAlgebra.equivProd c₁ c₂ c₃)
theorem QuaternionAlgebra.coe_symm_addEquivProd E0 #
∀ {R : Type u_3} [inst : Add R] (c₁ c₂ c₃ : R),
⇑(QuaternionAlgebra.addEquivProd c₁ c₂ c₃).symm = ⇑(QuaternionAlgebra.equivProd c₁ c₂ c₃).symm
theorem QuaternionAlgebra.im_add E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a b : QuaternionAlgebra R c₁ c₂ c₃) [inst : AddZeroClass R], (a + b).im = a.im + b.im
theorem QuaternionAlgebra.coe_add E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (x y : R) [inst : AddZeroClass R], ↑(x + y) = ↑x + ↑y
theorem QuaternionAlgebra.imK_neg E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Neg R] (a : QuaternionAlgebra R c₁ c₂ c₃), (-a).imK = -a.imK
theorem QuaternionAlgebra.imI_neg E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Neg R] (a : QuaternionAlgebra R c₁ c₂ c₃), (-a).imI = -a.imI
theorem QuaternionAlgebra.re_neg E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Neg R] (a : QuaternionAlgebra R c₁ c₂ c₃), (-a).re = -a.re
theorem QuaternionAlgebra.imJ_neg E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Neg R] (a : QuaternionAlgebra R c₁ c₂ c₃), (-a).imJ = -a.imJ
instance QuaternionAlgebra.instNeg E0 #
{R : Type u_3} → {c₁ c₂ c₃ : R} → [Neg R] → Neg (QuaternionAlgebra R c₁ c₂ c₃)
theorem QuaternionAlgebra.neg_mk E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Neg R] (a₁ a₂ a₃ a₄ : R),
-{ re := a₁, imI := a₂, imJ := a₃, imK := a₄ } = { re := -a₁, imI := -a₂, imJ := -a₃, imK := -a₄ }
theorem QuaternionAlgebra.im_neg E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : AddGroup R], (-a).im = -a.im
theorem QuaternionAlgebra.coe_neg E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (x : R) [inst : AddGroup R], ↑(-x) = -↑x
instance QuaternionAlgebra.instSub E0 #
{R : Type u_3} → {c₁ c₂ c₃ : R} → [AddGroup R] → Sub (QuaternionAlgebra R c₁ c₂ c₃)
theorem QuaternionAlgebra.imJ_sub E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddGroup R] (a b : QuaternionAlgebra R c₁ c₂ c₃), (a - b).imJ = a.imJ - b.imJ
theorem QuaternionAlgebra.imI_sub E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddGroup R] (a b : QuaternionAlgebra R c₁ c₂ c₃), (a - b).imI = a.imI - b.imI
theorem QuaternionAlgebra.re_sub E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddGroup R] (a b : QuaternionAlgebra R c₁ c₂ c₃), (a - b).re = a.re - b.re
theorem QuaternionAlgebra.imK_sub E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddGroup R] (a b : QuaternionAlgebra R c₁ c₂ c₃), (a - b).imK = a.imK - b.imK
theorem QuaternionAlgebra.im_sub E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a b : QuaternionAlgebra R c₁ c₂ c₃) [inst : AddGroup R], (a - b).im = a.im - b.im
theorem QuaternionAlgebra.mk_sub_mk E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddGroup R] (a₁ a₂ a₃ a₄ b₁ b₂ b₃ b₄ : R),
{ re := a₁, imI := a₂, imJ := a₃, imK := a₄ } - { re := b₁, imI := b₂, imJ := b₃, imK := b₄ } =
{ re := a₁ - b₁, imI := a₂ - b₂, imJ := a₃ - b₃, imK := a₄ - b₄ }
theorem QuaternionAlgebra.im_coe E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (x : R) [inst : AddGroup R], (↑x).im = 0
theorem QuaternionAlgebra.re_add_im E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : AddGroup R], ↑a.re + a.im = a
theorem QuaternionAlgebra.sub_im_self E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : AddGroup R], a - a.im = ↑a.re
theorem QuaternionAlgebra.sub_re_self E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : AddGroup R], a - ↑a.re = a.im
instance QuaternionAlgebra.instMul E0 #
{R : Type u_3} → {c₁ c₂ c₃ : R} → [Ring R] → Mul (QuaternionAlgebra R c₁ c₂ c₃)
Multiplication is given by
1 * x = x * 1 = x;i * i = c₁ + c₂ * i;j * j = c₃;i * j = k,j * i = c₂ * j - k;k * k = - c₁ * c₃;i * k = c₁ * j + c₂ * k,k * i = -c₁ * j;j * k = c₂ * c₃ - c₃ * i,k * j = c₃ * i.
theorem QuaternionAlgebra.re_mul E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Ring R] (a b : QuaternionAlgebra R c₁ c₂ c₃),
(a * b).re = a.re * b.re + c₁ * a.imI * b.imI + c₃ * a.imJ * b.imJ + c₂ * c₃ * a.imJ * b.imK - c₁ * c₃ * a.imK * b.imK
theorem QuaternionAlgebra.imK_mul E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Ring R] (a b : QuaternionAlgebra R c₁ c₂ c₃),
(a * b).imK = a.re * b.imK + a.imI * b.imJ + c₂ * a.imI * b.imK - a.imJ * b.imI + a.imK * b.re
theorem QuaternionAlgebra.imJ_mul E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Ring R] (a b : QuaternionAlgebra R c₁ c₂ c₃),
(a * b).imJ = a.re * b.imJ + c₁ * a.imI * b.imK + a.imJ * b.re + c₂ * a.imJ * b.imI - c₁ * a.imK * b.imI
theorem QuaternionAlgebra.imI_mul E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Ring R] (a b : QuaternionAlgebra R c₁ c₂ c₃),
(a * b).imI = a.re * b.imI + a.imI * b.re + c₂ * a.imI * b.imI - c₃ * a.imJ * b.imK + c₃ * a.imK * b.imJ
theorem QuaternionAlgebra.mk_mul_mk E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Ring R] (a₁ a₂ a₃ a₄ b₁ b₂ b₃ b₄ : R),
{ re := a₁, imI := a₂, imJ := a₃, imK := a₄ } * { re := b₁, imI := b₂, imJ := b₃, imK := b₄ } =
{ re := a₁ * b₁ + c₁ * a₂ * b₂ + c₃ * a₃ * b₃ + c₂ * c₃ * a₃ * b₄ - c₁ * c₃ * a₄ * b₄,
imI := a₁ * b₂ + a₂ * b₁ + c₂ * a₂ * b₂ - c₃ * a₃ * b₄ + c₃ * a₄ * b₃,
imJ := a₁ * b₃ + c₁ * a₂ * b₄ + a₃ * b₁ + c₂ * a₃ * b₂ - c₁ * a₄ * b₂,
imK := a₁ * b₄ + a₂ * b₃ + c₂ * a₂ * b₄ - a₃ * b₂ + a₄ * b₁ }
instance QuaternionAlgebra.instSMul E0 #
{S : Type u_1} → {R : Type u_3} → {c₁ c₂ c₃ : R} → [SMul S R] → SMul S (QuaternionAlgebra R c₁ c₂ c₃)
theorem QuaternionAlgebra.imK_smul E0 #
∀ {S : Type u_1} {R : Type u_3} {c₁ c₂ c₃ : R} [inst : SMul S R] (s : S) (a : QuaternionAlgebra R c₁ c₂ c₃),
(s • a).imK = s • a.imK
theorem QuaternionAlgebra.re_smul E0 #
∀ {S : Type u_1} {R : Type u_3} {c₁ c₂ c₃ : R} [inst : SMul S R] (s : S) (a : QuaternionAlgebra R c₁ c₂ c₃),
(s • a).re = s • a.re
theorem QuaternionAlgebra.imJ_smul E0 #
∀ {S : Type u_1} {R : Type u_3} {c₁ c₂ c₃ : R} [inst : SMul S R] (s : S) (a : QuaternionAlgebra R c₁ c₂ c₃),
(s • a).imJ = s • a.imJ
theorem QuaternionAlgebra.imI_smul E0 #
∀ {S : Type u_1} {R : Type u_3} {c₁ c₂ c₃ : R} [inst : SMul S R] (s : S) (a : QuaternionAlgebra R c₁ c₂ c₃),
(s • a).imI = s • a.imI
instance QuaternionAlgebra.instIsScalarTower E0 #
∀ {S : Type u_1} {T : Type u_2} {R : Type u_3} {c₁ c₂ c₃ : R} [inst : SMul S R] [inst_1 : SMul T R] [inst_2 : SMul S T]
[IsScalarTower S T R], IsScalarTower S T (QuaternionAlgebra R c₁ c₂ c₃)
instance QuaternionAlgebra.instSMulCommClass E0 #
∀ {S : Type u_1} {T : Type u_2} {R : Type u_3} {c₁ c₂ c₃ : R} [inst : SMul S R] [inst_1 : SMul T R]
[SMulCommClass S T R], SMulCommClass S T (QuaternionAlgebra R c₁ c₂ c₃)
theorem QuaternionAlgebra.im_smul E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) {S : Type u_4} [inst : CommRing R]
[inst_1 : SMulZeroClass S R] (s : S), (s • a).im = s • a.im
theorem QuaternionAlgebra.smul_mk E0 #
∀ {S : Type u_1} {R : Type u_3} {c₁ c₂ c₃ : R} [inst : SMul S R] (s : S) (re im_i im_j im_k : R),
s • { re := re, imI := im_i, imJ := im_j, imK := im_k } =
{ re := s • re, imI := s • im_i, imJ := s • im_j, imK := s • im_k }
instance QuaternionAlgebra.instMulAction E0 #
{S : Type u_1} →
{R : Type u_3} → {c₁ c₂ c₃ : R} → [inst : Monoid S] → [MulAction S R] → MulAction S (QuaternionAlgebra R c₁ c₂ c₃)
instance QuaternionAlgebra.instAddCommGroup E0 #
{R : Type u_3} → {c₁ c₂ c₃ : R} → [AddCommGroup R] → AddCommGroup (QuaternionAlgebra R c₁ c₂ c₃)
theorem QuaternionAlgebra.coe_smul E0 #
∀ {S : Type u_1} {R : Type u_3} {c₁ c₂ c₃ : R} [inst : Zero R] [inst_1 : SMulZeroClass S R] (s : S) (r : R),
↑(s • r) = s • ↑r
instance QuaternionAlgebra.instDistribMulAction E0 #
{S : Type u_1} →
{R : Type u_3} →
{c₁ c₂ c₃ : R} →
[inst : Semiring S] →
[inst_1 : AddCommGroup R] → [DistribMulAction S R] → DistribMulAction S (QuaternionAlgebra R c₁ c₂ c₃)
instance QuaternionAlgebra.instModule E0 #
{S : Type u_1} →
{R : Type u_3} →
{c₁ c₂ c₃ : R} →
[inst : Semiring S] → [inst_1 : AddCommGroup R] → [Module S R] → Module S (QuaternionAlgebra R c₁ c₂ c₃)
instance QuaternionAlgebra.instAddCommGroupWithOne E0 #
{R : Type u_3} → {c₁ c₂ c₃ : R} → [AddCommGroupWithOne R] → AddCommGroupWithOne (QuaternionAlgebra R c₁ c₂ c₃)
theorem QuaternionAlgebra.re_natCast E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddCommGroupWithOne R] (n : ℕ), (↑n).re = ↑n
theorem QuaternionAlgebra.imI_natCast E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddCommGroupWithOne R] (n : ℕ), (↑n).imI = 0
theorem QuaternionAlgebra.imJ_natCast E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddCommGroupWithOne R] (n : ℕ), (↑n).imJ = 0
theorem QuaternionAlgebra.imK_natCast E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddCommGroupWithOne R] (n : ℕ), (↑n).imK = 0
theorem QuaternionAlgebra.im_natCast E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddCommGroupWithOne R] (n : ℕ), (↑n).im = 0
theorem QuaternionAlgebra.coe_natCast E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddCommGroupWithOne R] (n : ℕ), ↑↑n = ↑n
theorem QuaternionAlgebra.mk_natCast E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddCommGroupWithOne R] (n : ℕ), { re := ↑n, imI := 0, imJ := 0, imK := 0 } = ↑n
theorem QuaternionAlgebra.re_intCast E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddCommGroupWithOne R] (z : ℤ), (↑z).re = ↑z
theorem QuaternionAlgebra.re_ofNat E1 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddCommGroupWithOne R] (n : ℕ) [inst_1 : n.AtLeastTwo],
(OfNat.ofNat n).re = OfNat.ofNat n
theorem QuaternionAlgebra.imI_ofNat E1 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddCommGroupWithOne R] (n : ℕ) [inst_1 : n.AtLeastTwo], (OfNat.ofNat n).imI = 0
theorem QuaternionAlgebra.imJ_ofNat E1 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddCommGroupWithOne R] (n : ℕ) [inst_1 : n.AtLeastTwo], (OfNat.ofNat n).imJ = 0
theorem QuaternionAlgebra.imK_ofNat E1 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddCommGroupWithOne R] (n : ℕ) [inst_1 : n.AtLeastTwo], (OfNat.ofNat n).imK = 0
theorem QuaternionAlgebra.im_ofNat E1 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddCommGroupWithOne R] (n : ℕ) [inst_1 : n.AtLeastTwo], (OfNat.ofNat n).im = 0
theorem QuaternionAlgebra.imI_intCast E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddCommGroupWithOne R] (z : ℤ), (↑z).imI = 0
theorem QuaternionAlgebra.imJ_intCast E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddCommGroupWithOne R] (z : ℤ), (↑z).imJ = 0
theorem QuaternionAlgebra.imK_intCast E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddCommGroupWithOne R] (z : ℤ), (↑z).imK = 0
theorem QuaternionAlgebra.im_intCast E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddCommGroupWithOne R] (z : ℤ), (↑z).im = 0
theorem QuaternionAlgebra.coe_intCast E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddCommGroupWithOne R] (z : ℤ), ↑↑z = ↑z
theorem QuaternionAlgebra.mk_intCast E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : AddCommGroupWithOne R] (z : ℤ), { re := ↑z, imI := 0, imJ := 0, imK := 0 } = ↑z
instance QuaternionAlgebra.instRing E0 #
{R : Type u_3} → {c₁ c₂ c₃ : R} → [CommRing R] → Ring (QuaternionAlgebra R c₁ c₂ c₃)
theorem QuaternionAlgebra.coe_mul E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (x y : R) [inst : CommRing R], ↑(x * y) = ↑x * ↑y
theorem QuaternionAlgebra.coe_ofNat E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : CommRing R] {n : ℕ} [inst_1 : n.AtLeastTwo], ↑(OfNat.ofNat n) = OfNat.ofNat n
instance QuaternionAlgebra.instAlgebra E0 #
{S : Type u_1} →
{R : Type u_3} →
{c₁ c₂ c₃ : R} →
[inst : CommRing R] → [inst_1 : CommSemiring S] → [Algebra S R] → Algebra S (QuaternionAlgebra R c₁ c₂ c₃)
theorem QuaternionAlgebra.algebraMap_eq E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : CommRing R] (r : R),
(algebraMap R (QuaternionAlgebra R c₁ c₂ c₃)) r = { re := r, imI := 0, imJ := 0, imK := 0 }
theorem QuaternionAlgebra.algebraMap_injective E1 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : CommRing R], Function.Injective ⇑(algebraMap R (QuaternionAlgebra R c₁ c₂ c₃))
instance QuaternionAlgebra.instIsTorsionFree E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : CommRing R], Module.IsTorsionFree R (QuaternionAlgebra R c₁ c₂ c₃)
def QuaternionAlgebra.reₗ E1 #
{R : Type u_3} → (c₁ c₂ c₃ : R) → [inst : CommRing R] → QuaternionAlgebra R c₁ c₂ c₃ →ₗ[R] R
QuaternionAlgebra.re as a LinearMap
theorem QuaternionAlgebra.reₗ_apply E0 #
∀ {R : Type u_3} (c₁ c₂ c₃ : R) [inst : CommRing R] (self : QuaternionAlgebra R c₁ c₂ c₃),
(QuaternionAlgebra.reₗ c₁ c₂ c₃) self = self.re
def QuaternionAlgebra.imIₗ E1 #
{R : Type u_3} → (c₁ c₂ c₃ : R) → [inst : CommRing R] → QuaternionAlgebra R c₁ c₂ c₃ →ₗ[R] R
QuaternionAlgebra.imI as a LinearMap
theorem QuaternionAlgebra.imIₗ_apply E0 #
∀ {R : Type u_3} (c₁ c₂ c₃ : R) [inst : CommRing R] (self : QuaternionAlgebra R c₁ c₂ c₃),
(QuaternionAlgebra.imIₗ c₁ c₂ c₃) self = self.imI
def QuaternionAlgebra.imJₗ E1 #
{R : Type u_3} → (c₁ c₂ c₃ : R) → [inst : CommRing R] → QuaternionAlgebra R c₁ c₂ c₃ →ₗ[R] R
QuaternionAlgebra.imJ as a LinearMap
theorem QuaternionAlgebra.imJₗ_apply E0 #
∀ {R : Type u_3} (c₁ c₂ c₃ : R) [inst : CommRing R] (self : QuaternionAlgebra R c₁ c₂ c₃),
(QuaternionAlgebra.imJₗ c₁ c₂ c₃) self = self.imJ
def QuaternionAlgebra.imKₗ E1 #
{R : Type u_3} → (c₁ c₂ c₃ : R) → [inst : CommRing R] → QuaternionAlgebra R c₁ c₂ c₃ →ₗ[R] R
QuaternionAlgebra.imK as a LinearMap
theorem QuaternionAlgebra.imKₗ_apply E0 #
∀ {R : Type u_3} (c₁ c₂ c₃ : R) [inst : CommRing R] (self : QuaternionAlgebra R c₁ c₂ c₃),
(QuaternionAlgebra.imKₗ c₁ c₂ c₃) self = self.imK
def QuaternionAlgebra.linearEquivTuple E1 #
{R : Type u_3} → (c₁ c₂ c₃ : R) → [inst : CommRing R] → QuaternionAlgebra R c₁ c₂ c₃ ≃ₗ[R] Fin 4 → R
QuaternionAlgebra.equivTuple as a linear equivalence.
theorem QuaternionAlgebra.coe_linearEquivTuple E0 #
∀ {R : Type u_3} (c₁ c₂ c₃ : R) [inst : CommRing R],
⇑(QuaternionAlgebra.linearEquivTuple c₁ c₂ c₃) = ⇑(QuaternionAlgebra.equivTuple c₁ c₂ c₃)
theorem QuaternionAlgebra.coe_linearEquivTuple_symm E0 #
∀ {R : Type u_3} (c₁ c₂ c₃ : R) [inst : CommRing R],
⇑(QuaternionAlgebra.linearEquivTuple c₁ c₂ c₃).symm = ⇑(QuaternionAlgebra.equivTuple c₁ c₂ c₃).symm
def QuaternionAlgebra.basisOneIJK E1 #
{R : Type u_3} → (c₁ c₂ c₃ : R) → [inst : CommRing R] → Module.Basis (Fin 4) R (QuaternionAlgebra R c₁ c₂ c₃)
ℍ[R,c₁,c₂,c₃] has a basis over R given by 1, i, j, and k.
theorem QuaternionAlgebra.coe_basisOneIJK_repr E0 #
∀ {R : Type u_3} (c₁ c₂ c₃ : R) [inst : CommRing R] (q : QuaternionAlgebra R c₁ c₂ c₃),
⇑((QuaternionAlgebra.basisOneIJK c₁ c₂ c₃).repr q) = ![q.re, q.imI, q.imJ, q.imK]
instance QuaternionAlgebra.instFinite E0 #
∀ {R : Type u_3} (c₁ c₂ c₃ : R) [inst : CommRing R], Module.Finite R (QuaternionAlgebra R c₁ c₂ c₃)
instance QuaternionAlgebra.instFree E0 #
∀ {R : Type u_3} (c₁ c₂ c₃ : R) [inst : CommRing R], Module.Free R (QuaternionAlgebra R c₁ c₂ c₃)
theorem QuaternionAlgebra.rank_eq_four E1 #
∀ {R : Type u_3} (c₁ c₂ c₃ : R) [inst : CommRing R] [StrongRankCondition R],
Module.rank R (QuaternionAlgebra R c₁ c₂ c₃) = 4
theorem QuaternionAlgebra.finrank_eq_four E1 #
∀ {R : Type u_3} (c₁ c₂ c₃ : R) [inst : CommRing R] [StrongRankCondition R],
Module.finrank R (QuaternionAlgebra R c₁ c₂ c₃) = 4
def QuaternionAlgebra.swapEquiv E1 #
{R : Type u_3} → (c₁ c₃ : R) → [inst : CommRing R] → QuaternionAlgebra R c₁ 0 c₃ ≃ₐ[R] QuaternionAlgebra R c₃ 0 c₁
There is a natural equivalence when swapping the first and third coefficients of a
quaternion algebra if c₂ is 0.
theorem QuaternionAlgebra.imK_swapEquiv_symm_apply E0 #
∀ {R : Type u_3} (c₁ c₃ : R) [inst : CommRing R] (t : QuaternionAlgebra R c₃ 0 c₁),
((QuaternionAlgebra.swapEquiv c₁ c₃).symm t).imK = -t.imK
theorem QuaternionAlgebra.re_swapEquiv_symm_apply E0 #
∀ {R : Type u_3} (c₁ c₃ : R) [inst : CommRing R] (t : QuaternionAlgebra R c₃ 0 c₁),
((QuaternionAlgebra.swapEquiv c₁ c₃).symm t).re = t.re
theorem QuaternionAlgebra.imI_swapEquiv_symm_apply E0 #
∀ {R : Type u_3} (c₁ c₃ : R) [inst : CommRing R] (t : QuaternionAlgebra R c₃ 0 c₁),
((QuaternionAlgebra.swapEquiv c₁ c₃).symm t).imI = t.imJ
theorem QuaternionAlgebra.imJ_swapEquiv_symm_apply E0 #
∀ {R : Type u_3} (c₁ c₃ : R) [inst : CommRing R] (t : QuaternionAlgebra R c₃ 0 c₁),
((QuaternionAlgebra.swapEquiv c₁ c₃).symm t).imJ = t.imI
theorem QuaternionAlgebra.re_swapEquiv_apply E0 #
∀ {R : Type u_3} (c₁ c₃ : R) [inst : CommRing R] (t : QuaternionAlgebra R c₁ 0 c₃),
((QuaternionAlgebra.swapEquiv c₁ c₃) t).re = t.re
theorem QuaternionAlgebra.imJ_swapEquiv_apply E0 #
∀ {R : Type u_3} (c₁ c₃ : R) [inst : CommRing R] (t : QuaternionAlgebra R c₁ 0 c₃),
((QuaternionAlgebra.swapEquiv c₁ c₃) t).imJ = t.imI
theorem QuaternionAlgebra.imI_swapEquiv_apply E0 #
∀ {R : Type u_3} (c₁ c₃ : R) [inst : CommRing R] (t : QuaternionAlgebra R c₁ 0 c₃),
((QuaternionAlgebra.swapEquiv c₁ c₃) t).imI = t.imJ
theorem QuaternionAlgebra.imK_swapEquiv_apply E0 #
∀ {R : Type u_3} (c₁ c₃ : R) [inst : CommRing R] (t : QuaternionAlgebra R c₁ 0 c₃),
((QuaternionAlgebra.swapEquiv c₁ c₃) t).imK = -t.imK
theorem QuaternionAlgebra.coe_sub E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (x y : R) [inst : CommRing R], ↑(x - y) = ↑x - ↑y
theorem QuaternionAlgebra.coe_pow E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (x : R) [inst : CommRing R] (n : ℕ), ↑(x ^ n) = ↑x ^ n
theorem QuaternionAlgebra.coe_commutes E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (r : R) (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : CommRing R], ↑r * a = a * ↑r
theorem QuaternionAlgebra.coe_commute E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (r : R) (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : CommRing R], Commute (↑r) a
theorem QuaternionAlgebra.coe_mul_eq_smul E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (r : R) (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : CommRing R], ↑r * a = r • a
theorem QuaternionAlgebra.mul_coe_eq_smul E1 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (r : R) (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : CommRing R], a * ↑r = r • a
theorem QuaternionAlgebra.coe_algebraMap E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : CommRing R],
⇑(algebraMap R (QuaternionAlgebra R c₁ c₂ c₃)) = QuaternionAlgebra.coe
theorem QuaternionAlgebra.smul_coe E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (x y : R) [inst : CommRing R], x • ↑y = ↑(x * y)
instance QuaternionAlgebra.instStarQuaternionAlgebra E0 #
{R : Type u_3} → {c₁ c₂ c₃ : R} → [CommRing R] → Star (QuaternionAlgebra R c₁ c₂ c₃)
Quaternion conjugate.
theorem QuaternionAlgebra.re_star E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : CommRing R], (star a).re = a.re + c₂ * a.imI
theorem QuaternionAlgebra.imI_star E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : CommRing R], (star a).imI = -a.imI
theorem QuaternionAlgebra.imJ_star E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : CommRing R], (star a).imJ = -a.imJ
theorem QuaternionAlgebra.imK_star E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : CommRing R], (star a).imK = -a.imK
theorem QuaternionAlgebra.im_star E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : CommRing R], (star a).im = -a.im
theorem QuaternionAlgebra.star_mk E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : CommRing R] (a₁ a₂ a₃ a₄ : R),
star { re := a₁, imI := a₂, imJ := a₃, imK := a₄ } = { re := a₁ + c₂ * a₂, imI := -a₂, imJ := -a₃, imK := -a₄ }
instance QuaternionAlgebra.instStarRing E0 #
{R : Type u_3} → {c₁ c₂ c₃ : R} → [inst : CommRing R] → StarRing (QuaternionAlgebra R c₁ c₂ c₃)
theorem QuaternionAlgebra.self_add_star' E1 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : CommRing R],
a + star a = ↑(2 * a.re + c₂ * a.imI)
theorem QuaternionAlgebra.self_add_star E1 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : CommRing R],
a + star a = 2 * ↑a.re + ↑c₂ * ↑a.imI
theorem QuaternionAlgebra.star_add_self' E1 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : CommRing R],
star a + a = ↑(2 * a.re + c₂ * a.imI)
theorem QuaternionAlgebra.star_add_self E1 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : CommRing R],
star a + a = 2 * ↑a.re + ↑c₂ * ↑a.imI
theorem QuaternionAlgebra.star_eq_two_re_sub E1 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : CommRing R],
star a = ↑(2 * a.re + c₂ * a.imI) - a
theorem QuaternionAlgebra.comm E1 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : CommRing R] (r : R) (x : QuaternionAlgebra R c₁ c₂ c₃), ↑r * x = x * ↑r
instance QuaternionAlgebra.instIsStarNormal E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : CommRing R], IsStarNormal a
theorem QuaternionAlgebra.star_coe E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (x : R) [inst : CommRing R], star ↑x = ↑x
theorem QuaternionAlgebra.star_im E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : CommRing R], star a.im = -a.im + ↑c₂ * ↑a.imI
theorem QuaternionAlgebra.star_smul E0 #
∀ {S : Type u_1} {R : Type u_3} {c₁ c₂ c₃ : R} [inst : CommRing R] [inst_1 : Monoid S] [inst_2 : DistribMulAction S R]
[SMulCommClass S R R] (s : S) (a : QuaternionAlgebra R c₁ c₂ c₃), star (s • a) = s • star a
theorem QuaternionAlgebra.star_smul' E1 #
∀ {S : Type u_1} {R : Type u_3} {c₁ c₃ : R} [inst : CommRing R] [inst_1 : Monoid S] [inst_2 : DistribMulAction S R]
(s : S) (a : QuaternionAlgebra R c₁ 0 c₃), star (s • a) = s • star a
A version of star_smul for the special case when c₂ = 0, without SMulCommClass S R R.
theorem QuaternionAlgebra.star_eq_self E0 #
∀ {R : Type u_3} {c₃ : R} [inst : CommRing R] [NoZeroDivisors R] [CharZero R] {c₁ c₂ : R}
{a : QuaternionAlgebra R c₁ c₂ c₃}, star a = a ↔ a = ↑a.re
theorem QuaternionAlgebra.star_eq_neg E1 #
∀ {R : Type u_3} {c₃ : R} [inst : CommRing R] [NoZeroDivisors R] [CharZero R] {c₁ : R}
{a : QuaternionAlgebra R c₁ 0 c₃}, star a = -a ↔ a.re = 0
theorem QuaternionAlgebra.star_mul_eq_coe E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : CommRing R], star a * a = ↑(star a * a).re
theorem QuaternionAlgebra.mul_star_eq_coe E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} (a : QuaternionAlgebra R c₁ c₂ c₃) [inst : CommRing R], a * star a = ↑(a * star a).re
def QuaternionAlgebra.starAe E1 #
{R : Type u_3} →
{c₁ c₂ c₃ : R} → [inst : CommRing R] → QuaternionAlgebra R c₁ c₂ c₃ ≃ₐ[R] (QuaternionAlgebra R c₁ c₂ c₃)ᵐᵒᵖ
Quaternion conjugate as an AlgEquiv to the opposite ring.
theorem QuaternionAlgebra.coe_starAe E0 #
∀ {R : Type u_3} {c₁ c₂ c₃ : R} [inst : CommRing R], ⇑QuaternionAlgebra.starAe = MulOpposite.op ∘ star
abbrev Quaternion E1 #
(R : Type u_1) → [Zero R] → [One R] → [Neg R] → Type u_1
Space of quaternions over a type, denoted as ℍ[R].
Implemented as a structure with four fields: re, im_i, im_j, and im_k.
def Quaternion.«termℍ[_]» E1 #
Lean.ParserDescr
Space of quaternions over a type, denoted as ℍ[R].
Implemented as a structure with four fields: re, im_i, im_j, and im_k.
def Quaternion.equivProd E1 #
(R : Type u_1) → [inst : Zero R] → [inst_1 : One R] → [inst_2 : Neg R] → Quaternion R ≃ R × R × R × R
The equivalence between the quaternions over R and R × R × R × R.
theorem Quaternion.imK_equivProd_symm_apply E0 #
∀ (R : Type u_1) [inst : Zero R] [inst_1 : One R] [inst_2 : Neg R] (a : R × R × R × R),
((Quaternion.equivProd R).symm a).imK = a.2.2.2
theorem Quaternion.re_equivProd_symm_apply E0 #
∀ (R : Type u_1) [inst : Zero R] [inst_1 : One R] [inst_2 : Neg R] (a : R × R × R × R),
((Quaternion.equivProd R).symm a).re = a.1
theorem Quaternion.equivProd_apply E0 #
∀ (R : Type u_1) [inst : Zero R] [inst_1 : One R] [inst_2 : Neg R] (a : QuaternionAlgebra R (-1) 0 (-1)),
(Quaternion.equivProd R) a = (a.re, a.imI, a.imJ, a.imK)
theorem Quaternion.imJ_equivProd_symm_apply E0 #
∀ (R : Type u_1) [inst : Zero R] [inst_1 : One R] [inst_2 : Neg R] (a : R × R × R × R),
((Quaternion.equivProd R).symm a).imJ = a.2.2.1
theorem Quaternion.imI_equivProd_symm_apply E0 #
∀ (R : Type u_1) [inst : Zero R] [inst_1 : One R] [inst_2 : Neg R] (a : R × R × R × R),
((Quaternion.equivProd R).symm a).imI = a.2.1
def Quaternion.equivTuple E1 #
(R : Type u_1) → [inst : Zero R] → [inst_1 : One R] → [inst_2 : Neg R] → Quaternion R ≃ (Fin 4 → R)
The equivalence between the quaternions over R and Fin 4 → R.
theorem Quaternion.equivTuple_symm_apply E0 #
∀ (R : Type u_1) [inst : Zero R] [inst_1 : One R] [inst_2 : Neg R] (a : Fin 4 → R),
(Quaternion.equivTuple R).symm a = { re := a 0, imI := a 1, imJ := a 2, imK := a 3 }
theorem Quaternion.equivTuple_apply E0 #
∀ (R : Type u_1) [inst : Zero R] [inst_1 : One R] [inst_2 : Neg R] (x : Quaternion R),
(Quaternion.equivTuple R) x = ![x.re, x.imI, x.imJ, x.imK]
def Quaternion.coe E1 #
{R : Type u_3} → [inst : CommRing R] → R → Quaternion R
Coercion R → ℍ[R].
instance Quaternion.instCoeTC E0 #
{R : Type u_3} → [inst : CommRing R] → CoeTC R (Quaternion R)
theorem Quaternion.ext E1 #
∀ {R : Type u_3} [inst : CommRing R] (a b : Quaternion R),
a.re = b.re → a.imI = b.imI → a.imJ = b.imJ → a.imK = b.imK → a = b
theorem Quaternion.ext_iff E0 #
∀ {R : Type u_3} [inst : CommRing R] {a b : Quaternion R},
a = b ↔ a.re = b.re ∧ a.imI = b.imI ∧ a.imJ = b.imJ ∧ a.imK = b.imK
def Quaternion.im E1 #
{R : Type u_3} → [inst : CommRing R] → Quaternion R → Quaternion R
The imaginary part of a quaternion.
theorem Quaternion.re_im E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), a.im.re = 0
theorem Quaternion.imI_im E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), a.im.imI = a.imI
theorem Quaternion.imJ_im E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), a.im.imJ = a.imJ
theorem Quaternion.imK_im E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), a.im.imK = a.imK
theorem Quaternion.im_idem E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), a.im.im = a.im
theorem Quaternion.re_add_im E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), ↑a.re + a.im = a
theorem Quaternion.sub_im_self E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), a - a.im = ↑a.re
theorem Quaternion.sub_re_self E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), a - ↑a.re = a.im
theorem Quaternion.re_coe E0 #
∀ {R : Type u_3} [inst : CommRing R] (x : R), (↑x).re = x
theorem Quaternion.imI_coe E0 #
∀ {R : Type u_3} [inst : CommRing R] (x : R), (↑x).imI = 0
theorem Quaternion.imJ_coe E0 #
∀ {R : Type u_3} [inst : CommRing R] (x : R), (↑x).imJ = 0
theorem Quaternion.imK_coe E0 #
∀ {R : Type u_3} [inst : CommRing R] (x : R), (↑x).imK = 0
theorem Quaternion.im_coe E0 #
∀ {R : Type u_3} [inst : CommRing R] (x : R), (↑x).im = 0
theorem Quaternion.re_zero E1 #
∀ {R : Type u_3} [inst : CommRing R], QuaternionAlgebra.re 0 = 0
theorem Quaternion.imI_zero E1 #
∀ {R : Type u_3} [inst : CommRing R], QuaternionAlgebra.imI 0 = 0
theorem Quaternion.imJ_zero E1 #
∀ {R : Type u_3} [inst : CommRing R], QuaternionAlgebra.imJ 0 = 0
theorem Quaternion.imK_zero E1 #
∀ {R : Type u_3} [inst : CommRing R], QuaternionAlgebra.imK 0 = 0
theorem Quaternion.im_zero E1 #
∀ {R : Type u_3} [inst : CommRing R], Quaternion.im 0 = 0
theorem Quaternion.coe_zero E0 #
∀ {R : Type u_3} [inst : CommRing R], ↑0 = 0
theorem Quaternion.re_one E1 #
∀ {R : Type u_3} [inst : CommRing R], QuaternionAlgebra.re 1 = 1
theorem Quaternion.imI_one E1 #
∀ {R : Type u_3} [inst : CommRing R], QuaternionAlgebra.imI 1 = 0
theorem Quaternion.imJ_one E1 #
∀ {R : Type u_3} [inst : CommRing R], QuaternionAlgebra.imJ 1 = 0
theorem Quaternion.imK_one E1 #
∀ {R : Type u_3} [inst : CommRing R], QuaternionAlgebra.imK 1 = 0
theorem Quaternion.im_one E1 #
∀ {R : Type u_3} [inst : CommRing R], Quaternion.im 1 = 0
theorem Quaternion.coe_one E0 #
∀ {R : Type u_3} [inst : CommRing R], ↑1 = 1
theorem Quaternion.re_add E0 #
∀ {R : Type u_3} [inst : CommRing R] (a b : Quaternion R), (a + b).re = a.re + b.re
theorem Quaternion.imI_add E0 #
∀ {R : Type u_3} [inst : CommRing R] (a b : Quaternion R), (a + b).imI = a.imI + b.imI
theorem Quaternion.imJ_add E0 #
∀ {R : Type u_3} [inst : CommRing R] (a b : Quaternion R), (a + b).imJ = a.imJ + b.imJ
theorem Quaternion.imK_add E0 #
∀ {R : Type u_3} [inst : CommRing R] (a b : Quaternion R), (a + b).imK = a.imK + b.imK
theorem Quaternion.im_add E0 #
∀ {R : Type u_3} [inst : CommRing R] (a b : Quaternion R), (a + b).im = a.im + b.im
theorem Quaternion.coe_add E0 #
∀ {R : Type u_3} [inst : CommRing R] (x y : R), ↑(x + y) = ↑x + ↑y
theorem Quaternion.re_neg E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), (-a).re = -a.re
theorem Quaternion.imI_neg E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), (-a).imI = -a.imI
theorem Quaternion.imJ_neg E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), (-a).imJ = -a.imJ
theorem Quaternion.imK_neg E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), (-a).imK = -a.imK
theorem Quaternion.im_neg E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), (-a).im = -a.im
theorem Quaternion.coe_neg E0 #
∀ {R : Type u_3} [inst : CommRing R] (x : R), ↑(-x) = -↑x
theorem Quaternion.re_sub E0 #
∀ {R : Type u_3} [inst : CommRing R] (a b : Quaternion R), (a - b).re = a.re - b.re
theorem Quaternion.imI_sub E0 #
∀ {R : Type u_3} [inst : CommRing R] (a b : Quaternion R), (a - b).imI = a.imI - b.imI
theorem Quaternion.imJ_sub E0 #
∀ {R : Type u_3} [inst : CommRing R] (a b : Quaternion R), (a - b).imJ = a.imJ - b.imJ
theorem Quaternion.imK_sub E0 #
∀ {R : Type u_3} [inst : CommRing R] (a b : Quaternion R), (a - b).imK = a.imK - b.imK
theorem Quaternion.im_sub E0 #
∀ {R : Type u_3} [inst : CommRing R] (a b : Quaternion R), (a - b).im = a.im - b.im
theorem Quaternion.coe_sub E0 #
∀ {R : Type u_3} [inst : CommRing R] (x y : R), ↑(x - y) = ↑x - ↑y
theorem Quaternion.re_mul E0 #
∀ {R : Type u_3} [inst : CommRing R] (a b : Quaternion R),
(a * b).re = a.re * b.re - a.imI * b.imI - a.imJ * b.imJ - a.imK * b.imK
theorem Quaternion.imI_mul E0 #
∀ {R : Type u_3} [inst : CommRing R] (a b : Quaternion R),
(a * b).imI = a.re * b.imI + a.imI * b.re + a.imJ * b.imK - a.imK * b.imJ
theorem Quaternion.imJ_mul E0 #
∀ {R : Type u_3} [inst : CommRing R] (a b : Quaternion R),
(a * b).imJ = a.re * b.imJ - a.imI * b.imK + a.imJ * b.re + a.imK * b.imI
theorem Quaternion.imK_mul E0 #
∀ {R : Type u_3} [inst : CommRing R] (a b : Quaternion R),
(a * b).imK = a.re * b.imK + a.imI * b.imJ - a.imJ * b.imI + a.imK * b.re
theorem Quaternion.coe_mul E0 #
∀ {R : Type u_3} [inst : CommRing R] (x y : R), ↑(x * y) = ↑x * ↑y
theorem Quaternion.mk_mul_mk E0 #
∀ {R : Type u_3} [inst : CommRing R] (a₁ a₂ a₃ a₄ b₁ b₂ b₃ b₄ : R),
{ re := a₁, imI := a₂, imJ := a₃, imK := a₄ } * { re := b₁, imI := b₂, imJ := b₃, imK := b₄ } =
{ re := a₁ * b₁ - a₂ * b₂ - a₃ * b₃ - a₄ * b₄, imI := a₁ * b₂ + a₂ * b₁ + a₃ * b₄ - a₄ * b₃,
imJ := a₁ * b₃ - a₂ * b₄ + a₃ * b₁ + a₄ * b₂, imK := a₁ * b₄ + a₂ * b₃ - a₃ * b₂ + a₄ * b₁ }
theorem Quaternion.coe_pow E0 #
∀ {R : Type u_3} [inst : CommRing R] (x : R) (n : ℕ), ↑(x ^ n) = ↑x ^ n
theorem Quaternion.re_natCast E0 #
∀ {R : Type u_3} [inst : CommRing R] (n : ℕ), (↑n).re = ↑n
theorem Quaternion.imI_natCast E0 #
∀ {R : Type u_3} [inst : CommRing R] (n : ℕ), (↑n).imI = 0
theorem Quaternion.imJ_natCast E0 #
∀ {R : Type u_3} [inst : CommRing R] (n : ℕ), (↑n).imJ = 0
theorem Quaternion.imK_natCast E0 #
∀ {R : Type u_3} [inst : CommRing R] (n : ℕ), (↑n).imK = 0
theorem Quaternion.im_natCast E0 #
∀ {R : Type u_3} [inst : CommRing R] (n : ℕ), (↑n).im = 0
theorem Quaternion.coe_natCast E0 #
∀ {R : Type u_3} [inst : CommRing R] (n : ℕ), ↑↑n = ↑n
theorem Quaternion.re_intCast E0 #
∀ {R : Type u_3} [inst : CommRing R] (z : ℤ), (↑z).re = ↑z
theorem Quaternion.imI_intCast E0 #
∀ {R : Type u_3} [inst : CommRing R] (z : ℤ), (↑z).imI = 0
theorem Quaternion.imJ_intCast E0 #
∀ {R : Type u_3} [inst : CommRing R] (z : ℤ), (↑z).imJ = 0
theorem Quaternion.imK_intCast E0 #
∀ {R : Type u_3} [inst : CommRing R] (z : ℤ), (↑z).imK = 0
theorem Quaternion.im_intCast E0 #
∀ {R : Type u_3} [inst : CommRing R] (z : ℤ), (↑z).im = 0
theorem Quaternion.coe_intCast E0 #
∀ {R : Type u_3} [inst : CommRing R] (z : ℤ), ↑↑z = ↑z
theorem Quaternion.coe_injective E0 #
∀ {R : Type u_3} [inst : CommRing R], Function.Injective Quaternion.coe
theorem Quaternion.coe_inj E0 #
∀ {R : Type u_3} [inst : CommRing R] {x y : R}, ↑x = ↑y ↔ x = y
theorem Quaternion.re_smul E0 #
∀ {S : Type u_1} {R : Type u_3} [inst : CommRing R] (a : Quaternion R) [inst_1 : SMul S R] (s : S),
(s • a).re = s • a.re
theorem Quaternion.imI_smul E0 #
∀ {S : Type u_1} {R : Type u_3} [inst : CommRing R] (a : Quaternion R) [inst_1 : SMul S R] (s : S),
(s • a).imI = s • a.imI
theorem Quaternion.imJ_smul E0 #
∀ {S : Type u_1} {R : Type u_3} [inst : CommRing R] (a : Quaternion R) [inst_1 : SMul S R] (s : S),
(s • a).imJ = s • a.imJ
theorem Quaternion.imK_smul E0 #
∀ {S : Type u_1} {R : Type u_3} [inst : CommRing R] (a : Quaternion R) [inst_1 : SMul S R] (s : S),
(s • a).imK = s • a.imK
theorem Quaternion.im_smul E0 #
∀ {S : Type u_1} {R : Type u_3} [inst : CommRing R] (a : Quaternion R) [inst_1 : SMulZeroClass S R] (s : S),
(s • a).im = s • a.im
theorem Quaternion.coe_smul E0 #
∀ {S : Type u_1} {R : Type u_3} [inst : CommRing R] [inst_1 : SMulZeroClass S R] (s : S) (r : R), ↑(s • r) = s • ↑r
theorem Quaternion.coe_commutes E0 #
∀ {R : Type u_3} [inst : CommRing R] (r : R) (a : Quaternion R), ↑r * a = a * ↑r
theorem Quaternion.coe_commute E0 #
∀ {R : Type u_3} [inst : CommRing R] (r : R) (a : Quaternion R), Commute (↑r) a
theorem Quaternion.coe_mul_eq_smul E0 #
∀ {R : Type u_3} [inst : CommRing R] (r : R) (a : Quaternion R), ↑r * a = r • a
theorem Quaternion.mul_coe_eq_smul E1 #
∀ {R : Type u_3} [inst : CommRing R] (r : R) (a : Quaternion R), a * ↑r = r • a
theorem Quaternion.algebraMap_def E0 #
∀ {R : Type u_3} [inst : CommRing R], ⇑(algebraMap R (Quaternion R)) = Quaternion.coe
theorem Quaternion.algebraMap_injective E1 #
∀ {R : Type u_3} [inst : CommRing R], Function.Injective ⇑(algebraMap R (Quaternion R))
theorem Quaternion.smul_coe E0 #
∀ {R : Type u_3} [inst : CommRing R] (x y : R), x • ↑y = ↑(x * y)
theorem Quaternion.rank_eq_four E1 #
∀ {R : Type u_3} [inst : CommRing R] [StrongRankCondition R], Module.rank R (Quaternion R) = 4
theorem Quaternion.finrank_eq_four E1 #
∀ {R : Type u_3} [inst : CommRing R] [StrongRankCondition R], Module.finrank R (Quaternion R) = 4
theorem Quaternion.re_star E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), (star a).re = a.re
theorem Quaternion.imI_star E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), (star a).imI = -a.imI
theorem Quaternion.imJ_star E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), (star a).imJ = -a.imJ
theorem Quaternion.imK_star E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), (star a).imK = -a.imK
theorem Quaternion.im_star E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), (star a).im = -a.im
theorem Quaternion.self_add_star' E1 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), a + star a = ↑(2 * a.re)
theorem Quaternion.self_add_star E1 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), a + star a = 2 * ↑a.re
theorem Quaternion.star_add_self' E1 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), star a + a = ↑(2 * a.re)
theorem Quaternion.star_add_self E1 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), star a + a = 2 * ↑a.re
theorem Quaternion.star_eq_two_re_sub E1 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), star a = ↑(2 * a.re) - a
theorem Quaternion.star_coe E0 #
∀ {R : Type u_3} [inst : CommRing R] (x : R), star ↑x = ↑x
theorem Quaternion.star_mk E0 #
∀ {R : Type u_3} [inst : CommRing R] (a₁ a₂ a₃ a₄ : R),
star { re := a₁, imI := a₂, imJ := a₃, imK := a₄ } = { re := a₁, imI := -a₂, imJ := -a₃, imK := -a₄ }
theorem Quaternion.star_im E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), star a.im = -a.im
theorem Quaternion.star_smul E0 #
∀ {S : Type u_1} {R : Type u_3} [inst : CommRing R] [inst_1 : Monoid S] [inst_2 : DistribMulAction S R] (s : S)
(a : Quaternion R), star (s • a) = s • star a
theorem Quaternion.star_eq_self E0 #
∀ {R : Type u_3} [inst : CommRing R] [NoZeroDivisors R] [CharZero R] {a : Quaternion R}, star a = a ↔ a = ↑a.re
theorem Quaternion.star_eq_neg E0 #
∀ {R : Type u_3} [inst : CommRing R] [NoZeroDivisors R] [CharZero R] {a : Quaternion R}, star a = -a ↔ a.re = 0
theorem Quaternion.star_mul_eq_coe E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), star a * a = ↑(star a * a).re
theorem Quaternion.mul_star_eq_coe E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), a * star a = ↑(a * star a).re
def Quaternion.starAe E1 #
{R : Type u_3} → [inst : CommRing R] → Quaternion R ≃ₐ[R] (Quaternion R)ᵐᵒᵖ
Quaternion conjugate as an AlgEquiv to the opposite ring.
theorem Quaternion.coe_starAe E0 #
∀ {R : Type u_3} [inst : CommRing R], ⇑Quaternion.starAe = MulOpposite.op ∘ star
def Quaternion.normSq E3 #
{R : Type u_3} → [inst : CommRing R] → Quaternion R →*₀ R
Square of the norm.
theorem Quaternion.normSq_def E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), Quaternion.normSq a = (a * star a).re
theorem Quaternion.normSq_def' E1 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R),
Quaternion.normSq a = a.re ^ 2 + a.imI ^ 2 + a.imJ ^ 2 + a.imK ^ 2
theorem Quaternion.normSq_coe E0 #
∀ {R : Type u_3} [inst : CommRing R] (x : R), Quaternion.normSq ↑x = x ^ 2
theorem Quaternion.normSq_star E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), Quaternion.normSq (star a) = Quaternion.normSq a
theorem Quaternion.normSq_natCast E1 #
∀ {R : Type u_3} [inst : CommRing R] (n : ℕ), Quaternion.normSq ↑n = ↑n ^ 2
theorem Quaternion.normSq_intCast E1 #
∀ {R : Type u_3} [inst : CommRing R] (z : ℤ), Quaternion.normSq ↑z = ↑z ^ 2
theorem Quaternion.normSq_neg E0 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), Quaternion.normSq (-a) = Quaternion.normSq a
theorem Quaternion.self_mul_star E1 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), a * star a = ↑(Quaternion.normSq a)
theorem Quaternion.star_mul_self E1 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), star a * a = ↑(Quaternion.normSq a)
theorem Quaternion.im_sq E1 #
∀ {R : Type u_3} [inst : CommRing R] (a : Quaternion R), a.im ^ 2 = -↑(Quaternion.normSq a.im)
theorem Quaternion.coe_normSq_add E0 #
∀ {R : Type u_3} [inst : CommRing R] (a b : Quaternion R),
↑(Quaternion.normSq (a + b)) = ↑(Quaternion.normSq a) + a * star b + b * star a + ↑(Quaternion.normSq b)
theorem Quaternion.normSq_smul E1 #
∀ {R : Type u_3} [inst : CommRing R] (r : R) (q : Quaternion R), Quaternion.normSq (r • q) = r ^ 2 * Quaternion.normSq q
theorem Quaternion.normSq_add E1 #
∀ {R : Type u_3} [inst : CommRing R] (a b : Quaternion R),
Quaternion.normSq (a + b) = Quaternion.normSq a + Quaternion.normSq b + 2 * (a * star b).re
theorem Quaternion.normSq_eq_zero E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R] {a : Quaternion R},
Quaternion.normSq a = 0 ↔ a = 0
theorem Quaternion.normSq_ne_zero E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R] {a : Quaternion R},
Quaternion.normSq a ≠ 0 ↔ a ≠ 0
theorem Quaternion.normSq_nonneg E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R] {a : Quaternion R},
0 ≤ Quaternion.normSq a
theorem Quaternion.normSq_le_zero E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R] {a : Quaternion R},
Quaternion.normSq a ≤ 0 ↔ a = 0
instance Quaternion.instNoZeroDivisors E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R], NoZeroDivisors (Quaternion R)
instance Quaternion.instIsDomain E0 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R], IsDomain (Quaternion R)
theorem Quaternion.sq_eq_normSq E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R] {a : Quaternion R},
a ^ 2 = ↑(Quaternion.normSq a) ↔ a = ↑a.re
theorem Quaternion.sq_eq_neg_normSq E1 #
∀ {R : Type u_1} [inst : CommRing R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R] {a : Quaternion R},
a ^ 2 = -↑(Quaternion.normSq a) ↔ a.re = 0
instance Quaternion.instNNRatCast E0 #
{R : Type u_1} → [inst : Field R] → NNRatCast (Quaternion R)
instance Quaternion.instRatCast E0 #
{R : Type u_1} → [inst : Field R] → RatCast (Quaternion R)
theorem Quaternion.re_nnratCast E0 #
∀ {R : Type u_1} [inst : Field R] (q : ℚ≥0), (↑q).re = ↑q
theorem Quaternion.im_nnratCast E0 #
∀ {R : Type u_1} [inst : Field R] (q : ℚ≥0), (↑q).im = 0
theorem Quaternion.imI_nnratCast E0 #
∀ {R : Type u_1} [inst : Field R] (q : ℚ≥0), (↑q).imI = 0
theorem Quaternion.imJ_nnratCast E0 #
∀ {R : Type u_1} [inst : Field R] (q : ℚ≥0), (↑q).imJ = 0
theorem Quaternion.imK_nnratCast E0 #
∀ {R : Type u_1} [inst : Field R] (q : ℚ≥0), (↑q).imK = 0
theorem Quaternion.re_ratCast E0 #
∀ {R : Type u_1} [inst : Field R] (q : ℚ), (↑q).re = ↑q
theorem Quaternion.im_ratCast E0 #
∀ {R : Type u_1} [inst : Field R] (q : ℚ), (↑q).im = 0
theorem Quaternion.imI_ratCast E0 #
∀ {R : Type u_1} [inst : Field R] (q : ℚ), (↑q).imI = 0
theorem Quaternion.imJ_ratCast E0 #
∀ {R : Type u_1} [inst : Field R] (q : ℚ), (↑q).imJ = 0
theorem Quaternion.imK_ratCast E0 #
∀ {R : Type u_1} [inst : Field R] (q : ℚ), (↑q).imK = 0
theorem Quaternion.coe_nnratCast E0 #
∀ {R : Type u_1} [inst : Field R] (q : ℚ≥0), ↑↑q = ↑q
theorem Quaternion.coe_ratCast E0 #
∀ {R : Type u_1} [inst : Field R] (q : ℚ), ↑↑q = ↑q
theorem Quaternion.normSq_ratCast E1 #
∀ {R : Type u_1} [inst : Field R] (q : ℚ), ↑(Quaternion.normSq ↑q) = ↑q ^ 2
theorem Quaternion.coe_ofScientific E0 #
∀ {R : Type u_1} [inst : Field R] (m : ℕ) (s : Bool) (e : ℕ),
↑(OfScientific.ofScientific m s e) = OfScientific.ofScientific m s e
theorem Quaternion.re_ofScientific E0 #
∀ {R : Type u_1} [inst : Field R] (m : ℕ) (s : Bool) (e : ℕ),
QuaternionAlgebra.re (OfScientific.ofScientific m s e) = OfScientific.ofScientific m s e
theorem Quaternion.imI_ofScientific E0 #
∀ {R : Type u_1} [inst : Field R] (m : ℕ) (s : Bool) (e : ℕ),
QuaternionAlgebra.imI (OfScientific.ofScientific m s e) = 0
theorem Quaternion.imJ_ofScientific E0 #
∀ {R : Type u_1} [inst : Field R] (m : ℕ) (s : Bool) (e : ℕ),
QuaternionAlgebra.imJ (OfScientific.ofScientific m s e) = 0
theorem Quaternion.imK_ofScientific E0 #
∀ {R : Type u_1} [inst : Field R] (m : ℕ) (s : Bool) (e : ℕ),
QuaternionAlgebra.imK (OfScientific.ofScientific m s e) = 0
theorem Quaternion.inv_def E0 #
∀ {R : Type u_1} [inst : Field R] (a : Quaternion R), a⁻¹ = (Quaternion.normSq a)⁻¹ • star a
instance Quaternion.instInv E0 #
{R : Type u_1} → [inst : Field R] → Inv (Quaternion R)
instance Quaternion.instGroupWithZero E0 #
{R : Type u_1} → [inst : Field R] → [inst_1 : LinearOrder R] → [IsStrictOrderedRing R] → GroupWithZero (Quaternion R)
theorem Quaternion.coe_inv E0 #
∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R] (x : R), ↑x⁻¹ = (↑x)⁻¹
theorem Quaternion.coe_div E0 #
∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] (x y : R),
↑(x / y) = ↑x / ↑y
theorem Quaternion.coe_zpow E0 #
∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] (x : R) (z : ℤ),
↑(x ^ z) = ↑x ^ z
instance Quaternion.instDivisionRing E0 #
{R : Type u_1} → [inst : Field R] → [inst_1 : LinearOrder R] → [IsStrictOrderedRing R] → DivisionRing (Quaternion R)
theorem Quaternion.normSq_inv E1 #
∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [IsStrictOrderedRing R] (a : Quaternion R),
Quaternion.normSq a⁻¹ = (Quaternion.normSq a)⁻¹
theorem Quaternion.normSq_div E1 #
∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] (a b : Quaternion R),
Quaternion.normSq (a / b) = Quaternion.normSq a / Quaternion.normSq b
theorem Quaternion.normSq_zpow E1 #
∀ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] (a : Quaternion R) (z : ℤ),
Quaternion.normSq (a ^ z) = Quaternion.normSq a ^ z
theorem Cardinal.mk_quaternionAlgebra E1 #
∀ {R : Type u_1} (c₁ c₂ c₃ : R), Cardinal.mk (QuaternionAlgebra R c₁ c₂ c₃) = Cardinal.mk R ^ 4
The cardinality of a quaternion algebra, as a type.
theorem Cardinal.mk_quaternionAlgebra_of_infinite E0 #
∀ {R : Type u_1} (c₁ c₂ c₃ : R) [Infinite R], Cardinal.mk (QuaternionAlgebra R c₁ c₂ c₃) = Cardinal.mk R
theorem Cardinal.mk_univ_quaternionAlgebra E1 #
∀ {R : Type u_1} (c₁ c₂ c₃ : R), Cardinal.mk ↑Set.univ = Cardinal.mk R ^ 4
The cardinality of a quaternion algebra, as a set.
theorem Cardinal.mk_univ_quaternionAlgebra_of_infinite E1 #
∀ {R : Type u_1} (c₁ c₂ c₃ : R) [Infinite R], Cardinal.mk ↑Set.univ = Cardinal.mk R
instance Cardinal.instReprQuaternionAlgebra E0 #
{R : Type u_1} → [Repr R] → {a b c : R} → Repr (QuaternionAlgebra R a b c)
Show the quaternion ⟨w, x, y, z⟩ as a string "{ re := w, imI := x, imJ := y, imK := z }".
For the typical case of quaternions over ℝ, each component will show as a Cauchy sequence due to the way Real numbers are represented.
theorem Cardinal.mk_quaternion E0 #
∀ (R : Type u_1) [inst : Zero R] [inst_1 : One R] [inst_2 : Neg R], Cardinal.mk (Quaternion R) = Cardinal.mk R ^ 4
The cardinality of the quaternions, as a type.
theorem Cardinal.mk_quaternion_of_infinite E1 #
∀ (R : Type u_1) [inst : Zero R] [inst_1 : One R] [inst_2 : Neg R] [Infinite R],
Cardinal.mk (Quaternion R) = Cardinal.mk R
theorem Cardinal.mk_univ_quaternion E1 #
∀ (R : Type u_1) [inst : Zero R] [inst_1 : One R] [inst_2 : Neg R], Cardinal.mk ↑Set.univ = Cardinal.mk R ^ 4
The cardinality of the quaternions, as a set.
theorem Cardinal.mk_univ_quaternion_of_infinite E1 #
∀ (R : Type u_1) [inst : Zero R] [inst_1 : One R] [inst_2 : Neg R] [Infinite R], Cardinal.mk ↑Set.univ = Cardinal.mk R