{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "2D4E6NY8Q4"
    }
  ],
  "body": "\n## Definition\n\nLet $(S, +, \\cdot, 0, 1)$ be a [[semiring|Q07RA7AMDE]].\nThe semiring $S$ is *idempotent* if $a + a = a$ for all $a \\in S$.\n\n## Remarks\n\nIn an idempotent semiring, the relation $a \\le b \\iff a + b = b$ is a [[partial order|011C29Q1S1]].\nFor this order, $a + b$ is the least upper bound of $a$ and $b$, the element $0$ is the least element, and multiplication is monotone on both sides.\nExample: the Boolean semiring $\\set{0, 1}$ with $a + b = \\max(a, b)$ and $a \\cdot b = \\min(a, b)$ is idempotent, since $\\max(a, a) = a$.\nExample: the subsets of the [[free monoid|27ZPTJP9PP]] $\\Sigma^*$ on an alphabet $\\Sigma$, with union as addition and concatenation as multiplication, form an idempotent semiring, since $L \\cup L = L$.\nNon-example: $\\N$ with the usual operations is a semiring but is not idempotent, since $1 + 1 = 2 \\ne 1$.\nA ring is idempotent only if it is the zero ring, since $a + a = a$ gives $a = 0$.\nIdempotent semirings are also called *dioids*.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "defines": "JCSAC9Y1CV",
    "kind": "definition",
    "msc": [
      "16Y60",
      "06F05"
    ],
    "name": "Idempotent semiring",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Semiring"
      }
    ],
    "tag": "NA44T2NZE2",
    "uses": [
      "Q07RA7AMDE",
      "011C29Q1S1",
      "27ZPTJP9PP"
    ]
  },
  "kind": "definition",
  "link": "https://tamnd.github.io/math2/node/NA44T2NZE2/",
  "links": [
    {
      "field": "defines",
      "target": "JCSAC9Y1CV"
    },
    {
      "field": "uses",
      "target": "Q07RA7AMDE"
    },
    {
      "field": "uses",
      "target": "011C29Q1S1"
    },
    {
      "field": "uses",
      "target": "27ZPTJP9PP"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/NA44T2NZE2.md",
  "msc": [
    "16Y60",
    "06F05"
  ],
  "name": "Idempotent semiring",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/NA4/NA44T2NZE2.md",
  "status": null,
  "tag": "NA44T2NZE2",
  "uri": "m2://NA44T2NZE2",
  "url": "https://tamnd.github.io/math2/wiki/idempotent-semiring-definition/",
  "writing": {
    "tag": "NA44T2NZE2",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      },
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
