arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2209.13000cs.PLcs.LO
收藏

聚焦于精化类型推导

Focusing on Refinement Typing

Dimitrios J. Economou, Neel Krishnaswami, Jana Dunfield

AI总结:

本文结合聚焦 call-by-push-value、双向类型推导和值确定索引,构建可生成无存在变量 SMT 约束的精化类型系统,并证明其算法可靠、完备、可判定及语义正确。

摘要:

我们提出了一个具有逻辑原则的基础,用于系统化函数式编程语言精化类型系统中所见的 SMT 约束生成,并使其能够适用于任何计算效应和求值顺序。通过精心结合 call-by-push-value 的聚焦变体、双向类型推导以及我们提出的“值确定索引”新技术,该系统可生成不含量存在(合一)变量的可解 SMT 约束。我们设计了一种极化子类型关系,从而能够证明这个逻辑聚焦的类型算法是可靠、完备且可判定的。我们还相对于一个初等域论语义指称模型,证明了声明式系统的类型可靠性。类型可靠性可相对直接地蕴含系统的完全正确性和逻辑一致性。我们能够同时获得算法层面和语义层面的结果,其相对便利性最终源于聚焦这一证明论技术。

英文摘要:

We present a logically principled foundation for systematizing, in a way that works with any computational effect and evaluation order, SMT constraint generation seen in refinement type systems for functional programming languages. By carefully combining a focalized variant of call-by-push-value, bidirectional typing, and our novel technique of value-determined indexes, our system generates solvable SMT constraints without existential (unification) variables. We design a polarized subtyping relation allowing us to prove our logically focused typing algorithm is sound, complete, and decidable. We prove type soundness of our declarative system with respect to an elementary domain-theoretic denotational semantics. Type soundness implies, relatively simply, the total correctness and logical consistency of our system. The relative ease with which we obtain both algorithmic and semantic results ultimately stems from the proof-theoretic technique of focalization.

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

↑