{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nA *relation algebra* is a structure $(A, \\vee, \\wedge, -, 0, 1, ;, c, 1')$, where $;$ is a binary operation, $c$ is a unary operation and $1'$ is an element of $A$.\nWrite $\\breve{x}$ for $c(x)$.\nThe following hold for all $x, y, z \\in A$:\n\n1. $(A, \\vee, \\wedge, -, 0, 1)$ is a [[Boolean algebra|0XADJKM699]], with order $\\le$.\n2. $(A, ;, 1')$ is a [[monoid|0N6R902FG1]].\n3. $(x \\vee y) ; z = (x ; z) \\vee (y ; z)$.\n4. $\\breve{\\breve{x}} = x$ and $\\breve{(x \\vee y)} = \\breve{x} \\vee \\breve{y}$.\n5. $\\breve{(x ; y)} = \\breve{y} ; \\breve{x}$.\n6. $\\breve{x} ; -(x ; y) \\le -y$.\n\n## Remarks\n\nExample: let $U$ be a set and let $A$ be the set of all [[binary relations|05AVARPXA2]] on $U$, with the set operations.\nLet $;$ be the [[composition|0PYSR20HGF]] $R ; S = \\set{(a, c) : (a, b) \\in R \\text{ and } (b, c) \\in S \\text{ for some } b}$.\nLet $\\breve{R}$ be the [[converse|054K3HNN5Z]] relation and $1'$ the identity relation.\nCheck of clause 6: if $(a, c) \\in \\breve{R} ; -(R ; S)$, there is $b$ with $(b, a) \\in R$ and $(b, c) \\notin R ; S$.\nIf $(a, c)$ were in $S$, then $(b, c) \\in R ; S$; so $(a, c) \\notin S$.\n\nNon-example: on the relations of a set $U$ with at least two elements, keep the Boolean operations, $;$ and $1'$, but take $\\breve{R} = R$.\nClause 5 then says $R ; S = S ; R$ for all relations, which fails for $U = \\set{a, b}$, $R = \\set{(a, b)}$ and $S = \\set{(b, b)}$, since $R ; S = \\set{(a, b)}$ and $S ; R = \\emptyset$.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "defines": "GQK4DSA11K",
    "kind": "definition",
    "msc": [
      "03G15"
    ],
    "name": "Relation algebra",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Relation_algebra"
      }
    ],
    "tag": "RDSY11X6N2",
    "uses": [
      "0XADJKM699",
      "0N6R902FG1",
      "05AVARPXA2",
      "0PYSR20HGF",
      "054K3HNN5Z"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/RDSY11X6N2/",
  "links": [
    {
      "field": "defines",
      "target": "GQK4DSA11K"
    },
    {
      "field": "uses",
      "target": "0XADJKM699"
    },
    {
      "field": "uses",
      "target": "0N6R902FG1"
    },
    {
      "field": "uses",
      "target": "05AVARPXA2"
    },
    {
      "field": "uses",
      "target": "0PYSR20HGF"
    },
    {
      "field": "uses",
      "target": "054K3HNN5Z"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/RDSY11X6N2.md",
  "msc": [
    "03G15"
  ],
  "name": "Relation algebra",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/RDS/RDSY11X6N2.md",
  "status": null,
  "tag": "RDSY11X6N2",
  "uri": "m2://RDSY11X6N2",
  "url": "https://math2.tamnd.com/wiki/relation-algebra-definition/",
  "writing": {
    "tag": "RDSY11X6N2",
    "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
      }
    ]
  }
}
