Pebble games and finite-variable logic #
For a language with finitely many relation symbols, the k-variable rank-n type of a position
(S, a) is finite combinatorial data (Cslib.Logic.FO.PebbleType): the atomic facts about the
placed pebbles and, if n > 0, for each pebble index i the set of rank-(n - 1) types reached
by moving pebble i. Two positions have the same type exactly when Duplicator wins the n-round
k-pebble game between them (pebbleType_eq_iff), and every type is defined by a k-variable
Hintikka formula of quantifier rank at most n whose free variables are placed
(realize_pebbleHintikka, quantifierRank_pebbleHintikka_le, freeVars_pebbleHintikka_subset).
Together with the easy direction PebbleWins.realize_iff, this gives the pebble-game
characterization of FO^k: Duplicator wins the n-round k-pebble game from (S, a, b)
exactly when a and b satisfy the same k-variable formulas of quantifier rank at most n with
free variables in S (pebbleWins_iff_forall_realize_iff). On finite structures the infinite game
corresponds to all k-variable formulas (pebbleWinsForever_iff_forall_realize_iff).
The construction follows CslibFrontier.Logics.FirstOrder.EhrenfeuchtFraisse.Hintikka and reuses
its atomic formulas Cslib.Logic.FO.AtomicIndex. The difference is that a position of the pebble
game has a fixed number of pebbles and a set of placed ones, while a position of the
Ehrenfeucht–Fraïssé game grows by one element per round, so the types and Hintikka formulas are
indexed differently. Every atomic index is a k-variable atomic formula
(AtomicIndex.toFiniteVariable), and partialIsoOn_iff_holds is the placed-pebble form of
partialIso_iff_holds.
The hypothesis [Finite (Σ l, L.Relations l)] is used only by the Hintikka direction; the
structures are arbitrary, except that the infinite game needs finite structures. As explained at
PebbleWins, positions are total assignments, so for k > 0 these statements say nothing about
empty structures. DuplicatorWins.pebbleWins, which passes from the Ehrenfeucht–Fraïssé game to
the pebble game, is a direct game argument and holds in every language.
Main definitions #
Cslib.Logic.FO.AtomicIndex.toFiniteVariable: an atomic index as ak-variable formula.Cslib.Logic.FO.pebbleAtoms: the atomic facts about the placed pebbles.Cslib.Logic.FO.PebbleType,Cslib.Logic.FO.pebbleType:k-variable rank-ntypes and the type of a position.Cslib.Logic.FO.pebbleAtomicDiagram,Cslib.Logic.FO.pebbleHintikka: the defining formulas of atomic types and ofk-variable rank-ntypes.
Main results #
Cslib.Logic.FO.pebbleAtoms_eq_iff: equal atomic facts are exactly partial isomorphisms on the placed pebbles.Cslib.Logic.FO.pebbleType_eq_iff: equal types are exactly winning positions of then-roundk-pebble game.Cslib.Logic.FO.realize_pebbleHintikka: the Hintikka formula of a type defines it.Cslib.Logic.FO.pebbleWins_of_forall_realize_iff: pebble games, hard direction.Cslib.Logic.FO.pebbleWins_iff_forall_realize_iff,Cslib.Logic.FO.pebbleWinsForever_iff_forall_realize_iff: the pebble-game characterization ofFO^k, for finite games and, on finite structures, for the infinite game.Cslib.Logic.FO.DuplicatorWins.pebbleWins: a winning position of the Ehrenfeucht–Fraïssé game wins the pebble game with the same number of rounds, in every language (DuplicatorWins.pebbleWins_compreads the position through a reindexing of the pebbles).
References #
- N. Immerman, Descriptive Complexity, Theorem 6.10: the characterization for
FO^kof rankm, from ak-configuration, over a finite relational vocabulary and arbitrary structures, which is the setting here. Its proof uses the finiteness of rank-mformulas up to equivalence (Exercise 6.11); the Hintikka formulas here make that finiteness explicit. - L. Libkin, Elements of Finite Model Theory, Theorem 11.5 and Corollary 11.9,
stated for
L^k_∞ωon finite structures; the remark before Proposition 11.8 reduces rankntoFO^k, and Proposition 11.8 gives the infinite game.
Atomic types of placed pebbles #
The k-variable atomic formula with index i.
The pebbles in S define a partial isomorphism exactly when both assignments satisfy the
same atomic formulas whose variables lie in S.
With all pebbles placed, a partial isomorphism on the placed pebbles is a partial isomorphism in the sense of the Ehrenfeucht–Fraïssé game.
The atomic facts about the pebbles in S that hold of a: the atomic formulas whose variables
lie in S and that a satisfies.
Two positions have the same atomic facts about the pebbles in S exactly when those pebbles
define a partial isomorphism.
Types of positions #
The k-variable rank-n types, as combinatorial data: a rank-0 type is a set of atomic
facts, and a rank-(n + 1) type is a set of atomic facts together with, for each pebble index
i, the set of rank-n types reached by moving pebble i. The body is exposed: statements about
types use its shape.
Instances For
For finitely many relation symbols, there are finitely many k-variable rank-n types.
The k-variable rank-n type of the position (S, a): the atomic facts about the placed
pebbles and, for n + 1, the types reached by moving each pebble.
Equality of rank-(n + 1) types is componentwise.
Two positions have the same k-variable rank-n type exactly when Duplicator wins the
n-round k-pebble game between them.
Hintikka formulas #
The conjunction of the atomic facts in T about the pebbles in S and the negations of
those not in T. Atomic facts in T that mention unplaced pebbles make the formula false.
The k-variable Hintikka formula of a rank-n type of positions with placed pebbles S: a
k-variable formula of quantifier rank at most n with free variables in S, satisfied exactly
by the positions of that type. For n + 1 it states the atomic diagram and, for each pebble j,
that every type in T.2 j is reached by moving pebble j and that every move of pebble j
reaches one of them.
The pebble-game characterization of FO^k #
Pebble games, hard direction. For a language with finitely many relation symbols, if a
and b satisfy the same k-variable formulas of quantifier rank at most n with free variables
in S, then Duplicator wins the n-round k-pebble game from (S, a, b). Only the Hintikka
formula of the type of (S, a) is used.
The pebble-game characterization of FO^k ([Imm99], Theorem 6.10; [Lib04],
Theorem 11.5 and Corollary 11.9 with the remark before Proposition 11.8). For a language with
finitely many relation symbols, Duplicator wins the n-round k-pebble game from (S, a, b)
exactly when a and b satisfy the same k-variable formulas of quantifier rank at most n with
free variables in S.
The infinite pebble game and FO^k ([Lib04], Theorem 11.5(b), Proposition 11.8 and
Corollary 11.9). For a language with finitely many relation symbols and finite structures,
Duplicator wins the infinite k-pebble game from (S, a, b) exactly when a and b satisfy the
same k-variable formulas with free variables in S.
From the Ehrenfeucht–Fraïssé game to the pebble game #
A partial isomorphism between m-tuples, read through a reindexing σ : Fin k → Fin m of the
pebbles, is a partial isomorphism on every set of placed pebbles.
A winning position (a, b) of the n-round Ehrenfeucht–Fraïssé game, read through any
reindexing σ : Fin k → Fin m, wins the n-round k-pebble game from (S, a ∘ σ, b ∘ σ). When
pebble i moves, σ is extended by sending i to the element added in the Ehrenfeucht–Fraïssé
game.
A winning position of the n-round Ehrenfeucht–Fraïssé game from (a, b) wins the n-round
k-pebble game from (S, a, b) for every set S of placed pebbles, in every language.