Formal Logic Framework
Project description
A Formal Logic framework for a variety of applications.
Installation
From PyPI
forseti is available on PyPI.
$ pip install forseti
From source
Download the source code:
$ git clone git@github.com:MasterOdin/forseti.git $ python setup.py install
Usage
forseti comes with an internal representation of propositional calculus formulas (atomic, not, and, or, implication, and equivalance). It can generate this from a functional representation of any formula. Interally, it holds everything as formula objects, which can take in other formulas as appropriate (Symbols can only hold one string).
An example:
from forseti import parser
from forseti.predicate import Atomic, And
assert parser.parse(and(a, b)) == And(Atomic('a'), Atomic('b'))
Additionally, it also comes with a builtin prover that can validate a propositional calculus argument
from forseti.prover import Prover
prover = Prover()
prover.add_formula("if(A,and(B,C))")
prover.add_formula("iff(C,B)")
prover.add_formula("not(C)")
prover.add_goal("not(A)")
assert_true(prover.run_prover())
Roadmap
First Order Logic Prover
Optimizations
Goals
Using forseti to implement the following programs/applications
Automated Theorem Prover (done in forseti core)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file forseti-0.6.5.tar.gz
.
File metadata
- Download URL: forseti-0.6.5.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1946017ce2a43403a2cf1537d2cd7d67a1594bcfe27728fd68118de6ea2b6431 |
|
MD5 | e732ed8e1d59b1bd13c3e1b8779dd2e5 |
|
BLAKE2b-256 | bc721d1601ac09cef87d3545dbbfbdaf60699669b221cfc7d8d35dfeedb798ac |