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
  • Dependency manager uv (optional)

⚙️ Local Installation

For regular use:

# Create a venv (optional)
uv venv .venv
source .venv/bin/activate

# Install dependencies
uv pip install sublation

For development:

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

# Create a venv
uv venv .venv
source .venv/bin/activate

# Install dependencies
uv pip install -r requirements.txt

🚀 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.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.4.1
File Size Uploaded Provenance Actions
sublation-0.4.1.tar.gz 11.7 kB Without provenance Details for sublation-0.4.1.tar.gz

Built distribution (wheel)

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

Total release size: 21.2 kB

Release files / sublation-0.4.1.tar.gz

Download URL sublation-0.4.1.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
36247a95788389aeb192b958ca1a831bbdf189afb2da829498ff24f0fdd193f9
BLAKE2b-256 checksum
How to use checksums
511c956b7996c9c60fa73424b9de239bacb49d48b7d0cf0fb164e74064314c5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","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.1-py3-none-any.whl

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