Game comonads & generalised quantifiers Adam O Conghaile joint - - PowerPoint PPT Presentation

game comonads generalised quantifiers
SMART_READER_LITE
LIVE PREVIEW

Game comonads & generalised quantifiers Adam O Conghaile joint - - PowerPoint PPT Presentation

Game comonads & generalised quantifiers Adam O Conghaile joint with Anuj Dawar BCTCS 2020 O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 1 / 31 Content Logic & Computation: Descriptive Complexity


slide-1
SLIDE 1

Game comonads & generalised quantifiers

Adam ´ O Conghaile

joint with Anuj Dawar

BCTCS 2020

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 1 / 31

slide-2
SLIDE 2
slide-3
SLIDE 3
slide-4
SLIDE 4
slide-5
SLIDE 5

Content

Logic & Computation: Descriptive Complexity Logic & Games: Finite Model Theory Games & Computation: Algorithms Game Comonads at the intersection of all three Generalised quantifiers & my work

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 5 / 31

slide-6
SLIDE 6

Preliminaries

We will look at computation, logic and games through relation structures Signature σ has: relational symbols R, T, E, . . . arity : σ → N R(σ) has

  • bjects

A = A, (RA)R∈σ where RA ⊂ Aarity(R) for each R maps A → B are homomorphisms. First order logic has syntax: FO = ⊤ | ⊥ | R(x1, . . . xm) | ¬φ | φ ∨ ψ | φ ∧ ψ |∃x. φ(x) | ∀x. φ(x) And usual semantics for the relation A | = φ The “logics” (L) we will talk about will be fragments/extensions of this.

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 6 / 31

slide-7
SLIDE 7
slide-8
SLIDE 8

Logic & Computation: Classes and Queries

Given some class of (resource-limited) Turing machines T the complexity class associated to T is the collection of classes of finite relational structures (given a suitable encoding) recognised by a machine in T Given some logic L, the query class associated to L is the collection of classes of finite relational structures which model some sentence φ in L. Descriptive complexity studies links of the form CC(T ) = QC(L)

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 8 / 31

slide-9
SLIDE 9

Logic & Computation: The search for a logic for PTIME

Complexity Logic NPTIME

Fagin

= = = PTIME ∃SO ??? Since Fagin showed that ∃SO captures NPTIME, finite model theorists have tried to find a logic that captures PTIME. FO is not enough (as we will see) To gain more power we need to add new types of computation to the

  • logic. This can be done through quantifiers

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 9 / 31

slide-10
SLIDE 10

Logic & Computation: Power and quantifiers

PTIME FO FO + FP FO + FP + C

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 10 / 31

slide-11
SLIDE 11
slide-12
SLIDE 12

Logic & Games: Finite Model Theory

Want to determine if two structures agree on a certain logic, i.e. ∀φ ∈ L, A | = φ ⇐ ⇒ B | = φ To do this we use games! Example Ehrenfeucht-Fra¨ ıss´ e Game Two players: Spoiler and Duplicator. In round i Spoiler chooses A or B and then picks an element ai or bi Duplicator responds by choosing an element in the other structure After each round we say Spoiler wins if the partial function ai ⇀ bi is a partial isomorphism between the two structures. A Duplicator strategy which prevents Spoiler from ever winning will imply that A and B agree over a logic L, additional rules on the game will determine exactly which logic.

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 12 / 31

slide-13
SLIDE 13

Logic & Games: Limits on spoiler ⇐ ⇒ syntactic restrictions

Rules Logic Play for n rounds FOn Limit to k pebbles FOk “One-way game” ∃ + FO (A ≺∃+L B)

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 13 / 31

slide-14
SLIDE 14

Logic & Games: Limits on Duplicator ⇐ ⇒ syntactic expansions

Rules Logic Play forever (with k pebbles) Lk

∞ω

Duplicator responds with a bijection Lk

∞ω + #

Same bijection for n rounds Lk

∞ω + Qn

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 14 / 31

slide-15
SLIDE 15

Logic & Computation: Power and quantifiers

PTIME FO FO + FP FO + FP + C CFI query FO+FP+C ⊂

k Ck ∞ω

Evenness query FO + FP ⊂

k Lk ∞ω

Connectedness query FO ⊂

n FOn

  • ´

O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 15 / 31

slide-16
SLIDE 16
slide-17
SLIDE 17

Games & Computation: Approximations to Homomorphism & Isomorphism

Many computational tasks can be described as searching for homomorphism or isomorphism: e.g CSP: X → D? Graph isomorphism: G ∼ = H? Duplicator winning strategies for the various games discussed can be seen as approximations to homomorphism (one-way games) and approximations to isomorphism (two-way games) Some of these correspond to known algorithms for approximating CSP and GI.

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 17 / 31

slide-18
SLIDE 18

Games & Computation

Game Algorithm k pebble one-way game k-local consistency for CSP k pebble bijection game k Weisfeiler-Lehman for GI For certain special structures these approximations imply full homomorphism/isomorphism. In the case of the examples above the ”special” property is a tree decomposition of width ≤ k + 1

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 18 / 31

slide-19
SLIDE 19

A unified perspective: game comonads

So far, we have seen that spoiler-duplicator games: help us evaluate expressiveness of different logics give us tractable algorithms for CSP/GI via approximations to homomorphism/isomorphism Question: How can we realise these approximations to homomorphism/isomorphisms categorically? Answer: Game comonads.

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 19 / 31

slide-20
SLIDE 20

Game comonads: idea

Given some Spoiler-Duplicator game G(A, B), can see (deterministic) duplicator strategies as trees: S0 D0 S1 . . . S1 D1 D1 GA = {S0 . . . Sm | Si a valid Spoiler move in round i of G} Goal: Choose a relational structure for GA s.t. f : GA → B is a hom ⇐ ⇒ f is a winning strategy for Duplicator

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 20 / 31

slide-21
SLIDE 21

Example: k-pebbling comonad

PkA := (A × [k])+ ǫA([(a1, p1), . . . (an, pn)]) = an δA([(a1, p1), . . . (an, pn)]) = [(s1, p1), . . . (sn, pn)] Relational structure chosen appropriately.

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 21 / 31

slide-22
SLIDE 22

Example: k-pebbling comonad

Results (Abramsky, Dawar, Wang ’17)

(Pk, ǫ, δ) defines a comonad Kleisli homs PkA → B are k-local homs Kleisli isoms A ∼ =K(Pk) B are proofs of k-WL equivalence The coalgebras, A → PkA are proofs of treewidth ≤ k + 1

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 22 / 31

slide-23
SLIDE 23

Game comonads the story so far

Comonad G Kleisli Homs GA → B Kleisli Isoms A ∼ =K(G) B Coalgebras A → GA k pebbling Pk A ≺∃+Lk

∞ω B

A ≡Lk

∞ω(#) B

treewidth ≤ k + 1 n-round E-F En A ≺∃+FOn B A ≡FOn(#) B treedepth ≤ k + 1 n-round bisim. Mn A ≺∃+MLn B A ≡MLn B modal depth ≤ k + 1 Others forthcoming for guarded fragment (Marsden et al.), pathwidth (Shah et al.)

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 23 / 31

slide-24
SLIDE 24

Limits of this framework

PTIME FO FO + FP FO + FP + C CFI query ??? Evenness query isom in K(P) Connectedness query equivalence in K(P)

  • ´

O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 24 / 31

slide-25
SLIDE 25

Generalised quantifiers

Recall from before that adding new quantifiers to our logic amounted to adding more computational power (getting us closer to PTIME for example) This leads us to thinking of quantifiers as a logical version of an oracle in some sense. The notion of generalised (or Lindestr¨

  • m) quantifiers makes this precise.

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 25 / 31

slide-26
SLIDE 26

Generalised quantifiers: idea

R(σ) arity ≤ n every query q given R(τ) arity unbounded limited to queries expressible in Lk

∞ω(Qn)

A A′ ψRR∈σ interpret

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 26 / 31

slide-27
SLIDE 27

A game for generalised quantifiers

Hella introduced a game to to test the expressive power given by this new resource. Rules Logic Play forever (with k pebbles) Lk

∞ω

Duplicator responds with a bijection Lk

∞ω + #

Same bijection for n rounds Lk

∞ω + Qn

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 27 / 31

slide-28
SLIDE 28

Relaxing Hella’s game

We chose a game that resembled Hella’s game, except in every round Duplicator gives a function f : A → B instead of a bijection. Rules Logic Play forever (with k pebbles) Lk

∞ω

Duplicator responds with a bijection Lk

∞ω + #

Same bijection for n rounds Lk

∞ω(Qn)

Same function for n rounds ∃ + Lk

∞ω(QH n )

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 28 / 31

slide-29
SLIDE 29

Comonadifying the n function game

Strategies for k pebble n function game Strategies for the k pebble game with restrictions on Duplicator Homomorphisms PkA/ ≈n→ B The new comonad is Pk(–)/ ≈n→ B

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 29 / 31

slide-30
SLIDE 30

Our results

Comonad G Kleisli Homs GA → B Kleisli Isoms A ∼ =K(G) B Coalgebras A → GA k pebbling Pk A ≺∃+Lk

∞ω B

A ≡Lk

∞ω(#) B

treewidth ≤ k + 1 n-round E-F En A ≺∃+FOn B A ≡FOn(#) B treedepth ≤ k + 1 n-round bisim. Mn A ≺∃+MLn B A ≡MLn B modal depth ≤ k + 1 k-pebble n-function Pn,k A ≺+Lk

∞ω(QH n ) B

A ≡Lk

∞ω(Qn) B

gen. treedepth ≤ k + 1

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 30 / 31

slide-31
SLIDE 31

Conclusions & future work

We’ve demonstrated that Pk can be generalised to give categorical semantics to games for generalised quantifiers. We’ve come up with new methods of building new game comonads from old ones. Next we’d like to do the same for games with more restricted forms of generalised quantifiers e.g. Dawar, Gr¨ adel and Pakusa’s LAω(Q) (Lω

∞ω extended with all linear algebraic quantifiers over Fp for each

p ∈ Q)

´ O Conghaile, Dawar Game comonads & generalised quantifiers BCTCS 2020 31 / 31