一种将序代数转化为多序代数的方法
A Method to Translate Order-Sorted Algebras to Many-Sorted Algebras
摘要:
有序代数和许多有序代数存在于很长的历史中,有许多不同的实现和应用。许多语言规范都是在有序代数框架中定义的,如K中的语言规范。许多有序代数框架中最大的问题是,即使它们可以让开发人员轻松编写程序和语言规范,但它们没有大量的工具来提供推理基础设施来推理框架上构建的规范,这在Isabelle/HOL,Coq和FDR等多排序代数框架中非常常见。这一事实使我们有必要将序排序代数和许多排序代数的世界结合起来。在本文中,我们提出了一个算法,通过要求严格敏感的序排序代数是严格敏感的,在一个限制的区域中,将严格敏感的序排序代数转化为多排序代数。这种变换的核心思想是在变换后的多序代数上增加一个等价关系,称为核相等。通过定义这种关系,我们降低了将严格可感序代数转化为多序代数的复杂性,使得转化后的多序代数方程只增加很少量的新方程,并且保持代数中重写规则的数量不变.证明了序序代数与其平移的多序代数是双相似的。据我们所知,我们的翻译和双相似证明是第一次尝试在翻译和相关的顺序排序代数与一个多排序的方式,保持翻译的多排序代数的大小相对较小。
英文摘要:
Order-sorted algebras and many sorted algebras exist in a long history with many different implementations and applications. A lot of language specifications have been defined in order-sorted algebra frameworks such as the language specifications in K (an order-sorted algebra framework). The biggest problem in a lot of the order-sorted algebra frameworks is that even if they might allow developers to write programs and language specifications easily, but they do not have a large set of tools to provide reasoning infrastructures to reason about the specifications built on the frameworks, which are very common in some many-sorted algebra framework such as Isabelle/HOL, Coq and FDR. This fact brings us the necessity to marry the worlds of order-sorted algebras and many sorted algebras. In this paper, we propose an algorithm to translate a strictly sensible order-sorted algebra to a many-sorted one in a restricted domain by requiring the order-sorted algebra to be strictly sensible. The key idea of the translation is to add an equivalence relation called core equality to the translated many-sorted algebras. By defining this relation, we reduce the complexity of translating a strictly sensible order-sorted algebra to a many-sorted one, make the translated many-sorted algebra equations only increasing by a very small amount of new equations, and keep the number of rewrite rules in the algebra in the same amount. We then prove the order-sorted algebra and its translated many-sorted algebra are bisimilar. To the best of our knowledge, our translation and bisimilar proof is the first attempt in translating and relating an order-sorted algebra with a many-sorted one in a way that keeps the size of the translated many-sorted algebra relatively small.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。