本地终止:理论与实践
Local Termination: theory and practice
摘要:
终止使用良好的基础单调代数的表征是自动终止技术的一个里程碑,在过去的几年里,我们已经看到了广泛的发展。术语重写系统(TRS)的语义特征和大多数已知的终止方法都涉及全局终止,即所有术语的一致终止。在本文中,我们考虑本地终止,在一个给定的TRS的特定条款集。本文的主要目标是概括的语义特征的整体终止本地终止。这是可能的,通过承认良基单调代数是部分的。我们还将我们的方法扩展到本地相对终止。对局部终止的兴趣自然出现在程序验证中,在那里人们可能只对合理的输入感兴趣,或者只是想验证程序终止的输入集。当处理TRS中已知为非终止的特定类别的术语时,局部终止也将是感兴趣的,例如组合逻辑(CL)或TRS编码递归程序方案或图灵机。我们展示了如何证明全球终止的一些著名的技术,如逐步删除重写规则和语义标签,可以适应当地的情况。我们还描述了减少局部到全局终止问题的转换。由此产生的证明本地终止的技术在某些情况下已经自动化。我们的应用之一涉及CL作为正则语言的终止S-项的特征。在此之前,这种语言已经通过对S项的归约行为进行繁琐的分析而被发现。这些发现现在已经被一个完全自动化和经过验证的证明所证实。
英文摘要:
The characterisation of termination using well-founded monotone algebras has been a milestone on the way to automated termination techniques, of which we have seen an extensive development over the past years. Both the semantic characterisation and most known termination methods are concerned with global termination, uniformly of all the terms of a term rewriting system (TRS). In this paper we consider local termination, of specific sets of terms within a given TRS. The principal goal of this paper is generalising the semantic characterisation of global termination to local termination. This is made possible by admitting the well-founded monotone algebras to be partial. We also extend our approach to local relative termination. The interest in local termination naturally arises in program verification, where one is probably interested only in sensible inputs, or just wants to characterise the set of inputs for which a program terminates. Local termination will be also be of interest when dealing with a specific class of terms within a TRS that is known to be non-terminating, such as combinatory logic (CL) or a TRS encoding recursive program schemes or Turing machines. We show how some of the well-known techniques for proving global termination, such as stepwise removal of rewrite rules and semantic labelling, can be adapted to the local case. We also describe transformations reducing local to global termination problems. The resulting techniques for proving local termination have in some cases already been automated. One of our applications concerns the characterisation of the terminating S-terms in CL as regular language. Previously this language had already been found via a tedious analysis of the reduction behaviour of S-terms. These findings have now been vindicated by a fully automated and verified proof.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。