Polynomial Time and Dependent Types

07/18/2023
by   Robert Atkey, et al.
0

We combine dependent types with linear type systems that soundly and completely capture polynomial time computation. We explore two systems for capturing polynomial time: one system that disallows construction of iterable data, and one, based on the LFPL system of Martin Hofmann, that controls construction via a payment method. Both of these are extended to full dependent types via Quantitative Type Theory, allowing for arbitrary computation in types alongside guaranteed polynomial time computation in terms. We prove the soundness of the systems using a realisability technique due to Dal Lago and Hofmann. Our long-term goal is to combine the extensional reasoning of type theory with intensional reasoning about the resources intrinsically consumed by programs. This paper is a step along this path, which we hope will lead both to practical systems for reasoning about programs' resource usage, and to theoretical use as a form of synthetic computational complexity theory.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
10/25/2020

Graded Modal Dependent Type Theory

Graded type theories are an emerging paradigm for augmenting the reasoni...
research
11/08/2020

A graded dependent type system with a usage-aware semantics (extended version)

Graded Type Theory provides a mechanism to track and reason about resour...
research
08/14/2019

On the Elementary Affine Lambda-Calculus with and Without Fixed Points

The elementary affine lambda-calculus was introduced as a polyvalent set...
research
10/30/2020

Type safety of rewrite rules in dependent types

The expressiveness of dependent type theory can be extended by identifyi...
research
11/09/2017

Higher-order Cons-free Interpreters

Constructor rewriting systems are said to be cons-free if any constructo...
research
07/07/2022

Search versus Search for Collapsing Electoral Control Types

Electoral control types are ways of trying to change the outcome of elec...
research
01/17/2023

Polynomial-Time Axioms of Choice and Polynomial-Time Cardinality

There is no single canonical polynomial-time version of the Axiom of Cho...

Please sign up or login with your details

Forgot password? Click here to reset