In the mathematical discipline of model theory, the Ehrenfeucht–Fraïssé game (also called back-and-forth games) is a technique 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 such 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 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 (defined below). One of the players wants to show that the two structures are different, whereas the other player wants to show that they are somewhat similar (according to first-order logic). The game is played in turns and rounds; A round proceeds as follows: First the first player (Spoiler) chooses any element from one of the structures, and the other player chooses an element from the other structure. The other player's task is to always pick an element that is "similar" to the one that Spoiler chose. The second player (Duplicator) wins if there exists an isomorphism between the elements chosen in the two different structures.
The game lasts for a fixed amount of steps () (an ordinal, but usually a finite number or ).
Suppose that we are given two structures and , each with no function symbols and the same set of relation symbols, and a fixed natural number n. We can then define the Ehrenfeucht–Fraïssé game to be a game between two players, Spoiler and Duplicator, played as follows:
- The first player, Spoiler, picks either a member of or a member of .
- If Spoiler picked a member of , Duplicator picks a member of ; otherwise, Duplicator picks a member of .
- Spoiler picks either a member of or a member of .
- Duplicator picks an element or in the model from which Spoiler did not pick.
- Spoiler and Duplicator continue to pick members of and for more steps.
- At the conclusion of the game, we have chosen distinct elements of and of . We therefore have two structures on the set , one induced from via the map sending to , and the other induced from via the map sending to . Duplicator wins if these structures are the same; Spoiler wins if they are not.
For each n we define a relation if Duplicator wins the n-move game . These are all equivalence relations on the class of structures with the given relation symbols. The intersection of all these relations is again an equivalence relation .
It is easy to prove that if Duplicator wins this game for all n, that is, , then and are elementarily equivalent. If the set of relation symbols being considered is finite, the converse is also true.
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; it was formulated as a game by Andrzej Ehrenfeucht. The names Spoiler and Duplicator are due to Joel Spencer. Other usual names are Eloise [sic] and Abelard (and often denoted by and ) after Heloise and Abelard, a naming scheme introduced by Wilfrid Hodges in his book Model Theory.
Chapter 1 of Poizat's model theory text contains an introduction to the Ehrenfeucht–Fraïssé game, and so do Chapters 6, 7, and 13 of Rosenstein's book on linear orders. A simple example of the Ehrenfeucht–Fraïssé game is given in one of Ivars Peterson's MathTrek columns .
Phokion Kolaitis' slides and Neil Immerman's book chapter on Ehrenfeucht–Fraïssé games discuss applications in computer science, the methodology theorem for proving inexpressibility results, and several simple inexpressibility proofs using this methodology.
- Bosse, Uwe (1993). "An Ehrenfeucht–Fraïssé game for fixpoint logic and stratified fixpoint logic". In last=Börger, Egon. Computer Science Logic: 6th Workshop, CSL'92, San Miniato, Italy, September 28 - October 2, 1992. Selected Papers. Lecture Notes in Computer Science 702. Springer-Verlag. pp. 100–114. ISBN 3-540-56992-8. Zbl 0808.03024.
- Sur une nouvelle classification des systèmes de relations, Roland Fraïssé, Comptes Rendus 230 (1950), 1022–1024.
- Sur quelques classifications des systèmes de relations, Roland Fraïssé, thesis, Paris, 1953; published in Publications Scientifiques de l'Université d'Alger, series A 1 (1954), 35–182.
- An application of games to the completeness problem for formalized theories, A. Ehrenfeucht, Fundamenta Mathematicae 49 (1961), 129–141.
- Stanford Encyclopedia of Philosophy, entry on Logic and Games.
- A Course in Model Theory, Bruno Poizat, tr. Moses Klein, New York: Springer-Verlag, 2000.
- Linear Orderings, Joseph G. Rosenstein, New York: Academic Press, 1982.
- Example of the Ehrenfeucht-Fraïssé game.
- Course on combinatorial games in finite model theory by Phokion Kolaitis (.ps file)
- Neil Immerman (1999). Descriptive complexity. Springer. ISBN 978-0-387-98600-5., chapter 6
- Grädel, Erich; Kolaitis, Phokion G.; Libkin, Leonid; Maarten, Marx; Spencer, Joel; Vardi, Moshe Y.; Venema, Yde; Weinstein, Scott (2007). Finite model theory and its applications. Texts in Theoretical Computer Science. An EATCS Series. Berlin: Springer-Verlag. ISBN 978-3-540-00428-8. Zbl 1133.03001.
- Six Lectures Ehrenfeucht-Fraïssé games at MATH EXPLORERS' CLUB, Cornell Department of Mathematics.