Skip to content

A command-line tool for converting predicates into simplified CNF or DNF.

Notifications You must be signed in to change notification settings

UQ-PAC/predicate-simplifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

A command-line tool for converting predicates into simplified CNF or DNF.

Converts to CNF by default.

Interprets the order of precedence: ['~', '&&', '||', '=>']

Interprets the following as logic symbols: ['&&', '||', '~', '(', ')', '=>']. Everything else is interpreted as a term. Spaces are ignored.

Usage: main.py sentence [dnf]

Usage example 1:

> main.py 'a => b && c' dnf
~a || (b && c)

Usage example 2:

> main.py 'a => b && ~c'
(~a || ~c) && (~a || b)

About

A command-line tool for converting predicates into simplified CNF or DNF.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages