Mathlib.Algebra.Group.Semigroup
169 declarations. Mathlib docs · Source
def CommSemigroup.ctorIdx E1 #
{G : Type u_2} → CommSemigroup G → ℕ
def AddRightCancelSemigroup.ctorIdx E1 #
{G : Type u_2} → AddRightCancelSemigroup G → ℕ
def AddSemigroup.ctorIdx E1 #
{G : Type u_2} → AddSemigroup G → ℕ
def CommMagma.ctorIdx E1 #
{G : Type u_2} → CommMagma G → ℕ
def AddLeftCancelSemigroup.ctorIdx E1 #
{G : Type u_2} → AddLeftCancelSemigroup G → ℕ
def AddCommSemigroup.ctorIdx E1 #
{G : Type u_2} → AddCommSemigroup G → ℕ
def Semigroup.ctorIdx E1 #
{G : Type u_2} → Semigroup G → ℕ
def AddCommMagma.ctorIdx E1 #
{G : Type u_2} → AddCommMagma G → ℕ
def LeftCancelSemigroup.ctorIdx E1 #
{G : Type u_2} → LeftCancelSemigroup G → ℕ
def RightCancelSemigroup.ctorIdx E1 #
{G : Type u_2} → RightCancelSemigroup G → ℕ
class IsLeftCancelMul E1 #
(G : Type u_2) → [Mul G] → Prop
A mixin for left cancellative multiplication.
ctor IsLeftCancelMul.mk E0 #
∀ {G : Type u_2} [inst : Mul G], (∀ (a : G), IsLeftRegular a) → IsLeftCancelMul G
theorem isLeftCancelMul_iff E0 #
∀ (G : Type u_2) [inst : Mul G], IsLeftCancelMul G ↔ ∀ (a : G), IsLeftRegular a
theorem IsLeftCancelMul.mul_left_cancel E1 #
∀ {G : Type u_2} {inst : Mul G} [self : IsLeftCancelMul G] (a : G), IsLeftRegular a
Multiplication is left cancellative (i.e. left regular).
class IsRightCancelMul E1 #
(G : Type u_2) → [Mul G] → Prop
A mixin for right cancellative multiplication.
ctor IsRightCancelMul.mk E0 #
∀ {G : Type u_2} [inst : Mul G], (∀ (a : G), IsRightRegular a) → IsRightCancelMul G
theorem isRightCancelMul_iff E0 #
∀ (G : Type u_2) [inst : Mul G], IsRightCancelMul G ↔ ∀ (a : G), IsRightRegular a
theorem IsRightCancelMul.mul_right_cancel E1 #
∀ {G : Type u_2} {inst : Mul G} [self : IsRightCancelMul G] (a : G), IsRightRegular a
Multiplication is right cancellative (i.e. right regular).
class IsCancelMul E1 #
(G : Type u_2) → [Mul G] → Prop
A mixin for cancellative multiplication.
theorem isCancelMul_iff E0 #
∀ (G : Type u_2) [inst : Mul G], IsCancelMul G ↔ IsLeftCancelMul G ∧ IsRightCancelMul G
instance IsCancelMul.toIsRightCancelMul E0 #
∀ {G : Type u_2} {inst : Mul G} [self : IsCancelMul G], IsRightCancelMul G
ctor IsCancelMul.mk E0 #
∀ {G : Type u_2} [inst : Mul G] [toIsLeftCancelMul : IsLeftCancelMul G] [toIsRightCancelMul : IsRightCancelMul G],
IsCancelMul G
instance IsCancelMul.toIsLeftCancelMul E0 #
∀ {G : Type u_2} {inst : Mul G} [self : IsCancelMul G], IsLeftCancelMul G
class IsLeftCancelAdd E1 #
(G : Type u_2) → [Add G] → Prop
A mixin for left cancellative addition.
ctor IsLeftCancelAdd.mk E0 #
∀ {G : Type u_2} [inst : Add G], (∀ (a : G), IsAddLeftRegular a) → IsLeftCancelAdd G
theorem IsLeftCancelAdd.add_left_cancel E1 #
∀ {G : Type u_2} {inst : Add G} [self : IsLeftCancelAdd G] (a : G), IsAddLeftRegular a
Addition is left cancellative (i.e. left regular).
theorem isLeftCancelAdd_iff E0 #
∀ (G : Type u_2) [inst : Add G], IsLeftCancelAdd G ↔ ∀ (a : G), IsAddLeftRegular a
class IsRightCancelAdd E1 #
(G : Type u_2) → [Add G] → Prop
A mixin for right cancellative addition.
ctor IsRightCancelAdd.mk E0 #
∀ {G : Type u_2} [inst : Add G], (∀ (a : G), IsAddRightRegular a) → IsRightCancelAdd G
theorem IsRightCancelAdd.add_right_cancel E1 #
∀ {G : Type u_2} {inst : Add G} [self : IsRightCancelAdd G] (a : G), IsAddRightRegular a
Addition is right cancellative (i.e. right regular).
theorem isRightCancelAdd_iff E0 #
∀ (G : Type u_2) [inst : Add G], IsRightCancelAdd G ↔ ∀ (a : G), IsAddRightRegular a
class IsCancelAdd E1 #
(G : Type u_2) → [Add G] → Prop
A mixin for cancellative addition.
theorem isCancelAdd_iff E0 #
∀ (G : Type u_2) [inst : Add G], IsCancelAdd G ↔ IsLeftCancelAdd G ∧ IsRightCancelAdd G
instance IsCancelAdd.toIsLeftCancelAdd E0 #
∀ {G : Type u_2} {inst : Add G} [self : IsCancelAdd G], IsLeftCancelAdd G
instance IsCancelAdd.toIsRightCancelAdd E0 #
∀ {G : Type u_2} {inst : Add G} [self : IsCancelAdd G], IsRightCancelAdd G
ctor IsCancelAdd.mk E0 #
∀ {G : Type u_2} [inst : Add G] [toIsLeftCancelAdd : IsLeftCancelAdd G] [toIsRightCancelAdd : IsRightCancelAdd G],
IsCancelAdd G
theorem isCancelMul_iff_forall_isRegular E1 #
∀ {R : Type u_2} [inst : Mul R], IsCancelMul R ↔ ∀ (r : R), IsRegular r
theorem isCancelAdd_iff_forall_isAddRegular E1 #
∀ {R : Type u_2} [inst : Add R], IsCancelAdd R ↔ ∀ (r : R), IsAddRegular r
theorem IsLeftRegular.all E1 #
∀ {R : Type u_2} [inst : Mul R] [IsLeftCancelMul R] (g : R), IsLeftRegular g
If all multiplications cancel on the left then every element is left-regular.
theorem IsAddLeftRegular.all E1 #
∀ {R : Type u_2} [inst : Add R] [IsLeftCancelAdd R] (g : R), IsAddLeftRegular g
If all additions cancel on the left then every element is add-left-regular.
theorem IsRightRegular.all E1 #
∀ {R : Type u_2} [inst : Mul R] [IsRightCancelMul R] (g : R), IsRightRegular g
If all multiplications cancel on the right then every element is right-regular.
theorem IsAddRightRegular.all E1 #
∀ {R : Type u_2} [inst : Add R] [IsRightCancelAdd R] (g : R), IsAddRightRegular g
If all additions cancel on the right then every element is add-right-regular.
theorem IsRegular.all E1 #
∀ {R : Type u_2} [inst : Mul R] [IsCancelMul R] (g : R), IsRegular g
If all multiplications cancel then every element is regular.
theorem IsAddRegular.all E1 #
∀ {R : Type u_2} [inst : Add R] [IsCancelAdd R] (g : R), IsAddRegular g
If all additions cancel then every element is add-regular.
theorem mul_left_cancel E1 #
∀ {G : Type u_1} [inst : Mul G] [IsLeftCancelMul G] {a b c : G}, a * b = a * c → b = c
theorem add_left_cancel E1 #
∀ {G : Type u_1} [inst : Add G] [IsLeftCancelAdd G] {a b c : G}, a + b = a + c → b = c
theorem add_left_cancel_iff E0 #
∀ {G : Type u_1} [inst : Add G] [IsLeftCancelAdd G] {a b c : G}, a + b = a + c ↔ b = c
theorem mul_left_cancel_iff E0 #
∀ {G : Type u_1} [inst : Mul G] [IsLeftCancelMul G] {a b c : G}, a * b = a * c ↔ b = c
theorem add_right_injective E2 #
∀ {G : Type u_1} [inst : Add G] [IsLeftCancelAdd G] (a : G), Function.Injective fun x ↦ a + x
theorem mul_right_injective E2 #
∀ {G : Type u_1} [inst : Mul G] [IsLeftCancelMul G] (a : G), Function.Injective fun x ↦ a * x
theorem mul_right_inj E0 #
∀ {G : Type u_1} [inst : Mul G] [IsLeftCancelMul G] (a : G) {b c : G}, a * b = a * c ↔ b = c
theorem add_right_inj E0 #
∀ {G : Type u_1} [inst : Add G] [IsLeftCancelAdd G] (a : G) {b c : G}, a + b = a + c ↔ b = c
theorem add_ne_add_right E1 #
∀ {G : Type u_1} [inst : Add G] [IsLeftCancelAdd G] (a : G) {b c : G}, a + b ≠ a + c ↔ b ≠ c
theorem mul_ne_mul_right E1 #
∀ {G : Type u_1} [inst : Mul G] [IsLeftCancelMul G] (a : G) {b c : G}, a * b ≠ a * c ↔ b ≠ c
theorem add_right_cancel E1 #
∀ {G : Type u_1} [inst : Add G] [IsRightCancelAdd G] {a b c : G}, a + b = c + b → a = c
theorem mul_right_cancel E1 #
∀ {G : Type u_1} [inst : Mul G] [IsRightCancelMul G] {a b c : G}, a * b = c * b → a = c
theorem add_right_cancel_iff E0 #
∀ {G : Type u_1} [inst : Add G] [IsRightCancelAdd G] {a b c : G}, b + a = c + a ↔ b = c
theorem mul_right_cancel_iff E0 #
∀ {G : Type u_1} [inst : Mul G] [IsRightCancelMul G] {a b c : G}, b * a = c * a ↔ b = c
theorem mul_left_injective E2 #
∀ {G : Type u_1} [inst : Mul G] [IsRightCancelMul G] (a : G), Function.Injective fun x ↦ x * a
theorem add_left_injective E2 #
∀ {G : Type u_1} [inst : Add G] [IsRightCancelAdd G] (a : G), Function.Injective fun x ↦ x + a
theorem mul_left_inj E0 #
∀ {G : Type u_1} [inst : Mul G] [IsRightCancelMul G] (a : G) {b c : G}, b * a = c * a ↔ b = c
theorem add_left_inj E0 #
∀ {G : Type u_1} [inst : Add G] [IsRightCancelAdd G] (a : G) {b c : G}, b + a = c + a ↔ b = c
theorem add_ne_add_left E1 #
∀ {G : Type u_1} [inst : Add G] [IsRightCancelAdd G] (a : G) {b c : G}, b + a ≠ c + a ↔ b ≠ c
theorem mul_ne_mul_left E1 #
∀ {G : Type u_1} [inst : Mul G] [IsRightCancelMul G] (a : G) {b c : G}, b * a ≠ c * a ↔ b ≠ c
class Semigroup E1 #
Type u_2 → Type u_2
A semigroup is a type with an associative (*).
theorem Semigroup.ext_iff E0 #
∀ {G : Type u_2} {x y : Semigroup G}, x = y ↔ Mul.mul = Mul.mul
theorem Semigroup.ext E1 #
∀ {G : Type u_2} {x y : Semigroup G}, Mul.mul = Mul.mul → x = y
instance Semigroup.toMul E0 #
{G : Type u_2} → [self : Semigroup G] → Mul G
ctor Semigroup.mk E0 #
{G : Type u_2} → [toMul : Mul G] → (∀ (a b c : G), a * b * c = a * (b * c)) → Semigroup G
theorem Semigroup.mul_assoc E2 #
∀ {G : Type u_2} [self : Semigroup G] (a b c : G), a * b * c = a * (b * c)
Multiplication is associative
class AddSemigroup E1 #
Type u_2 → Type u_2
An additive semigroup is a type with an associative (+).
theorem AddSemigroup.ext_iff E0 #
∀ {G : Type u_2} {x y : AddSemigroup G}, x = y ↔ Add.add = Add.add
theorem AddSemigroup.ext E1 #
∀ {G : Type u_2} {x y : AddSemigroup G}, Add.add = Add.add → x = y
ctor AddSemigroup.mk E0 #
{G : Type u_2} → [toAdd : Add G] → (∀ (a b c : G), a + b + c = a + (b + c)) → AddSemigroup G
instance AddSemigroup.toAdd E0 #
{G : Type u_2} → [self : AddSemigroup G] → Add G
theorem AddSemigroup.add_assoc E1 #
∀ {G : Type u_2} [self : AddSemigroup G] (a b c : G), a + b + c = a + (b + c)
Addition is associative
theorem add_assoc E2 #
∀ {G : Type u_1} [inst : AddSemigroup G] (a b c : G), a + b + c = a + (b + c)
theorem mul_assoc E1 #
∀ {G : Type u_1} [inst : Semigroup G] (a b c : G), a * b * c = a * (b * c)
instance instAddSemigroupPEmpty E0 #
AddSemigroup PEmpty.{u + 1}
instance instSemigroupPEmpty E0 #
Semigroup PEmpty.{u + 1}
class IsAddCommutative E1 #
(M : Type u_2) → [Add M] → Prop
A Prop stating that the addition is commutative.
ctor IsAddCommutative.mk E0 #
∀ {M : Type u_2} [inst : Add M], (Std.Commutative fun x1 x2 ↦ x1 + x2) → IsAddCommutative M
instance IsAddCommutative.is_comm E0 #
∀ {M : Type u_2} {inst : Add M} [self : IsAddCommutative M], Std.Commutative fun x1 x2 ↦ x1 + x2
class IsMulCommutative E1 #
(M : Type u_2) → [Mul M] → Prop
A Prop stating that the multiplication is commutative.
ctor IsMulCommutative.mk E0 #
∀ {M : Type u_2} [inst : Mul M], (Std.Commutative fun x1 x2 ↦ x1 * x2) → IsMulCommutative M
instance IsMulCommutative.is_comm E0 #
∀ {M : Type u_2} {inst : Mul M} [self : IsMulCommutative M], Std.Commutative fun x1 x2 ↦ x1 * x2
theorem isAddCommutative_iff E0 #
∀ {M : Type u_2} [inst : Add M], IsAddCommutative M ↔ ∀ (a b : M), a + b = b + a
theorem isMulCommutative_iff E0 #
∀ {M : Type u_2} [inst : Mul M], IsMulCommutative M ↔ ∀ (a b : M), a * b = b * a
theorem IsMulCommutative.of_comm E1 #
∀ {M : Type u_2} [inst : Mul M], (∀ (a b : M), a * b = b * a) → IsMulCommutative M
Alias of the reverse direction of isMulCommutative_iff.
theorem IsAddCommutative.of_comm E1 #
∀ {M : Type u_2} [inst : Add M], (∀ (a b : M), a + b = b + a) → IsAddCommutative M
Alias of the reverse direction of isAddCommutative_iff.
theorem mul_comm' E1 #
∀ {M : Type u_2} [inst : Mul M] [IsMulCommutative M] (a b : M), a * b = b * a
An alternative to mul_comm which uses the mixin IsMulCommutative instead of bundled
commutative algebraic structures. In general, you should prefer mul_comm unless you are working
with commutative subobjects in a noncommutative algebraic structure.
theorem add_comm' E1 #
∀ {M : Type u_2} [inst : Add M] [IsAddCommutative M] (a b : M), a + b = b + a
An alternative to add_comm which uses the mixin IsAddCommutative instead of bundled
commutative algebraic structures. In general, you should prefer add_comm unless you are working
with commutative subobjects in a noncommutative algebraic structure.
def SemiconjBy E1 #
{M : Type u_2} → [Mul M] → M → M → M → Prop
x is semiconjugate to y by a, if a * x = y * a.
def AddSemiconjBy E1 #
{M : Type u_2} → [Add M] → M → M → M → Prop
x is additive semiconjugate to y by a if a + x = y + a
theorem SemiconjBy.eq E1 #
∀ {M : Type u_2} [inst : Mul M] {a x y : M}, SemiconjBy a x y → a * x = y * a
Equality behind SemiconjBy a x y; useful for rewriting.
theorem AddSemiconjBy.eq E1 #
∀ {M : Type u_2} [inst : Add M] {a x y : M}, AddSemiconjBy a x y → a + x = y + a
Equality behind AddSemiconjBy a x y; useful for rewriting.
def Commute E1 #
{M : Type u_2} → [Mul M] → M → M → Prop
Two elements commute if a * b = b * a.
def AddCommute E1 #
{M : Type u_2} → [Add M] → M → M → Prop
Two elements additively commute if a + b = b + a
theorem commute_iff_eq E0 #
∀ {M : Type u_2} [inst : Mul M] (a b : M), Commute a b ↔ a * b = b * a
Two elements a and b commute if a * b = b * a.
theorem addCommute_iff_eq E0 #
∀ {M : Type u_2} [inst : Add M] (a b : M), AddCommute a b ↔ a + b = b + a
Two elements a and b additively commute if a + b = b + a.
theorem Commute.eq E1 #
∀ {M : Type u_2} [inst : Mul M] {a b : M}, Commute a b → a * b = b * a
Equality behind Commute a b; useful for rewriting.
theorem AddCommute.eq E1 #
∀ {M : Type u_2} [inst : Add M] {a b : M}, AddCommute a b → a + b = b + a
Equality behind AddCommute a b; useful for rewriting.
class AddCommMagma E1 #
Type u_2 → Type u_2
A commutative additive magma is a type with an addition which commutes.
theorem AddCommMagma.ext_iff E0 #
∀ {G : Type u_2} {x y : AddCommMagma G}, x = y ↔ Add.add = Add.add
theorem AddCommMagma.ext E1 #
∀ {G : Type u_2} {x y : AddCommMagma G}, Add.add = Add.add → x = y
ctor AddCommMagma.mk E0 #
{G : Type u_2} → [toAdd : Add G] → (∀ (a b : G), a + b = b + a) → AddCommMagma G
instance AddCommMagma.toAdd E0 #
{G : Type u_2} → [self : AddCommMagma G] → Add G
theorem AddCommMagma.add_comm E1 #
∀ {G : Type u_2} [self : AddCommMagma G] (a b : G), a + b = b + a
Addition is commutative in a commutative additive magma.
class CommMagma E1 #
Type u_2 → Type u_2
A commutative multiplicative magma is a type with a multiplication which commutes.
theorem CommMagma.ext E1 #
∀ {G : Type u_2} {x y : CommMagma G}, Mul.mul = Mul.mul → x = y
theorem CommMagma.ext_iff E0 #
∀ {G : Type u_2} {x y : CommMagma G}, x = y ↔ Mul.mul = Mul.mul
ctor CommMagma.mk E0 #
{G : Type u_2} → [toMul : Mul G] → (∀ (a b : G), a * b = b * a) → CommMagma G
instance CommMagma.toMul E0 #
{G : Type u_2} → [self : CommMagma G] → Mul G
theorem CommMagma.mul_comm E2 #
∀ {G : Type u_2} [self : CommMagma G] (a b : G), a * b = b * a
Multiplication is commutative in a commutative multiplicative magma.
class CommSemigroup E1 #
Type u_2 → Type u_2
A commutative semigroup is a type with an associative commutative (*).
theorem CommSemigroup.ext E1 #
∀ {G : Type u_2} {x y : CommSemigroup G}, Mul.mul = Mul.mul → x = y
theorem CommSemigroup.ext_iff E0 #
∀ {G : Type u_2} {x y : CommSemigroup G}, x = y ↔ Mul.mul = Mul.mul
ctor CommSemigroup.mk E0 #
{G : Type u_2} → [toSemigroup : Semigroup G] → (∀ (a b : G), a * b = b * a) → CommSemigroup G
theorem CommSemigroup.mul_comm E2 #
∀ {G : Type u_2} [self : CommSemigroup G] (a b : G), a * b = b * a
Multiplication is commutative in a commutative multiplicative magma.
instance CommSemigroup.toSemigroup E0 #
{G : Type u_2} → [self : CommSemigroup G] → Semigroup G
instance CommSemigroup.toCommMagma E0 #
{G : Type u_2} → [self : CommSemigroup G] → CommMagma G
class AddCommSemigroup E1 #
Type u_2 → Type u_2
A commutative additive semigroup is a type with an associative commutative (+).
theorem AddCommSemigroup.ext_iff E0 #
∀ {G : Type u_2} {x y : AddCommSemigroup G}, x = y ↔ Add.add = Add.add
theorem AddCommSemigroup.ext E1 #
∀ {G : Type u_2} {x y : AddCommSemigroup G}, Add.add = Add.add → x = y
ctor AddCommSemigroup.mk E0 #
{G : Type u_2} → [toAddSemigroup : AddSemigroup G] → (∀ (a b : G), a + b = b + a) → AddCommSemigroup G
instance AddCommSemigroup.toAddSemigroup E0 #
{G : Type u_2} → [self : AddCommSemigroup G] → AddSemigroup G
instance AddCommSemigroup.toAddCommMagma E0 #
{G : Type u_2} → [self : AddCommSemigroup G] → AddCommMagma G
theorem AddCommSemigroup.add_comm E1 #
∀ {G : Type u_2} [self : AddCommSemigroup G] (a b : G), a + b = b + a
Addition is commutative in a commutative additive magma.
theorem add_comm E2 #
∀ {G : Type u_1} [inst : AddCommMagma G] (a b : G), a + b = b + a
theorem mul_comm E2 #
∀ {G : Type u_1} [inst : CommMagma G] (a b : G), a * b = b * a
instance AddCommMagma.to_isCommutative E0 #
∀ {G : Type u_1} [inst : AddCommMagma G], IsAddCommutative G
instance CommMagma.to_isCommutative E0 #
∀ {G : Type u_1} [inst : CommMagma G], IsMulCommutative G
theorem isLeftRegular_iff_isRegular E0 #
∀ {G : Type u_1} [inst : CommMagma G] {a : G}, IsLeftRegular a ↔ IsRegular a
theorem isAddLeftRegular_iff_isAddRegular E0 #
∀ {G : Type u_1} [inst : AddCommMagma G] {a : G}, IsAddLeftRegular a ↔ IsAddRegular a
theorem isAddRightRegular_iff_isAddRegular E0 #
∀ {G : Type u_1} [inst : AddCommMagma G] {a : G}, IsAddRightRegular a ↔ IsAddRegular a
theorem isRightRegular_iff_isRegular E0 #
∀ {G : Type u_1} [inst : CommMagma G] {a : G}, IsRightRegular a ↔ IsRegular a
theorem CommMagma.IsRightCancelMul.toIsLeftCancelMul E1 #
∀ (G : Type u_2) [inst : CommMagma G] [IsRightCancelMul G], IsLeftCancelMul G
Any CommMagma G that satisfies IsRightCancelMul G also satisfies IsLeftCancelMul G.
theorem AddCommMagma.IsRightCancelAdd.toIsLeftCancelAdd E1 #
∀ (G : Type u_2) [inst : AddCommMagma G] [IsRightCancelAdd G], IsLeftCancelAdd G
Any AddCommMagma G that
satisfies IsRightCancelAdd G also satisfies IsLeftCancelAdd G.
theorem CommMagma.IsLeftCancelMul.toIsRightCancelMul E1 #
∀ (G : Type u_2) [inst : CommMagma G] [IsLeftCancelMul G], IsRightCancelMul G
Any CommMagma G that satisfies IsLeftCancelMul G also satisfies IsRightCancelMul G.
theorem AddCommMagma.IsLeftCancelAdd.toIsRightCancelAdd E1 #
∀ (G : Type u_2) [inst : AddCommMagma G] [IsLeftCancelAdd G], IsRightCancelAdd G
Any AddCommMagma G that
satisfies IsLeftCancelAdd G also satisfies IsRightCancelAdd G.
theorem CommMagma.IsLeftCancelMul.toIsCancelMul E1 #
∀ (G : Type u_2) [inst : CommMagma G] [IsLeftCancelMul G], IsCancelMul G
Any CommMagma G that satisfies IsLeftCancelMul G also satisfies IsCancelMul G.
theorem AddCommMagma.IsLeftCancelAdd.toIsCancelAdd E1 #
∀ (G : Type u_2) [inst : AddCommMagma G] [IsLeftCancelAdd G], IsCancelAdd G
Any AddCommMagma G that satisfies
IsLeftCancelAdd G also satisfies IsCancelAdd G.
theorem CommMagma.IsRightCancelMul.toIsCancelMul E1 #
∀ (G : Type u_2) [inst : CommMagma G] [IsRightCancelMul G], IsCancelMul G
Any CommMagma G that satisfies IsRightCancelMul G also satisfies IsCancelMul G.
theorem AddCommMagma.IsRightCancelAdd.toIsCancelAdd E1 #
∀ (G : Type u_2) [inst : AddCommMagma G] [IsRightCancelAdd G], IsCancelAdd G
Any AddCommMagma G that satisfies
IsRightCancelAdd G also satisfies IsCancelAdd G.
class LeftCancelSemigroup E1 #
Type u_2 → Type u_2
A LeftCancelSemigroup is a semigroup such that a * b = a * c implies b = c.
theorem LeftCancelSemigroup.ext_iff E0 #
∀ {G : Type u_2} {x y : LeftCancelSemigroup G}, x = y ↔ Mul.mul = Mul.mul
theorem LeftCancelSemigroup.ext E1 #
∀ {G : Type u_2} {x y : LeftCancelSemigroup G}, Mul.mul = Mul.mul → x = y
instance LeftCancelSemigroup.toSemigroup E0 #
{G : Type u_2} → [self : LeftCancelSemigroup G] → Semigroup G
instance LeftCancelSemigroup.toIsLeftCancelMul E0 #
∀ {G : Type u_2} [self : LeftCancelSemigroup G], IsLeftCancelMul G
Any LeftCancelSemigroup satisfies IsLeftCancelMul.
ctor LeftCancelSemigroup.mk E0 #
{G : Type u_2} → [toSemigroup : Semigroup G] → [toIsLeftCancelMul : IsLeftCancelMul G] → LeftCancelSemigroup G
def LibraryNote.lower_cancel_priority E1 #
Batteries.Util.LibraryNote
We lower the priority of inheriting from cancellative structures.
This attempts to avoid expensive checks involving bundling and unbundling with the IsDomain class.
since IsDomain already depends on Semiring, we can synthesize that one first.
Zulip discussion: https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Why.20is.20.60simpNF.60.20complaining.20here.3F
class AddLeftCancelSemigroup E1 #
Type u_2 → Type u_2
An AddLeftCancelSemigroup is an additive semigroup such that
a + b = a + c implies b = c.
theorem AddLeftCancelSemigroup.ext E1 #
∀ {G : Type u_2} {x y : AddLeftCancelSemigroup G}, Add.add = Add.add → x = y
theorem AddLeftCancelSemigroup.ext_iff E0 #
∀ {G : Type u_2} {x y : AddLeftCancelSemigroup G}, x = y ↔ Add.add = Add.add
instance AddLeftCancelSemigroup.toIsLeftCancelAdd E0 #
∀ {G : Type u_2} [self : AddLeftCancelSemigroup G], IsLeftCancelAdd G
Any AddLeftCancelSemigroup satisfies IsLeftCancelAdd.
instance AddLeftCancelSemigroup.toAddSemigroup E0 #
{G : Type u_2} → [self : AddLeftCancelSemigroup G] → AddSemigroup G
ctor AddLeftCancelSemigroup.mk E0 #
{G : Type u_2} → [toAddSemigroup : AddSemigroup G] → [toIsLeftCancelAdd : IsLeftCancelAdd G] → AddLeftCancelSemigroup G
class RightCancelSemigroup E1 #
Type u_2 → Type u_2
A RightCancelSemigroup is a semigroup such that a * b = c * b implies a = c.
theorem RightCancelSemigroup.ext_iff E0 #
∀ {G : Type u_2} {x y : RightCancelSemigroup G}, x = y ↔ Mul.mul = Mul.mul
theorem RightCancelSemigroup.ext E1 #
∀ {G : Type u_2} {x y : RightCancelSemigroup G}, Mul.mul = Mul.mul → x = y
instance RightCancelSemigroup.toSemigroup E0 #
{G : Type u_2} → [self : RightCancelSemigroup G] → Semigroup G
ctor RightCancelSemigroup.mk E0 #
{G : Type u_2} → [toSemigroup : Semigroup G] → [toIsRightCancelMul : IsRightCancelMul G] → RightCancelSemigroup G
instance RightCancelSemigroup.toIsRightCancelMul E0 #
∀ {G : Type u_2} [self : RightCancelSemigroup G], IsRightCancelMul G
Any RightCancelSemigroup satisfies IsRightCancelMul.
class AddRightCancelSemigroup E1 #
Type u_2 → Type u_2
An AddRightCancelSemigroup is an additive semigroup such that
a + b = c + b implies a = c.
theorem AddRightCancelSemigroup.ext E1 #
∀ {G : Type u_2} {x y : AddRightCancelSemigroup G}, Add.add = Add.add → x = y
theorem AddRightCancelSemigroup.ext_iff E0 #
∀ {G : Type u_2} {x y : AddRightCancelSemigroup G}, x = y ↔ Add.add = Add.add
ctor AddRightCancelSemigroup.mk E0 #
{G : Type u_2} →
[toAddSemigroup : AddSemigroup G] → [toIsRightCancelAdd : IsRightCancelAdd G] → AddRightCancelSemigroup G
instance AddRightCancelSemigroup.toAddSemigroup E0 #
{G : Type u_2} → [self : AddRightCancelSemigroup G] → AddSemigroup G
instance AddRightCancelSemigroup.toIsRightCancelAdd E0 #
∀ {G : Type u_2} [self : AddRightCancelSemigroup G], IsRightCancelAdd G
Any AddRightCancelSemigroup satisfies IsRightCancelAdd.