In mathematics, monus is an operator on certain commutative monoids that are not groups. A commutative monoid on which a monus operator is defined is called a commutative monoid with monus, or CMM. The monus operator may be denoted with the - symbol because the natural numbers are a CMM under subtraction; it is also denoted with the
|
glyph | Unicode name | Unicode code point[1] | HTML character entity reference | HTML/XML numeric character references | TeX | |
---|---|---|---|---|---|---|
∸ | DOT MINUS | U+2238 | ∸ | \dot - | ||
− | MINUS SIGN | U+2212 | − | − | - |
Let
(M,+,0)
\leq
a
b
a\leqb
c
a+c=b
\leq
M
\leq
a
b
c
a\leqb+c
a
|
b
a
b
c
a\leqb+c
An example of a commutative monoid that is not naturally ordered is
(Z,+,0)
a,b\inZ
c
a+c=b
a\leqb
a,b\inZ
\leq
Beyond monoids, the notion of monus can be applied to other structures. For instance, a naturally ordered semiring (sometimes called a dioid[5]) is a semiring where the commutative monoid induced by the addition operator is naturally ordered. When this monoid is a commutative monoid with monus, the semiring is called a semiring with monus, or m-semiring.
If is an ideal in a Boolean algebra, then is a commutative monoid with monus under
a+b=a\veeb
a
|
b=a\wedge\negb
The natural numbers including 0 form a commutative monoid with monus, with their ordering being the usual order of natural numbers and the monus operator being a saturating variant of standard subtraction, variously referred to as truncated subtraction,[6] limited subtraction, proper subtraction, doz (difference or zero),[7] and monus.[8] Truncated subtraction is usually defined as
a
|
b= \begin{cases} 0&ifa<b\\ a-b&ifa\geb, \end{cases}
a
|
b=max(a-b,0).
In Peano arithmetic, truncated subtraction is defined in terms of the predecessor function (the inverse of the successor function):
\begin{align} P(0)&=0\\ P(S(a))&=a\\ a
|
0&=a\\ a
|
S(b)&=P(a
|
b). \end{align}
A definition that does not need the predecessor function is:
\begin{align} a
|
0&=a\\ 0
|
b&=0\\ S(a)
|
S(b)&=a
|
b. \end{align}
Truncated subtraction is useful in contexts such as primitive recursive functions, which are not defined over negative numbers. Truncated subtraction is also used in the definition of the multiset difference operator.
The class of all commutative monoids with monus form a variety. The equational basis for the variety of all CMMs consists of the axioms for commutative monoids, as well as the following axioms:
\begin{align} a+(b
|
a)&=b+(a
|
b),\\ (a
|
b)
|
c&=a
|
(b+c),\\ (a
|
a)&=0,\\ (0
|
a)&=0.\\ \end{align}
c
a\leqb
d
b\leqc
d'
d+d'
a\leqc