Enregistré dans:
Détails bibliographiques
Auteurs principaux: Fu, Qiancheng, Xi, Hongwei
Format: Preprint
Publié: 2023
Sujets:
Accès en ligne:https://arxiv.org/abs/2309.08673
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866908578370027520
author Fu, Qiancheng
Xi, Hongwei
author_facet Fu, Qiancheng
Xi, Hongwei
contents We present a type theory combining both linearity and dependency by stratifying typing rules into a level for logics and a level for programs. The distinction between logics and programs decouples their semantics, allowing the type system to assume tight resource bounds. A natural notion of irrelevancy is established where all proofs and types occurring inside programs are fully erasable without compromising their operational behavior. Through a heap-based operational semantics, we show that extracted programs always make computational progress and run memory clean. Additionally, programs can be freely reflected into the logical level for conducting deep proofs in the style of standard dependent type theories. This enables one to write resource safe programs and verify their correctness using a unified language.
format Preprint
id arxiv_https___arxiv_org_abs_2309_08673
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle A Two-Level Linear Dependent Type Theory
Fu, Qiancheng
Xi, Hongwei
Programming Languages
We present a type theory combining both linearity and dependency by stratifying typing rules into a level for logics and a level for programs. The distinction between logics and programs decouples their semantics, allowing the type system to assume tight resource bounds. A natural notion of irrelevancy is established where all proofs and types occurring inside programs are fully erasable without compromising their operational behavior. Through a heap-based operational semantics, we show that extracted programs always make computational progress and run memory clean. Additionally, programs can be freely reflected into the logical level for conducting deep proofs in the style of standard dependent type theories. This enables one to write resource safe programs and verify their correctness using a unified language.
title A Two-Level Linear Dependent Type Theory
topic Programming Languages
url https://arxiv.org/abs/2309.08673