Generalized-quantifier pebble games #
A single-variable quantifier kind Q (Cslib.Logic.FO.FiniteVariable.Quantifier) induces a
k-pebble game between L-structures M and N parameterized by its one-round step condition
QuantGameStep.Step (Q := Q) : (M → N → Prop) → Prop ([Hel96], [Lib04], [Imm99]).
In each round Spoiler selects a pebble index i : Fin k, and the two players execute one round of
the Q-step on the continuation relation
fun c d => Win (insert i S) (Function.update a i c) (Function.update b i d).
Instantiating QuantGameStep at:
FiniteVariable.ExistentialQuant(total surjective correspondence, back-and-forth) yields the standardk-pebble game forFO^kandL^k_{∞ω}(CslibFrontier.Logics.FirstOrder.FiniteVariable.PebbleGame);FiniteVariable.CountingQuant(bijectionM ≃ N) yields Hella's bijectivek-pebble game forC^kandC^k_{∞ω}(CslibFrontier.Logics.FirstOrder.FiniteVariable.BijectiveGame).
All structural laws of the game—monotonicity in rounds and placed pebbles, independence of unplaced
pebbles, pebble reindexing, reflexivity, symmetry, transitivity, isomorphism invariance,
monotonicity in the step condition, back-and-forth invariants, finite-structure saturation of the
infinite game (genPebbleWinsForever_iff_forall_genPebbleWins), and soundness for GenFormula—are
proved once here for arbitrary Q.
A position is a set S : Set (Fin k) of placed pebble indices together with total assignments
a : Fin k → M and b : Fin k → N; only the values on S matter (genPebbleWins_congr). Since
positions are total assignments, for k > 0 and empty M or N statements about positions are
vacuous.
Main definitions #
Cslib.Logic.FO.PartialIsoOn: the pebbles inSdefine a partial isomorphism.Cslib.Logic.FO.QuantGameStep,Cslib.Logic.FO.QuantGameSymm,Cslib.Logic.FO.QuantGameTrans,Cslib.Logic.FO.QuantGameCompact: one-step quantifier game interface and its symmetry, transitivity, and antitone-intersection (compactness) laws.Cslib.Logic.FO.GenPebbleWins: Duplicator wins then-roundQ-pebble game from a position.Cslib.Logic.FO.IsGenPebbleBackAndForth: invariants that Duplicator can maintain forever in theQ-pebble game.Cslib.Logic.FO.GenPebbleWinsForever: Duplicator wins the infiniteQ-pebble game.
Main results #
Cslib.Logic.FO.GenPebbleWins.mono,Cslib.Logic.FO.GenPebbleWins.of_subset,Cslib.Logic.FO.genPebbleWins_congr,Cslib.Logic.FO.genPebbleWins_comp_equiv_iff: monotonicity, independence of unplaced pebbles, and pebble reindexing.Cslib.Logic.FO.GenPebbleWins.refl,Cslib.Logic.FO.GenPebbleWins.symm,Cslib.Logic.FO.GenPebbleWins.trans,FirstOrder.Language.Equiv.genPebbleWins,FirstOrder.Language.Equiv.genPebbleWinsForever: equivalence-relation laws and invariance under isomorphism.Cslib.Logic.FO.GenPebbleWins.of_step_imp,Cslib.Logic.FO.GenPebbleWinsForever.of_step_imp: a stronger one-step condition implies winning the weaker game.Cslib.Logic.FO.genPebbleWinsForever_iff_forall_genPebbleWins: underQuantGameCompact, the infinite game is won iff every finite game is.Cslib.Logic.FO.GenPebbleWins.realize_iff,Cslib.Logic.FO.GenPebbleWinsForever.realize_iff: soundness of generalized-quantifier pebble games forGenFormula Q L k.
References #
- L. Hella, Logical hierarchies in PTIME (unverified locator).
- L. Libkin, Elements of Finite Model Theory, Section 11.2.
- N. Immerman, Descriptive Complexity, Section 6.1 and Section 12.4 (unverified locator).
Partial isomorphisms on placed pebbles #
The pebbles with indices in S define a partial isomorphism a i ↦ b i: the map is well
defined and injective, and it preserves and reflects every relation among placed pebbles.
Two placed pebbles coincide in
Mexactly when they coincide inN.- relMap_iff {l : ℕ} (R : L.Relations l) (f : Fin l → Fin k) : (∀ (t : Fin l), f t ∈ S) → (FirstOrder.Language.Structure.RelMap R (a ∘ f) ↔ FirstOrder.Language.Structure.RelMap R (b ∘ f))
Every relation holds of placed pebbles in
Mexactly when it holds of them inN.
A partial isomorphism on S depends only on the values of the pebbles in S.
With no pebbles placed, every position is a partial isomorphism, provided L has no nullary
relation symbols: these are sentences that the two structures would have to agree on.
Updating pebble i to an already-placed pebble a j₀ (j₀ ∈ S) preserves PartialIsoOn
when paired with b j₀.
Equality preservation on insert i S when updating pebble i to fresh elements c and d
outside {a j | j ∈ S ∧ j ≠ i} and {b j | j ∈ S ∧ j ≠ i}.
One-step quantifier game interface #
One-step game condition for a single-variable quantifier kind Q between domains M and N.
Given the winning relation R : M → N → Prop for the remaining rounds after moving one pebble,
Step R asserts that Duplicator wins the single round. It must be monotone in R, satisfied by
any bijection whose graph lies in R, and sound for evaluating every quantifier q : Q.
One-round winning condition on the continuation relation
R : M → N → Prop.Weakening the continuation relation preserves a winning step.
Any bijection whose graph is contained in
Rwitnesses a winning step.- eval_iff_of_step {R : M → N → Prop} {pM : M → Prop} {pN : N → Prop} (q : Q) : Step Q R → (∀ {c : M} {d : N}, R c d → (pM c ↔ pN d)) → (FiniteVariable.Quantifier.eval q pM ↔ FiniteVariable.Quantifier.eval q pN)
A winning step preserves the truth of every quantifier
q : Q.
Instances
Symmetry of the one-step game condition for Q between M and N.
- step_symm {R : M → N → Prop} : QuantGameStep.Step Q R → QuantGameStep.Step Q fun (d : N) (c : M) => R c d
Flipping the continuation relation preserves a winning step.
Instances
Transitivity of the one-step game condition for Q across M, N, P.
- step_trans {R₁ : M → N → Prop} {R₂ : N → P → Prop} {R₃ : M → P → Prop} : QuantGameStep.Step Q R₁ → QuantGameStep.Step Q R₂ → (∀ (c : M) (d : N) (e : P), R₁ c d → R₂ d e → R₃ c e) → QuantGameStep.Step Q R₃
Relational composition of two winning steps yields a winning step.
Instances
Compactness (finite-saturation) of the one-step game condition: an antitone countable chain of winning steps has a winning step into its intersection.
- step_iInf_of_antitone {R : ℕ → M → N → Prop} : (∀ (c : M) (d : N), Antitone fun (n : ℕ) => R n c d) → (∀ (n : ℕ), QuantGameStep.Step Q (R n)) → QuantGameStep.Step Q fun (c : M) (d : N) => ∀ (n : ℕ), R n c d
If
R nis antitone innand everyR nadmits a winning step, so does∀ n, R n.
Instances
Generalized k-pebble games #
Duplicator wins the n-round generalized Q-pebble game with k pebbles from (S, a, b):
the placed pebbles define a partial isomorphism, and if a round remains then for every pebble index
i : Fin k Duplicator wins one round of QuantGameStep.Step (Q := Q) into the (n - 1)-round
winning relation.
Duplicator's winning one-step response to Spoiler's choice of pebble i.
Winning a generalized pebble game implies winning every shorter game.
Lifting placed pebbles keeps the position winning.
Winning depends only on the positions of the placed pebbles.
Reindexing pebble names along a bijection preserves winning positions of any generalized pebble game.
A stronger one-step game condition implies winning the weaker finite-round pebble game.
Back-and-forth invariants and the infinite game #
A back-and-forth invariant for the generalized Q-pebble game: a set of positions, each a
partial isomorphism on its placed pebbles, such that from every position in the set and for every
pebble index i, Duplicator has a winning Q-step staying inside the set.
Every position of the invariant is a partial isomorphism on its placed pebbles.
- step {S : Set (Fin k)} {a : Fin k → M} {b : Fin k → N} : I S a b → ∀ (i : Fin k), QuantGameStep.Step Q fun (c : M) (d : N) => I (insert i S) (Function.update a i c) (Function.update b i d)
For every pebble index, Duplicator has a winning one-step response staying in
I.
Every position of a back-and-forth invariant is won by Duplicator in every finite game.
A stronger one-step game condition carries back-and-forth invariants to the weaker game.
Duplicator wins the infinite generalized Q-pebble game from (S, a, b): the position
belongs to a Q-pebble back-and-forth invariant.
Unfolds GenPebbleWinsForever into existence of a Q-pebble back-and-forth invariant.
Every position of a back-and-forth invariant is won by Duplicator in the infinite game.
Winning the infinite game implies winning every finite game.
A stronger one-step game condition implies winning the weaker infinite pebble game.
Finite saturation of generalized pebble games. Under QuantGameCompact Q M N, Duplicator
wins the infinite Q-pebble game from (S, a, b) if and only if she wins every finite n-round
game.
Duplicator wins the infinite generalized pebble game between a structure and an isomorphic copy, from a position and its image.
Duplicator wins every finite generalized pebble game between a structure and an isomorphic copy, from a position and its image.
Soundness for GenFormula #
Generalized pebble games, easy direction. A winning position of the n-round Q-pebble
game preserves every GenFormula Q L k of quantifier rank at most n whose free variables are
placed pebbles.
Infinite generalized pebble games, easy direction. A winning position of the infinite
Q-pebble game preserves every GenFormula Q L k whose free variables are placed pebbles.