Skip to main content

Mathesis

CI PyPI Documentation Status PyPI downloads

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://digitalformallogic.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 (WIP)
  • Hilbert systems
  • Natural deduction
  • Boolean algebra
  • Type theory
  • Metatheorems
  • Output graphical representations of models
  • Support tptp syntax

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.7.2.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

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

mathesis-0.7.2-py3-none-any.whl (34.5 kB view details)

Uploaded Python 3

File details

Details for the file mathesis-0.7.2.tar.gz.

File metadata

  • Download URL: mathesis-0.7.2.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.0 CPython/3.13.7 Darwin/23.6.0

File hashes

Hashes for mathesis-0.7.2.tar.gz
Algorithm Hash digest
SHA256 a91c89659d65b23946c4b8cfb20bdce47d8c9f144c181a99144774b6f238d76a
MD5 a23c2527fab120daaa1b42127fb6e226
BLAKE2b-256 c93beffeaf3f4011f642f8c7442b6f9b1ad5bd3c09f6dcc7e8699be1c6b35afa

See more details on using hashes here.

File details

Details for the file mathesis-0.7.2-py3-none-any.whl.

File metadata

  • Download URL: mathesis-0.7.2-py3-none-any.whl
  • Upload date:
  • Size: 34.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.0 CPython/3.13.7 Darwin/23.6.0

File hashes

Hashes for mathesis-0.7.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3fe9190f853fcefd7c1284d3d47a882c847b290d5654285f8dc3f463d4bea219
MD5 43b82db2e47e5b67e5b98eb74763ce69
BLAKE2b-256 cea830dd68c356cf1ac09d27e934066b88ec6ae51d4050dc0adf37da3e604ddb

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.7.2 This release

2 files

0.7.1

2 files

0.7.0

2 files

0.6.0

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

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