# The pebbling comonad in finite model theory

**Authors:** Samson Abramsky, Anuj Dawar, Pengming Wang

arXiv: 1704.05124 · 2017-04-19

## TL;DR

This paper introduces a comonadic framework for pebble games in finite model theory, linking categorical structures with logical equivalences, graph properties, and semantics, thus bridging model theory and computation semantics.

## Contribution

It provides a novel comonadic formulation of pebble games, characterizing logical equivalences, graph parameters, and semantics within a categorical framework.

## Key findings

- Characterizes elementary equivalence via coKleisli morphisms.
- Relates structure treewidth to coalgebra number in the comonad.
- Connects pebbling comonads to semantics of a modal operator.

## Abstract

Pebble games are a powerful tool in the study of finite model theory, constraint satisfaction and database theory. Monads and comonads are basic notions of category theory which are widely used in semantics of computation and in modern functional programming. We show that existential k-pebble games have a natural comonadic formulation. Winning strategies for Duplicator in the k-pebble game for structures A and B are equivalent to morphisms from A to B in the coKleisli category for this comonad. This leads on to comonadic characterisations of a number of central concepts in Finite Model Theory: - Isomorphism in the co-Kleisli category characterises elementary equivalence in the k-variable logic with counting quantifiers. - Symmetric games corresponding to equivalence in full k-variable logic are also characterized. - The treewidth of a structure A is characterised in terms of its coalgebra number: the least k for which there is a coalgebra structure on A for the k-pebbling comonad. - Co-Kleisli morphisms are used to characterize strong consistency, and to give an account of a Cai-F\"urer-Immerman construction. - The k-pebbling comonad is also used to give semantics to a novel modal operator. These results lay the basis for some new and promising connections between two areas within logic in computer science which have largely been disjoint: (1) finite and algorithmic model theory, and (2) semantics and categorical structures of computation.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1704.05124/full.md

## References

37 references — full list in the complete paper: https://tomesphere.com/paper/1704.05124/full.md

---
Source: https://tomesphere.com/paper/1704.05124