{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "50D3KZHQ7B"
    },
    {
      "field": "uses",
      "target": "K8RE4YQ1S9"
    },
    {
      "field": "uses",
      "target": "MZW52JVTBX"
    },
    {
      "field": "uses",
      "target": "Y4AQFH6N3Y"
    },
    {
      "field": "defines",
      "target": "YZXPWC2MT1"
    }
  ],
  "body": "\n## Summary\n\nThe arity of an operation, a function or a relation is the number of arguments it takes.\nAn operation of arity $n$ is called $n$-ary: nullary for $0$, unary for $1$, binary for $2$ and ternary for $3$.\nArities are part of every [[signature|WDVVEYD6AT]], and they tell what kind of interpretation each symbol gets in a [[structure|983GZBQYT4]].\n\n## Explanations\n\n### L1 human\n\nThe arity counts the inputs.\nNegation $x \\mapsto -x$ takes one number, so its arity is $1$.\nAddition $(x, y) \\mapsto x + y$ takes two numbers, so its arity is $2$.\nThe relation \"$x$ lies between $y$ and $z$\" compares three points, so its arity is $3$.\nA constant such as $0$ takes no input at all and is seen as an operation of arity $0$.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "08A02",
      "03C07"
    ],
    "name": "Arity",
    "same_as": {
      "wikidata": "Q1315869",
      "wikipedia": "Arity"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Arity"
      }
    ],
    "tag": "MSXX2P86CY"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/MSXX2P86CY/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/MSXX2P86CY.md",
  "msc": [
    "08A02",
    "03C07"
  ],
  "name": "Arity",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/MSX/MSXX2P86CY.md",
  "status": null,
  "tag": "MSXX2P86CY",
  "uri": "m2://MSXX2P86CY",
  "url": "https://tamnd.github.io/math2/wiki/arity/",
  "writing": {
    "tag": "MSXX2P86CY",
    "kind": "concept",
    "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
      }
    ]
  }
}
