Transitional Geometry between Aristotelian and Platonic Logic in AI
Project description
๐ Conscious Bridge Law
Transitional Geometry between Aristotelian and Platonic Logic in AI
Transitional Geometry between Aristotelian and Platonic Logic in AI
By Samir Baladi | December 3, 2025
๐ Table of Contents
- Overview
- Quick Start
- Installation
- ฯ Components
- Usage
- Repository Structure
- Citation
- License
- Contributing
- Contact
- Links
- Release History
--
๐ฏ Overview
Instead of forcing AI to choose between:
- Deterministic (Aristotelian: T=0)
- Probabilistic (Platonic: T=1.5)
We introduce a third space: The Conscious Bridge (T โ [0.4, 0.8])
Aristotle โโโโ Conscious Bridge (ฯ) โโโโ Plato
T = 0.0 T = 0.6 T = 1.5
Certain Aware Creative
Key Innovation: ฯ (Phi)
ฯ measures the model's awareness of its position on the bridge:
- ฯ = 0: Unconscious transition (random drift)
- ฯ = 1: Fully conscious (controlled navigation)
๐ Quick Start
from engine.conscious_law import ConsciousBridgeLaw
# Initialize
model = ConsciousBridgeLaw()
# Generate with awareness
output, phi, components = model.generate_with_awareness(
input_text="Artificial intelligence is evolving",
base_temperature=0.7,
adaptive_temp=True
)
print(f"Bridge Awareness (ฯ): {phi:.3f}")
print(f"Generated: {output}")
๐ฆ Installation
# Clone repository
git clone https://github.com/riteofrenaissance/Conscious-Bridge-Law.git
cd Conscious-Bridge-Law
# Install dependencies
pip install -r requirements.txt
# Optional: Install in development mode
pip install -e .
Requirements: Python 3.8+, PyTorch 1.9+ or TensorFlow 2.5+
๐ ฯ Components
| Component | Weight | Description |
|---|---|---|
| Strength | 35% | Context representation power (โhโโ) |
| Attention | 30% | Attention mechanism clarity |
| Stability | 25% | Language stability (distance from centers) |
| Context | 10% | Input context quality |
๐ป Usage Examples
Basic Usage
from engine.conscious_law import ConsciousBridgeLaw
model = ConsciousBridgeLaw()
output, phi, _ = model.generate_with_awareness(
input_text="The nature of consciousness",
base_temperature=0.6
)
Advanced: Monitoring ฯ
import matplotlib.pyplot as plt
phi_history = []
for i in range(10):
_, phi, _ = model.generate_with_awareness(
input_text=f"Step {i}: AI evolution",
base_temperature=0.5 + (i * 0.05)
)
phi_history.append(phi)
# Visualize ฯ evolution
plt.plot(phi_history, marker='o')
plt.xlabel('Iteration')
plt.ylabel('ฯ Value')
plt.title('Conscious Bridge Awareness Evolution')
plt.grid(True)
plt.show()
๐ Repository Structure
Conscious-Bridge-Law/
โโโ core/ # Core algorithms
โ โโโ bridge_map.py
โ โโโ bridge_dynamics.py
โ โโโ phi_calculator.py
โ โโโ language_centers.py
โ โโโ attention_metrics.py
โโโ engine/ # Main engine
โ โโโ conscious_law.py
โ โโโ temperature_adapter.py
โ โโโ stability_monitor.py
โโโ bos/ # State management
โ โโโ identity_layer.py
โ โโโ role_manager.py
โ โโโ state_manager.py
โโโ demos/ # Example scripts
โ โโโ arabic_context.py
โ โโโ mixed_language.py
โ โโโ philosophical_queries.py
โ โโโ web_demo.py # DeepSeek addition
โ โโโ advanced_simulation.py # DeepSeek addition
โ โโโ multi_language_demo.py # DeepSeek addition
โ โโโ data_analysis_demo.py # DeepSeek addition
โโโ utils/ # Utilities
โ โโโ token_analysis.py
โ โโโ metrics.py
โ โโโ phi_logger.py # DeepSeek addition
โ โโโ visualizer.py # DeepSeek addition
โโโ tests/ # Test suite
โ โโโ test_phi.py
โ โโโ test_bridge_map.py # DeepSeek addition
โ โโโ test_bridge_dynamics.py # DeepSeek addition
โ โโโ test_phi_calculator.py # DeepSeek addition
โ โโโ test_conscious_law.py # DeepSeek addition
โโโ docs/ # Documentation and images
โ โโโ bridge.png # Logo
โ โโโ example_output.png
โ โโโ architecture_diagram.png
โ โโโ research_paper.md # DeepSeek addition
โ โโโ tutorial.md # DeepSeek addition
โโโ requirements.txt # Dependencies
โโโ setup.py # Optional: Package installer
โโโ pyproject.toml # Optional: Package configuration
โโโ LICENSE-MIT.txt # MIT License
โโโ LICENSE-CC-BY.txt # CC-BY License
โโโ CONTRIBUTING.md # Contribution guidelines
โโโ .gitignore # Ignore patterns for Git
โโโ README.md # Main README
๐ Citation
@software{baladi_2025_conscious_bridge,
author = {Baladi, Samir},
title = {{Conscious Bridge Law: Implementation}},
year = 2025,
publisher = {Zenodo},
doi = {10.5281/zenodo.17814683},
url = {https://doi.org/10.5281/zenodo.17814683}
}
โ๏ธ License
- Code: MIT License
- Documentation & Papers: CC-BY 4.0
See LICENSE-MIT.txt and LICENSE-CC-BY.txt
๐ค Contributing
We welcome contributions! Please:
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a Pull Request
See CONTRIBUTING.md for detailed guidelines.
๐ฌ Contact
Maintainer: Samir Baladi
Email: riteofrenaissance@proton.me
Issues: GitHub Issues
๐ Links
- ๐ GitHub: riteofrenaissance/Conscious-Bridge-Law
- ๐ GitLab: cyber-constitution/conscious-bridge
- ๐ Academic Paper: Zenodo
- ๐ Documentation: docs/
๐ Release History
v1.0.0 (December 2025)
- Initial release of Conscious Bridge Law
- Core ฯ calculation algorithms
- Demo scripts and examples
- Complete documentation
"Bridging the gap between certainty and creativity in AI"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file conscious_bridge-1.0.4.tar.gz.
File metadata
- Download URL: conscious_bridge-1.0.4.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.12.1.2 requests/2.32.5 setuptools/80.9.0 requests-toolbelt/1.0.0 tqdm/4.67.1 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5fb2479c1b1dd52d69b59a48d0bf175678aa06b67e062dd405522030ef75bb4
|
|
| MD5 |
17bb1d2914972a562795cbe50b1e42bc
|
|
| BLAKE2b-256 |
9c7c7080c965261c6c33cc049c75fab0c2525312bd431e7b664cdc00b623bfae
|
File details
Details for the file conscious_bridge-1.0.4-py3-none-any.whl.
File metadata
- Download URL: conscious_bridge-1.0.4-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.12.1.2 requests/2.32.5 setuptools/80.9.0 requests-toolbelt/1.0.0 tqdm/4.67.1 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f41b3ba0c202d68697c27615e0fd0fb970e44805be17d1df390ab81174e386c3
|
|
| MD5 |
cd9244a8fa428772ded960224f8ed8a1
|
|
| BLAKE2b-256 |
cc21ed1f10fbc437256d446ee9fadff8ffb84f8d626c1ac04190eb3ab6fd75a2
|