An invitation to game comonads
Samson Abramsky, Luca Reggio
TL;DR
This survey develops game comonads as a unifying categorical framework for resource-sensitive model theory, recasting classic model-comparison games (bisimulation, Ehrenfeucht–Fraïssé, pebble) as endofunctors whose coalgebras encode logical resources such as variable counts, quantifier depth, and tree-like combinatorial parameters. By interpreting these comonads through Kleisli and Eilenberg–Moore categories, the authors show that existential-positive fragments correspond to Kleisli morphisms, while full fragments and counting extensions correspond to coalgebras and isomorphisms, respectively. The coalgebra structures reveal structural witnesses like tree-depth, tree-width, and related forest covers, enabling Lovász-type homomorphism counting results to unify across logics. An axiomatic arboreal framework abstracts these phenomena via stable factorisation systems, enabling uniform equi-resource preservation theorems and a nascent homotopical perspective on logical resources through model categories and presheaves over forests. The work thus connects semantics, finite model theory, and homotopy theory, offering a coherent pathway to analyze and compare logical resources across diverse logics.
Abstract
Game comonads offer a categorical view of a number of model-comparison games central to model theory, such as pebble and Ehrenfeucht-Fraïssé games. Remarkably, the categories of coalgebras for these comonads capture preservation of several fragments of resource-bounded logics, such as (infinitary) first-order logic with n variables or bounded quantifier rank, and corresponding combinatorial parameters such as tree-width and tree-depth. In this way, game comonads provide a new bridge between categorical methods developed for semantics, and the combinatorial and algorithmic methods of resource-sensitive model theory. We give an overview of this framework and outline some of its applications, including the study of homomorphism counting results in finite model theory, and of equi-resource homomorphism preservation theorems in logic using the axiomatic setting of arboreal categories. Finally, we describe some homotopical ideas that arise naturally in the context of game comonads.
