Canonically ordered monoids #
An ordered additive monoid is CanonicallyOrderedAdd
if 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.
We have a ≤ b + a
and a ≤ a + b
as separate fields. In the commutative case the second field
is redundant, but in the noncommutative case (satisfied most relevantly by the ordinals), this
extra field allows us to prove more things without the extra commutativity assumption.
For any
a
andb
,a ≤ a + b
Instances
An ordered monoid is CanonicallyOrderedMul
if 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).
For any
a
andb
,a ≤ a * b
Instances
Alias of le_mul_of_le_right
.
Alias of le_mul_of_le_left
.
Alias of pos_of_gt
.
Alias of one_lt_of_gt
.
Alias of zero_notMem_iff
.
Alias of one_notMem_iff
.
Alias of pos_of_ne_zero
.
Alias of one_lt_of_ne_one
.
Equations
- CanonicallyOrderedCommMonoid.toUniqueUnits = { toInhabited := Units.instInhabited, uniq := ⋯ }
Equations
- CanonicallyOrderedCommMonoid.toUniqueAddUnits = { toInhabited := AddUnits.instInhabited, uniq := ⋯ }
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