In the mathematical discipline of model theory, the Ehrenfeucht–Fraïssé game (also called back-and-forth games)is a technique based on game semantics for determining whether two structures are elementarily equivalent. The main application of Ehrenfeucht–Fraïssé games is in proving the inexpressibility of certain properties in first-order logic. Indeed, Ehrenfeucht–Fraïssé games provide a complete methodology for proving inexpressibility results for first-order logic. In this role, these games are of particular importance in finite model theory and its applications in computer science (specifically computer aided verification and database theory), since Ehrenfeucht–Fraïssé games are one of the few techniques from model theory that remain valid in the context of finite models. Other widely used techniques for proving inexpressibility results, such as the compactness theorem, do not work in finite models.
Ehrenfeucht–Fraïssé-like games can also be defined for other logics, such as fixpoint logics[1] and pebble games for finite variable logics; extensions are powerful enough to characterise definability in existential second-order logic.
The main idea behind the game is that we have two structures, and two players – Spoiler and Duplicator. Duplicator wants to show that the two structures are elementarily equivalent (satisfy the same first-order sentences), whereas Spoiler wants to show that they are different. The game is played in rounds. A round proceeds as follows: Spoiler chooses any element from one of the structures, and Duplicator chooses an element from the other structure. In simplified terms, the Duplicator's task is to always pick an element "similar" to the one that the Spoiler has chosen, whereas the Spoiler's task is to choose an element for which no "similar" element exists in the other structure. Duplicator wins if there exists an isomorphism between the eventual substructures chosen from the two different structures; otherwise, Spoiler wins.
The game lasts for a fixed number of steps
\gamma
\omega
Suppose that we are given two structures
ak{A}
ak{B}
Gn(ak{A},ak{B})
a1
ak{A}
b1
ak{B}
ak{A}
b1
ak{B}
a1
ak{A}
a2
ak{A}
b2
ak{B}
a2
b2
ak{A}
ak{B}
n-2
a1,...,an
ak{A}
b1,...,bn
ak{B}
\{1,...,n\}
ak{A}
i
ai
ak{B}
i
bi
For each n we define a relation
ak{A} \overset{n}{\sim} ak{B}
Gn(ak{A},ak{B})
ak{A}\simak{B}
It is easy to prove that if Duplicator wins this game for all finite n, that is,
ak{A}\simak{B}
ak{A}
ak{B}
If a property
Q
ak{A}
ak{B}
ak{A}
ak{B}
Q
The back-and-forth method used in the Ehrenfeucht–Fraïssé game to verify elementary equivalence was given by Roland Fraïssé in his thesis;[2] [3] it was formulated as a game by Andrzej Ehrenfeucht.[4] The names Spoiler and Duplicator are due to Joel Spencer.[5] Other usual names are Eloise [sic] and Abelard (and often denoted by
\exists
\forall
Chapter 1 of Poizat's model theory text[6] contains an introduction to the Ehrenfeucht–Fraïssé game, and so do Chapters 6, 7, and 13 of Rosenstein's book on linear orders.[7] A simple example of the Ehrenfeucht–Fraïssé game is given in one of Ivars Peterson's MathTrek columns.[8]
Phokion Kolaitis' slides[9] and Neil Immerman's book chapter[10] on Ehrenfeucht–Fraïssé games discuss applications in computer science, the methodology for proving inexpressibility results, and several simple inexpressibility proofs using this methodology.
Ehrenfeucht–Fraïssé games are the basis for the operation of derivative on modeloids. Modeloids are certain equivalence relations and the derivative provides for a generalization of standard model theory.