Canonically ordered monoids #
A canonically ordered additive monoid is an ordered commutative additive monoid
in which the ordering coincides with the subtractibility relation,
which is to say, a ≤ b
iff there exists c
with b = a + c
.
This is satisfied by the natural numbers, for example, but not
the integers or other nontrivial OrderedAddCommGroup
s.
Instances
For a ≤ b
, there is a c
so b = a + c
.
For any a
and b
, a ≤ a + b
A canonically ordered monoid is an ordered commutative monoid
in which the ordering coincides with the divisibility relation,
which is to say, a ≤ b
iff there exists c
with b = a * c
.
Examples seem rare; it seems more likely that the OrderDual
of a naturally-occurring lattice satisfies this than the lattice
itself (for example, dual of the lattice of ideals of a PID or
Dedekind domain satisfy this; collections of all things ≤ 1 seem to
be more natural that collections of all things ≥ 1).
Instances
For a ≤ b
, there is a c
so b = a * c
.
For any a
and b
, a ≤ a * b
Equations
- ⋯ = ⋯
Equations
- ⋯ = ⋯
Equations
- CanonicallyOrderedCommMonoid.toUniqueUnits = { toInhabited := Units.instInhabited, uniq := ⋯ }
Equations
- CanonicallyOrderedAddCommMonoid.toUniqueAddUnits = { toInhabited := AddUnits.instInhabited, uniq := ⋯ }
Alias of mul_eq_one
.
Alias of add_eq_zero
.
Equations
- ⋯ = ⋯
A canonically linear-ordered additive monoid is a canonically ordered additive monoid whose ordering is a linear order.
Instances
A canonically linear-ordered monoid is a canonically ordered monoid whose ordering is a linear order.
Instances
Equations
- CanonicallyLinearOrderedCommMonoid.semilatticeSup = SemilatticeSup.mk ⋯ ⋯ ⋯
Equations
- CanonicallyLinearOrderedAddCommMonoid.semilatticeSup = SemilatticeSup.mk ⋯ ⋯ ⋯
In a linearly ordered monoid, we are happy for bot_eq_one
to be a @[simp]
lemma.
In a linearly ordered monoid, we are happy for bot_eq_zero
to be a @[simp]
lemma