Coder Social home page Coder Social logo

isopod00 / fo3_to_cor_translation Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 27.49 MB

This project aims to translate First-Order 3-variable (FO3) predicate logic into the Calculus of Relations (CoR).

Python 100.00%
predicate-logic relation-algebra z3

fo3_to_cor_translation's Introduction

FO3 to CoR Translation

This project aims to translate First-Order 3-variable (FO3) predicate logic into the Calculus of Relations (CoR).

Contributors: Anthony Brogni ([email protected]) and Sebastiaan J. C. Joosten ([email protected])

This tool currently supports:

-Object representation of FO3 Expressions (including predicates with repeated arguments and formulas with typed arguments)

-Object representation of CoR Expressions (both homogeneous/untyped and heterogeneous/typed)

-Generation of random formulas and automated testing with the z3-solver Python library

-Discovery of simplification rules with the help of Z3

-Simplification of CoR formulas (both homogeneous/untyped and heterogeneous/typed)

Summary of each File

-FO3_Expressions.py: Definitions of FO3 objects

-COR_Expressions.py: Definitions of CoR objects (homogeneous/untyped)

-Typed_COR_Expressions.py: Definitions of heterogeneous/typed CoR objects

-FO3_Translation_Methods.py: Methods for applying the Good, Nice, and Final translation steps

-Typed_FO3_Translation.py: Contains the modified Final translation step for heterogeneous/typed formulas

-Testing.py: Random formula generation and automated testing with the z-3 solver module

-Typed_Testing.py: A modified version of Testing.py for heterogeneous/typed formulas

-Search_For_Simplification_Rules.py: Code for finding all possible simplification rules of a given size

-Generate_Typed_Rules.py: Code for taking our dictionary of homogeneous rules and producing a dictionary of heterogeneous rules

-Simplify.py: Python code generated from the rules in COR_Rules.txt for simplifying homogeneous CoR expressions

-Typed_Simplify.py: Python code generated from the rules in Typed_COR_Rules.txt for simplifying heterogeneous CoR expressions

-List_Methods.py: Helper methods for treating lists as if they were sets

fo3_to_cor_translation's People

Contributors

isopod00 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.