GithubHelp home page GithubHelp logo

tableaux's Introduction

tableaux

A project for a Logic and Discrete Mathematics course (More to be added)

Both "Process/3 or /2" and "Tautology/3 or /2" are essentially functions that will begin the program. "tableau/1" will also begin it

Formula's are passed in as the first argument and is a list [], and the variables used are passed in as the rest of the arguments(Only works for 1 or 2 variables

An example program is: tautology([P or neg P], P). (process([neg (P or neg P)], P). Has the exact same output) the output:

"P: +_INT"

"[_INT, neg _INT]"

The first line of the output shows what value the compiler has assigned your variable The second line shows the final tableau.

In the example it has one branch (shown by []) And it contains [P, neg P] so it is unsatisfiable

One more example is: process([(P and Q) or (P => Q)], P, Q).

P: +_INT1

Q: +_INT2

[_INT2,_INT1][_INT2][neg _INT1]

This tableau shows 3 branches [Q, P][Q][not P] == {{Q, P}, {Q}, {-P}}

Since no branch contradicts itself all branches are open and as such each branch is itself a solution... The symbol by itself means that regardless of the other's value it satisfies the equation

tableaux's People

Contributors

miningape avatar

Watchers

James Cloos 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.