Logic as a distributive law
Mike Stay, Lucius Gregory Meredith

TL;DR
This paper develops a categorical framework using monads and distributive laws to derive a spatial-behavioral type system from a formal calculus, connecting logic, type theory, and process calculi.
Contribution
It introduces a novel algorithm that constructs a type system from monadic presentations of calculi and logic, unifying Curry-Howard and realizability interpretations.
Findings
Derived a natural interpretation of formulae via monads and distributive laws.
Implemented a modal operator and related it to lambda calculus arrow types.
Encoded properties like confinement and liveness in a higher-order pi-calculus variant.
Abstract
We present an algorithm for deriving a spatial-behavioral type system from a formal presentation of a computational calculus. Given a 2-monad Calc: Catv Cat for the free calculus on a category of terms and rewrites and a 2-monad BoolAlg for the free Boolean algebra on a category, we get a 2-monad Form = BoolAlg + Calc for the free category of formulae and proofs. We also get the 2-monad BoolAlg Calc for subsets of terms. The interpretation of formulae is a natural transformation : Form BoolAlg Calc defined by the units and multiplications of the monads and a distributive law transformation : Calc BoolAlg BoolAlg Calc. This interpretation is consistent both with the Curry-Howard isomorphism and with realizability. We give an implementation of the "possibly" modal operator parametrized by a two-hole term…
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 · Logic, Reasoning, and Knowledge · Advanced Algebra and Logic
