Coder Social home page Coder Social logo

classical-logic's Introduction

classical-logic

Test Coverage Status

organization

  1. first-order-logic.rkt: The language defnition of classical first-order logic(KF)
  2. propositional-logic.rkt: The language definition of classical propositional logic(K)
  3. subformula.rkt: Compute subformula for any valid logic for propositional logic

The second part is about conversion, in this case propositional logic is just a kind of surface of first-order logic, internal conversion will go through same way.

  1. KF-clausal.rkt: convert KF to clausal form
    1. convert to prenex form
    2. remove implication
    3. skolemize to remove existential quantifier
    4. remove universal quantifier
    5. apply distribute laws to get clausal form
  2. KF-canonical.rkt: convert KF clausal to canonical form
    1. fuse A and (B and C) to A and B and C, in nanopass corresponding is (∧ A (∧ B C)) to (∧ A B C), so we need to update language definition
    2. reduce to minimal form, like (∨ (¬ A) A B) to B, this is why it called canonical form
  3. KF-cnf.rkt: convert KF canonical to conjunction normal form
    1. check it's canonical form
    2. produce internal representation of CNF
  4. main.rkt: resolution and unification

classical-logic's People

Contributors

dannypsnl avatar

Watchers

 avatar  avatar

classical-logic's Issues

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.