Skip to main content

🧠 Sublation

Inspired by Hegel's dialectical logic, 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τ.

✨ 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
  • No runtime dependencies; dev extras declared in pyproject.toml

⚙️ Local 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 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 sublation package with dev extras
pip install -e ".[dev]"

# Run full test suite
pytest

🚀 Getting Started

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.3.1

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.3.1
File Size Uploaded Provenance Actions
sublation-0.3.1.tar.gz 9.3 kB Without provenance Details for sublation-0.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 16.1 kB

Release files / sublation-0.3.1.tar.gz

Download URL sublation-0.3.1.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0f7d24e5c0879dc6c2c92a012e1a1d57aedffa87902c0465f83c1b1034a59274
BLAKE2b-256 checksum
How to use checksums
91c6ab7c7e85dae433815403587b5b720285c0e31baca3a303054d8afa50df73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

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

Download URL sublation-0.3.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88a2d518b6eed9157b53c7dd341f1552ad1044d56ae07eff8734b168b116561c
BLAKE2b-256 checksum
How to use checksums
b25df11a138b902777dc1abd45a17c087ea33dffe94bd614dff513bfad4f5079
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for sublation 0.3.1

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