The finitary aspects of Full Ground Local State
About this talk
Full ground local state (FGLS) refers to dynamically allocated mutable state that allows storing ground values and references. It is a key ingredient in many imperative algorithms as it enables cyclic data structures. In this work, we focus on one particular denotational model for FGLS: Kammar et al.'s possible worlds monad on sets indexed over sets of locations. We resolve an outstanding question about this FGLS monad: is it finitary? We show that it is not, by showing the existence of non-finitary computations in this monad that are challenging to define in a terminating language with full ground references. This prompts us to introduce a finitary submonad of Kammar et al.'s monad, which (i) enjoys adequate semantics, (ii) is more amenable for automated reasoning and (iii) paves the way for an equational axiomatisation in terms of parameterised algebraic theories. In this talk, I will describe the relevant categorical machinery developed to describe and reason about this submonad and if time permits, I will also talk about the ongoing work on linking this finitary submonad to a candidate parameterised algebraic theory.