{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe show that each side has the same elements as the other. Two [[sets|0SJ3RX9TXA]] with the same elements are equal, by the [[axiom of extensionality|0TB16T2C97]].\n\n1. Let $U$ be a set, let $A, B \\subseteq U$, and write $X^c = U \\setminus X$ for the [[complement|0B1FSS1VZW]] of $X \\subseteq U$.\n2. Let $x$ be an object. By the definitions of complement and [[union|07KVB4JSC7]], $x \\in (A \\cup B)^c$ holds exactly when $x \\in U$ and $\\neg (x \\in A \\lor x \\in B)$.\n3. By the first of [[De Morgan's laws|09PKJKA6J0]], $\\neg (x \\in A \\lor x \\in B)$ is equivalent to $x \\notin A \\land x \\notin B$.\n4. So $x \\in (A \\cup B)^c$ holds exactly when $x \\in U$, $x \\notin A$ and $x \\notin B$. This says $x \\in A^c$ and $x \\in B^c$.\n5. By the definition of [[intersection|0HBRW4E6G1]], step 4 says that $x \\in (A \\cup B)^c$ holds exactly when $x \\in A^c \\cap B^c$. Hence $(A \\cup B)^c = A^c \\cap B^c$.\n6. By the definitions of complement and intersection, $x \\in (A \\cap B)^c$ holds exactly when $x \\in U$ and $\\neg (x \\in A \\land x \\in B)$.\n7. By the second of De Morgan's laws, $\\neg (x \\in A \\land x \\in B)$ is equivalent to $x \\notin A \\lor x \\notin B$.\n8. So $x \\in (A \\cap B)^c$ holds exactly when $x \\in U$, and $x \\notin A$ or $x \\notin B$. This says $x \\in A^c$ or $x \\in B^c$.\n9. By the definition of union, step 8 says that $x \\in (A \\cap B)^c$ holds exactly when $x \\in A^c \\cup B^c$. Hence $(A \\cap B)^c = A^c \\cup B^c$.\n\n## Idea\n\nComplement means \"not\", union means \"or\" and intersection means \"and\". Written for one element, each set law becomes one of De Morgan's laws of logic.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "03E20"
    ],
    "name": "Proof of De Morgan's laws for sets",
    "proves": "0VK0W4D5Y5",
    "sources": [
      {
        "locator": "Proof for set theory",
        "url": "https://en.wikipedia.org/wiki/De_Morgan's_laws"
      }
    ],
    "tag": "64395G4VWB",
    "uses": [
      "0SJ3RX9TXA",
      "0TB16T2C97",
      "0B1FSS1VZW",
      "07KVB4JSC7",
      "0HBRW4E6G1",
      "09PKJKA6J0"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/64395G4VWB/",
  "links": [
    {
      "field": "proves",
      "target": "0VK0W4D5Y5"
    },
    {
      "field": "uses",
      "target": "0SJ3RX9TXA"
    },
    {
      "field": "uses",
      "target": "0TB16T2C97"
    },
    {
      "field": "uses",
      "target": "0B1FSS1VZW"
    },
    {
      "field": "uses",
      "target": "07KVB4JSC7"
    },
    {
      "field": "uses",
      "target": "0HBRW4E6G1"
    },
    {
      "field": "uses",
      "target": "09PKJKA6J0"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/64395G4VWB.md",
  "msc": [
    "03E20"
  ],
  "name": "Proof of De Morgan's laws for sets",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/643/64395G4VWB.md",
  "status": null,
  "tag": "64395G4VWB",
  "uri": "m2://64395G4VWB",
  "url": "https://math2.tamnd.com/wiki/proof-of-de-morgans-laws-for-sets/",
  "writing": {
    "tag": "64395G4VWB",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
