{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "08FKQD7NJ3"
    },
    {
      "field": "proves",
      "target": "RW1ZF04CRF"
    }
  ],
  "body": "\n## Statement\n\nLet $G$ be a [[group|G5S1M9]] with identity element $e$, and let $a, b \\in G$.\nIf $ab = e$, then $b = a^{-1}$.\n\n## Remarks\n\nIn particular, each element of a group has exactly one [[inverse|0ZNZH0EXFX]].\nThe same argument works in a [[monoid|0N6R902FG1]]: if $ba = e$ and $ac = e$, then $b = b(ac) = (ba)c = c$.\nTwo consequences are $(a^{-1})^{-1} = a$ and $(ab)^{-1} = b^{-1} a^{-1}$.\n\n## Explanations\n\n### L1 human\n\nIn a group, you only need to check one equation to know that $b$ is the inverse of $a$.\nMultiply $ab = e$ on the left by $a^{-1}$, and you get $b = a^{-1}$.\nThus the notation $a^{-1}$ makes sense: there is only one inverse.\n\n### L2 agent\n\nThe definition of a group asks for an inverse $b$ with $ab = e$ and $ba = e$. This result shows that one of the two equations is enough, and that the inverse is unique.\n\nThe proof uses only associativity and the identity:\n\n1. Suppose that $ab = e$.\n2. Multiply on the left by $a^{-1}$: $a^{-1}(ab) = a^{-1}e$.\n3. By associativity, the left side is $(a^{-1}a)b = eb = b$.\n4. The right side is $a^{-1}$. Thus $b = a^{-1}$.\n\nA worked example in $\\mathbb{Z}/7\\mathbb{Z}$ under multiplication of the units:\n\n1. We look for the inverse of $3$.\n2. We have $3 \\cdot 5 = 15 = 2 \\cdot 7 + 1$, so $3 \\cdot 5 = 1$.\n3. By the result, $5$ is the only inverse of $3$. There is no need to check $5 \\cdot 3$.\n\nTwo standard consequences follow at once. First, $(a^{-1})^{-1} = a$, because $a^{-1}a = e$. Second, $(ab)^{-1} = b^{-1}a^{-1}$, because $(ab)(b^{-1}a^{-1}) = e$.\n\nA common error is to write $(ab)^{-1} = a^{-1}b^{-1}$. This is false when $a$ and $b$ do not commute. In $S_3$, take $a = (1\\,2)$ and $b = (1\\,3)$: then $a^{-1}b^{-1} = (1\\,2)(1\\,3)$, but $(ab)^{-1} = (1\\,3)(1\\,2)$, and these differ.\n\nThe step that needs care is step 2. It uses the inverse $a^{-1}$, so the argument is for groups. In a monoid an element can have a right inverse and no left inverse.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "about": [
      "G5S1M9",
      "0ZNZH0EXFX"
    ],
    "formal": [
      {
        "adapter": "Math2.Match.inv_unique",
        "decl": "eq_inv_of_mul_eq_one_right",
        "library": "mathlib",
        "match": "stronger",
        "system": "lean4"
      }
    ],
    "kind": "statement",
    "msc": [
      "20A05"
    ],
    "name": "Uniqueness of inverses",
    "role": "proposition",
    "sources": [
      {
        "locator": "Definitions and basic properties",
        "url": "https://en.wikipedia.org/wiki/Inverse_element"
      }
    ],
    "tag": "0D9NDGE9KP",
    "uses": [
      "G5S1M9",
      "0BRHKKP333"
    ]
  },
  "kind": "statement",
  "link": "https://tamnd.github.io/math2/node/0D9NDGE9KP/",
  "links": [
    {
      "field": "about",
      "target": "G5S1M9"
    },
    {
      "field": "about",
      "target": "0ZNZH0EXFX"
    },
    {
      "field": "uses",
      "target": "G5S1M9"
    },
    {
      "field": "uses",
      "target": "0BRHKKP333"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/0D9NDGE9KP.md",
  "msc": [
    "20A05"
  ],
  "name": "Uniqueness of inverses",
  "prov": null,
  "role": "proposition",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0D9/0D9NDGE9KP.md",
  "status": null,
  "tag": "0D9NDGE9KP",
  "uri": "m2://0D9NDGE9KP",
  "url": "https://tamnd.github.io/math2/wiki/uniqueness-of-inverses/",
  "writing": {
    "tag": "0D9NDGE9KP",
    "kind": "statement",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
