Skip to content

Cubix1729/logicalpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogicalPy

PyPi version License Code style: black

LogicalPy is a Python library providing basic functionalities for manipulating propositional logic.

Description

The library allows to work with classical propositional logic formulae. The main features include:

  • The construction of logical formulae either directly or from a string
  • The visualisation of truth tables
  • The implementation of semantic notions: satisfiability, entailment...
  • The conversion to normal forms (NNF, CNF, or DNF)
  • Automated theorem proving with the resolution procedure

For the complete documentation, see https://cubix1729.github.io/logicalpy/.

Installation

With pip:

pip install logicalpy

Note that the library needs a Python version higher than 3.9.

Contributing

If you want to contribute to this (small) project, you can open an issue to report a bug or request a feature, or make a pull request.

Tests

To run the the tests, clone the repository, go into the tests directory and run python -m unittest.

License

This project is licensed under the MIT license.

About

A Python library providing basic functionalities for manipulating propositional logic

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Languages