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
  • Dependencies listed in requirements.txt

⚙️ 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 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

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

Built distribution (wheel)

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

Total release size: 16.1 kB

Release files / sublation-0.3.0.tar.gz

Download URL sublation-0.3.0.tar.gz
Size 9.3 kB
Tags Source
SHA-256 checksum
How to use checksums
89b9549ff8b1ae47266aac026b44df369bcd2b9517266a96b9e3d04cd2a14447
BLAKE2b-256 checksum
How to use checksums
acfcf59f0bce1f0a1bae9c66901743ab03360b1045f690e89a0018ded79e1b96
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.0-py3-none-any.whl

Download URL sublation-0.3.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
743a0df9c63195f940d8a2a01918717c26acf2c9c37eeb900be17561611efb08
BLAKE2b-256 checksum
How to use checksums
c9c1bbddb5b546013a65d3f6a5c9f299663474fbf12d0f22d9f37fcfe28de3b0
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.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