Skip to main content

A library providing basic functionalities for manipulating propositional logic

Project description

LogicalPy

PyPI version License Code style: black Python versions

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)
  • The implementation of a Hilbert-style proof system
  • Automated theorem proving with the resolution procedure

The library also supports LaTex code generation for most of its functionalities.

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, first clone the repository, go into the logicalpy directory and locally install the project with pip install -e . Then, go into the tests directory and run python -m unittest.

License

This project is licensed under the MIT license.

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

logicalpy-1.2.0.tar.gz (30.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

logicalpy-1.2.0-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file logicalpy-1.2.0.tar.gz.

File metadata

  • Download URL: logicalpy-1.2.0.tar.gz
  • Upload date:
  • Size: 30.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for logicalpy-1.2.0.tar.gz
Algorithm Hash digest
SHA256 e8f82478c6a36244bfd52d23da4ae580c925b32821ca996435931e08a947ac6d
MD5 45abc564c2f059e9eab197c86bbebea2
BLAKE2b-256 0603abdb5535ac07091abcf14fa46eab9102c3e56d4828008827a434833aa57c

See more details on using hashes here.

File details

Details for the file logicalpy-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: logicalpy-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for logicalpy-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f63ad5b892166271add53b83eac10b9051693b88a3cea134aea83ace6ef676b5
MD5 eec816fe47c49e01c676a632a0a62bab
BLAKE2b-256 3730a90dc5a456df49bfd04673fbe1348560c690b23b0ca7d60dbc91fa11180b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page