The Relative Monadic Metalanguage
Jack Liell-Cock, Zev Shirazi, Sam Staton
Abstract
Relative monads provide a controlled view of computation. We generalise the monadic metalanguage to a relative setting and give a complete semantics with strong relative monads. Adopting this perspective, we generalise two existing program calculi from the literature. We provide a linear-non-linear language for graded monads, LNL-RMM, along with a semantic proof that it is a conservative extension of the graded monadic metalanguage. Additionally, we provide a complete semantics for the arrow calculus, showing it is a restricted relative monadic metalanguage. This motivates the introduction of ARMM, a computational lambda calculus-style language for arrows that conservatively extends the arrow calculus.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
Lineage
Builds on5
- Scaling exact inference for discrete probabilistic programsSteven Holtzen, Guy Van den Broeck, Todd D. MillsteinOOPSLA 2020 · 85 citations
- The next 700 relational program logicsKenji Maillard, Catalin Hritcu, Exequiel Rivas, Antoine Van MuylderPOPL 2020 · 41 citations
- Trace types and denotational semantics for sound programmable inference in probabilistic languagesAlexander K. Lew, Marco F. Cusumano-Towner, Benjamin Sherman, Michael Carbin et al.POPL 2020 · 30 citations
- Compositional Imprecise Probability: A Solution from Graded Monads and Markov CategoriesJack Liell-Cock, Sam StatonPOPL 2025 · 3 citations
- Notions of Stack-Manipulating Computation and Relative MonadsYuchen Jiang, Runze Xue, Max S. NewOOPSLA 2025 · 2 citations
Related papers
- A relational theory of effects and coeffectsUgo Dal Lago, Francesco GavazzoPOPL 2022 · 22 citations
- Reduction monads and their signaturesBenedikt Ahrens, André Hirschowitz, Ambroise Lafont, Marco MaggesiPOPL 2020 · 2 citations
- Behavioural Preorders via Graded MonadsChase Ford, Stefan Milius, Lutz SchröderLICS 2021 · 8 citations
- Resource-Aware Soundness for Big-Step SemanticsRiccardo Bianchini, Francesco Dagnino, Paola Giannini, Elena ZuccaOOPSLA 2023 · 6 citations
- The Duality of λ-AbstractionVikraman Choudhury, Simon J. GayPOPL 2025 · 2 citations
