Graded Modal Dependent Type Theory

10/25/2020
by   Benjamin Moon, et al.
0

Graded type theories are an emerging paradigm for augmenting the reasoning power of types with parameterizable, fine-grained analyses of program properties. There have been many such theories in recent years which equip a type theory with quantitative dataflow tracking, usually via a semiring-like structure which provides analysis on variables (often called `quantitative' or `coeffect' theories). We present Graded Modal Dependent Type Theory (Grtt for short), which equips a dependent type theory with a general, parameterizable analysis of the flow of data, both in and between computational terms and types. In this theory, it is possible to study, restrict, and reason about data use in programs and types, enabling, for example, parametric quantifiers and linearity to be captured in a dependent setting. We propose Grtt, study its metatheory, and explore various case studies of its use in reasoning about programs and studying other type theories. We have implemented the theory and highlight the interesting details, including showing an application of grading to optimising the type checking procedure itself.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
12/01/2021

Finitary type theories with and without contexts

We give a definition of finitary type theories that subsumes many exampl...
research
07/18/2023

Polynomial Time and Dependent Types

We combine dependent types with linear type systems that soundly and com...
research
12/30/2021

Deriving Distributive Laws for Graded Linear Types

The recent notion of graded modal types provides a framework for extendi...
research
11/29/2021

Formalization of dependent type theory: The example of CaTT

We present the type theory CaTT, originally introduced by Finster and Mi...
research
05/11/2023

Layered Modal Type Theories

We introduce layers to modal type theories, which subsequently enables t...
research
07/13/2021

From Identity to Difference: A Quantitative Interpretation of the Identity Type

We explore a quantitative interpretation of 2-dimensional intuitionistic...
research
09/04/2019

Heterogeneous Proxytypes Extended: Integrating Theory-like Representations and Mechanisms with Prototypes and Exemplars

The paper introduces an extension of the proposal according to which con...

Please sign up or login with your details

Forgot password? Click here to reset