{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "7VJGH5BKKA"
    },
    {
      "field": "uses",
      "target": "DBWS5MMPZD"
    },
    {
      "field": "uses",
      "target": "E6F61940F9"
    },
    {
      "field": "uses",
      "target": "K9XQKT69WF"
    },
    {
      "field": "uses",
      "target": "S0DAGR1WN7"
    },
    {
      "field": "defines",
      "target": "E0QDPSKX3R"
    }
  ],
  "body": "\n## Summary\n\nA ternary operation on a set $A$ is a [[finitary operation|EJ8YJVM9BW]] of [[arity|MSXX2P86CY]] $3$, a function from $A^3$ to $A$.\nTernary operations appear naturally in universal algebra.\nExamples are the operation $x y^{-1} z$ of a [[group|G5S1M9]], which turns a group into a [[heap|V389A4WGH9]], and the [[ternary discriminator|72PG6XCQ7D]].\nMany conditions on [[varieties|AJNZJD8442]] are stated with ternary terms, such as a [[Mal'cev term|Y203PPTS61]] or a [[majority term|9879ZMW5AA]].\n\n## Explanations\n\n### L1 human\n\nA ternary operation takes three elements and gives one.\nOn the integers, $(x, y, z) \\mapsto x - y + z$ is an example.\nOn a totally ordered set, the median of three elements, the one in the middle, is another example.\nThe rule \"if $x$ then $y$ else $z$\" on truth values is a third example.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "08A02",
      "08A62"
    ],
    "name": "Ternary operation",
    "same_as": {
      "wikidata": "Q1524945",
      "wikipedia": "Ternary operation"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Ternary_operation"
      }
    ],
    "specializes": [
      "EJ8YJVM9BW"
    ],
    "tag": "WC47MFR6GW"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/WC47MFR6GW/",
  "links": [
    {
      "field": "specializes",
      "target": "EJ8YJVM9BW"
    }
  ],
  "markdown": "https://tamnd.github.io/math2/node/WC47MFR6GW.md",
  "msc": [
    "08A02",
    "08A62"
  ],
  "name": "Ternary operation",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/WC4/WC47MFR6GW.md",
  "status": null,
  "tag": "WC47MFR6GW",
  "uri": "m2://WC47MFR6GW",
  "url": "https://tamnd.github.io/math2/wiki/ternary-operation/",
  "writing": {
    "tag": "WC47MFR6GW",
    "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
      }
    ]
  }
}
