{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "0C9S13WKMF"
    }
  ],
  "body": "\n## Statement\n\nFor all real numbers $a$ and $b$,\n$$|a + b| \\le |a| + |b|,$$\nwhere $|\\cdot|$ is the [[absolute value|00S7C68D51]].\n\n## Remarks\n\nProof: $-|a| \\le a \\le |a|$ and $-|b| \\le b \\le |b|$. Add these inequalities to get $-(|a| + |b|) \\le a + b \\le |a| + |b|$.\nEquality holds exactly when $a b \\ge 0$.\nFor distances, it gives $|x - z| \\le |x - y| + |y - z|$. The [[reverse triangle inequality|0C9S13WKMF]] is a consequence.\n\n## Explanations\n\n### L1 human\n\nThe name comes from geometry: one side of a triangle is never longer than the other two sides together.\nFor numbers, $|a + b|$ can be smaller than $|a| + |b|$ when $a$ and $b$ have opposite signs, for example $|5 + (-3)| = 2 \u003c 8$.\n",
  "commit": "6ac761d40018146541484a9e8b9eafd6ecc303dc",
  "front": {
    "kind": "statement",
    "msc": [
      "26A03"
    ],
    "name": "Triangle inequality",
    "role": "theorem",
    "same_as": {
      "wikidata": "Q208216",
      "wikipedia": "Triangle inequality"
    },
    "sources": [
      {
        "locator": "lead section",
        "url": "https://en.wikipedia.org/wiki/Triangle_inequality"
      },
      {
        "locator": "Real numbers",
        "url": "https://en.wikipedia.org/wiki/Absolute_value"
      }
    ],
    "tag": "03HF5PMY5T",
    "uses": [
      "00S7C68D51"
    ]
  },
  "kind": "statement",
  "link": "https://math2.tamnd.com/node/03HF5PMY5T/",
  "links": [
    {
      "field": "uses",
      "target": "00S7C68D51"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/03HF5PMY5T.md",
  "msc": [
    "26A03"
  ],
  "name": "Triangle inequality",
  "prov": null,
  "role": "theorem",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/03H/03HF5PMY5T.md",
  "status": null,
  "tag": "03HF5PMY5T",
  "uri": "m2://03HF5PMY5T",
  "url": "https://math2.tamnd.com/wiki/triangle-inequality/",
  "writing": {
    "tag": "03HF5PMY5T",
    "kind": "statement",
    "level": "W1",
    "next": [
      {
        "what": "edge about out",
        "note": "the concepts that the statement is about",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge proves in",
        "note": "at least one proof node",
        "have": 0,
        "want": 1
      },
      {
        "what": "edge instance_of or illustrates in",
        "note": "one example that shows the statement at work",
        "have": 0,
        "want": 1
      },
      {
        "what": "explanation L2",
        "have": 0,
        "want": 1
      }
    ]
  }
}
