Cargando…
Graded Modal Dependent Type Theory
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 s...
Autores principales: | , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
2021
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7984552/ http://dx.doi.org/10.1007/978-3-030-72019-3_17 |
_version_ | 1783668089479495680 |
---|---|
author | Moon, Benjamin Eades III, Harley Orchard, Dominic |
author_facet | Moon, Benjamin Eades III, Harley Orchard, Dominic |
author_sort | Moon, Benjamin |
collection | PubMed |
description | 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. |
format | Online Article Text |
id | pubmed-7984552 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2021 |
record_format | MEDLINE/PubMed |
spelling | pubmed-79845522021-03-23 Graded Modal Dependent Type Theory Moon, Benjamin Eades III, Harley Orchard, Dominic Programming Languages and Systems Article 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. 2021-03-23 /pmc/articles/PMC7984552/ http://dx.doi.org/10.1007/978-3-030-72019-3_17 Text en © The Author(s) 2021 Open Access This chapter is licensed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license and indicate if changes were made. The images or other third party material in this chapter are included in the chapter's Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the chapter's Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. |
spellingShingle | Article Moon, Benjamin Eades III, Harley Orchard, Dominic Graded Modal Dependent Type Theory |
title | Graded Modal Dependent Type Theory |
title_full | Graded Modal Dependent Type Theory |
title_fullStr | Graded Modal Dependent Type Theory |
title_full_unstemmed | Graded Modal Dependent Type Theory |
title_short | Graded Modal Dependent Type Theory |
title_sort | graded modal dependent type theory |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7984552/ http://dx.doi.org/10.1007/978-3-030-72019-3_17 |
work_keys_str_mv | AT moonbenjamin gradedmodaldependenttypetheory AT eadesiiiharley gradedmodaldependenttypetheory AT orcharddominic gradedmodaldependenttypetheory |