首页 | 官方网站   微博 | 高级检索  
     


Dynamically Typed Computations for Order-sorted Equational Presentations
Affiliation:CRIN and INRIA-Lorraine, BP 239, Vand?uvre-lès-Nancy Cedex, 54506, France
Abstract:Equational presentations with ordered sorts encompass partially defined functions and subtyping information in an algebraic framework. In this work we address the problem of computing in order-sorted algebras, with few restrictions on the allowed presentations. We adopt the G-algebra framework, where equational, membership and existence formulas can be expressed, and this provides a complete deduction calculus which incorporates the interaction between all these formulas.To practically deal with this calculus, we introduce an operational semantics for G-algebra using rewrite systems over so-called decorated terms, that has assertions concerning the sort membership of any subterm in its head node. Decorated rewrite rules perform equational replacement, decoration rewrite rules enrich the decorations and record sort information. Therefore we use the semantic sort principle, i.e. equal terms belong to equal sorts, rather than the syntactic sort principle that does not use the equational part of a presentation.In order to have a complete and decidable unification on decorated terms, we restrict to sort-inheritance theories. Then a completion procedure on decorated terms is designed to compute all interactions between equational and membership formulas. When the completion terminates, the resulting set of rewrite rules provides a way to decide equational theorems of the form (t = t′) and typing theorems of the form (t : A).The sort inheritance property is undecidable in general but we propose a test to check it for a given presentation. The test provides information on how to extend the presentation in a model conservative way, in order to obtain sort inheritance.
Keywords:
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司    京ICP备09084417号-23

京公网安备 11010802026262号