The areas / V06. Rings, fields and ordered algebra
Mathlib.Algebra.QuadraticAlgebra.Defs
114 declarations. Mathlib docs · Source
Quadratic Algebra
In this file we define the quadratic algebra QuadraticAlgebra R a b over a commutative ring R,
and define some algebraic structures on it.
Main definitions
QuadraticAlgebra R a b: [Bourbaki, Algebra I][bourbaki1989] with coefficientsa,binR.
Implementation notes
The canonical way of writing an element r of R in QuadraticAlgebra R a b is
QuadraticAlgebra.C r (or algebraMap R _ r when R is a commutative ring), rather than ⟨r, 0⟩.
Tags
Quadratic algebra, quadratic extension
def QuadraticAlgebra.ctorIdx E1 #
{R : Type u} → {a b : R} → QuadraticAlgebra R a b → ℕ
theorem QuadraticAlgebra.mk.inj E1 #
∀ {R : Type u} {a b re im re_1 im_1 : R}, { re := re, im := im } = { re := re_1, im := im_1 } → re = re_1 ∧ im = im_1
theorem QuadraticAlgebra.mk.injEq E0 #
∀ {R : Type u} {a b : R} (re im re_1 im_1 : R),
({ re := re, im := im } = { re := re_1, im := im_1 }) = (re = re_1 ∧ im = im_1)
structure QuadraticAlgebra E1 #
(R : Type u) → R → R → Type u
Quadratic algebra over a type with fixed coefficient where $i^2 = a + bi$, implemented as
a structure with two fields, re and im. When R is a commutative ring, this is isomorphic to
R[X]/(X^2-b*X-a).
theorem QuadraticAlgebra.ext E1 #
∀ {R : Type u} {a b : R} {x y : QuadraticAlgebra R a b}, x.re = y.re → x.im = y.im → x = y
theorem QuadraticAlgebra.ext_iff E0 #
∀ {R : Type u} {a b : R} {x y : QuadraticAlgebra R a b}, x = y ↔ x.re = y.re ∧ x.im = y.im
ctor QuadraticAlgebra.mk E0 #
{R : Type u} → {a b : R} → R → R → QuadraticAlgebra R a b
abbrev QuadraticAlgebra.re E1 #
{R : Type u} → {a b : R} → QuadraticAlgebra R a b → R
Real part of an element in quadratic algebra
abbrev QuadraticAlgebra.im E1 #
{R : Type u} → {a b : R} → QuadraticAlgebra R a b → R
Imaginary part of an element in quadratic algebra
instance instDecidableEqQuadraticAlgebra E0 #
{R : Type u_1} → {a b : R} → [DecidableEq R] → DecidableEq (QuadraticAlgebra R a b)
def instDecidableEqQuadraticAlgebra.decEq E1 #
{R : Type u_1} → {a b : R} → [DecidableEq R] → (x x_1 : QuadraticAlgebra R a b) → Decidable (x = x_1)
def QuadraticAlgebra.equivProd E1 #
{R : Type u_1} → (a b : R) → QuadraticAlgebra R a b ≃ R × R
The equivalence between quadratic algebra over R and R × R.
theorem QuadraticAlgebra.equivProd_symm_apply E0 #
∀ {R : Type u_1} (a b : R) (p : R × R), (QuadraticAlgebra.equivProd a b).symm p = { re := p.1, im := p.2 }
theorem QuadraticAlgebra.mk_eta E0 #
∀ {R : Type u_1} {a b : R} (z : QuadraticAlgebra R a b), { re := z.re, im := z.im } = z
instance QuadraticAlgebra.instSubsingleton E0 #
∀ {R : Type u_1} {a b : R} [Subsingleton R], Subsingleton (QuadraticAlgebra R a b)
instance QuadraticAlgebra.instNontrivial E0 #
∀ {R : Type u_1} {a b : R} [Nontrivial R], Nontrivial (QuadraticAlgebra R a b)
def QuadraticAlgebra.C E1 #
{R : Type u_1} → {a b : R} → [Zero R] → R → QuadraticAlgebra R a b
The natural function R → QuadraticAlgebra R a b.
Note that, if R is a ring, you should use algebraMap instead of C.
theorem QuadraticAlgebra.re_C E0 #
∀ {R : Type u_1} {a b : R} (r : R) [inst : Zero R], (QuadraticAlgebra.C r).re = r
theorem QuadraticAlgebra.im_C E0 #
∀ {R : Type u_1} {a b : R} (r : R) [inst : Zero R], (QuadraticAlgebra.C r).im = 0
theorem QuadraticAlgebra.mk_zero_eq_C E0 #
∀ {R : Type u_1} {a b : R} [inst : Zero R] (r : R), { re := r, im := 0 } = QuadraticAlgebra.C r
theorem QuadraticAlgebra.C_injective E1 #
∀ {R : Type u_1} {a b : R} [inst : Zero R], Function.Injective QuadraticAlgebra.C
theorem QuadraticAlgebra.C_inj E0 #
∀ {R : Type u_1} {a b : R} [inst : Zero R] {x y : R}, QuadraticAlgebra.C x = QuadraticAlgebra.C y ↔ x = y
instance QuadraticAlgebra.instZero E0 #
{R : Type u_1} → {a b : R} → [Zero R] → Zero (QuadraticAlgebra R a b)
theorem QuadraticAlgebra.re_zero E0 #
∀ {R : Type u_1} {a b : R} [inst : Zero R], QuadraticAlgebra.re 0 = 0
theorem QuadraticAlgebra.im_zero E0 #
∀ {R : Type u_1} {a b : R} [inst : Zero R], QuadraticAlgebra.im 0 = 0
theorem QuadraticAlgebra.C_zero E0 #
∀ {R : Type u_1} {a b : R} [inst : Zero R], QuadraticAlgebra.C 0 = 0
theorem QuadraticAlgebra.C_eq_zero_iff E0 #
∀ {R : Type u_1} {a b : R} [inst : Zero R] {r : R}, QuadraticAlgebra.C r = 0 ↔ r = 0
instance QuadraticAlgebra.instInhabited E0 #
{R : Type u_1} → {a b : R} → [Zero R] → Inhabited (QuadraticAlgebra R a b)
instance QuadraticAlgebra.instOne E0 #
{R : Type u_1} → {a b : R} → [Zero R] → [One R] → One (QuadraticAlgebra R a b)
theorem QuadraticAlgebra.re_one E1 #
∀ {R : Type u_1} {a b : R} [inst : Zero R] [inst_1 : One R], QuadraticAlgebra.re 1 = 1
theorem QuadraticAlgebra.im_one E1 #
∀ {R : Type u_1} {a b : R} [inst : Zero R] [inst_1 : One R], QuadraticAlgebra.im 1 = 0
theorem QuadraticAlgebra.C_one E0 #
∀ {R : Type u_1} {a b : R} [inst : Zero R] [inst_1 : One R], QuadraticAlgebra.C 1 = 1
theorem QuadraticAlgebra.C_eq_one_iff E0 #
∀ {R : Type u_1} {a b : R} [inst : Zero R] [inst_1 : One R] {r : R}, QuadraticAlgebra.C r = 1 ↔ r = 1
instance QuadraticAlgebra.instAdd E0 #
{R : Type u_1} → {a b : R} → [Add R] → Add (QuadraticAlgebra R a b)
theorem QuadraticAlgebra.re_add E0 #
∀ {R : Type u_1} {a b : R} [inst : Add R] (z w : QuadraticAlgebra R a b), (z + w).re = z.re + w.re
theorem QuadraticAlgebra.im_add E0 #
∀ {R : Type u_1} {a b : R} [inst : Add R] (z w : QuadraticAlgebra R a b), (z + w).im = z.im + w.im
theorem QuadraticAlgebra.mk_add_mk E0 #
∀ {R : Type u_1} {a b : R} [inst : Add R] (z w : QuadraticAlgebra R a b),
{ re := z.re, im := z.im } + { re := w.re, im := w.im } = { re := z.re + w.re, im := z.im + w.im }
theorem QuadraticAlgebra.C_add E0 #
∀ {R : Type u_1} {a b : R} [inst : AddZeroClass R] (x y : R),
QuadraticAlgebra.C (x + y) = QuadraticAlgebra.C x + QuadraticAlgebra.C y
instance QuadraticAlgebra.instNeg E0 #
{R : Type u_1} → {a b : R} → [Neg R] → Neg (QuadraticAlgebra R a b)
theorem QuadraticAlgebra.re_neg E0 #
∀ {R : Type u_1} {a b : R} [inst : Neg R] (z : QuadraticAlgebra R a b), (-z).re = -z.re
theorem QuadraticAlgebra.im_neg E0 #
∀ {R : Type u_1} {a b : R} [inst : Neg R] (z : QuadraticAlgebra R a b), (-z).im = -z.im
theorem QuadraticAlgebra.neg_mk E0 #
∀ {R : Type u_1} {a b : R} [inst : Neg R] (x y : R), -{ re := x, im := y } = { re := -x, im := -y }
theorem QuadraticAlgebra.C_neg E0 #
∀ {R : Type u_1} {a b : R} [inst : NegZeroClass R] (x : R), QuadraticAlgebra.C (-x) = -QuadraticAlgebra.C x
instance QuadraticAlgebra.instSub E0 #
{R : Type u_1} → {a b : R} → [Sub R] → Sub (QuadraticAlgebra R a b)
theorem QuadraticAlgebra.re_sub E0 #
∀ {R : Type u_1} {a b : R} [inst : Sub R] (z w : QuadraticAlgebra R a b), (z - w).re = z.re - w.re
theorem QuadraticAlgebra.im_sub E0 #
∀ {R : Type u_1} {a b : R} [inst : Sub R] (z w : QuadraticAlgebra R a b), (z - w).im = z.im - w.im
theorem QuadraticAlgebra.mk_sub_mk E0 #
∀ {R : Type u_1} {a b : R} [inst : Sub R] (x1 y1 x2 y2 : R),
{ re := x1, im := y1 } - { re := x2, im := y2 } = { re := x1 - x2, im := y1 - y2 }
theorem QuadraticAlgebra.C_sub E0 #
∀ {R : Type u_1} {a b : R} (r1 r2 : R) [inst : SubNegZeroMonoid R],
QuadraticAlgebra.C (r1 - r2) = QuadraticAlgebra.C r1 - QuadraticAlgebra.C r2
instance QuadraticAlgebra.instMul E0 #
{R : Type u_1} → {a b : R} → [Mul R] → [Add R] → Mul (QuadraticAlgebra R a b)
theorem QuadraticAlgebra.re_mul E0 #
∀ {R : Type u_1} {a b : R} [inst : Mul R] [inst_1 : Add R] (z w : QuadraticAlgebra R a b),
(z * w).re = z.re * w.re + a * z.im * w.im
theorem QuadraticAlgebra.im_mul E0 #
∀ {R : Type u_1} {a b : R} [inst : Mul R] [inst_1 : Add R] (z w : QuadraticAlgebra R a b),
(z * w).im = z.re * w.im + z.im * w.re + b * z.im * w.im
theorem QuadraticAlgebra.mk_mul_mk E0 #
∀ {R : Type u_1} {a b : R} [inst : Mul R] [inst_1 : Add R] (x1 y1 x2 y2 : R),
{ re := x1, im := y1 } * { re := x2, im := y2 } =
{ re := x1 * x2 + a * y1 * y2, im := x1 * y2 + y1 * x2 + b * y1 * y2 }
instance QuadraticAlgebra.instSMul E0 #
{R : Type u_1} → {S : Type u_2} → {a b : R} → [SMul S R] → SMul S (QuadraticAlgebra R a b)
instance QuadraticAlgebra.instIsScalarTower E0 #
∀ {R : Type u_1} {S : Type u_2} {T : Type u_3} {a b : R} [inst : SMul S R] [inst_1 : SMul T R] [inst_2 : SMul S T]
[IsScalarTower S T R], IsScalarTower S T (QuadraticAlgebra R a b)
instance QuadraticAlgebra.instSMulCommClass E0 #
∀ {R : Type u_1} {S : Type u_2} {T : Type u_3} {a b : R} [inst : SMul S R] [inst_1 : SMul T R] [SMulCommClass S T R],
SMulCommClass S T (QuadraticAlgebra R a b)
instance QuadraticAlgebra.instIsCentralScalar E0 #
∀ {R : Type u_1} {S : Type u_2} {a b : R} [inst : SMul S R] [inst_1 : SMul Sᵐᵒᵖ R] [IsCentralScalar S R],
IsCentralScalar S (QuadraticAlgebra R a b)
theorem QuadraticAlgebra.re_smul E0 #
∀ {R : Type u_1} {S : Type u_2} {a b : R} [inst : SMul S R] (s : S) (z : QuadraticAlgebra R a b), (s • z).re = s • z.re
theorem QuadraticAlgebra.im_smul E0 #
∀ {R : Type u_1} {S : Type u_2} {a b : R} [inst : SMul S R] (s : S) (z : QuadraticAlgebra R a b), (s • z).im = s • z.im
theorem QuadraticAlgebra.smul_mk E0 #
∀ {R : Type u_1} {S : Type u_2} {a b : R} [inst : SMul S R] (s : S) (x y : R),
s • { re := x, im := y } = { re := s • x, im := s • y }
instance QuadraticAlgebra.instMulAction E0 #
{R : Type u_1} → {S : Type u_2} → {a b : R} → [inst : Monoid S] → [MulAction S R] → MulAction S (QuadraticAlgebra R a b)
theorem QuadraticAlgebra.C_smul E0 #
∀ {R : Type u_1} {S : Type u_2} {a b : R} [inst : Zero R] [inst_1 : SMulZeroClass S R] (s : S) (r : R),
QuadraticAlgebra.C (s • r) = s • QuadraticAlgebra.C r
instance QuadraticAlgebra.instAddMonoid E0 #
{R : Type u_1} → {a b : R} → [AddMonoid R] → AddMonoid (QuadraticAlgebra R a b)
instance QuadraticAlgebra.instDistribMulAction E0 #
{R : Type u_1} →
{S : Type u_2} →
{a b : R} →
[inst : Monoid S] → [inst_1 : AddMonoid R] → [DistribMulAction S R] → DistribMulAction S (QuadraticAlgebra R a b)
instance QuadraticAlgebra.instAddCommMonoid E0 #
{R : Type u_1} → {a b : R} → [AddCommMonoid R] → AddCommMonoid (QuadraticAlgebra R a b)
instance QuadraticAlgebra.instModule E0 #
{R : Type u_1} →
{S : Type u_2} →
{a b : R} → [inst : Semiring S] → [inst_1 : AddCommMonoid R] → [Module S R] → Module S (QuadraticAlgebra R a b)
instance QuadraticAlgebra.instAddGroup E0 #
{R : Type u_1} → {a b : R} → [AddGroup R] → AddGroup (QuadraticAlgebra R a b)
instance QuadraticAlgebra.instAddCommGroup E0 #
{R : Type u_1} → {a b : R} → [AddCommGroup R] → AddCommGroup (QuadraticAlgebra R a b)
instance QuadraticAlgebra.instAddCommMonoidWithOne E0 #
{R : Type u_1} → {a b : R} → [AddCommMonoidWithOne R] → AddCommMonoidWithOne (QuadraticAlgebra R a b)
theorem QuadraticAlgebra.C_ofNat E0 #
∀ {R : Type u_1} {a b : R} [inst : AddCommMonoidWithOne R] (n : ℕ) [inst_1 : n.AtLeastTwo],
QuadraticAlgebra.C (OfNat.ofNat n) = OfNat.ofNat n
theorem QuadraticAlgebra.re_natCast E0 #
∀ {R : Type u_1} {a b : R} [inst : AddCommMonoidWithOne R] (n : ℕ), (↑n).re = ↑n
theorem QuadraticAlgebra.im_natCast E0 #
∀ {R : Type u_1} {a b : R} [inst : AddCommMonoidWithOne R] (n : ℕ), (↑n).im = 0
theorem QuadraticAlgebra.C_natCast E1 #
∀ {R : Type u_1} {a b : R} [inst : AddCommMonoidWithOne R] (n : ℕ), QuadraticAlgebra.C ↑n = ↑n
theorem QuadraticAlgebra.re_ofNat E1 #
∀ {R : Type u_1} {a b : R} [inst : AddCommMonoidWithOne R] (n : ℕ) [inst_1 : n.AtLeastTwo],
(OfNat.ofNat n).re = OfNat.ofNat n
theorem QuadraticAlgebra.im_ofNat E1 #
∀ {R : Type u_1} {a b : R} [inst : AddCommMonoidWithOne R] (n : ℕ) [inst_1 : n.AtLeastTwo], (OfNat.ofNat n).im = 0
instance QuadraticAlgebra.instAddCommGroupWithOne E0 #
{R : Type u_1} → {a b : R} → [AddCommGroupWithOne R] → AddCommGroupWithOne (QuadraticAlgebra R a b)
theorem QuadraticAlgebra.re_intCast E0 #
∀ {R : Type u_1} {a b : R} [inst : AddCommGroupWithOne R] (n : ℤ), (↑n).re = ↑n
theorem QuadraticAlgebra.im_intCast E0 #
∀ {R : Type u_1} {a b : R} [inst : AddCommGroupWithOne R] (n : ℤ), (↑n).im = 0
theorem QuadraticAlgebra.C_intCast E1 #
∀ {R : Type u_1} {a b : R} [inst : AddCommGroupWithOne R] (n : ℤ), QuadraticAlgebra.C ↑n = ↑n
instance QuadraticAlgebra.instNonUnitalNonAssocSemiring E0 #
{R : Type u_1} → {a b : R} → [NonUnitalNonAssocSemiring R] → NonUnitalNonAssocSemiring (QuadraticAlgebra R a b)
theorem QuadraticAlgebra.C_mul_eq_smul E1 #
∀ {R : Type u_1} {a b : R} [inst : NonUnitalNonAssocSemiring R] (r : R) (x : QuadraticAlgebra R a b),
QuadraticAlgebra.C r * x = r • x
theorem QuadraticAlgebra.C_mul E0 #
∀ {R : Type u_1} {a b : R} [inst : NonUnitalNonAssocSemiring R] (x y : R),
QuadraticAlgebra.C (x * y) = QuadraticAlgebra.C x * QuadraticAlgebra.C y
instance QuadraticAlgebra.instNonAssocSemiring E0 #
{R : Type u_1} → {a b : R} → [NonAssocSemiring R] → NonAssocSemiring (QuadraticAlgebra R a b)
theorem QuadraticAlgebra.nsmul_mk E0 #
∀ {R : Type u_1} {a b : R} [inst : NonAssocSemiring R] (n : ℕ) (x y : R),
↑n * { re := x, im := y } = { re := ↑n * x, im := ↑n * y }
def QuadraticAlgebra.reₗ E1 #
{R : Type u_1} → (a b : R) → [inst : Semiring R] → QuadraticAlgebra R a b →ₗ[R] R
QuadraticAlgebra.re as a LinearMap
theorem QuadraticAlgebra.reₗ_apply E0 #
∀ {R : Type u_1} (a b : R) [inst : Semiring R] (self : QuadraticAlgebra R a b),
(QuadraticAlgebra.reₗ a b) self = self.re
def QuadraticAlgebra.imₗ E1 #
{R : Type u_1} → (a b : R) → [inst : Semiring R] → QuadraticAlgebra R a b →ₗ[R] R
QuadraticAlgebra.im as a LinearMap
theorem QuadraticAlgebra.imₗ_apply E0 #
∀ {R : Type u_1} (a b : R) [inst : Semiring R] (self : QuadraticAlgebra R a b),
(QuadraticAlgebra.imₗ a b) self = self.im
def QuadraticAlgebra.linearEquivTuple E1 #
{R : Type u_1} → (a b : R) → [inst : Semiring R] → QuadraticAlgebra R a b ≃ₗ[R] Fin 2 → R
QuadraticAlgebra.equivTuple as a LinearEquiv
theorem QuadraticAlgebra.linearEquivTuple_apply E0 #
∀ {R : Type u_1} (a b : R) [inst : Semiring R] (z : QuadraticAlgebra R a b),
(QuadraticAlgebra.linearEquivTuple a b) z = ![z.re, z.im]
theorem QuadraticAlgebra.linearEquivTuple_symm_apply E0 #
∀ {R : Type u_1} (a b : R) [inst : Semiring R] (x : Fin 2 → R),
(QuadraticAlgebra.linearEquivTuple a b).symm x = { re := x 0, im := x 1 }
def QuadraticAlgebra.basis E1 #
{R : Type u_1} → (a b : R) → [inst : Semiring R] → Module.Basis (Fin 2) R (QuadraticAlgebra R a b)
QuadraticAlgebra R a b has a basis over R given by 1 and i
theorem QuadraticAlgebra.basis_repr_apply E0 #
∀ {R : Type u_1} (a b : R) [inst : Semiring R] (x : QuadraticAlgebra R a b),
⇑((QuadraticAlgebra.basis a b).repr x) = ![x.re, x.im]
theorem QuadraticAlgebra.basis_apply_zero E0 #
∀ {R : Type u_1} (a b : R) [inst : Semiring R], (QuadraticAlgebra.basis a b) 0 = 1
instance QuadraticAlgebra.instFinite E0 #
∀ {R : Type u_1} (a b : R) [inst : Semiring R], Module.Finite R (QuadraticAlgebra R a b)
instance QuadraticAlgebra.instFree E0 #
∀ {R : Type u_1} (a b : R) [inst : Semiring R], Module.Free R (QuadraticAlgebra R a b)
theorem QuadraticAlgebra.rank_eq_two E1 #
∀ {R : Type u_1} (a b : R) [inst : Semiring R] [StrongRankCondition R], Module.rank R (QuadraticAlgebra R a b) = 2
theorem QuadraticAlgebra.finrank_eq_two E1 #
∀ {R : Type u_1} (a b : R) [inst : Semiring R] [StrongRankCondition R], Module.finrank R (QuadraticAlgebra R a b) = 2
instance QuadraticAlgebra.instCommSemiring E0 #
{R : Type u_1} → {a b : R} → [CommSemiring R] → CommSemiring (QuadraticAlgebra R a b)
instance QuadraticAlgebra.instAlgebra E0 #
{R : Type u_1} →
{S : Type u_2} →
{a b : R} → [inst : CommSemiring R] → [inst_1 : CommSemiring S] → [Algebra S R] → Algebra S (QuadraticAlgebra R a b)
theorem QuadraticAlgebra.algebraMap_eq E0 #
∀ {R : Type u_1} {a b : R} [inst : CommSemiring R] (r : R),
(algebraMap R (QuadraticAlgebra R a b)) r = QuadraticAlgebra.C r
theorem QuadraticAlgebra.algebraMap_injective E1 #
∀ {R : Type u_1} {a b : R} [inst : CommSemiring R], Function.Injective ⇑(algebraMap R (QuadraticAlgebra R a b))
theorem QuadraticAlgebra.algebraMap_inj E0 #
∀ {R : Type u_1} {a b : R} [inst : CommSemiring R] {x y : R},
(algebraMap R (QuadraticAlgebra R a b)) x = (algebraMap R (QuadraticAlgebra R a b)) y ↔ x = y
theorem QuadraticAlgebra.algebraMap_re E0 #
∀ {R : Type u_1} {a b : R} (r : R) [inst : CommSemiring R], ((algebraMap R (QuadraticAlgebra R a b)) r).re = r
theorem QuadraticAlgebra.algebraMap_im E0 #
∀ {R : Type u_1} {a b : R} (r : R) [inst : CommSemiring R], ((algebraMap R (QuadraticAlgebra R a b)) r).im = 0
instance QuadraticAlgebra.instIsTorsionFree E0 #
∀ {R : Type u_1} {S : Type u_2} {a b : R} [inst : CommSemiring R] [inst_1 : Semiring S] [inst_2 : Module S R]
[Module.IsTorsionFree S R], Module.IsTorsionFree S (QuadraticAlgebra R a b)
theorem QuadraticAlgebra.C_pow E0 #
∀ {R : Type u_1} {a b : R} [inst : CommSemiring R] (n : ℕ) (r : R),
QuadraticAlgebra.C (r ^ n) = QuadraticAlgebra.C r ^ n
theorem QuadraticAlgebra.mul_C_eq_smul E1 #
∀ {R : Type u_1} {a b : R} [inst : CommSemiring R] (r : R) (x : QuadraticAlgebra R a b),
x * QuadraticAlgebra.C r = r • x
theorem QuadraticAlgebra.C_eq_algebraMap E0 #
∀ {R : Type u_1} {a b : R} [inst : CommSemiring R], QuadraticAlgebra.C = ⇑(algebraMap R (QuadraticAlgebra R a b))
theorem QuadraticAlgebra.smul_C E1 #
∀ {R : Type u_1} {a b : R} [inst : CommSemiring R] (r1 r2 : R),
r1 • QuadraticAlgebra.C r2 = QuadraticAlgebra.C (r1 * r2)
theorem QuadraticAlgebra.algebraMap_dvd_iff E0 #
∀ {R : Type u_1} {a b : R} [inst : CommSemiring R] {r : R} {z : QuadraticAlgebra R a b},
(algebraMap R (QuadraticAlgebra R a b)) r ∣ z ↔ r ∣ z.re ∧ r ∣ z.im
theorem QuadraticAlgebra.algebraMap_dvd_iff_dvd E0 #
∀ {R : Type u_1} {a b : R} [inst : CommSemiring R] {z w : R},
(algebraMap R (QuadraticAlgebra R a b)) z ∣ (algebraMap R (QuadraticAlgebra R a b)) w ↔ z ∣ w
instance QuadraticAlgebra.instCommRing E0 #
{R : Type u_1} → {a b : R} → [CommRing R] → CommRing (QuadraticAlgebra R a b)
instance QuadraticAlgebra.instCharZero E0 #
∀ {R : Type u_1} {a b : R} [inst : CommRing R] [CharZero R], CharZero (QuadraticAlgebra R a b)
theorem QuadraticAlgebra.zsmul_val E0 #
∀ {R : Type u_1} {a b : R} [inst : CommRing R] (n : ℤ) (x y : R),
↑n * { re := x, im := y } = { re := ↑n * x, im := ↑n * y }