A Relational Theory of Monadic Rewriting Systems, Part I - Archive ouverte HAL
Communication Dans Un Congrès Année : 2021

A Relational Theory of Monadic Rewriting Systems, Part I

Résumé

Motivated by the study of effectful programming languages and computations, we introduce a relational theory of monadic rewriting systems. The latter are rewriting systems whose notion of reduction is effectful, where effects are modelled as monads. Contrary to what happens in the ordinary operational semantics of monadic programming languages, defining meaningful notions of monadic rewriting turns out to problematic for several monads, including the distribution, powerset, reader, and global state monad. This raises the question of when monadic rewriting is possible. We answer that question by identifying a class of monads, known as weakly cartesian monads, that guarantee monadic rewriting to be well-behaved. In case monads are given as equational theories, as it is the case for algebraic effects, we also show that a sufficient condition to have a well-behaved notion of monadic rewriting is that all equations in the theory are linear. Finally, we apply the abstract theory of monadic rewriting systems to the call-by-value λ-calculus with algebraic effects, this way obtaining effectful (surface) standardisation and confluence theorems.
Fichier principal
Vignette du fichier
On_Monadic_Rewriting_Systems__Part_I.pdf (446.98 Ko) Télécharger le fichier
Origine Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-03455778 , version 1 (29-11-2021)

Identifiants

Citer

Claudia Faggian, Francesco Gavazzo. A Relational Theory of Monadic Rewriting Systems, Part I. LICS 2021 - 36th Annual ACM/IEEE Symposium on Logic in Computer Science, Jun 2021, Rome, France. pp.1-14, ⟨10.1109/LICS52264.2021.9470633⟩. ⟨hal-03455778⟩
92 Consultations
285 Téléchargements

Altmetric

Partager

More