{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nFor a complex number $z = u + vi$, write $\\abs{z}^2 = u^2 + v^2$. Recall $\\abs{zw}^2 = \\abs{z}^2 \\abs{w}^2$, and $\\abs{\\gamma}^2 = N(\\gamma)$ for a [[Gaussian integer|0B268GVX95]] $\\gamma$, where $N$ is the [[norm|00HPT88ZX0]].\n\n1. Since $\\beta \\ne 0$, $N(\\beta) = \\beta\\bar\\beta$ is a positive integer. So $\\dfrac{\\alpha}{\\beta} = \\dfrac{\\alpha \\bar\\beta}{N(\\beta)} = s + ti$ with rational numbers $s$ and $t$.\n2. Choose integers $m$ and $n$ with $\\abs{s - m} \\le \\frac{1}{2}$ and $\\abs{t - n} \\le \\frac{1}{2}$, for example the nearest integers to $s$ and $t$.\n3. Put $q = m + ni$ and $r = \\alpha - q\\beta$. Both are Gaussian integers, since $\\mathbb{Z}[i]$ is closed under sums and products. And $\\alpha = q\\beta + r$.\n4. We have $r = \\beta \\left(\\dfrac{\\alpha}{\\beta} - q\\right) = \\beta \\big((s - m) + (t - n)i\\big)$.\n5. So $N(r) = N(\\beta) \\big((s - m)^2 + (t - n)^2\\big) \\le N(\\beta) \\left(\\frac{1}{4} + \\frac{1}{4}\\right) = \\frac{1}{2} N(\\beta)$.\n6. Since $N(\\beta) \u003e 0$, this gives $N(r) \u003c N(\\beta)$. This proves the division statement.\n7. The ring $\\mathbb{Z}[i]$ is a subring of the field $\\C$. A product of nonzero complex numbers is nonzero, so $\\mathbb{Z}[i]$ is an [[integral domain|09S3PFBEPM]].\n8. The norm takes nonzero Gaussian integers to positive integers, so it is a function $\\mathbb{Z}[i] \\setminus \\set{0} \\to \\N$.\n9. By steps 3 and 6, for all $\\alpha$ and $\\beta \\ne 0$ there are $q$, $r$ with $\\alpha = q\\beta + r$ and $r = 0$ or $N(r) \u003c N(\\beta)$. So $\\mathbb{Z}[i]$ with the norm is a [[Euclidean domain|0GJ2HRG95T]].\n\n## Idea\n\nDivide $\\alpha$ by $\\beta$ as complex numbers and round the quotient to the nearest lattice point $q$.\nThe rounding error is a complex number of absolute value at most $\\sqrt{2}/2$.\nSo the remainder $r = \\beta(\\alpha/\\beta - q)$ has norm at most half the norm of $\\beta$.\n",
  "commit": "4a3290d299c8b2cd6493fce2296920ba7f82d942",
  "front": {
    "kind": "proof",
    "msc": [
      "11R11"
    ],
    "name": "Proof that the Gaussian integers form a Euclidean domain",
    "proves": "0SPYEFH7H4",
    "sources": [
      {
        "locator": "Euclidean division",
        "url": "https://en.wikipedia.org/wiki/Gaussian_integer"
      }
    ],
    "tag": "BGTREPJS1V",
    "uses": [
      "0B268GVX95",
      "00HPT88ZX0",
      "0GJ2HRG95T",
      "09S3PFBEPM"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/BGTREPJS1V/",
  "links": [
    {
      "field": "proves",
      "target": "0SPYEFH7H4"
    },
    {
      "field": "uses",
      "target": "0B268GVX95"
    },
    {
      "field": "uses",
      "target": "00HPT88ZX0"
    },
    {
      "field": "uses",
      "target": "0GJ2HRG95T"
    },
    {
      "field": "uses",
      "target": "09S3PFBEPM"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/BGTREPJS1V.md",
  "msc": [
    "11R11"
  ],
  "name": "Proof that the Gaussian integers form a Euclidean domain",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/BGT/BGTREPJS1V.md",
  "status": null,
  "tag": "BGTREPJS1V",
  "uri": "m2://BGTREPJS1V",
  "url": "https://math2.tamnd.com/wiki/proof-that-the-gaussian-integers-form-a-euclidean-domain/",
  "writing": {
    "tag": "BGTREPJS1V",
    "kind": "proof",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
