arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2309.08673cs.PL
收藏

两级线性依赖类型理论

A Two-Level Linear Dependent Type Theory

Boston University(波士顿大学)

Qiancheng Fu, Hongwei Xi

AI总结:

本文提出一种两级线性依赖类型理论,通过分层解耦逻辑与程序语义,实现资源安全编程与深度验证的统一语言。

摘要:

我们提出了一种结合线性性与依赖性的类型理论,通过将类型规则分层为逻辑层和程序层来实现。逻辑与程序之间的区分解耦了它们的语义,使得类型系统能够假设严格的资源界限。我们建立了一种自然的无关性概念,其中程序内部出现的所有证明和类型都可以完全擦除,而不影响其操作行为。通过基于堆的操作语义,我们证明了提取的程序总能取得计算进展并内存干净地运行。此外,程序可以自由地反射到逻辑层,以标准依赖类型理论的方式进行深入证明。这使得人们能够使用统一语言编写资源安全的程序并验证其正确性。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑