The areas / V06. Rings, fields and ordered algebra
Mathlib.Algebra.QuaternionBasis
46 declarations. Mathlib docs · Source
Basis on a quaternion-like algebra
Main definitions
QuaternionAlgebra.Basis A c₁ c₂ c₃: a basis for a subspace of anR-algebraAthat has the same algebra structure asℍ[R,c₁,c₂,c₃].QuaternionAlgebra.Basis.self R: the canonical basis forℍ[R,c₁,c₂,c₃].QuaternionAlgebra.Basis.compHom b f: transform a basisbby an AlgHomf.QuaternionAlgebra.lift: Define anAlgHomout ofℍ[R,c₁,c₂,c₃]by its action on the basis elementsi,j, andk. In essence, this is a universal property. Analogous toComplex.lift, but takes a bundledQuaternionAlgebra.Basisinstead of just aSubtypeas the amount of data / proofs is non-negligible.
theorem QuaternionAlgebra.Basis.mk.inj E1 #
∀ {R : Type u_1} {A : Type u_2} {inst : CommRing R} {inst_1 : Ring A} {inst_2 : Algebra R A} {c₁ c₂ c₃ : R} {i j k : A}
{i_mul_i : i * i = c₁ • 1 + c₂ • i} {j_mul_j : j * j = c₃ • 1} {i_mul_j : i * j = k} {j_mul_i : j * i = c₂ • j - k}
{i_1 j_1 k_1 : A} {i_mul_i_1 : i_1 * i_1 = c₁ • 1 + c₂ • i_1} {j_mul_j_1 : j_1 * j_1 = c₃ • 1}
{i_mul_j_1 : i_1 * j_1 = k_1} {j_mul_i_1 : j_1 * i_1 = c₂ • j_1 - k_1},
{ i := i, j := j, k := k, i_mul_i := i_mul_i, j_mul_j := j_mul_j, i_mul_j := i_mul_j, j_mul_i := j_mul_i } =
{ i := i_1, j := j_1, k := k_1, i_mul_i := i_mul_i_1, j_mul_j := j_mul_j_1, i_mul_j := i_mul_j_1,
j_mul_i := j_mul_i_1 } →
i = i_1 ∧ j = j_1 ∧ k = k_1
theorem QuaternionAlgebra.Basis.mk.hcongr_15 E1 #
∀ (R R' : Type u_1),
R = R' →
∀ (A A' : Type u_2),
A = A' →
∀ (inst : CommRing R) (inst' : CommRing R'),
inst ≍ inst' →
∀ (inst_1 : Ring A) (inst'_1 : Ring A'),
inst_1 ≍ inst'_1 →
∀ (inst_2 : Algebra R A) (inst'_2 : Algebra R' A'),
inst_2 ≍ inst'_2 →
∀ (c₁ : R) (c₁' : R'),
c₁ ≍ c₁' →
∀ (c₂ : R) (c₂' : R'),
c₂ ≍ c₂' →
∀ (c₃ : R) (c₃' : R'),
c₃ ≍ c₃' →
∀ (i : A) (i' : A'),
i ≍ i' →
∀ (j : A) (j' : A'),
j ≍ j' →
∀ (k : A) (k' : A'),
k ≍ k' →
∀ (i_mul_i : i * i = c₁ • 1 + c₂ • i)
(i_mul_i' : i' * i' = c₁' • 1 + c₂' • i'),
i_mul_i ≍ i_mul_i' →
∀ (j_mul_j : j * j = c₃ • 1) (j_mul_j' : j' * j' = c₃' • 1),
j_mul_j ≍ j_mul_j' →
∀ (i_mul_j : i * j = k) (i_mul_j' : i' * j' = k'),
i_mul_j ≍ i_mul_j' →
∀ (j_mul_i : j * i = c₂ • j - k)
(j_mul_i' : j' * i' = c₂' • j' - k'),
j_mul_i ≍ j_mul_i' →
{ i := i, j := j, k := k, i_mul_i := i_mul_i,
j_mul_j := j_mul_j, i_mul_j := i_mul_j,
j_mul_i := j_mul_i } ≍
{ i := i', j := j', k := k', i_mul_i := i_mul_i',
j_mul_j := j_mul_j', i_mul_j := i_mul_j',
j_mul_i := j_mul_i' }
theorem QuaternionAlgebra.Basis.mk.congr_simp E1 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R} (i i_1 : A)
(e_i : i = i_1) (j j_1 : A) (e_j : j = j_1) (k k_1 : A) (e_k : k = k_1) (i_mul_i : i * i = c₁ • 1 + c₂ • i)
(j_mul_j : j * j = c₃ • 1) (i_mul_j : i * j = k) (j_mul_i : j * i = c₂ • j - k),
{ i := i, j := j, k := k, i_mul_i := i_mul_i, j_mul_j := j_mul_j, i_mul_j := i_mul_j, j_mul_i := j_mul_i } =
{ i := i_1, j := j_1, k := k_1, i_mul_i := ⋯, j_mul_j := ⋯, i_mul_j := ⋯, j_mul_i := ⋯ }
theorem QuaternionAlgebra.Basis.mk.injEq E0 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R} (i j k : A)
(i_mul_i : i * i = c₁ • 1 + c₂ • i) (j_mul_j : j * j = c₃ • 1) (i_mul_j : i * j = k) (j_mul_i : j * i = c₂ • j - k)
(i_1 j_1 k_1 : A) (i_mul_i_1 : i_1 * i_1 = c₁ • 1 + c₂ • i_1) (j_mul_j_1 : j_1 * j_1 = c₃ • 1)
(i_mul_j_1 : i_1 * j_1 = k_1) (j_mul_i_1 : j_1 * i_1 = c₂ • j_1 - k_1),
({ i := i, j := j, k := k, i_mul_i := i_mul_i, j_mul_j := j_mul_j, i_mul_j := i_mul_j, j_mul_i := j_mul_i } =
{ i := i_1, j := j_1, k := k_1, i_mul_i := i_mul_i_1, j_mul_j := j_mul_j_1, i_mul_j := i_mul_j_1,
j_mul_i := j_mul_i_1 }) =
(i = i_1 ∧ j = j_1 ∧ k = k_1)
def QuaternionAlgebra.Basis.ctorIdx E1 #
{R : Type u_1} →
{A : Type u_2} →
{inst : CommRing R} →
{inst_1 : Ring A} → {inst_2 : Algebra R A} → {c₁ c₂ c₃ : R} → QuaternionAlgebra.Basis A c₁ c₂ c₃ → ℕ
structure QuaternionAlgebra.Basis E3 #
{R : Type u_1} → (A : Type u_2) → [inst : CommRing R] → [inst_1 : Ring A] → [Algebra R A] → R → R → R → Type u_2
A quaternion basis contains the information both sufficient and necessary to construct an
R-algebra homomorphism from ℍ[R,c₁,c₂,c₃] to A; or equivalently, a surjective
R-algebra homomorphism from ℍ[R,c₁,c₂,c₃] to an R-subalgebra of A.
Note that for definitional convenience, k is provided as a field even though i_mul_j fully
determines it.
ctor QuaternionAlgebra.Basis.mk E0 #
{R : Type u_1} →
{A : Type u_2} →
[inst : CommRing R] →
[inst_1 : Ring A] →
[inst_2 : Algebra R A] →
{c₁ c₂ c₃ : R} →
(i j k : A) →
i * i = c₁ • 1 + c₂ • i →
j * j = c₃ • 1 → i * j = k → j * i = c₂ • j - k → QuaternionAlgebra.Basis A c₁ c₂ c₃
abbrev QuaternionAlgebra.Basis.i E1 #
{R : Type u_1} →
{A : Type u_2} →
[inst : CommRing R] →
[inst_1 : Ring A] → [inst_2 : Algebra R A] → {c₁ c₂ c₃ : R} → QuaternionAlgebra.Basis A c₁ c₂ c₃ → A
The first imaginary unit
abbrev QuaternionAlgebra.Basis.j E1 #
{R : Type u_1} →
{A : Type u_2} →
[inst : CommRing R] →
[inst_1 : Ring A] → [inst_2 : Algebra R A] → {c₁ c₂ c₃ : R} → QuaternionAlgebra.Basis A c₁ c₂ c₃ → A
The second imaginary unit
abbrev QuaternionAlgebra.Basis.k E1 #
{R : Type u_1} →
{A : Type u_2} →
[inst : CommRing R] →
[inst_1 : Ring A] → [inst_2 : Algebra R A] → {c₁ c₂ c₃ : R} → QuaternionAlgebra.Basis A c₁ c₂ c₃ → A
The third imaginary unit
theorem QuaternionAlgebra.Basis.i_mul_i E0 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
(self : QuaternionAlgebra.Basis A c₁ c₂ c₃), self.i * self.i = c₁ • 1 + c₂ • self.i
theorem QuaternionAlgebra.Basis.j_mul_j E0 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
(self : QuaternionAlgebra.Basis A c₁ c₂ c₃), self.j * self.j = c₃ • 1
theorem QuaternionAlgebra.Basis.i_mul_j E0 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
(self : QuaternionAlgebra.Basis A c₁ c₂ c₃), self.i * self.j = self.k
theorem QuaternionAlgebra.Basis.j_mul_i E0 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
(self : QuaternionAlgebra.Basis A c₁ c₂ c₃), self.j * self.i = c₂ • self.j - self.k
theorem QuaternionAlgebra.Basis.ext E1 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
⦃q₁ q₂ : QuaternionAlgebra.Basis A c₁ c₂ c₃⦄, q₁.i = q₂.i → q₁.j = q₂.j → q₁ = q₂
Since k is redundant, it is not necessary to show q₁.k = q₂.k when showing q₁ = q₂.
theorem QuaternionAlgebra.Basis.ext_iff E0 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
{q₁ q₂ : QuaternionAlgebra.Basis A c₁ c₂ c₃}, q₁ = q₂ ↔ q₁.i = q₂.i ∧ q₁.j = q₂.j
def QuaternionAlgebra.Basis.self E1 #
(R : Type u_1) → [inst : CommRing R] → {c₁ c₂ c₃ : R} → QuaternionAlgebra.Basis (QuaternionAlgebra R c₁ c₂ c₃) c₁ c₂ c₃
There is a natural quaternionic basis for the QuaternionAlgebra.
theorem QuaternionAlgebra.Basis.k_self E0 #
∀ (R : Type u_1) [inst : CommRing R] {c₁ c₂ c₃ : R},
(QuaternionAlgebra.Basis.self R).k = { re := 0, imI := 0, imJ := 0, imK := 1 }
theorem QuaternionAlgebra.Basis.i_self E0 #
∀ (R : Type u_1) [inst : CommRing R] {c₁ c₂ c₃ : R},
(QuaternionAlgebra.Basis.self R).i = { re := 0, imI := 1, imJ := 0, imK := 0 }
theorem QuaternionAlgebra.Basis.j_self E0 #
∀ (R : Type u_1) [inst : CommRing R] {c₁ c₂ c₃ : R},
(QuaternionAlgebra.Basis.self R).j = { re := 0, imI := 0, imJ := 1, imK := 0 }
instance QuaternionAlgebra.Basis.instInhabited E0 #
{R : Type u_1} →
[inst : CommRing R] → {c₁ c₂ c₃ : R} → Inhabited (QuaternionAlgebra.Basis (QuaternionAlgebra R c₁ c₂ c₃) c₁ c₂ c₃)
theorem QuaternionAlgebra.Basis.i_mul_k E0 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
(q : QuaternionAlgebra.Basis A c₁ c₂ c₃), q.i * q.k = c₁ • q.j + c₂ • q.k
theorem QuaternionAlgebra.Basis.k_mul_i E0 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
(q : QuaternionAlgebra.Basis A c₁ c₂ c₃), q.k * q.i = -c₁ • q.j
theorem QuaternionAlgebra.Basis.k_mul_j E0 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
(q : QuaternionAlgebra.Basis A c₁ c₂ c₃), q.k * q.j = c₃ • q.i
theorem QuaternionAlgebra.Basis.j_mul_k E0 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
(q : QuaternionAlgebra.Basis A c₁ c₂ c₃), q.j * q.k = (c₂ * c₃) • 1 - c₃ • q.i
theorem QuaternionAlgebra.Basis.k_mul_k E0 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
(q : QuaternionAlgebra.Basis A c₁ c₂ c₃), q.k * q.k = -((c₁ * c₃) • 1)
def QuaternionAlgebra.Basis.lift E1 #
{R : Type u_1} →
{A : Type u_2} →
[inst : CommRing R] →
[inst_1 : Ring A] →
[inst_2 : Algebra R A] → {c₁ c₂ c₃ : R} → QuaternionAlgebra.Basis A c₁ c₂ c₃ → QuaternionAlgebra R c₁ c₂ c₃ → A
Intermediate result used to define QuaternionAlgebra.Basis.liftHom.
theorem QuaternionAlgebra.Basis.lift_zero E1 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
(q : QuaternionAlgebra.Basis A c₁ c₂ c₃), q.lift 0 = 0
theorem QuaternionAlgebra.Basis.lift_one E1 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
(q : QuaternionAlgebra.Basis A c₁ c₂ c₃), q.lift 1 = 1
theorem QuaternionAlgebra.Basis.lift_add E1 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
(q : QuaternionAlgebra.Basis A c₁ c₂ c₃) (x y : QuaternionAlgebra R c₁ c₂ c₃), q.lift (x + y) = q.lift x + q.lift y
theorem QuaternionAlgebra.Basis.lift_mul E1 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
(q : QuaternionAlgebra.Basis A c₁ c₂ c₃) (x y : QuaternionAlgebra R c₁ c₂ c₃), q.lift (x * y) = q.lift x * q.lift y
theorem QuaternionAlgebra.Basis.lift_smul E1 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
(q : QuaternionAlgebra.Basis A c₁ c₂ c₃) (r : R) (x : QuaternionAlgebra R c₁ c₂ c₃), q.lift (r • x) = r • q.lift x
def QuaternionAlgebra.Basis.liftHom E1 #
{R : Type u_1} →
{A : Type u_2} →
[inst : CommRing R] →
[inst_1 : Ring A] →
[inst_2 : Algebra R A] →
{c₁ c₂ c₃ : R} → QuaternionAlgebra.Basis A c₁ c₂ c₃ → QuaternionAlgebra R c₁ c₂ c₃ →ₐ[R] A
A QuaternionAlgebra.Basis implies an AlgHom from the quaternions.
theorem QuaternionAlgebra.Basis.liftHom_apply E0 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
(q : QuaternionAlgebra.Basis A c₁ c₂ c₃) (a : QuaternionAlgebra R c₁ c₂ c₃), q.liftHom a = q.lift a
theorem QuaternionAlgebra.Basis.range_liftHom E0 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
(B : QuaternionAlgebra.Basis A c₁ c₂ c₃), B.liftHom.range = R[B.i, B.j, B.k]
def QuaternionAlgebra.Basis.compHom E1 #
{R : Type u_1} →
{A : Type u_2} →
{B : Type u_3} →
[inst : CommRing R] →
[inst_1 : Ring A] →
[inst_2 : Ring B] →
[inst_3 : Algebra R A] →
[inst_4 : Algebra R B] →
{c₁ c₂ c₃ : R} → QuaternionAlgebra.Basis A c₁ c₂ c₃ → (A →ₐ[R] B) → QuaternionAlgebra.Basis B c₁ c₂ c₃
Transform a QuaternionAlgebra.Basis through an AlgHom.
theorem QuaternionAlgebra.Basis.j_compHom E0 #
∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Ring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] {c₁ c₂ c₃ : R} (q : QuaternionAlgebra.Basis A c₁ c₂ c₃) (F : A →ₐ[R] B),
(q.compHom F).j = F q.j
theorem QuaternionAlgebra.Basis.k_compHom E0 #
∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Ring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] {c₁ c₂ c₃ : R} (q : QuaternionAlgebra.Basis A c₁ c₂ c₃) (F : A →ₐ[R] B),
(q.compHom F).k = F q.k
theorem QuaternionAlgebra.Basis.i_compHom E0 #
∀ {R : Type u_1} {A : Type u_2} {B : Type u_3} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Ring B]
[inst_3 : Algebra R A] [inst_4 : Algebra R B] {c₁ c₂ c₃ : R} (q : QuaternionAlgebra.Basis A c₁ c₂ c₃) (F : A →ₐ[R] B),
(q.compHom F).i = F q.i
def QuaternionAlgebra.lift E3 #
{R : Type u_1} →
{A : Type u_2} →
[inst : CommRing R] →
[inst_1 : Ring A] →
[inst_2 : Algebra R A] →
{c₁ c₂ c₃ : R} → QuaternionAlgebra.Basis A c₁ c₂ c₃ ≃ (QuaternionAlgebra R c₁ c₂ c₃ →ₐ[R] A)
A quaternionic basis on A is equivalent to a map from the quaternion algebra to A.
theorem QuaternionAlgebra.lift_apply E0 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
(q : QuaternionAlgebra.Basis A c₁ c₂ c₃), QuaternionAlgebra.lift q = q.liftHom
theorem QuaternionAlgebra.lift_symm_apply E0 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
(F : QuaternionAlgebra R c₁ c₂ c₃ →ₐ[R] A), QuaternionAlgebra.lift.symm F = (QuaternionAlgebra.Basis.self R).compHom F
theorem QuaternionAlgebra.hom_ext E1 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
⦃f g : QuaternionAlgebra R c₁ c₂ c₃ →ₐ[R] A⦄,
f (QuaternionAlgebra.Basis.self R).i = g (QuaternionAlgebra.Basis.self R).i →
f (QuaternionAlgebra.Basis.self R).j = g (QuaternionAlgebra.Basis.self R).j → f = g
Two R-algebra morphisms from a quaternion algebra are equal if they agree on i and j.
theorem QuaternionAlgebra.hom_ext_iff E0 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A] {c₁ c₂ c₃ : R}
{f g : QuaternionAlgebra R c₁ c₂ c₃ →ₐ[R] A},
f = g ↔
f (QuaternionAlgebra.Basis.self R).i = g (QuaternionAlgebra.Basis.self R).i ∧
f (QuaternionAlgebra.Basis.self R).j = g (QuaternionAlgebra.Basis.self R).j
theorem Quaternion.hom_ext E1 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A]
⦃f g : Quaternion R →ₐ[R] A⦄,
f (QuaternionAlgebra.Basis.self R).i = g (QuaternionAlgebra.Basis.self R).i →
f (QuaternionAlgebra.Basis.self R).j = g (QuaternionAlgebra.Basis.self R).j → f = g
Two R-algebra morphisms from the quaternions are equal if they agree on i and j.
theorem Quaternion.hom_ext_iff E0 #
∀ {R : Type u_1} {A : Type u_2} [inst : CommRing R] [inst_1 : Ring A] [inst_2 : Algebra R A]
{f g : Quaternion R →ₐ[R] A},
f = g ↔
f (QuaternionAlgebra.Basis.self R).i = g (QuaternionAlgebra.Basis.self R).i ∧
f (QuaternionAlgebra.Basis.self R).j = g (QuaternionAlgebra.Basis.self R).j