{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Proof\n\nWe check the definition of injectivity directly.\n\n1. Let $f \\colon A \\to B$ and $g \\colon B \\to C$ be [[injective|0PVG1CRAJN]] functions.\n2. Let $a, a' \\in A$ with $(g \\circ f)(a) = (g \\circ f)(a')$.\n3. By the definition of [[composition|07HF9YCWPP]], step 2 says $g(f(a)) = g(f(a'))$.\n4. Since $g$ is injective and $f(a), f(a') \\in B$, step 3 gives $f(a) = f(a')$.\n5. Since $f$ is injective, step 4 gives $a = a'$.\n6. So $(g \\circ f)(a) = (g \\circ f)(a')$ implies $a = a'$ for all $a, a' \\in A$. Hence $g \\circ f$ is injective.\n\n## Idea\n\nTo go back from an equal output of $g \\circ f$ to equal inputs, peel off one function at a time. Injectivity of $g$ removes $g$, and then injectivity of $f$ removes $f$.\n",
  "commit": "68a8c3dc73fd55004b2796431c607c30960d1a85",
  "front": {
    "kind": "proof",
    "msc": [
      "03E20"
    ],
    "name": "Proof that a composition of injections is injective",
    "proves": "01FPXMTBX1",
    "sources": [
      {
        "url": "https://proofwiki.org/wiki/Composite_of_Injections_is_Injection"
      }
    ],
    "tag": "6ZEQS0E0MA",
    "uses": [
      "0PVG1CRAJN",
      "07HF9YCWPP"
    ]
  },
  "kind": "proof",
  "link": "https://math2.tamnd.com/node/6ZEQS0E0MA/",
  "links": [
    {
      "field": "proves",
      "target": "01FPXMTBX1"
    },
    {
      "field": "uses",
      "target": "0PVG1CRAJN"
    },
    {
      "field": "uses",
      "target": "07HF9YCWPP"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/6ZEQS0E0MA.md",
  "msc": [
    "03E20"
  ],
  "name": "Proof that a composition of injections is injective",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/6ZE/6ZEQS0E0MA.md",
  "status": null,
  "tag": "6ZEQS0E0MA",
  "uri": "m2://6ZEQS0E0MA",
  "url": "https://math2.tamnd.com/wiki/proof-that-a-composition-of-injections-is-injective/",
  "writing": {
    "tag": "6ZEQS0E0MA",
    "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
      }
    ]
  }
}
