Random state comonads encode cellular automata evaluation
Madalina I Sas, Julian H J Sutherland

TL;DR
This paper introduces a category-theoretical, Haskell-based implementation of cellular automata using comonads with state and randomness, enabling stochastic behaviour and complex topologies, thus bridging theory and practical simulation.
Contribution
It presents an accessible, functional programming approach to modeling cellular automata with comonads, incorporating randomness and supporting complex topologies.
Findings
Implemented stochastic CA models in Haskell using comonads.
Demonstrated the approach with four classic CA models.
Proposed extensions to higher dimensions and arbitrary topologies.
Abstract
Cellular automata (CA) are quintessential ALife and ubiquitous in many studies of collective behaviour and emergence, from morphogenesis to social dynamics and even brain modelling. Recently, there has been an increased interest in formalising CA, theoretically through category theory and practically in terms of a functional programming paradigm. Unfortunately, these remain either in the realm of simple implementations lacking important practical features, or too abstract and conceptually inaccessible to be useful to the ALife community at large. In this paper, we present a brief and accessible introduction to a category-theoretical model of CA computation through a practical implementation in Haskell. We instantiate arrays as comonads with state and random generators, allowing stochastic behaviour not currently supported in other known implementations. We also emphasise the importance…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsCellular Automata and Applications · Nonlinear Dynamics and Pattern Formation · Evolutionary Game Theory and Cooperation
