Monus

From Wikipedia, the free encyclopedia
(Redirected from Naturally ordered semiring)
Jump to navigation Jump to search

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 minus sign, "", because the natural numbers are a CMM under subtraction. It is also denoted with a dotted minus sign, "˙", to distinguish it from the standard subtraction operator.

Notation

[edit | edit source]
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 − − -

A use of the monus symbol is seen in Dennis Ritchie's PhD Thesis from 1968.[2]

Definition

[edit | edit source]

Let (M,+,0) be a commutative monoid. Define a binary relation on this monoid as follows: for any two elements a and b, define ab if there exists an element c such that a+c=b. It is easy to check that is reflexive[3] and that it is transitive.[4] M is called naturally ordered if the relation is additionally antisymmetric and hence a partial order. Further, if for each pair of elements a and b, a unique smallest element c0 exists such that ab+c0, then M is called a commutative monoid with monus[5] and the monus a˙b of any two elements a and b can be defined as this unique smallest element c0 such that ab+c0.

An example of a commutative monoid that is not naturally ordered is (,+,0), the commutative monoid of the integers with usual addition, as for any a,b there exists c such that a+c=b, so ab holds for any a,b, so is not antisymmetric and therefore not a partial order. There are also examples of monoids that are naturally ordered but are not semirings with monus.[6]

Other structures

[edit | edit source]

Beyond monoids, the notion of monus can be applied to other structures. For instance, a naturally ordered semiring (sometimes called a dioid[7]) 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.

Examples

[edit | edit source]

If M is an ideal in a Boolean algebra, then M is a commutative monoid with monus under a+b=ab and a˙b=a¬b.[5]

Natural numbers

[edit | edit source]

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,[8] limited subtraction, proper subtraction, doz (difference or zero),[9] and monus.[10] Truncated subtraction is usually defined as[8]

a˙b={0if a<babif ab,

where − denotes standard subtraction. For example, 53=2 and 35=2 in regular subtraction, whereas in truncated subtraction 3˙5=0. Truncated subtraction may also be defined as[10]

a˙b=max(ab,0).

In Peano arithmetic, truncated subtraction is defined in terms of the predecessor function P (the inverse of the successor function):[8]

P(0)=0P(S(a))=aa˙0=aa˙S(b)=P(a˙b).

A definition that does not need the predecessor function is:

a˙0=a0˙b=0S(a)˙S(b)=a˙b.

Truncated subtraction is useful in contexts such as primitive recursive functions, which are not defined over negative numbers.[8] Truncated subtraction is also used in the definition of the multiset difference operator.

Properties

[edit | edit source]

The class of all commutative monoids with monus form a variety.[5] The equational basis for the variety of all CMMs consists of the axioms for commutative monoids, as well as the following axioms:

a+(b˙a)=b+(a˙b),(a˙b)˙c=a˙(b+c),(a˙a)=0,(0˙a)=0.

Notes

[edit | edit source]
  1. ^ Characters in Unicode are referenced in prose via the "U+" notation. The hexadecimal number after the "U+" is the character's Unicode code point.
  2. ^ Brailsford, Kernighan & Ritchie 2022.
  3. ^ taking c to be the neutral element of the monoid
  4. ^ if ab with witness d and bc with witness d then d+d witnesses that ac
  5. ^ a b c Amer 1984, p. 129.
  6. ^ Monet 2016.
  7. ^ Pouly 2010, p. 22, slide 17.
  8. ^ a b c d Vereschchagin & Shen 2003.
  9. ^ Warren Jr. 2013.
  10. ^ a b Jacobs 1996.

References

[edit | edit source]
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).