Pattern Runs on Matter: The Free Monad Monad as a Module over the Cofree Comonad Comonad
Sophie Libkind, David I. Spivak

TL;DR
This paper provides a clear construction of the free monad for polynomial functors, explores its interaction with the cofree comonad as a module, and applies this framework to various real-world scenarios like interviews and voting.
Contribution
It introduces a streamlined construction of the free monad as a module over the cofree comonad and demonstrates its applications in modeling pattern runs on matter.
Findings
Explicit construction of the free monad for polynomial functors
Interaction between free monad and cofree comonad as a module
Applications to interviews, programs, voting, and games
Abstract
Interviews run on people, programs run on operating systems, voting schemes run on voters, games run on players. Each of these is an example of the abstraction pattern runs on matter. Pattern determines the decision tree that governs how a situation can unfold, while matter responds with decisions at each juncture. In this article, we will give a straightforward and concrete construction of the free monad monad for the category of polynomial functors with the substitution monoidal product. Although the free monad has been well-studied in other contexts, the construction we give is streamlined and explicitly illustrates how the free monad represents terminating decision trees. We will also explore the naturally arising interaction between the free monad and cofree comonad. Again, while the interaction itself is known, the perspective we take is the free monad as a module over the…
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
TopicsLogic, programming, and type systems · Formal Methods in Verification · Game Theory and Voting Systems
