Metadata-Version: 2.4
Name: sublation
Version: 0.4.1
Summary: Non-boolean truth structures for dialectical reasoning, an alternative to boolean binarism, inspired by Hegelian logic.
Home-page: https://github.com/germanocastanho/sublation-lib
Author: Germano Castanho
Author-email: germanocastanho@proton.me
License: MIT
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: requires-python
Dynamic: summary

# 🧠 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:

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

# Install dependencies
uv pip install sublation
```

### For development:

```bash
# 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

```python
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](LICENSE) for more!
