Login   Register  
PHP Classes
elePHPant
Icontem

First Order Logic Prop: Manipulate, analyze, and prove logic propositions

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2003-10-07 (10 years ago) RSS 2.0 feedStarStarStar 54%Total: 574 All time: 4,820 This week: 1,412Up
Version License Categories  
firstorderlogicprop 1.0GNU General Public Lice...Math
Description Author  
This class allows you to parse first order logic formulas. These formulas can be written in any syntax that you define.

You can apply basic logic operations (and, or, not, implies, etc...).

You can transform proposition (cleaning, developing, disjunctive form, conjunctive form).

You can even make demonstrations of your proposition, by looking up the values table or simply by demonstrating it (simple analysis of the disjunctive form: not too greedy).

The FOLP Checker allows you to prove that a proposition is a theorem, and if it is not, you will be presented a counterexample.

Karnaugh's table and other nice features will be soon added.
Picture of naholyr
Name: naholyr <contact>
Classes: 1 package by
Country: France France
Age: 33
All time rank: 274876 in France France
Week rank: 1749 Up49 in France France Up

  Files folder image Files  
File Role Description
Files folder imagedemo (2 files)
Files folder imageexamples (6 files)
Plain text file FirstOrderLogicProp.inc.php Class The file containing base class and the checker class

  Files folder image Files  /  demo  
File Role Description
  Accessible without login Plain text file index.php Example The basic demo: showing the values table, normal forms, and can prove the given formula
  Accessible without login Plain text file syntax.litteral Data Defines litteral syntax for the demo file (it then accepts two syntax, for example "a & b" is the same than "a AND b"). This is an example on how you can add your own supported syntax

  Files folder image Files  /  examples  
File Role Description
  Accessible without login Plain text file example1.php Example basic operations on propositions
  Accessible without login Plain text file example2.php Example testing EQUALITY (and not equivalence) of formulas
  Accessible without login Plain text file example3.php Example testing if propositions are in disjunctive/conjunctive forms
  Accessible without login Plain text file example4.php Example Show cloning feature, and how to set values to variables in a proposition
  Accessible without login Plain text file example5.php Example Shows how you can extend the base class to have nice HTML output of the values table
  Accessible without login Plain text file example6.php Example Shows conjunctive/disjunctive forms of a proposition. You can see here that the computation time is a bit long :(

 Version Control Unique User Downloads Download Rankings  
 0%Total:574All time:4,820
 This week:0This week:1,412Up
 User Ratings  
 
 All time
Utility:83%StarStarStarStarStar
Consistency:66%StarStarStarStar
Documentation:-
Examples:66%StarStarStarStar
Tests:-
Videos:-
Overall:54%StarStarStar
Rank:1237