{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $m, n \\ge 1$ be integers.\nA *Boolean matrix* of size $m \\times n$ is an $m \\times n$ [[matrix|0VD9ZSWWJG]] $A = (a_{ij})$ with every entry $a_{ij} \\in \\set{0, 1}$.\nLet $A$ be a Boolean matrix of size $m \\times n$ and $B$ one of size $n \\times p$.\nTheir *Boolean product* $A \\odot B$ is the $m \\times p$ Boolean matrix with entries\n$$(A \\odot B)_{ik} = \\max_{1 \\le j \\le n} \\min(a_{ij}, b_{jk}),$$\nthat is, $(A \\odot B)_{ik} = 1$ exactly when there is some $j$ with $a_{ij} = b_{jk} = 1$.\n\n## Remarks\n\nEquivalently, the entries are computed in the Boolean semiring $\\set{0, 1}$ with $1 + 1 = 1$.\nFor finite sets $X = \\set{x_1, \\ldots, x_m}$ and $Y = \\set{y_1, \\ldots, y_n}$, a [[relation|05AVARPXA2]] $R \\subseteq X \\times Y$ has the Boolean matrix with $a_{ij} = 1$ exactly when $(x_i, y_j) \\in R$.\nIf $S \\subseteq Y \\times Z$ has matrix $B$, then the [[composite relation|0PYSR20HGF]] \"first $R$, then $S$\" has matrix $A \\odot B$.\nExample: for $A = \\begin{pmatrix} 1 \u0026 1 \\\\ 0 \u0026 1 \\end{pmatrix}$, $A \\odot A = A$, since the entry $(1,2)$ is $\\max(\\min(1,1), \\min(1,1)) = 1$ and the entry $(2,1)$ is $\\max(\\min(0,1), \\min(1,0)) = 0$; the ordinary product would give the entry $2$ at $(1,2)$.\nNon-example: $\\begin{pmatrix} 1 \u0026 2 \\\\ 0 \u0026 1 \\end{pmatrix}$ is not a Boolean matrix, because the entry $2$ is not in $\\set{0, 1}$.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "defines": "AS4WVMYEDZ",
    "kind": "definition",
    "msc": [
      "15B34",
      "05C50"
    ],
    "name": "Boolean matrix",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Logical_matrix"
      }
    ],
    "tag": "HC3BQBQECH",
    "uses": [
      "0VD9ZSWWJG",
      "05AVARPXA2",
      "0PYSR20HGF"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/HC3BQBQECH/",
  "links": [
    {
      "field": "defines",
      "target": "AS4WVMYEDZ"
    },
    {
      "field": "uses",
      "target": "0VD9ZSWWJG"
    },
    {
      "field": "uses",
      "target": "05AVARPXA2"
    },
    {
      "field": "uses",
      "target": "0PYSR20HGF"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/HC3BQBQECH.md",
  "msc": [
    "15B34",
    "05C50"
  ],
  "name": "Boolean matrix",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/HC3/HC3BQBQECH.md",
  "status": null,
  "tag": "HC3BQBQECH",
  "uri": "m2://HC3BQBQECH",
  "url": "https://math2.tamnd.com/wiki/boolean-matrix-definition/",
  "writing": {
    "tag": "HC3BQBQECH",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
