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

07/28/2023
by   Anthony Brogni, et al.
0

This paper presents the development of a software tool that enables the translation of first-order predicate logic into relation algebra. The tool was developed using the Z3 theorem prover, by leveraging its capabilities to enhance reliability, generate code, and expedite the development process. The resulting standalone Python program allows users to translate first-order logic expressions into relation algebra, eliminating the need to work with relation algebra explicitly. This paper outlines the theoretical background of first-order logic, relation algebra, and the translation process. It also describes the implementation details, including validation of the tool using Z3 for testing correctness, and discusses deviations from the original translation procedure. By demonstrating the feasibility of utilizing first-order logic as an alternative language for expressing relation algebra, this tool paves the way for integrating first-order logic into tools that traditionally rely on relation algebra as their input language.

READ FULL TEXT
research
06/11/2019

Using Hoare logic in a process algebra setting

This paper concerns the relation between process algebra and Hoare logic...
research
02/19/2018

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

Order-sorted algebras and many sorted algebras exist in a long history w...
research
09/21/2022

Embedding Kozen-Tiuryn Logic into Residuated One-Sorted Kleene Algebra with Tests

Kozen and Tiuryn have introduced the substructural logic 𝖲 for reasoning...
research
01/05/2023

Representable and diagonally representable weakening relation algebras

A binary relation defined on a poset is a weakening relation if the part...
research
12/09/2013

A state vector algebra for algorithmic implementation of second-order logic

We present a mathematical framework for mapping second-order logic relat...
research
09/06/2020

On the construction of explosive relation algebras

Fork algebras are an extension of relation algebras obtained by extendin...
research
02/19/2021

DyNetKAT: An Algebra of Dynamic Networks

We introduce a formal language for specifying dynamic updates for Softwa...

Please sign up or login with your details

Forgot password? Click here to reset