• Home
  • Search
  • Linearity and Uniqueness: An Entente Cordiale
  • Cite Icon14
  • https://doi.org/10.1007/978-3-030-99336-8_13Copy DOI Icon

Linearity and Uniqueness: An Entente Cordiale

  • Jan 1, 2022
  • Danielle Marshall +2 more
Show More
  • Abstract
  • PDF
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Abstract Substructural type systems are growing in popularity because they allow for a resourceful interpretation of data which can be used to rule out various software bugs. Indeed, substructurality is finally taking hold in modern programming; Haskell now has linear types roughly based on Girard’s linear logic but integrated via graded function arrows, Clean has uniqueness types designed to ensure that values have at most a single reference to them, and Rust has an intricate ownership system for guaranteeing memory safety. But despite this broad range of resourceful type systems, there is comparatively little understanding of their relative strengths and weaknesses or whether their underlying frameworks can be unified. There is often confusion about whether linearity and uniqueness are essentially the same, or are instead ‘dual’ to one another, or somewhere in between. This paper formalises the relationship between these two well-studied but rarely contrasted ideas, building on two distinct bodies of literature, showing that it is possible and advantageous to have both linear and unique types in the same type system. We study the guarantees of the resulting system and provide a practical implementation in the graded modal setting of the Granule language, adding a third kind of modality alongside coeffect and effect modalities. We then demonstrate via a benchmark that our implementation benefits from expected efficiency gains enabled by adding uniqueness to a language that already has a linear basis.

Loading PDF

Similar Papers
  • Research Article
  • Citations2

Combining linear logic and size types for implicit complexity

  • Sep 25, 2019
  • Theoretical Computer Science
  • Patrick Baillot +1
  • PDF
  • Research Article
  • Citations15

Mixed linear and non-linear recursive types

  • Jul 26, 2019
  • Proceedings of the ACM on Programming Languages
  • Bert Lindenhovius +2
  • Conference Article
  • Citations5

Session Logical Relations for Noninterference

  • Jun 29, 2021
  • Farzaneh Derakhshan +2
  • Research Article

Contrasting Deadlock-Free Session Processes

  • Jan 01, 2025
  • University of Groningen research database (University of Groningen / Centre for Information Technology)
  • Juan C Jaramillo +1
  • PDF
  • Research Article
  • Citations89

Quantitative program reasoning with graded modal types

  • Jul 26, 2019
  • Proceedings of the ACM on Programming Languages
  • Dominic Orchard +2
  • Research Article
  • Citations62

On the unity of duality

  • Mar 05, 2008
  • Annals of Pure and Applied Logic
  • Noam Zeilberger
  • Research Article
  • Citations23

Syntactic Control of Interference Revisited

  • Jan 01, 1995
  • Electronic Notes in Theoretical Computer Science
  • P.W O'Hearn +3
  • Research Article

Fair Termination of Asynchronous Binary Sessions

  • Mar 26, 2026
  • ACM Transactions on Programming Languages and Systems
  • Luca Padovani +1
  • Research Article
  • Citations175

A Linear Logical Framework

  • Nov 01, 2002
  • Information and Computation
  • Iliano Cervesato +1
  • Research Article
  • Citations73

Syntactic control of interference revisited

  • Oct 01, 1999
  • Theoretical Computer Science
  • P.W O’Hearn +3
  • Conference Article
  • Citations2

A practical type system for safe aliasing

  • Oct 24, 2018
  • Dimitri Racordon +1
  • Conference Article
  • Citations2

Let's not Make a Fuzz about it

  • May 01, 2021
  • Elisabet Lobo-Vesga
  • Book Chapter

Integrating Types and Specifications for Secure Software Development

  • Jan 01, 2010
  • Greg Morrisett
  • Research Article
  • Citations19

What do medicine clerkship preceptors do best?

  • Aug 01, 2002
  • Academic Medicine
  • Kathleen M Mazor +3
  • Book Chapter
  • Citations2

Using Lightweight Theorem Proving in an Asynchronous Systems Context

  • Jan 01, 2014
  • Matthew Danish +1
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.