A Method to Translate Order-Sorted Algebras to Many-Sorted Algebras

02/19/2018
by   Liyi Li, et al.
0

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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
07/28/2023

Translating First-Order Predicate Logic to Relation Algebra, Implemented using Z3

This paper presents the development of a software tool that enables the ...
research
07/05/2023

The complexity of the Chinese Remainder Theorem

The Chinese Remainder Theorem for the integers says that every system of...
research
07/16/2021

SMLtoCoq: Automated Generation of Coq Specifications and Proof Obligations from SML Programs with Contracts

Formally reasoning about functional programs is supposed to be straightf...
research
05/02/2020

On infinite guarded recursive specifications in process algebra

In most presentations of ACP with guarded recursion, recursive specifica...
research
09/12/2016

First-Order Bayesian Network Specifications Capture the Complexity Class PP

The point of this note is to prove that a language is in the complexity ...
research
09/05/2023

The Index and Core of a Relation. With Applications to the Axiomatics of Relation Algebra

We introduce the general notions of an index and a core of a relation. W...
research
05/01/2020

From Equations to Distinctions: Two Interpretations of Effectful Computations

There are several ways to define program equivalence for functional prog...

Please sign up or login with your details

Forgot password? Click here to reset