{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Statement\n\nLet $G$ be an [[abelian group|082GHNPJ53]], and let $A$, $B$ and $C$ be finite subsets of $G$.\nThen the difference sets satisfy\n$$\\abs{A} \\, \\abs{B - C} \\le \\abs{A - B} \\, \\abs{A - C}.$$\n\n## Remarks\n\nThe proof is an injection from $A \\times (B - C)$ into $(A - B) \\times (A - C)$.\nFor each $d \\in B - C$, fix one pair $(b_d, c_d)$ with $d = b_d - c_d$.\nSend $(a, d)$ to $(a - b_d, \\ a - c_d)$.\nThe difference of the two coordinates is $d$, which recovers $b_d$ and $c_d$, and then $a$.\nThe name comes from the distance $d(A, B) = \\log \\big( \\abs{A - B} / \\sqrt{\\abs{A}\\abs{B}} \\big)$ on nonempty finite sets.\nThe inequality is exactly $d(B, C) \\le d(B, A) + d(A, C)$.\nThis $d$ is not a metric, since $d(A, A) \u003e 0$ unless $A$ is a coset of a finite subgroup.\nFor example, with $A = B = C = \\set{0, 1}$ in $\\Z$, the inequality reads $2 \\cdot 3 \\le 3 \\cdot 3$.\n\n## Explanations\n\n### L1 human\n\nThe size of a difference set measures how well two sets fit together under subtraction.\nThe inequality says that if $A$ fits well with $B$ and with $C$, then $B$ and $C$ fit well with each other.\nIt behaves like the triangle inequality for distances.\n\n### L2 human\n\nThe Ruzsa triangle inequality is one of the first tools of [[additive combinatorics|3NM362A2JG]].\nTogether with the [[Plünnecke–Ruzsa inequality|EBEVWSRD2E]], it lets one pass between bounds on $A + A$, $A - A$ and longer sums.\nThe same injection proves a version in nonabelian groups, with products and inverses in place of sums and differences.\n",
  "commit": "efe85cee8dbc57d85bedbacfb97b99d1b7bee843",
  "front": {
    "about": [
      "XNBN31HQWB"
    ],
    "kind": "statement",
    "msc": [
      "11P70",
      "11B13"
    ],
    "name": "Ruzsa triangle inequality",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q85798239",
      "wikipedia": "Ruzsa triangle inequality"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Ruzsa_triangle_inequality"
      }
    ],
    "tag": "R7E5A4W6FJ",
    "uses": [
      "XNBN31HQWB",
      "082GHNPJ53"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/R7E5A4W6FJ/",
  "links": [
    {
      "field": "about",
      "target": "XNBN31HQWB"
    },
    {
      "field": "uses",
      "target": "XNBN31HQWB"
    },
    {
      "field": "uses",
      "target": "082GHNPJ53"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/R7E5A4W6FJ.md",
  "msc": [
    "11P70",
    "11B13"
  ],
  "name": "Ruzsa triangle inequality",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/R7E/R7E5A4W6FJ.md",
  "status": null,
  "tag": "R7E5A4W6FJ",
  "uri": "m2://R7E5A4W6FJ",
  "url": "https://math2.tamnd.com/wiki/ruzsa-triangle-inequality/",
  "writing": {
    "tag": "R7E5A4W6FJ",
    "kind": "statement",
    "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
      }
    ]
  }
}
