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.4.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.4.0
File Size Uploaded Provenance Actions
sublation-0.4.0.tar.gz 12.4 kB Without provenance Details for sublation-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 22.0 kB

Release files / sublation-0.4.0.tar.gz

Download URL sublation-0.4.0.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
20f360bf0597170045da81f2af93b687ae5fda6065816c0cd5e379cca0cd81c2
BLAKE2b-256 checksum
How to use checksums
7efbb486659644946a3138616eb35ab597e10e07b655c871e8779141f717a294
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.4.0-py3-none-any.whl

Download URL sublation-0.4.0-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cfeffb540b8e3c18d6d26e5413bf00226e17ecf04184be3b605de1026aedeb4c
BLAKE2b-256 checksum
How to use checksums
ebb406a2aa30ca28c88f370aa962564a4967cbe7c06869eda631948363dfce9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.4.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