arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2308.02513cs.LO
收藏

将三变量一阶谓词逻辑翻译到关系代数,使用Z3实现

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

University of Minnesota Twin Cities(明尼苏达大学双城分校)

Anthony Brogni, Sebastiaan J. C. Joosten

AI总结:

本文提出了一种基于Z3的工具,将三变量一阶谓词逻辑翻译为关系代数,为关系代数的传统应用提供了新的逻辑表达方式。

摘要:

本文介绍了开发一种软件工具,该工具能够将最多三个变量的一阶谓词逻辑翻译成关系代数。该工具使用Z3定理证明器开发,利用其能力来提高可靠性、生成代码并加快开发速度。最终生成的独立Python程序允许用户将一阶逻辑公式翻译成关系代数,从而无需显式地处理关系代数。本文概述了一阶逻辑、关系代数以及翻译过程的理论背景。它还描述了实现细节,包括使用Z3对软件工具进行验证以测试正确性。通过展示利用一阶逻辑作为关系代数表达语言的可行性,该工具为将一阶逻辑整合到传统依赖关系代数作为输入的工具中铺平了道路。

英文摘要:

This paper presents the development of a software tool that enables the translation of first-order predicate logic with at most three variables into relation algebra. The tool was developed using the Z3 theorem prover, leveraging its capabilities to enhance reliability, generate code, and expedite development. The resulting standalone Python program allows users to translate first-order logic formulas 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 software tool using Z3 for testing correctness. 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 traditionally relying on relation algebra as input.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑