Mathlib.Algebra.Group.Defs
56 declarations. Mathlib docs · Source
Groups
This file defines additive and multiplicative group structures. Division monoid structures are
defined in Mathlib.Algebra.Group.DivInvMonoid.
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 Group.ctorIdx E1 #
{G : Type u_2} → Group G → ℕ
def AddGroup.ctorIdx E1 #
{A : Type u_2} → AddGroup A → ℕ
def CommGroup.ctorIdx E1 #
{G : Type u_2} → CommGroup G → ℕ
def AddCommGroup.ctorIdx E1 #
{G : Type u_2} → AddCommGroup G → ℕ
class Group E3 #
Type u_2 → Type u_2
A Group is a Monoid with an operation ⁻¹ satisfying a⁻¹ * a = 1.
There is also a division operation / such that a / b = a * b⁻¹,
with a default so that a / b = a * b⁻¹ holds by definition.
Use Group.ofLeftAxioms or Group.ofRightAxioms to define a group structure
on a type with the minimum proof obligations.
instance Group.toDivInvMonoid E0 #
{G : Type u_2} → [self : Group G] → DivInvMonoid G
ctor Group.mk E0 #
{G : Type u_2} → [toDivInvMonoid : DivInvMonoid G] → (∀ (a : G), a⁻¹ * a = 1) → Group G
theorem Group.inv_mul_cancel E1 #
∀ {G : Type u_2} [self : Group G] (a : G), a⁻¹ * a = 1
class AddGroup E3 #
Type u_2 → Type u_2
An AddGroup is an AddMonoid with a unary - satisfying -a + a = 0.
There is also a binary operation - such that a - b = a + -b,
with a default so that a - b = a + -b holds by definition.
Use AddGroup.ofLeftAxioms or AddGroup.ofRightAxioms to define an
additive group structure on a type with the minimum proof obligations.
instance AddGroup.toSubNegMonoid E0 #
{A : Type u_2} → [self : AddGroup A] → SubNegMonoid A
ctor AddGroup.mk E0 #
{A : Type u_2} → [toSubNegMonoid : SubNegMonoid A] → (∀ (a : A), -a + a = 0) → AddGroup A
theorem AddGroup.neg_add_cancel E1 #
∀ {A : Type u_2} [self : AddGroup A] (a : A), -a + a = 0
theorem inv_mul_cancel E0 #
∀ {G : Type u_1} [inst : Group G] (a : G), a⁻¹ * a = 1
theorem neg_add_cancel E0 #
∀ {G : Type u_1} [inst : AddGroup G] (a : G), -a + a = 0
theorem add_neg_cancel E0 #
∀ {G : Type u_1} [inst : AddGroup G] (a : G), a + -a = 0
theorem mul_inv_cancel E0 #
∀ {G : Type u_1} [inst : Group G] (a : G), a * a⁻¹ = 1
theorem sub_self E0 #
∀ {G : Type u_1} [inst : AddGroup G] (a : G), a - a = 0
theorem div_self' E0 #
∀ {G : Type u_1} [inst : Group G] (a : G), a / a = 1
theorem inv_mul_cancel_left E0 #
∀ {G : Type u_1} [inst : Group G] (a b : G), a⁻¹ * (a * b) = b
theorem neg_add_cancel_left E0 #
∀ {G : Type u_1} [inst : AddGroup G] (a b : G), -a + (a + b) = b
theorem add_neg_cancel_left E0 #
∀ {G : Type u_1} [inst : AddGroup G] (a b : G), a + (-a + b) = b
theorem mul_inv_cancel_left E0 #
∀ {G : Type u_1} [inst : Group G] (a b : G), a * (a⁻¹ * b) = b
theorem mul_inv_cancel_right E0 #
∀ {G : Type u_1} [inst : Group G] (a b : G), a * b * b⁻¹ = a
theorem add_neg_cancel_right E0 #
∀ {G : Type u_1} [inst : AddGroup G] (a b : G), a + b + -b = a
theorem add_sub_cancel_right E0 #
∀ {G : Type u_1} [inst : AddGroup G] (a b : G), a + b - b = a
theorem mul_div_cancel_right E0 #
∀ {G : Type u_1} [inst : Group G] (a b : G), a * b / b = a
theorem neg_add_cancel_right E0 #
∀ {G : Type u_1} [inst : AddGroup G] (a b : G), a + -b + b = a
theorem inv_mul_cancel_right E0 #
∀ {G : Type u_1} [inst : Group G] (a b : G), a * b⁻¹ * b = a
theorem div_mul_cancel E0 #
∀ {G : Type u_1} [inst : Group G] (a b : G), a / b * b = a
theorem sub_add_cancel E0 #
∀ {G : Type u_1} [inst : AddGroup G] (a b : G), a - b + b = a
instance AddGroup.toSubtractionMonoid E0 #
{G : Type u_1} → [AddGroup G] → SubtractionMonoid G
instance Group.toDivisionMonoid E0 #
{G : Type u_1} → [Group G] → DivisionMonoid G
instance AddGroup.toAddCancelMonoid E0 #
{G : Type u_1} → [AddGroup G] → AddCancelMonoid G
instance Group.toCancelMonoid E0 #
{G : Type u_1} → [Group G] → CancelMonoid G
class AddCommGroup E3 #
Type u_2 → Type u_2
An additive commutative group is an additive group with commutative (+).
instance AddCommGroup.toAddCommMonoid E0 #
{G : Type u_2} → [self : AddCommGroup G] → AddCommMonoid G
instance AddCommGroup.toAddGroup E0 #
{G : Type u_2} → [self : AddCommGroup G] → AddGroup G
ctor AddCommGroup.mk E0 #
{G : Type u_2} → [toAddGroup : AddGroup G] → (∀ (a b : G), a + b = b + a) → AddCommGroup G
theorem AddCommGroup.add_comm E2 #
∀ {G : Type u_2} [self : AddCommGroup G] (a b : G), a + b = b + a
Addition is commutative in a commutative additive magma.
class CommGroup E1 #
Type u_2 → Type u_2
A commutative group is a group with commutative (*).
ctor CommGroup.mk E0 #
{G : Type u_2} → [toGroup : Group G] → (∀ (a b : G), a * b = b * a) → CommGroup G
instance CommGroup.toGroup E0 #
{G : Type u_2} → [self : CommGroup G] → Group G
theorem CommGroup.mul_comm E1 #
∀ {G : Type u_2} [self : CommGroup G] (a b : G), a * b = b * a
Multiplication is commutative in a commutative multiplicative magma.
instance CommGroup.toCommMonoid E0 #
{G : Type u_2} → [self : CommGroup G] → CommMonoid G
instance CommGroup.toCancelCommMonoid E0 #
{G : Type u_1} → [CommGroup G] → CancelCommMonoid G
instance AddCommGroup.toAddCancelCommMonoid E0 #
{G : Type u_1} → [AddCommGroup G] → AddCancelCommMonoid G
instance CommGroup.toDivisionCommMonoid E0 #
{G : Type u_1} → [CommGroup G] → DivisionCommMonoid G
instance AddCommGroup.toDivisionAddCommMonoid E0 #
{G : Type u_1} → [AddCommGroup G] → SubtractionCommMonoid G
theorem inv_mul_cancel_comm E0 #
∀ {G : Type u_1} [inst : CommGroup G] (a b : G), a⁻¹ * b * a = b
theorem neg_add_cancel_comm E0 #
∀ {G : Type u_1} [inst : AddCommGroup G] (a b : G), -a + b + a = b
theorem mul_inv_cancel_comm E0 #
∀ {G : Type u_1} [inst : CommGroup G] (a b : G), a * b * a⁻¹ = b
theorem add_neg_cancel_comm E0 #
∀ {G : Type u_1} [inst : AddCommGroup G] (a b : G), a + b + -a = b
theorem inv_mul_cancel_comm_assoc E0 #
∀ {G : Type u_1} [inst : CommGroup G] (a b : G), a⁻¹ * (b * a) = b
theorem neg_add_cancel_comm_assoc E0 #
∀ {G : Type u_1} [inst : AddCommGroup G] (a b : G), -a + (b + a) = b
theorem mul_inv_cancel_comm_assoc E0 #
∀ {G : Type u_1} [inst : CommGroup G] (a b : G), a * (b * a⁻¹) = b
theorem add_neg_cancel_comm_assoc E0 #
∀ {G : Type u_1} [inst : AddCommGroup G] (a b : G), a + (b + -a) = b