Skip to main navigation Skip to search Skip to main content

Quantitative Types for the Functional Machine Calculus

Research output: Chapter or section in a book/report/conference proceedingChapter in a published conference proceeding

Abstract

The Functional Machine Calculus (FMC, Heijltjes 2022) extends the lambda-calculus with the computational effects of global mutable store, input/output, and probabilistic choice while maintaining confluent reduction and simply-typed strong normalization. Based in a simple call-by-name stack machine in the style of Krivine, the FMC models effects through additional argument stacks, and introduces sequential composition through a continuation stack to encode call-by-value behaviour, where simple types guarantee termination of the machine. The present paper provides a discipline of quantitative types, also known as non-idempotent intersection types, for the FMC, in two variants. In the weak variant, typeability coincides with termination of the stack machine and with spine normalization, while exactly measuring the transitions in machine evaluation. The strong variant characterizes strong normalization through a notion of perpetual evaluation, while giving an upper bound to the length of reductions. Through the encoding of effects, quantitative typeability coincides with termination for higher-order mutable store, input/output, and probabilistic choice.

Original languageEnglish
Title of host publication10th International Conference on Formal Structures for Computation and Deduction, FSCD 2025
EditorsMaribel Fernandez
Place of PublicationGermany
PublisherSchloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
ISBN (Electronic)9783959773744
DOIs
Publication statusPublished - 7 Jul 2025
Event10th International Conference on Formal Structures for Computation and Deduction, FSCD 2025 - Birmingham, UK United Kingdom
Duration: 14 Jul 202520 Jul 2025

Publication series

NameLeibniz International Proceedings in Informatics, LIPIcs
Volume337
ISSN (Print)1868-8969

Conference

Conference10th International Conference on Formal Structures for Computation and Deduction, FSCD 2025
Country/TerritoryUK United Kingdom
CityBirmingham
Period14/07/2520/07/25

Acknowledgements

I am grateful to Vincent van Oostrom for many interesting discussions. Thanks also to the anonymous referees for suggestions and pointers to the literature.

Keywords

  • computational effects
  • intersection types
  • lambda-calculus

ASJC Scopus subject areas

  • Software

Fingerprint

Dive into the research topics of 'Quantitative Types for the Functional Machine Calculus'. Together they form a unique fingerprint.

Cite this