Skip to main content

A library providing basic functionalities for manipulating propositional logic

Project description

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.

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.1.0.tar.gz (21.5 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.1.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for logicalpy-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3203db57cae641049190a499a97beff33b8102b2419958d28d8a4aa39cb183e6
MD5 bb55f2ff15811cb7bf258df128259423
BLAKE2b-256 80ef1f407207185aa03636b55223dc13ce5d13c047f3555dbb3dac6d7e937e77

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for logicalpy-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0ad49994f0164bedaefa92058df2546b4327ef18f94e331ce0211924984dde1b
MD5 fe9e1ceee604aea5f0f82b11cd0334ae
BLAKE2b-256 a003f58595d06d8a9d8b55c49b52a5cd3028f9a6b01b8a6f1df515c7b94bfdee

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