Units (i.e., invertible elements) of a monoid #
An element of a Monoid is a unit if it has a two-sided inverse.
Main declarations #
Units M: the group of units (i.e., invertible elements) of a monoid.IsUnit x: a predicate asserting thatxis a unit (i.e., invertible element) of a monoid.
For both declarations, there is an additive counterpart: AddUnits and IsAddUnit.
See also Prime, Associated, and Irreducible in
Mathlib/Algebra/GroupWithZero/Associated.lean.
Notation #
We provide Mˣ as notation for Units M,
resembling the notation $R^{\times}$ for the units of a ring, which is common in mathematics.
TODO #
The results here should be used to golf the basic Group lemmas.
A unit can be interpreted as a term in the base Monoid.
Equations
An additive unit can be interpreted as a term in the base AddMonoid.
Equations
The inverse of a unit in a Monoid.
Equations
The additive inverse of an additive unit in an AddMonoid.
Equations
See Note [custom simps projection]
Equations
Instances For
See Note [custom simps projection]
Equations
Instances For
Units have decidable equality if the base Monoid has decidable equality.
Equations
Additive units have decidable equality
if the base AddMonoid has decidable equality.
Equations
Units of a monoid have an induced multiplication.
Equations
Additive units of an additive monoid have an induced addition.
Equations
Units of a monoid have a unit
Equations
Additive units of an additive monoid have a zero.
Equations
Units of a monoid have a multiplication and multiplicative identity.
Equations
Additive units of an additive monoid have an addition and an additive identity.
Equations
Units of a monoid are inhabited because 1 is a unit.
Equations
Additive units of an additive monoid are inhabited because 0 is an additive unit.
Equations
Units of a monoid have a representation of the base value in the Monoid.
Equations
Additive units of an additive monoid have a representation of the base value in
the AddMonoid.
Equations
Equations
Units of a monoid have division
Equations
Additive units of an additive monoid have subtraction.
Equations
Units of a monoid form a DivInvMonoid.
Equations
Additive units of an additive monoid form a SubNegMonoid.
Equations
Units of a monoid form a group.
Equations
Additive units of an additive monoid form an additive group.
Equations
Units of a commutative monoid form a commutative group.
Equations
Additive units of an additive commutative monoid form an additive commutative group.
Equations
For a, b in a Dedekind-finite monoid such that a * b = 1, makes a unit out of a.
Equations
Instances For
For a, b in a Dedekind-finite additive monoid such that a + b = 0,
makes an addUnit out of a.
Equations
Instances For
Partial division, denoted a /ₚ u. It is defined when the
second argument is invertible, and unlike the division operator
in DivisionRing it is not totalized at zero.
Equations
Instances For
Partial division, denoted a /ₚ u. It is defined when the
second argument is invertible, and unlike the division operator
in DivisionRing it is not totalized at zero.
Equations
Instances For
See isUnit_iff_exists_and_exists for a similar lemma with two existentials.
See isAddUnit_iff_exists_and_exists for a similar lemma with two existentials.
See isUnit_iff_exists for a similar lemma with one existential.
See isAddUnit_iff_exists for a similar lemma with one existential.
Alias of IsUnit.of_mul_eq_one.
Alias of IsUnit.of_mul_eq_one_right.
Alias of Units.eq_one.
The element of the group of units, corresponding to an element of a monoid which is a unit. When
α is a DivisionMonoid, use IsUnit.unit' instead.
Equations
Instances For
The element of the additive group of additive units, corresponding to an element
of an additive monoid which is an additive unit. When α is a SubtractionMonoid, use
IsAddUnit.addUnit' instead.
Equations
Instances For
The element of the group of units, corresponding to an element of a monoid which is a unit. As
opposed to IsUnit.unit, the inverse is computable and comes from the inversion on α. This is
useful to transfer properties of inversion in Units α to α. See also toUnits.
Equations
Instances For
The element of the additive group of additive units, corresponding to an element of
an additive monoid which is an additive unit. As opposed to IsAddUnit.addUnit, the negation is
computable and comes from the negation on α. This is useful to transfer properties of negation
in AddUnits α to α. See also toAddUnits.
Equations
Instances For
Constructs a CommGroup structure on a CommMonoid consisting only of units.