{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "0JJ9J1XZ8G"
    },
    {
      "field": "uses",
      "target": "0Z49NTR1DZ"
    }
  ],
  "body": "\n## Definition\n\nLet $A$ and $B$ be [[sets|0SJ3RX9TXA]].\nThe set difference of $A$ and $B$ is the set\n$$A \\setminus B = \\{x \\in A \\mid x \\notin B\\}.$$\nIt is also called the relative complement of $B$ in $A$.\n\n## Remarks\n\nAnother notation is $A - B$.\nExample: $\\{1, 2, 3\\} \\setminus \\{2, 4\\} = \\{1, 3\\}$.\nThe set $B$ need not be a subset of $A$.\nIn general, $A \\setminus B \\neq B \\setminus A$.\n\n## Explanations\n\n### L1 human\n\nTo compute $A \\setminus B$, start with $A$ and remove each element that is also in $B$.\nElements of $B$ that are not in $A$ do not matter.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "defines": "05WTQ6FFPS",
    "kind": "definition",
    "msc": [
      "03E20"
    ],
    "name": "Set difference",
    "sources": [
      {
        "locator": "Relative complement",
        "url": "https://en.wikipedia.org/wiki/Complement_(set_theory)"
      }
    ],
    "tag": "0DT0TCV75N",
    "uses": [
      "0SJ3RX9TXA",
      "0EZ758XE73",
      "0XR7A7RSXB"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0DT0TCV75N/",
  "links": [
    {
      "field": "defines",
      "target": "05WTQ6FFPS"
    },
    {
      "field": "uses",
      "target": "0SJ3RX9TXA"
    },
    {
      "field": "uses",
      "target": "0EZ758XE73"
    },
    {
      "field": "uses",
      "target": "0XR7A7RSXB"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0DT0TCV75N.md",
  "msc": [
    "03E20"
  ],
  "name": "Set difference",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0DT/0DT0TCV75N.md",
  "status": null,
  "tag": "0DT0TCV75N",
  "uri": "m2://0DT0TCV75N",
  "url": "https://math2.tamnd.com/wiki/set-difference-definition/",
  "writing": {
    "tag": "0DT0TCV75N",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
