Formal logic library in Python for humans
Project description
Mathesis
Mathesis is a human-friendly Python library for computational formal logic (including mathematical, symbolic, philosophical logic), formal semantics, and theorem proving. It is particularly well-suited for:
- Students learning logic and educators teaching it
- Researchers in fields like logic, philosophy, linguistics, computer science, and many others
Documentation: https://ozekik.github.io/mathesis/
Installation
pip install mathesis
Key features
- Interactive theorem proving for humans (proof assistant)
- Automated reasoning (theorem prover)
- Define models and check validity of inferences in the models
- JupyterLab/Jupyter Notebook support
- Output formulas/proofs in LaTeX
- Customizable ASCII/Unicode syntax (like
A -> B
,A → B
,A ⊃ B
for the conditional)
Supported logics
Propositional logics
Truth Table | Tableau | Natural Deduction | Sequent Calculus | |
---|---|---|---|---|
Classical logic | ✅ | ✅ | ✅ | ✅ |
Many-valued logics | ✅ | - | - | - |
Intuitionistic logic | n/a | - | - | ✅ |
In Progress
- Modal logics
- Fuzzy logics
- Substructural logics
- Epistemic, doxastic, deontic logics
- Temporal logics
First-order logics (quantified, predicate logics)
Model | Tableau | Natural Deduction | Sequent Calculus | |
---|---|---|---|---|
Classical logic | ✅ | ✅ | - | - |
In Progress
- Many-valued logics
- Modal logics
- Intuitionistic logic
- Fuzzy logics
- Substructural logics
- Higher-order logics
Development status
Proof theories
- Tableaux (semantic tableaux, analytic tableaux)
- Unsigned tableaux
- Signed tableaux
- Hilbert systems
- Hilbert systems
- Natural deduction
- Generic natural deduction
- Gentzen-style natural deduction (Output)
- Fitch-style natural deduction
- Sequent calculi (Gentzen-style sequent calculi)
- Two-sided sequent calculi
- Hilbert systems in sequent calculus
- Natural deduction in sequent calculus
Semantics
- Truth tables
- Set-theoretic models
- Possible world semantics (Kripke semantics)
- Algebraic semantics
- Game-theoretic semantics
- Category-theoretic semantics
Internals
Roadmap
- Add tests
- Hilbert systems
- Natural deduction
- Boolean algebra
- Type theory
- Metatheorems
- Output graphical representations of models
- Support tptp syntax
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mathesis-0.5.3.tar.gz
(22.0 kB
view details)
Built Distribution
mathesis-0.5.3-py3-none-any.whl
(31.6 kB
view details)
File details
Details for the file mathesis-0.5.3.tar.gz
.
File metadata
- Download URL: mathesis-0.5.3.tar.gz
- Upload date:
- Size: 22.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67a0d844828d8668b2b63d7aca6a5f9abcfd8c9bdb12691c79fe32bc438543b5 |
|
MD5 | ae6ae213ae51d6a2b8198e38339401f7 |
|
BLAKE2b-256 | 402412e823d242384e84c9de7c21d2c6cd66fc9a2b22f08d56f0d136a187b163 |
File details
Details for the file mathesis-0.5.3-py3-none-any.whl
.
File metadata
- Download URL: mathesis-0.5.3-py3-none-any.whl
- Upload date:
- Size: 31.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/21.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2083813f759156c6887b3da706470384bce82c8c0944cfba26d4cff64bcaddda |
|
MD5 | 4a3d7cece3997d2d89bb1e356fc99abe |
|
BLAKE2b-256 | f298b70d148f5f1faa7daadee0a13372fdbb79d6b494939797fff156c128e217 |