Skip to main content

A library providing basic functionalities for manipulating propositional logic

Project description

LogicalPy

PyPI version License Code style: black Python versions Test coverage

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 project, you can open an issue to report a bug or request a feature, or make a pull request. See CONTRIBUTING.md for detailed contribution guidelines.

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.1.tar.gz (32.2 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.1-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: logicalpy-1.2.1.tar.gz
  • Upload date:
  • Size: 32.2 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.1.tar.gz
Algorithm Hash digest
SHA256 72a553e88db7963f102dff8b7f56ec7317498f17c1d153f34232a1591e138df7
MD5 ca9995cae0ba8342164c51111fa72f24
BLAKE2b-256 8c4a95b2e43836badb9a067f48bcef7d1bafbd99f0d498b07cdf302f3a039e96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: logicalpy-1.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f9ecf72a6501fcaf588d0499ac14cc5e652a590b9527e790c8e11eec19a3ab53
MD5 fd50958d3cf2e5882c231021c6e5285a
BLAKE2b-256 7895fe15a8ebe62abeedc91b719f6b5ef938ea6ff4cfd77cc8f0554e9cbb6992

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