We study the semantics of an untyped lambda-calculus equipped with operators representing read and write operations from and to a global store. We adopt the monadic approach to model side-effects and treat read and write as algebraic operations over a monad. We introduce operational and denotational semantics and a type assignment system of intersection types and prove that types are invariant under the reduction and expansion of term and state configurations. Finally, we characterize convergent terms via their typings, establishing the adequacy of the denotational semantics w.r.t. the operational semantics.

Intersection Types for a Computational Lambda-Calculus with Global State

de'Liguoro, Ugo;Treglia, Riccardo
2025-01-01

Abstract

We study the semantics of an untyped lambda-calculus equipped with operators representing read and write operations from and to a global store. We adopt the monadic approach to model side-effects and treat read and write as algebraic operations over a monad. We introduce operational and denotational semantics and a type assignment system of intersection types and prove that types are invariant under the reduction and expansion of term and state configurations. Finally, we characterize convergent terms via their typings, establishing the adequacy of the denotational semantics w.r.t. the operational semantics.
2025
Volume 194, Issue 3
1
41
https://arxiv.org/abs/2104.01358v5
State Monad, Imperative lambda calculus, Type assignment systems
de'Liguoro, Ugo; Treglia, Riccardo
File in questo prodotto:
File Dimensione Formato  
2104.01358.pdf

Accesso aperto

Tipo di file: PDF EDITORIALE
Dimensione 519.35 kB
Formato Adobe PDF
519.35 kB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/2318/2094370
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact