{
  "aliases": null,
  "backlinks": null,
  "body": "\n## Definition\n\nLet $L$ be a relational [[signature|WDVVEYD6AT]], that is, a signature with relation symbols and constant symbols but no function symbols.\nLet $\\mathcal{A}$ and $\\mathcal{B}$ be $L$-[[structures|983GZBQYT4]] with domains $A$ and $B$, and let $n \\ge 0$ be an integer.\nThe Ehrenfeucht–Fraïssé game $G_n(\\mathcal{A}, \\mathcal{B})$ is played by two players, Spoiler and Duplicator, in $n$ rounds.\n\n1. In round $i$, Spoiler chooses one of the two structures and an element of it.\n2. Duplicator then chooses an element of the other structure.\n3. After round $i$, let $a_i \\in A$ and $b_i \\in B$ be the two elements chosen in that round.\n\nConsider the correspondence $c^{\\mathcal{A}} \\mapsto c^{\\mathcal{B}}$ for the constant symbols $c$, together with $a_i \\mapsto b_i$ for $i = 1, \\dots, n$.\nDuplicator wins the play when it is a well-defined injective map that preserves and reflects each relation of $L$.\nThat is, it is an isomorphism between the [[substructures|676H7EGTKJ]] generated by the chosen elements and the constants.\nOtherwise Spoiler wins.\nDuplicator has a winning strategy when Duplicator has a rule for choosing moves that wins every play, whatever Spoiler does.\n\n## Remarks\n\nExample: let $\\mathcal{A} = (\\set{1, 2, 3}, \u003c)$ and $\\mathcal{B} = (\\set{1, 2, 3, 4}, \u003c)$.\nDuplicator has a winning strategy in $G_2(\\mathcal{A}, \\mathcal{B})$.\nIn the first round, Duplicator answers the least element by the least, the greatest by the greatest, and an inner element by an inner element.\nIn the second round, an element below, equal to or above the first chosen element can then be matched on the other side.\n\nNon-example: Duplicator has no winning strategy in $G_2((\\Q, \u003c), (\\set{1, 2}, \u003c))$.\nSpoiler first picks $2$ in $\\set{1, 2}$, and Duplicator answers some $q \\in \\Q$.\nSpoiler then picks $q + 1$ in $\\Q$, and no element of $\\set{1, 2}$ lies above $2$.\n\nLet $L$ be finite.\nThe theorem of Ehrenfeucht and Fraïssé says: Duplicator wins $G_n(\\mathcal{A}, \\mathcal{B})$ if and only if $\\mathcal{A}$ and $\\mathcal{B}$ satisfy the same sentences of quantifier depth at most $n$.\nHence $\\mathcal{A} \\equiv \\mathcal{B}$ when Duplicator wins $G_n$ for every $n$.\n\n## Explanations\n\n### L1 human\n\nThe game turns the question \"can first-order logic tell these two structures apart?\" into a contest.\nEach round of the game matches one quantifier of a sentence.\nA winning strategy for Duplicator in $n$ rounds proves that no sentence with $n$ nested quantifiers separates the structures.\n",
  "commit": "547b6eddb8f2feb8d579f2d633d22a27b7e132fc",
  "front": {
    "defines": "2RE7YAZK8R",
    "kind": "definition",
    "msc": [
      "03C07",
      "03C13"
    ],
    "name": "Ehrenfeucht–Fraïssé game",
    "sources": [
      {
        "url": "https://en.wikipedia.org/wiki/Ehrenfeucht–Fraïssé_game"
      }
    ],
    "tag": "1DVRN1T2Z0",
    "uses": [
      "983GZBQYT4",
      "676H7EGTKJ",
      "WDVVEYD6AT"
    ]
  },
  "kind": "definition",
  "link": "https://math2.tamnd.com/node/1DVRN1T2Z0/",
  "links": [
    {
      "field": "defines",
      "target": "2RE7YAZK8R"
    },
    {
      "field": "uses",
      "target": "983GZBQYT4"
    },
    {
      "field": "uses",
      "target": "676H7EGTKJ"
    },
    {
      "field": "uses",
      "target": "WDVVEYD6AT"
    }
  ],
  "markdown": "https://math2.tamnd.com/node/1DVRN1T2Z0.md",
  "msc": [
    "03C07",
    "03C13"
  ],
  "name": "Ehrenfeucht–Fraïssé game",
  "prov": null,
  "role": "",
  "source": "https://github.com/tamnd/math2/blob/main/nodes/1DV/1DVRN1T2Z0.md",
  "status": null,
  "tag": "1DVRN1T2Z0",
  "uri": "m2://1DVRN1T2Z0",
  "url": "https://math2.tamnd.com/wiki/ehrenfeucht-fraisse-game-definition/",
  "writing": {
    "tag": "1DVRN1T2Z0",
    "kind": "definition",
    "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
      }
    ]
  }
}
