{
  "aliases": null,
  "backlinks": [
    {
      "field": "uses",
      "target": "HHNJT9CBEJ"
    },
    {
      "field": "uses",
      "target": "MKY6BQHRJM"
    },
    {
      "field": "uses",
      "target": "Q6WPMDYWN2"
    },
    {
      "field": "defines",
      "target": "XN8TQE6SRK"
    }
  ],
  "body": "\n## Summary\n\nA substitution replaces each variable of a [[term|6D3WA7N2W4]] by another term, all at the same time.\nIt is the syntactic counterpart of plugging values into a formula.\nSubstitution is one of the rules of equational logic, and it is the basic operation of unification and term rewriting.\n\n## Explanations\n\n### L1 human\n\nTake the term $x + y$ and replace $x$ by $z \\cdot z$ and $y$ by $1$.\nThe result is the term $z \\cdot z + 1$.\nAll variables are replaced at once, so substituting $x \\mapsto y$ and $y \\mapsto x$ in $x + y$ gives $y + x$, not $x + x$.\nA law such as $x + y \\approx y + x$ stays true after any substitution, which is why laws can be applied to arbitrary expressions.\n",
  "commit": "ff8a40749dc16545e3d2fc637f6b0196e81d0bfa",
  "front": {
    "kind": "concept",
    "msc": [
      "03B10",
      "08B05"
    ],
    "name": "Substitution",
    "same_as": {
      "wikidata": "Q1522579",
      "wikipedia": "Substitution (logic)"
    },
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Substitution_(logic)"
      }
    ],
    "tag": "NCDZ969V7X"
  },
  "kind": "concept",
  "link": "https://tamnd.github.io/math2/node/NCDZ969V7X/",
  "links": null,
  "markdown": "https://tamnd.github.io/math2/node/NCDZ969V7X.md",
  "msc": [
    "03B10",
    "08B05"
  ],
  "name": "Substitution",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/NCD/NCDZ969V7X.md",
  "status": null,
  "tag": "NCDZ969V7X",
  "uri": "m2://NCDZ969V7X",
  "url": "https://tamnd.github.io/math2/wiki/substitution/",
  "writing": {
    "tag": "NCDZ969V7X",
    "kind": "concept",
    "level": "W0",
    "next": [
      {
        "what": "a source with a locator",
        "have": 0,
        "want": 1
      }
    ]
  }
}
