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

PML 2:ML中的集成程序验证

PML 2 : Integrated Program Verification in ML

Rodolphe Lepigre

摘要:

我们提出的PML 2语言,它提供了一个统一的编程环境,并证明性质的程序在ML样设置。该语言是Curry风格和按值调用的,它提供了一个控制操作符(根据经典逻辑解释),它支持一般递归和一种非常一般的(隐式,非强制性)子类型。在该系统中,用两种新的形式表示程序的方程性质,并通过构造终止程序来证明它们。虽然证明很大程度上依赖于等式推理,但等式完全由类型检查器管理。这意味着用户只需选择使用哪个等式,而不是在哪里使用它,就像通常在数学证明中所做的那样。在系统中,编写证明主要是应用引理(可能是递归函数调用),并执行案例分析(模式匹配)。

英文摘要:

We present the PML 2 language, which provides a uniform environment for programming, and for proving properties of programs in an ML-like setting. The language is Curry-style and call-by-value, it provides a control operator (interpreted in terms of classical logic), it supports general recursion and a very general form of (implicit, non-coercive) subtyping. In the system, equational properties of programs are expressed using two new type formers, and they are proved by constructing terminating programs. Although proofs rely heavily on equational reasoning, equalities are exclusively managed by the type-checker. This means that the user only has to choose which equality to use, and not where to use it, as is usually done in mathematical proofs. In the system, writing proofs mostly amounts to applying lemmas (possibly recursive function calls), and to perform case analyses (pattern matchings).

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

↑