Skip to main content

🧠 Sublation

This library formalizes dialectical logic as a case of four-valued reasoning (true / false / contradictory / indeterminate), grounded in Belnap–Dunn logic (FDE) and the bilattice structure behind paraconsistent annotated logics such as Eτ. Inspired by Hegel's dialectical logic, it provides a framework for reasoning in a rigorous way. Try it out!

✨ Main Features

  • Thesis and Antithesis classes to represent claims and their negations.
  • Synthesis class to represent the interaction between a thesis and an antithesis.
  • Methods to detect negation, contradiction, becoming, and sublation.
  • TruthValue class to represent evidence for (mu) and against (lam) a claim.

✅ Prerequisites

  • Python 3.12+ installed on your machine
  • Astral uv package manager (optional)
  • Dependencies listed in requirements.txt

⚙️ Installation

For regular use:

# Clone the repository
git clone https://github.com/germanocastanho/sublation-lib
cd sublation-lib/

# Create a venv (optional)
python3 -m venv .venv
source .venv/bin/activate

# Install dependencies
pip install -r requirements.txt

# Install sublation package
pip install -e .

Or just pip install sublation!

For development:

# Clone the repository
git clone https://github.com/germanocastanho/sublation-lib
cd sublation-lib/

# Create a venv (optional)
python3 -m venv .venv
source .venv/bin/activate

# Install dependencies
pip install -r requirements.txt

# Install sublation package
pip install -e ".[dev]"

# Run full test suite
pytest

🚀 Quick Start

from sublation import Thesis, Antithesis, Synthesis

t = Thesis(True)
a = Antithesis(True)
s = Synthesis(t, a)

s.contradiction()       # True  — the tension is real and detectable
s.becoming()            # False — this is not a quiet resolution
s.sublation()           # True  — it doesn't collapse into falsehood

# The next round
t2 = s.as_thesis()

📜 Libre Software

If you have ideas for improvements or new features, please open an issue or submit a pull request. Make sure to follow the existing code style and include tests for any new functionality. Licensed under the MIT License, so you are free to use, modify, and distribute this software. Please refer to the LICENSE for more!

Metadata

Release files for sublation 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sublation 0.2.0
File Size Uploaded Provenance Actions
sublation-0.2.0.tar.gz 8.5 kB Without provenance Details for sublation-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sublation 0.2.0
File Interpreter ABI Platform Actions
sublation-0.2.0-py3-none-any.whl Python 3 none any Details for sublation-0.2.0-py3-none-any.whl

Total release size: 15.3 kB

Release files / sublation-0.2.0.tar.gz

Download URL sublation-0.2.0.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f668cc6c348c80e7fb9c659c15be8dc0676e239ad53962b3ff9bc724f9f1b999
BLAKE2b-256 checksum
How to use checksums
bddc7cf2722b22ce54ddb836b22f928b425aa15faa2bcda19a21b3d3e1230416
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.7

Release files / sublation-0.2.0-py3-none-any.whl

Download URL sublation-0.2.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
76929c728e08bc513c6425023e3255da8860c5e4acc355baf6e6d8cb1d24b460
BLAKE2b-256 checksum
How to use checksums
435da2c7c1575ac78cd4b4b35fcf2dd3551328ea2447e0b766ed3cb5f82c90f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.7

Security for sublation 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page