Hughes, Jack, Vollmer, Michael, Orchard, Dominic A. (2021) Deriving Distributive Laws for Graded Linear Types. In: UNSPECIFIED. (KAR id:115287)
|
PDF
Publisher pdf
Language: English
This work is licensed under a Creative Commons Attribution 4.0 International License.
|
|
|
Download this file (PDF/351kB) |
Preview |
| Request a format suitable for use with assistive technology e.g. a screenreader | |
| Official URL: https://arxiv.org/abs/2112.14966v1 |
|
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) |
- Link to SensusAccess
- Export to:
- RefWorks
- EPrints3 XML
- BibTeX
- CSV
- Depositors only (login required):

https://orcid.org/0000-0002-0496-8268
Total Views
Total Views