{
  "aliases": [
    "sgn"
  ],
  "backlinks": [
    {
      "field": "uses",
      "target": "0771AJP4BX"
    },
    {
      "field": "uses",
      "target": "0JEJJCB0EX"
    },
    {
      "field": "uses",
      "target": "0V0E04DWX2"
    }
  ],
  "body": "\n## Definition\n\nLet $n \\geq 2$ and let $\\sigma \\in S_n$.\nWrite $\\sigma = \\tau_1 \\tau_2 \\cdots \\tau_m$ as a product of [[transpositions|0FWVRHBRWM]].\nThe sign of $\\sigma$ is $\\operatorname{sgn}(\\sigma) = (-1)^m$.\n\n## Remarks\n\nThe parity of $m$ does not depend on the decomposition, so the sign is well defined.\nEquivalently, $\\operatorname{sgn}(\\sigma) = (-1)^{N(\\sigma)}$, where $N(\\sigma)$ is the number of pairs $i \u003c j$ with $\\sigma(i) \u003e \\sigma(j)$.\nThe sign of a permutation is the determinant of its permutation matrix.\n\n## Explanations\n\n### L1 human\n\nEach permutation is a product of swaps, and the number of swaps is always even or always odd.\nThe sign records this: $+1$ for an even number and $-1$ for an odd number.\nA single swap has sign $-1$.\n",
  "commit": "f591989ed15704e9d8755a7a5a6426d73de7a3ae",
  "front": {
    "aliases": [
      "sgn"
    ],
    "defines": "02DKV69ZH0",
    "kind": "definition",
    "msc": [
      "20B30"
    ],
    "name": "Sign of a permutation",
    "sources": [
      {
        "locator": "lead section",
        "url": "https://en.wikipedia.org/wiki/Parity_of_a_permutation"
      }
    ],
    "tag": "0SK90238BH",
    "uses": [
      "0XK6FECMW5"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/0SK90238BH/",
  "links": [
    {
      "field": "defines",
      "target": "02DKV69ZH0"
    },
    {
      "field": "uses",
      "target": "0XK6FECMW5"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/0SK90238BH.md",
  "msc": [
    "20B30"
  ],
  "name": "Sign of a permutation",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/0SK/0SK90238BH.md",
  "status": null,
  "tag": "0SK90238BH",
  "uri": "m2://0SK90238BH",
  "url": "https://math2.tamnd.com/wiki/sign-of-a-permutation-definition/",
  "writing": {
    "tag": "0SK90238BH",
    "kind": "definition",
    "level": "W0",
    "next": [
      {
        "what": "an inventory row",
        "note": "the row of the inventory that the node accounts for",
        "have": 0,
        "want": 1
      }
    ]
  }
}
