The Linear Session Abstract Machine

We introduce the Linear SAM, an abstract machine for mechanically executing session-typed programs that precisely correspond to Linear Logic \(\mathsf{CLL}\) via the propositions-as-types correspondence. In this basic computation model, programs are naturally interpreted as concurrent systems. However, inspired by a fine-grained analysis of proof conversion and focalisation, we derive in this work a fully deterministic sequential evaluation strategy, which may be implemented via co-routining and session buffered communication. Our development targets a language extending \(\mathsf{CLL}\) with second-order quantifiers (polymorphism) and inductive types (recursion and co-recursion), which supports general higher-order polymorphic functional / session-based computation. A remarkable feature of the SAM’s design is its ability to seamlessly coordinate sequential session behaviour with concurrent session behaviour within the same program. We provide an intuitive discussion of the SAM structure and its underlying design, and state and prove its adequacy, showing that SAM executions always correspond to \(\mathsf{CLL}\) proof reductions, and that any \(\mathsf{CLL}\) proof reduction is simulated by the SAM execution. To that end, we technically factor our development via an intermediate logical language \(\mathsf{CLLB}\) , which extends \(\mathsf{CLL}\) with a “buffered” cut construct, and bridges between the logical/algebraic level and the lower-level machine architecture. We also discuss a proof-of-concept implementation of the SAM, that suggests its potential to support the native linear execution of general session-functional linear programming languages with concurrency.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Programming Languages and Systems
Published
2026-05-29
DOI
https://doi.org/10.1145/3819583
Primary Topic
Logic, programming, and type systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

The Linear Session Abstract Machine

Luı́s Caires, Bernardo Toninho
ACM Transactions on Programming Languages and Systems
Logic, programming, and type systems
article

The Linear Session Abstract Machine

Luı́s Caires, Bernardo Toninho
article en

Abstract

We introduce the Linear SAM, an abstract machine for mechanically executing session-typed programs that precisely correspond to Linear Logic \(\mathsf{CLL}\) via the propositions-as-types correspondence. In this basic computation model, programs are naturally interpreted as concurrent systems. However, inspired by a fine-grained analysis of proof conversion and focalisation, we derive in this work a fully deterministic sequential evaluation strategy, which may be implemented via co-routining and session buffered communication. Our development targets a language extending \(\mathsf{CLL}\) with second-order quantifiers (polymorphism) and inductive types (recursion and co-recursion), which supports general higher-order polymorphic functional / session-based computation. A remarkable feature of the SAM’s design is its ability to seamlessly coordinate sequential session behaviour with concurrent session behaviour within the same program. We provide an intuitive discussion of the SAM structure and its underlying design, and state and prove its adequacy, showing that SAM executions always correspond to \(\mathsf{CLL}\) proof reductions, and that any \(\mathsf{CLL}\) proof reduction is simulated by the SAM execution. To that end, we technically factor our development via an intermediate logical language \(\mathsf{CLLB}\) , which extends \(\mathsf{CLL}\) with a “buffered” cut construct, and bridges between the logical/algebraic level and the lower-level machine architecture. We also discuss a proof-of-concept implementation of the SAM, that suggests its potential to support the native linear execution of general session-functional linear programming languages with concurrency.

ACM Transactions on Programming Languages and Systems
Instituto de Engenharia de Sistemas e Computadores Investigação e Desenvolvimento (PT)
Openalex Percentile: Top 4%
Logic, programming, and type systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.