Skip to main content
Kent Academic Repository

Deriving Distributive Laws for Graded Linear Types

Hughes, Jack, Vollmer, Michael, Orchard, Dominic A. (2021) Deriving Distributive Laws for Graded Linear Types. In: UNSPECIFIED. (KAR id:115287)

Abstract

The recent notion of graded modal types provides a framework for extending type theories with finegrained data-flow reasoning. The Granule language exploresthis idea in the context of linear types. In this practical setting, we observe that the presence of graded modal types can introduce an additional impediment when programming: when composing programs, it is often necessary to ‘distribute’ data types over graded modalities, and vice versa. In this paper, we show how to automatically derive these distributive laws as combinators for programming. We discuss the implementation and use of this automated deriving procedure in Granule, providing easy access to these distributive combinators. This work is also applicable to Linear Haskell (which retrofits Haskell with linear types via grading) and we apply our technique there to provide the same automatically derived combinators. Along the way, we discuss interesting considerations for pattern matching analysis via graded linear types. Lastly, we show how other useful structural combinators can also be automatically derived.

Item Type: Conference proceeding
Subjects: Q Science > QA Mathematics (inc Computing science) > QA 76 Software, computer programming,
Institutional Unit: Schools > School of Computing
Former Institutional Unit:
There are no former institutional units.
Funders: Engineering and Physical Sciences Research Council (https://ror.org/0439y7842)
Depositing User: Dominic Orchard
Date Deposited: 16 May 2026 22:13 UTC
Last Modified: 16 May 2026 22:27 UTC
Resource URI: https://kar.kent.ac.uk/id/eprint/115287 (The current URI for this page, for reference purposes)

University of Kent Author Information

  • Depositors only (login required):

Total unique views of this page since July 2020. For more details click on the image.