The representation game on atomic networks #
The game G(A) of [HH01], Definition 1, is played by ∀ and ∃ on the atomic
networks of a finite relation algebra A. ∀ opens with an atom, and ∃ answers with a network
having an edge labelled by it. In each later round ∀ picks an edge (m, n) of the current network
N and atoms a, b with N(m, n) ≤ a;b, and ∃ answers with a network extending N that has
a node p with N(m, p) = a and N(p, n) = b. ∃ wins a play when she answers in every round.
Theorem 1 of the source states that A is representable if and only if ∃ has a winning strategy.
Formalization #
- The rules mention only the converse, the identity atoms and the cycles, so the game is defined
for every
AtomStructure. For a lawful one it is the game of its complex algebra, and every finite relation algebra is the complex algebra of its atom structure. No law of an atom structure is assumed: they all hold on one on which ∃ has a winning strategy (AtomStructure.HasWinningStrategy.lawful). - A
Positionis a network onFin n, andP ≤ Qmeans thatPis the restriction ofQto its firstP.sizenodes. A chainN₀ ⊆ N₁ ⊆ ⋯of finite networks as in the source becomes a chain of positions when its nodes are numbered in the order in which they appear, and the rules do not depend on the names of the nodes. - A
Strategygives ∃'s network as a function of the current network and the move of ∀, and it is winning when it answers legally at every network reachable in a play that follows it. Whether a move or an answer is legal depends only on the current network, so ∃ gains nothing from strategies that depend on the whole play: the networks arising when she follows a winning one form a set as inhasWinningStrategy_iff, which yields a winning strategy in the present sense. - The source's Convention 1 is not part of the definition: ∃ may add any number of nodes, and ∀
may make a move that already has a witness. A family of networks closed under single-node
answers to the moves that have no witness yet gives a winning strategy
(
HasWinningStrategy.of_forall_exists_comap_castSucc); the converse is not proved here. Representableasks for an injective homomorphism into a product of algebras of all relations on a set. The source's representations are isomorphisms onto an algebra of relations on one set whose unit is an equivalence relation; restricting to the classes of the unit turns one into the other [HH97], Section 3.2. The source's representations have non-empty domains; here the index and base types may be empty, so the one-element algebra is representable and ∃ wins the game on no atoms, in which ∀ has no opening move.
Main definitions #
Cslib.RelationAlgebra.AtomStructure.Position,Position.Move,Position.Answers: the finite networks, the moves of ∀ and the legal answers of ∃.Cslib.RelationAlgebra.AtomStructure.Strategy,Strategy.IsWinning,HasWinningStrategy: the strategies of ∃.
Main results #
Cslib.RelationAlgebra.AtomStructure.HasWinningStrategy.lawful: an atom structure on which ∃ has a winning strategy satisfies the laws; its associativity is [HH01], Lemma 7.Cslib.RelationAlgebra.AtomStructure.hasWinningStrategy_iff: ∃ has a winning strategy if and only if some set of networks realizes every atom and is closed under answering the moves of ∀.Cslib.RelationAlgebra.AtomStructure.HasWinningStrategy.exists_saturated,.of_saturated: over countably many atoms, ∃ has a winning strategy if and only if every atom labels an edge of a saturated network.Cslib.RelationAlgebra.representable_complexAlgebra_iff,Cslib.RelationAlgebra.representable_iff_hasWinningStrategy: Theorem 1 of [HH01], for the complex algebra of a finite atom structure and for a finite relation algebra. The two directions areCslib.RelationAlgebra.Representation.hasWinningStrategy, for representations in any universes, andCslib.RelationAlgebra.AtomStructure.HasWinningStrategy.representable, which needs only countably many atoms. The proof is that of [HH97], Lemma 6.
References #
A position of the game G(F): a finite atomic network, with its nodes numbered
0, …, size - 1.
Instances For
P ≤ Q when Q extends P: the nodes of P are nodes of Q, with the same labels.
A move of ∀ at the position P: two nodes m, n and two atoms a, b whose product lies
above the label of (m, n).
The position Q is a legal response of ∃ to the move v at P: it extends P and has a
node p with Q(m, p) = a and Q(p, n) = b.
A strategy for ∃ in the game G(F): her network in the opening round, as a function of the
atom picked by ∀, and her network in each later round, as a function of the current network and
the move of ∀.
The networks that arise in the plays of G(F) in which ∃ follows the strategy σ.
- opening {α : Type u} {F : AtomStructure α} {σ : F.Strategy} (a : α) : σ.Reachable (σ.opening a)
Her network in round zero, for each atom ∀ may pick.
- answer {α : Type u} {F : AtomStructure α} {σ : F.Strategy} {P : F.Position} (v : P.Move) : σ.Reachable P → σ.Reachable (σ.answer P v)
Her network after a move of ∀ at a network that has arisen.
A strategy is winning when it gives a legal response in every round of every play in which ∃ follows it: her opening network has an edge labelled by the atom ∀ picked, and each later network answers his move.
∃ has a winning strategy in the game G(F) of [HH01], Definition 1.
∃ has a winning strategy exactly when some set of networks contains, for every atom, a network with an edge so labelled, and contains a response to every move of ∀ at each of its members.
The form of [HH01], Convention 1, parts (1) and (2): to win, it is enough that ∃ answers the moves that have no witness yet, each by adding a single node as the witness.
If every atom labels an edge of some saturated network, then ∃ has a winning strategy: she plays finite subnetworks of these networks.
If ∃ has a winning strategy and there are countably many atoms, then every atom labels an edge of a saturated network: the limit of a play in which ∀ picks the atom and then makes every move eventually.
An atom structure on which ∃ has a winning strategy satisfies the laws. Associativity is
[HH01], Lemma 7: ∀ opens with p ≤ r;q, then demands r, q on that edge and
s, t on the new edge labelled q, and the remaining edge of the resulting network is the atom
required. The source assumes the other laws; they follow in the same way from at most one move.
If ∃ has a winning strategy in the game of an atom structure with countably many atoms, then its complex algebra is representable.
If the complex algebra of a finite atom structure has a representation, with index and base types in any universes, then ∃ has a winning strategy in its game.
Theorem 1 of [HH01]: the complex algebra of a finite atom structure is representable if and only if ∃ has a winning strategy in its game.
Theorem 1 of [HH01], as stated there: a finite relation algebra is representable if and only if ∃ has a winning strategy in the game on its atoms.