{
  "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]]. Let $A$, $B$ and $C$ be sets.\n\n1. Let $x \\in A \\cap (B \\cup C)$. By the definition of [[intersection|0HBRW4E6G1]], $x \\in A$ and $x \\in B \\cup C$. By the definition of [[union|07KVB4JSC7]], $x \\in B$ or $x \\in C$.\n2. In step 1, if $x \\in B$, then $x \\in A \\cap B$. If $x \\in C$, then $x \\in A \\cap C$. In both cases $x \\in (A \\cap B) \\cup (A \\cap C)$.\n3. Conversely, let $x \\in (A \\cap B) \\cup (A \\cap C)$. Then $x \\in A \\cap B$ or $x \\in A \\cap C$.\n4. In step 3, if $x \\in A \\cap B$, then $x \\in A$ and $x \\in B \\subseteq B \\cup C$. If $x \\in A \\cap C$, then $x \\in A$ and $x \\in C \\subseteq B \\cup C$. In both cases $x \\in A \\cap (B \\cup C)$.\n5. By steps 2 and 4, the sets $A \\cap (B \\cup C)$ and $(A \\cap B) \\cup (A \\cap C)$ have the same elements. So they are equal.\n6. Let $x \\in A \\cup (B \\cap C)$. Then $x \\in A$ or $x \\in B \\cap C$.\n7. In step 6, if $x \\in A$, then $x \\in A \\cup B$ and $x \\in A \\cup C$. If $x \\in B \\cap C$, then $x \\in B$, so $x \\in A \\cup B$, and $x \\in C$, so $x \\in A \\cup C$.\n8. By step 7, in both cases $x \\in (A \\cup B) \\cap (A \\cup C)$.\n9. Conversely, let $x \\in (A \\cup B) \\cap (A \\cup C)$. Then $x \\in A \\cup B$ and $x \\in A \\cup C$. By the [[law of excluded middle|0RYYK8PG4S]], either $x \\in A$ or $x \\notin A$.\n10. In step 9, if $x \\in A$, then $x \\in A \\cup (B \\cap C)$.\n11. In step 9, if $x \\notin A$, then $x \\in A \\cup B$ forces $x \\in B$, and $x \\in A \\cup C$ forces $x \\in C$. So $x \\in B \\cap C \\subseteq A \\cup (B \\cap C)$.\n12. By steps 8, 10 and 11, the sets $A \\cup (B \\cap C)$ and $(A \\cup B) \\cap (A \\cup C)$ have the same elements. So they are equal.\n\n## Idea\n\nMembership in a union is an \"or\", and membership in an intersection is an \"and\". So each set law reduces to a statement about an element, checked by splitting into cases. For the second law, the useful split is whether or not $x$ lies in $A$.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "methods": [
      "0WCP0PVET6"
    ],
    "msc": [
      "03E20"
    ],
    "name": "Proof of the distributive laws for sets",
    "proves": "08N6EVA7DV",
    "sources": [
      {
        "url": "https://proofwiki.org/wiki/Intersection_Distributes_over_Union"
      },
      {
        "url": "https://proofwiki.org/wiki/Union_Distributes_over_Intersection"
      }
    ],
    "tag": "4WJHCT0JF4",
    "uses": [
      "0SJ3RX9TXA",
      "0TB16T2C97",
      "07KVB4JSC7",
      "0HBRW4E6G1",
      "0RYYK8PG4S"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/4WJHCT0JF4/",
  "links": [
    {
      "field": "proves",
      "target": "08N6EVA7DV"
    },
    {
      "field": "uses",
      "target": "0SJ3RX9TXA"
    },
    {
      "field": "uses",
      "target": "0TB16T2C97"
    },
    {
      "field": "uses",
      "target": "07KVB4JSC7"
    },
    {
      "field": "uses",
      "target": "0HBRW4E6G1"
    },
    {
      "field": "uses",
      "target": "0RYYK8PG4S"
    },
    {
      "field": "methods",
      "target": "0WCP0PVET6"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/4WJHCT0JF4.md",
  "msc": [
    "03E20"
  ],
  "name": "Proof of the distributive laws for sets",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/4WJ/4WJHCT0JF4.md",
  "status": null,
  "tag": "4WJHCT0JF4",
  "uri": "m2://4WJHCT0JF4",
  "url": "https://math2.tamnd.com/wiki/proof-of-the-distributive-laws-for-sets/",
  "writing": {
    "tag": "4WJHCT0JF4",
    "kind": "proof",
    "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
      }
    ]
  }
}
