资源受限的马丁-洛夫类型理论:依赖类型的组合成本分析
Resource-Bounded Martin-Löf Type Theory: Compositional Cost Analysis for Dependent Types
AI总结:
本研究提出一种资源受限的马丁-洛夫类型理论,通过引入资源索引宇宙层级和分级模态,实现对依赖类型的组合成本分析,并通过案例研究展示其在认证算法成本界限方面的应用。
摘要:
我们扩展资源受限类型理论到马丁-洛夫类型理论(MLTT)中,使其能够为归纳族上的程序提供基于大小的成本界限。我们引入了一个资源索引的宇宙层级U_r,其中r是L中的元素,用于跟踪类型形成的成本,并引入了一个分级模态Box_r用于可行性认证。我们的主要结果包括:(1)一个成本正确性定理,显示合成的界限过度逼近操作成本,且界限以大小索引函数形式表达;(2)在L上的仿射拓扑中的一种语义模型,扩展了依赖仿射结构;(3)内延性片段的可选性;以及(4)语法模型的初始性。我们通过案例研究展示了该框架,包括具有线性界限的长度索引向量操作和具有对数界限的二分查找,均以类型形式表达。这项工作弥合了依赖类型理论与定量资源分析之间的差距,使大小依赖算法的认证成本界限成为可能。
英文摘要:
We extend resource-bounded type theory to Martin-Lof type theory (MLTT) with dependent types, enabling size-indexed cost bounds for programs over inductive families. We introduce a resource-indexed universe hierarchy U_r where r is an element of L and tracks the cost of type formation, and a graded modality Box_r for feasibility certification. Our main results are: (1) a cost soundness theorem showing that synthesized bounds over-approximate operational costs, with bounds expressed as functions of size indices; (2) a semantic model in the presheaf topos over L, extended with dependent presheaves and a comprehension structure; (3) canonicity for the intensional fragment; and (4) initiality of the syntactic model. We demonstrate the framework with case studies including length-indexed vector operations with linear bounds and binary search with logarithmic bounds, both expressed in the type. This work bridges the gap between dependent type theory and quantitative resource analysis, enabling certified cost bounds for size-dependent algorithms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。