Mathlib.Algebra.Group.DivInvMonoid
149 declarations. Mathlib docs · Source
Division monoids
This file defines additive and multiplicative structures with division, inversion, subtraction,
or negation, up to DivisionCommMonoid and SubtractionCommMonoid. Group structures are defined in
Mathlib.Algebra.Group.Defs.
Design note on DivInvMonoid/SubNegMonoid and DivisionMonoid/SubtractionMonoid
Those two pairs of made-up classes fulfill slightly different roles.
DivInvMonoid/SubNegMonoid provides the minimum amount of information to define the
ℤ action (zpow or zsmul). Further, it provides a div field, matching the forgetful
inheritance pattern. This is useful to shorten extension clauses of stronger structures (Group,
GroupWithZero, DivisionRing, Field) and for a few structures with a rather weak
pseudo-inverse (Matrix).
DivisionMonoid/SubtractionMonoid is targeted at structures with stronger pseudo-inverses. It
is an ad hoc collection of axioms that are mainly respected by three things:
- Groups
- Groups with zero
- The pointwise monoids
Set α,Finset α,Filter α
It acts as a middle ground for structures with an inversion operator that plays well with
multiplication, except for the fact that it might not be a true inverse (a / a ≠ 1 in general).
The axioms are pretty arbitrary (many other combinations are equivalent to it), but they are
independent:
- Without
DivisionMonoid.div_eq_mul_inv, you can define/arbitrarily. - Without
DivisionMonoid.inv_inv, you can considerWithTop Unitwitha⁻¹ = ⊤for alla. - Without
DivisionMonoid.mul_inv_rev, you can considerWithTop αwitha⁻¹ = afor allawhereαnoncommutative. - Without
DivisionMonoid.inv_eq_of_mul, you can consider anyCommMonoidwitha⁻¹ = afor alla.
As a consequence, a few natural structures do not fit in this framework. For example, ENNReal
respects everything except for the fact that (0 * ∞)⁻¹ = 0⁻¹ = ∞ while ∞⁻¹ * 0⁻¹ = 0 * ∞ = 0.
We initialize the projections for the group structures for @[simps] here.
The lemmas generated for the npow/zpow projections will not apply to x ^ y, since the
argument order of these projections does not match the argument order of ^. The nsmul/zsmul
lemmas are correct.
def SubNegZeroMonoid.ctorIdx E1 #
{G : Type u_2} → SubNegZeroMonoid G → ℕ
def DivisionMonoid.ctorIdx E1 #
{G : Type u_2} → DivisionMonoid G → ℕ
def SubNegMonoid.ctorIdx E1 #
{G : Type u_2} → SubNegMonoid G → ℕ
theorem zpowRec.match_1.congr_eq_1 E1 #
∀ {G : Type u_2} (motive : ℤ → G → Sort u_1) (x : ℤ) (x_1 : G) (h_1 : (n : ℕ) → (a : G) → motive (Int.ofNat n) a)
(h_2 : (n : ℕ) → (a : G) → motive (Int.negSucc n) a) (n : ℕ) (a : G),
x = Int.ofNat n →
x_1 = a →
(match x, x_1 with
| Int.ofNat n, a => h_1 n a
| Int.negSucc n, a => h_2 n a) ≍
h_1 n a
def ZPow.ctorIdx E1 #
{G : Type u_2} → ZPow G → ℕ
def DivInvMonoid.ctorIdx E1 #
{G : Type u_2} → DivInvMonoid G → ℕ
def InvolutiveInv.ctorIdx E1 #
{G : Type u_2} → InvolutiveInv G → ℕ
def SubtractionMonoid.ctorIdx E1 #
{G : Type u_2} → SubtractionMonoid G → ℕ
def ZSMul.ctorIdx E1 #
{G : Type u_2} → ZSMul G → ℕ
def SubtractionCommMonoid.ctorIdx E1 #
{G : Type u_2} → SubtractionCommMonoid G → ℕ
def DivisionCommMonoid.ctorIdx E1 #
{G : Type u_2} → DivisionCommMonoid G → ℕ
def DivInvOneMonoid.ctorIdx E1 #
{G : Type u_2} → DivInvOneMonoid G → ℕ
def InvOneClass.ctorIdx E1 #
{G : Type u_2} → InvOneClass G → ℕ
def NegZeroClass.ctorIdx E1 #
{G : Type u_2} → NegZeroClass G → ℕ
def InvolutiveNeg.ctorIdx E1 #
{A : Type u_2} → InvolutiveNeg A → ℕ
theorem zsmulRec.match_1.congr_eq_2 E1 #
∀ {G : Type u_2} (motive : ℤ → G → Sort u_1) (x : ℤ) (x_1 : G) (h_1 : (n : ℕ) → (a : G) → motive (Int.ofNat n) a)
(h_2 : (n : ℕ) → (a : G) → motive (Int.negSucc n) a) (n : ℕ) (a : G),
x = Int.negSucc n →
x_1 = a →
(match x, x_1 with
| Int.ofNat n, a => h_1 n a
| Int.negSucc n, a => h_2 n a) ≍
h_2 n a
theorem zsmulRec.match_1.congr_eq_1 E1 #
∀ {G : Type u_2} (motive : ℤ → G → Sort u_1) (x : ℤ) (x_1 : G) (h_1 : (n : ℕ) → (a : G) → motive (Int.ofNat n) a)
(h_2 : (n : ℕ) → (a : G) → motive (Int.negSucc n) a) (n : ℕ) (a : G),
x = Int.ofNat n →
x_1 = a →
(match x, x_1 with
| Int.ofNat n, a => h_1 n a
| Int.negSucc n, a => h_2 n a) ≍
h_1 n a
theorem zpowRec.match_1.congr_eq_2 E1 #
∀ {G : Type u_2} (motive : ℤ → G → Sort u_1) (x : ℤ) (x_1 : G) (h_1 : (n : ℕ) → (a : G) → motive (Int.ofNat n) a)
(h_2 : (n : ℕ) → (a : G) → motive (Int.negSucc n) a) (n : ℕ) (a : G),
x = Int.negSucc n →
x_1 = a →
(match x, x_1 with
| Int.ofNat n, a => h_1 n a
| Int.negSucc n, a => h_2 n a) ≍
h_2 n a
def zpowRec E1 #
{G : Type u_1} → [inst : One G] → [inst_1 : Mul G] → [Inv G] → optParam (ℕ → G → G) npowRec → ℤ → G → G
The fundamental power operation in a group. zpowRec n a = a*a*...*a n times, for integer n.
Use instead a ^ n, which has better definitional behavior.
def zsmulRec E1 #
{G : Type u_1} → [inst : Zero G] → [inst_1 : Add G] → [Neg G] → optParam (ℕ → G → G) nsmulRec → ℤ → G → G
The fundamental scalar multiplication in an additive group. zpowRec n a = a+a+...+a n
times, for integer n. Use instead n • a, which has better definitional behavior.
class InvolutiveNeg E1 #
Type u_2 → Type u_2
Auxiliary typeclass for types with an involutive Neg.
ctor InvolutiveNeg.mk E0 #
{A : Type u_2} → [toNeg : Neg A] → (∀ (x : A), - -x = x) → InvolutiveNeg A
instance InvolutiveNeg.toNeg E0 #
{A : Type u_2} → [self : InvolutiveNeg A] → Neg A
theorem InvolutiveNeg.neg_neg E1 #
∀ {A : Type u_2} [self : InvolutiveNeg A] (x : A), - -x = x
class InvolutiveInv E1 #
Type u_2 → Type u_2
Auxiliary typeclass for types with an involutive Inv.
ctor InvolutiveInv.mk E0 #
{G : Type u_2} → [toInv : Inv G] → (∀ (x : G), x⁻¹⁻¹ = x) → InvolutiveInv G
instance InvolutiveInv.toInv E0 #
{G : Type u_2} → [self : InvolutiveInv G] → Inv G
theorem InvolutiveInv.inv_inv E1 #
∀ {G : Type u_2} [self : InvolutiveInv G] (x : G), x⁻¹⁻¹ = x
theorem neg_neg E0 #
∀ {G : Type u_1} [inst : InvolutiveNeg G] (a : G), - -a = a
theorem inv_inv E0 #
∀ {G : Type u_1} [inst : InvolutiveInv G] (a : G), a⁻¹⁻¹ = a
def DivInvMonoid.div' E1 #
{G : Type u_2} → [Monoid G] → [Inv G] → G → G → G
In a class equipped with instances of both Monoid and Inv, this definition records what the
default definition for Div would be: a * b⁻¹. This is later provided as the default value for
the Div instance in DivInvMonoid.
We keep it as a separate definition rather than inlining it in DivInvMonoid so that the Div
field of individual DivInvMonoids constructed using that default value will not be unfolded at
.instance transparency.
def SubNegMonoid.sub' E1 #
{G : Type u_2} → [AddMonoid G] → [Neg G] → G → G → G
In a class equipped with instances of both AddMonoid and Neg, this definition records what
the default definition for Sub would be: a + -b. This is later provided as the default value
for the Sub instance in SubNegMonoid.
We keep it as a separate definition rather than inlining it in SubNegMonoid so that the Sub
field of individual SubNegMonoids constructed using that default value will not be unfolded at
.instance transparency.
class ZSMul E1 #
Type u_2 → Type u_2
ZSMul is an implementation detail of SubNegMonoid. It is needed because it is
impossible to extend SMUl ℕ M and SMul ℤ M at the same time.
ctor ZSMul.mk E0 #
{G : Type u_2} → (ℤ → G → G) → ZSMul G
abbrev ZSMul.zsmul E1 #
{G : Type u_2} → [self : ZSMul G] → ℤ → G → G
Multiplication by an integer.
Set this to zsmulRec unless Module diamonds are possible.
class ZPow E1 #
Type u_2 → Type u_2
ZPow is an implementation detail of DivInvMonoid. It is needed because it is
impossible to extend Pow M ℕ and Pow M ℤ at the same time.
ctor ZPow.mk E0 #
{G : Type u_2} → (ℤ → G → G) → ZPow G
abbrev ZPow.zpow E1 #
{G : Type u_2} → [self : ZPow G] → ℤ → G → G
The power operation: a ^ n = a * ··· * a; a ^ (-n) = a⁻¹ * ··· a⁻¹ (n times)
instance ZSMul.toSMul E0 #
{M : Type u_2} → [ZSMul M] → SMul ℤ M
instance ZPow.toPow E0 #
{M : Type u_2} → [ZPow M] → Pow M ℤ
instance ZPow.ofPow E0 #
{M : Type u_2} → [Pow M ℤ] → ZPow M
instance ZSMul.ofSMul E0 #
{M : Type u_2} → [SMul ℤ M] → ZSMul M
class DivInvMonoid E1 #
Type u_2 → Type u_2
A DivInvMonoid is a Monoid with operations / and ⁻¹ satisfying
div_eq_mul_inv : ∀ a b, a / b = a * b⁻¹.
This deduplicates the name div_eq_mul_inv.
The default for div is such that a / b = a * b⁻¹ holds by definition.
Adding div as a field rather than defining a / b := a * b⁻¹ allows us to
avoid certain classes of unification failures, for example:
Let Foo X be a type with a ∀ X, Div (Foo X) instance but no
∀ X, Inv (Foo X), e.g. when Foo X is a EuclideanDomain. Suppose we
also have an instance ∀ X [Cromulent X], GroupWithZero (Foo X). Then the
(/) coming from GroupWithZero.div cannot be definitionally equal to
the (/) coming from Foo.Div.
In the same way, adding a zpow field makes it possible to avoid definitional failures
in diamonds. See the definition of Monoid and Note [forgetful inheritance] for more
explanations on this.
instance DivInvMonoid.toInv E0 #
{G : Type u_2} → [self : DivInvMonoid G] → Inv G
ctor DivInvMonoid.mk E0 #
{G : Type u_2} →
[toMonoid : Monoid G] →
[toInv : Inv G] →
[toDiv : Div G] →
[toZPow : ZPow G] →
autoParam (∀ (a b : G), a / b = a * b⁻¹) DivInvMonoid.div_eq_mul_inv._autoParam →
autoParam (∀ (a : G), a ^ 0 = 1) DivInvMonoid.zpow_zero'._autoParam →
autoParam (∀ (n : ℕ) (a : G), a ^ ↑n.succ = a ^ ↑n * a) DivInvMonoid.zpow_succ'._autoParam →
autoParam (∀ (n : ℕ) (a : G), a ^ Int.negSucc n = (a ^ ↑n.succ)⁻¹) DivInvMonoid.zpow_neg'._autoParam →
DivInvMonoid G
instance DivInvMonoid.toZPow E0 #
{G : Type u_2} → [self : DivInvMonoid G] → ZPow G
instance DivInvMonoid.toMonoid E0 #
{G : Type u_2} → [self : DivInvMonoid G] → Monoid G
instance DivInvMonoid.toDiv E0 #
{G : Type u_2} → [self : DivInvMonoid G] → Div G
theorem DivInvMonoid.div_eq_mul_inv E2 #
∀ {G : Type u_2} [self : DivInvMonoid G] (a b : G), a / b = a * b⁻¹
a / b := a * b⁻¹
theorem DivInvMonoid.zpow_zero' E2 #
∀ {G : Type u_2} [self : DivInvMonoid G] (a : G), a ^ 0 = 1
a ^ 0 = 1
theorem DivInvMonoid.zpow_succ' E2 #
∀ {G : Type u_2} [self : DivInvMonoid G] (n : ℕ) (a : G), a ^ ↑n.succ = a ^ ↑n * a
a ^ (n + 1) = a ^ n * a
theorem DivInvMonoid.zpow_neg' E2 #
∀ {G : Type u_2} [self : DivInvMonoid G] (n : ℕ) (a : G), a ^ Int.negSucc n = (a ^ ↑n.succ)⁻¹
a ^ -(n + 1) = (a ^ (n + 1))⁻¹
class SubNegMonoid E1 #
Type u_2 → Type u_2
A SubNegMonoid is an AddMonoid with unary - and binary - operations
satisfying sub_eq_add_neg : ∀ a b, a - b = a + -b.
The default for sub is such that a - b = a + -b holds by definition.
Adding sub as a field rather than defining a - b := a + -b allows us to
avoid certain classes of unification failures, for example:
Let foo X be a type with a ∀ X, Sub (Foo X) instance but no
∀ X, Neg (Foo X). Suppose we also have an instance
∀ X [Cromulent X], AddGroup (Foo X). Then the (-) coming from
AddGroup.sub cannot be definitionally equal to the (-) coming from
Foo.Sub.
In the same way, adding a zsmul field makes it possible to avoid definitional failures
in diamonds. See the definition of AddMonoid and Note [forgetful inheritance] for more
explanations on this.
ctor SubNegMonoid.mk E0 #
{G : Type u_2} →
[toAddMonoid : AddMonoid G] →
[toNeg : Neg G] →
[toSub : Sub G] →
[toZSMul : ZSMul G] →
autoParam (∀ (a b : G), a - b = a + -b) SubNegMonoid.sub_eq_add_neg._autoParam →
autoParam (∀ (a : G), 0 • a = 0) SubNegMonoid.zsmul_zero'._autoParam →
autoParam (∀ (n : ℕ) (a : G), ↑n.succ • a = ↑n • a + a) SubNegMonoid.zsmul_succ'._autoParam →
autoParam (∀ (n : ℕ) (a : G), Int.negSucc n • a = -(↑n.succ • a)) SubNegMonoid.zsmul_neg'._autoParam →
SubNegMonoid G
instance SubNegMonoid.toSub E0 #
{G : Type u_2} → [self : SubNegMonoid G] → Sub G
instance SubNegMonoid.toNeg E0 #
{G : Type u_2} → [self : SubNegMonoid G] → Neg G
instance SubNegMonoid.toAddMonoid E0 #
{G : Type u_2} → [self : SubNegMonoid G] → AddMonoid G
instance SubNegMonoid.toZSMul E0 #
{G : Type u_2} → [self : SubNegMonoid G] → ZSMul G
theorem SubNegMonoid.sub_eq_add_neg E1 #
∀ {G : Type u_2} [self : SubNegMonoid G] (a b : G), a - b = a + -b
theorem SubNegMonoid.zsmul_zero' E1 #
∀ {G : Type u_2} [self : SubNegMonoid G] (a : G), 0 • a = 0
theorem SubNegMonoid.zsmul_succ' E1 #
∀ {G : Type u_2} [self : SubNegMonoid G] (n : ℕ) (a : G), ↑n.succ • a = ↑n • a + a
theorem SubNegMonoid.zsmul_neg' E1 #
∀ {G : Type u_2} [self : SubNegMonoid G] (n : ℕ) (a : G), Int.negSucc n • a = -(↑n.succ • a)
class IsAddCyclic E1 #
(G : Type u_2) → [SMul ℤ G] → Prop
A group is called cyclic if it is generated by a single element.
ctor IsAddCyclic.mk E0 #
∀ {G : Type u_2} [inst : SMul ℤ G], (∃ g, Function.Surjective fun x ↦ x • g) → IsAddCyclic G
theorem IsAddCyclic.exists_zsmul_surjective E1 #
∀ {G : Type u_2} {inst : SMul ℤ G} [self : IsAddCyclic G], ∃ g, Function.Surjective fun x ↦ x • g
class IsCyclic E3 #
(G : Type u_2) → [Pow G ℤ] → Prop
A group is called cyclic if it is generated by a single element.
ctor IsCyclic.mk E0 #
∀ {G : Type u_2} [inst : Pow G ℤ], (∃ g, Function.Surjective fun x ↦ g ^ x) → IsCyclic G
theorem IsCyclic.exists_zpow_surjective E1 #
∀ {G : Type u_2} {inst : Pow G ℤ} [self : IsCyclic G], ∃ g, Function.Surjective fun x ↦ g ^ x
theorem exists_zsmul_surjective E1 #
∀ (G : Type u_2) [inst : SMul ℤ G] [IsAddCyclic G], ∃ g, Function.Surjective fun x ↦ x • g
theorem exists_zpow_surjective E1 #
∀ (G : Type u_2) [inst : Pow G ℤ] [IsCyclic G], ∃ g, Function.Surjective fun x ↦ g ^ x
theorem zpow_eq_pow E0 #
∀ {G : Type u_1} [inst : DivInvMonoid G] (n : ℤ) (x : G), ZPow.zpow n x = x ^ n
theorem zsmul_eq_smul E0 #
∀ {G : Type u_1} [inst : SubNegMonoid G] (n : ℤ) (x : G), ZSMul.zsmul n x = n • x
theorem zpow_zero E1 #
∀ {G : Type u_1} [inst : DivInvMonoid G] (a : G), a ^ 0 = 1
theorem zero_zsmul E0 #
∀ {G : Type u_1} [inst : SubNegMonoid G] (a : G), 0 • a = 0
theorem zpow_natCast E0 #
∀ {G : Type u_1} [inst : DivInvMonoid G] (a : G) (n : ℕ), a ^ ↑n = a ^ n
theorem natCast_zsmul E0 #
∀ {G : Type u_1} [inst : SubNegMonoid G] (a : G) (n : ℕ), ↑n • a = n • a
theorem zpow_ofNat E0 #
∀ {G : Type u_1} [inst : DivInvMonoid G] (a : G) (n : ℕ), a ^ OfNat.ofNat n = a ^ OfNat.ofNat n
theorem ofNat_zsmul E1 #
∀ {G : Type u_1} [inst : SubNegMonoid G] (a : G) (n : ℕ), OfNat.ofNat n • a = OfNat.ofNat n • a
theorem zpow_negSucc E0 #
∀ {G : Type u_1} [inst : DivInvMonoid G] (a : G) (n : ℕ), a ^ Int.negSucc n = (a ^ (n + 1))⁻¹
theorem negSucc_zsmul E0 #
∀ {G : Type u_1} [inst : SubNegMonoid G] (a : G) (n : ℕ), Int.negSucc n • a = -((n + 1) • a)
theorem div_eq_mul_inv E1 #
∀ {G : Type u_1} [inst : DivInvMonoid G] (a b : G), a / b = a * b⁻¹
Dividing by an element is the same as multiplying by its inverse.
This is a duplicate of DivInvMonoid.div_eq_mul_inv ensuring that the types unfold better.
theorem sub_eq_add_neg E1 #
∀ {G : Type u_1} [inst : SubNegMonoid G] (a b : G), a - b = a + -b
Subtracting an element is the same as adding by its negative.
This is a duplicate of SubNegMonoid.sub_eq_add_neg ensuring that the types unfold better.
theorem division_def E0 #
∀ {G : Type u_1} [inst : DivInvMonoid G] (a b : G), a / b = a * b⁻¹
Alias of div_eq_mul_inv.
Dividing by an element is the same as multiplying by its inverse.
This is a duplicate of DivInvMonoid.div_eq_mul_inv ensuring that the types unfold better.
theorem neg_eq_zero_sub E1 #
∀ {G : Type u_1} [inst : SubNegMonoid G] (x : G), -x = 0 - x
theorem inv_eq_one_div E1 #
∀ {G : Type u_1} [inst : DivInvMonoid G] (x : G), x⁻¹ = 1 / x
theorem add_sub_assoc E1 #
∀ {G : Type u_1} [inst : SubNegMonoid G] (a b c : G), a + b - c = a + (b - c)
theorem mul_div_assoc E1 #
∀ {G : Type u_1} [inst : DivInvMonoid G] (a b c : G), a * b / c = a * (b / c)
theorem one_div E0 #
∀ {G : Type u_1} [inst : DivInvMonoid G] (a : G), 1 / a = a⁻¹
theorem zero_sub E0 #
∀ {G : Type u_1} [inst : SubNegMonoid G] (a : G), 0 - a = -a
theorem zpow_one E1 #
∀ {G : Type u_1} [inst : DivInvMonoid G] (a : G), a ^ 1 = a
theorem one_zsmul E0 #
∀ {G : Type u_1} [inst : SubNegMonoid G] (a : G), 1 • a = a
theorem zpow_two E1 #
∀ {G : Type u_1} [inst : DivInvMonoid G] (a : G), a ^ 2 = a * a
theorem two_zsmul E1 #
∀ {G : Type u_1} [inst : SubNegMonoid G] (a : G), 2 • a = a + a
theorem zpow_neg_one E1 #
∀ {G : Type u_1} [inst : DivInvMonoid G] (x : G), x ^ (-1) = x⁻¹
theorem neg_one_zsmul E1 #
∀ {G : Type u_1} [inst : SubNegMonoid G] (x : G), -1 • x = -x
theorem zsmul_neg_coe_of_pos E1 #
∀ {G : Type u_1} [inst : SubNegMonoid G] (a : G) {n : ℕ}, 0 < n → -↑n • a = -(n • a)
theorem zpow_neg_coe_of_pos E1 #
∀ {G : Type u_1} [inst : DivInvMonoid G] (a : G) {n : ℕ}, 0 < n → a ^ (-↑n) = (a ^ n)⁻¹
class NegZeroClass E1 #
Type u_2 → Type u_2
Typeclass for expressing that -0 = 0.
instance NegZeroClass.toNeg E0 #
{G : Type u_2} → [self : NegZeroClass G] → Neg G
ctor NegZeroClass.mk E0 #
{G : Type u_2} → [toZero : Zero G] → [toNeg : Neg G] → -0 = 0 → NegZeroClass G
instance NegZeroClass.toZero E0 #
{G : Type u_2} → [self : NegZeroClass G] → Zero G
theorem NegZeroClass.neg_zero E1 #
∀ {G : Type u_2} [self : NegZeroClass G], -0 = 0
class SubNegZeroMonoid E1 #
Type u_2 → Type u_2
A SubNegMonoid where -0 = 0.
theorem SubNegZeroMonoid.neg_zero E1 #
∀ {G : Type u_2} [self : SubNegZeroMonoid G], -0 = 0
instance SubNegZeroMonoid.toSubNegMonoid E0 #
{G : Type u_2} → [self : SubNegZeroMonoid G] → SubNegMonoid G
instance SubNegZeroMonoid.toNegZeroClass E0 #
{G : Type u_2} → [self : SubNegZeroMonoid G] → NegZeroClass G
ctor SubNegZeroMonoid.mk E0 #
{G : Type u_2} → [toSubNegMonoid : SubNegMonoid G] → -0 = 0 → SubNegZeroMonoid G
class InvOneClass E1 #
Type u_2 → Type u_2
Typeclass for expressing that 1⁻¹ = 1.
ctor InvOneClass.mk E0 #
{G : Type u_2} → [toOne : One G] → [toInv : Inv G] → 1⁻¹ = 1 → InvOneClass G
instance InvOneClass.toOne E0 #
{G : Type u_2} → [self : InvOneClass G] → One G
instance InvOneClass.toInv E0 #
{G : Type u_2} → [self : InvOneClass G] → Inv G
theorem InvOneClass.inv_one E1 #
∀ {G : Type u_2} [self : InvOneClass G], 1⁻¹ = 1
class DivInvOneMonoid E3 #
Type u_2 → Type u_2
A DivInvMonoid where 1⁻¹ = 1.
instance DivInvOneMonoid.toInvOneClass E0 #
{G : Type u_2} → [self : DivInvOneMonoid G] → InvOneClass G
instance DivInvOneMonoid.toDivInvMonoid E0 #
{G : Type u_2} → [self : DivInvOneMonoid G] → DivInvMonoid G
ctor DivInvOneMonoid.mk E0 #
{G : Type u_2} → [toDivInvMonoid : DivInvMonoid G] → 1⁻¹ = 1 → DivInvOneMonoid G
theorem DivInvOneMonoid.inv_one E1 #
∀ {G : Type u_2} [self : DivInvOneMonoid G], 1⁻¹ = 1
theorem inv_one E0 #
∀ {G : Type u_1} [inst : InvOneClass G], 1⁻¹ = 1
theorem neg_zero E0 #
∀ {G : Type u_1} [inst : NegZeroClass G], -0 = 0
class SubtractionMonoid E1 #
Type u_2 → Type u_2
A SubtractionMonoid is a SubNegMonoid with involutive negation and such that
-(a + b) = -b + -a and a + b = 0 → -a = b.
instance SubtractionMonoid.toInvolutiveNeg E0 #
{G : Type u_2} → [self : SubtractionMonoid G] → InvolutiveNeg G
instance SubtractionMonoid.toSubNegMonoid E0 #
{G : Type u_2} → [self : SubtractionMonoid G] → SubNegMonoid G
theorem SubtractionMonoid.neg_neg E1 #
∀ {G : Type u_2} [self : SubtractionMonoid G] (x : G), - -x = x
ctor SubtractionMonoid.mk E0 #
{G : Type u_2} →
[toSubNegMonoid : SubNegMonoid G] →
(∀ (x : G), - -x = x) → (∀ (a b : G), -(a + b) = -b + -a) → (∀ (a b : G), a + b = 0 → -a = b) → SubtractionMonoid G
theorem SubtractionMonoid.neg_add_rev E1 #
∀ {G : Type u_2} [self : SubtractionMonoid G] (a b : G), -(a + b) = -b + -a
theorem SubtractionMonoid.neg_eq_of_add E1 #
∀ {G : Type u_2} [self : SubtractionMonoid G] (a b : G), a + b = 0 → -a = b
Despite the asymmetry of neg_eq_of_add, the symmetric version is true thanks to the
involutivity of negation.
class DivisionMonoid E1 #
Type u_2 → Type u_2
A DivisionMonoid is a DivInvMonoid with involutive inversion and such that
(a * b)⁻¹ = b⁻¹ * a⁻¹ and a * b = 1 → a⁻¹ = b.
This is the immediate common ancestor of Group and GroupWithZero.
theorem DivisionMonoid.inv_inv E1 #
∀ {G : Type u_2} [self : DivisionMonoid G] (x : G), x⁻¹⁻¹ = x
instance DivisionMonoid.toInvolutiveInv E0 #
{G : Type u_2} → [self : DivisionMonoid G] → InvolutiveInv G
instance DivisionMonoid.toDivInvMonoid E0 #
{G : Type u_2} → [self : DivisionMonoid G] → DivInvMonoid G
ctor DivisionMonoid.mk E0 #
{G : Type u_2} →
[toDivInvMonoid : DivInvMonoid G] →
(∀ (x : G), x⁻¹⁻¹ = x) →
(∀ (a b : G), (a * b)⁻¹ = b⁻¹ * a⁻¹) → (∀ (a b : G), a * b = 1 → a⁻¹ = b) → DivisionMonoid G
theorem DivisionMonoid.mul_inv_rev E1 #
∀ {G : Type u_2} [self : DivisionMonoid G] (a b : G), (a * b)⁻¹ = b⁻¹ * a⁻¹
theorem DivisionMonoid.inv_eq_of_mul E1 #
∀ {G : Type u_2} [self : DivisionMonoid G] (a b : G), a * b = 1 → a⁻¹ = b
Despite the asymmetry of inv_eq_of_mul, the symmetric version is true thanks to the
involutivity of inversion.
theorem neg_add_rev E0 #
∀ {G : Type u_1} [inst : SubtractionMonoid G] (a b : G), -(a + b) = -b + -a
theorem mul_inv_rev E0 #
∀ {G : Type u_1} [inst : DivisionMonoid G] (a b : G), (a * b)⁻¹ = b⁻¹ * a⁻¹
theorem inv_eq_of_mul_eq_one_right E1 #
∀ {G : Type u_1} [inst : DivisionMonoid G] {a b : G}, a * b = 1 → a⁻¹ = b
theorem neg_eq_of_add_eq_zero_right E1 #
∀ {G : Type u_1} [inst : SubtractionMonoid G] {a b : G}, a + b = 0 → -a = b
theorem neg_eq_of_add_eq_zero_left E1 #
∀ {G : Type u_1} [inst : SubtractionMonoid G] {a b : G}, a + b = 0 → -b = a
theorem inv_eq_of_mul_eq_one_left E1 #
∀ {G : Type u_1} [inst : DivisionMonoid G] {a b : G}, a * b = 1 → b⁻¹ = a
class SubtractionCommMonoid E1 #
Type u_2 → Type u_2
Commutative SubtractionMonoid.
instance SubtractionCommMonoid.toSubtractionMonoid E0 #
{G : Type u_2} → [self : SubtractionCommMonoid G] → SubtractionMonoid G
instance SubtractionCommMonoid.toAddCommMonoid E0 #
{G : Type u_2} → [self : SubtractionCommMonoid G] → AddCommMonoid G
ctor SubtractionCommMonoid.mk E0 #
{G : Type u_2} → [toSubtractionMonoid : SubtractionMonoid G] → (∀ (a b : G), a + b = b + a) → SubtractionCommMonoid G
theorem SubtractionCommMonoid.add_comm E1 #
∀ {G : Type u_2} [self : SubtractionCommMonoid G] (a b : G), a + b = b + a
Addition is commutative in a commutative additive magma.
class DivisionCommMonoid E1 #
Type u_2 → Type u_2
Commutative DivisionMonoid.
This is the immediate common ancestor of CommGroup and CommGroupWithZero.
instance DivisionCommMonoid.toDivisionMonoid E0 #
{G : Type u_2} → [self : DivisionCommMonoid G] → DivisionMonoid G
instance DivisionCommMonoid.toCommMonoid E0 #
{G : Type u_2} → [self : DivisionCommMonoid G] → CommMonoid G
theorem DivisionCommMonoid.mul_comm E1 #
∀ {G : Type u_2} [self : DivisionCommMonoid G] (a b : G), a * b = b * a
Multiplication is commutative in a commutative multiplicative magma.
ctor DivisionCommMonoid.mk E0 #
{G : Type u_2} → [toDivisionMonoid : DivisionMonoid G] → (∀ (a b : G), a * b = b * a) → DivisionCommMonoid G