A Two-Level Linear Dependent Type Theory

09/15/2023
by   Qiancheng Fu, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/20/2009

Hybrid Rules with Well-Founded Semantics

A general framework is proposed for integration of rules and external fi...
research
08/03/2021

Owicki-Gries Reasoning for C11 Programs with Relaxed Dependencies (Extended Version)

Deductive verification techniques for C11 programs have advanced signifi...
research
04/24/2018

Guarded Computational Type Theory

Nakano's later modality can be used to specify and define recursive func...
research
03/30/2022

A meta-probabilistic-programming language for bisimulation of probabilistic and non-well-founded type systems

We introduce a formal meta-language for probabilistic programming, capab...
research
11/07/2020

Cost-Aware Type Theory

Although computational complexity is a fundamental aspect of program beh...
research
05/18/2018

Proofs and Programs about Open Terms

Formal deductive systems are very common in computer science. They are u...
research
05/24/2022

Modeling Asymptotic Complexity Using ACL2

The theory of asymptotic complexity provides an approach to characterizi...

Please sign up or login with your details

Forgot password? Click here to reset