{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\n1. Let $A$ and $B$ be [[countable sets|0ZG61TFBES]]. By definition, there are [[injective functions|0PVG1CRAJN]] $f \\colon A \\to \\N$ and $g \\colon B \\to \\N$.\n2. Define $h \\colon A \\times B \\to \\N \\times \\N$ on the [[Cartesian product|0C81YBVTWH]] by $h(a, b) = (f(a), g(b))$.\n3. The map $h$ is injective. If $h(a, b) = h(a', b')$, then $f(a) = f(a')$ and $g(b) = g(b')$. So $a = a'$ and $b = b'$, since $f$ and $g$ are injective.\n4. Let $\\pi \\colon \\N \\times \\N \\to \\N$ be the [[Cantor pairing function|0NP5N5PYW5]], $\\pi(x, y) = (x + y)(x + y + 1)/2 + y$. It is a bijection, so it is injective.\n5. The composite $\\pi \\circ h \\colon A \\times B \\to \\N$ is [[injective|01FPXMTBX1]], as a composition of injections.\n6. Hence $A \\times B$ is countable.\n\n## Idea\n\nCountable means \"can be labelled by natural numbers without repeats\". A pair gets a pair of labels, and the Cantor pairing function packs a pair of natural numbers into one natural number without collisions.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "03E10"
    ],
    "name": "Proof that the product of countable sets is countable",
    "proves": "08G4XH86JC",
    "sources": [
      {
        "locator": "Formal Proof 1",
        "url": "https://proofwiki.org/wiki/Cartesian_Product_of_Countable_Sets_is_Countable"
      }
    ],
    "tag": "AK41NNRHGD",
    "uses": [
      "0ZG61TFBES",
      "0C81YBVTWH",
      "0NP5N5PYW5",
      "0PVG1CRAJN",
      "01FPXMTBX1"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/AK41NNRHGD/",
  "links": [
    {
      "field": "proves",
      "target": "08G4XH86JC"
    },
    {
      "field": "uses",
      "target": "0ZG61TFBES"
    },
    {
      "field": "uses",
      "target": "0C81YBVTWH"
    },
    {
      "field": "uses",
      "target": "0NP5N5PYW5"
    },
    {
      "field": "uses",
      "target": "0PVG1CRAJN"
    },
    {
      "field": "uses",
      "target": "01FPXMTBX1"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/AK41NNRHGD.md",
  "msc": [
    "03E10"
  ],
  "name": "Proof that the product of countable sets is countable",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/AK4/AK41NNRHGD.md",
  "status": null,
  "tag": "AK41NNRHGD",
  "uri": "m2://AK41NNRHGD",
  "url": "https://math2.tamnd.com/wiki/proof-that-the-product-of-countable-sets-is-countable/",
  "writing": {
    "tag": "AK41NNRHGD",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
