Skip to main content

Transitional Geometry between Aristotelian and Platonic Logic in AI

Project description

Conscious Bridge Law Logo

๐ŸŒ‰ Conscious Bridge Law

Transitional Geometry between Aristotelian and Platonic Logic in AI

Transitional Geometry between Aristotelian and Platonic Logic in AI

Python 3.8+ License: MIT License: CC BY 4.0 DOI GitHub Stars GitLab Last Commit

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:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a Pull Request

See CONTRIBUTING.md for detailed guidelines.


๐Ÿ“ฌ Contact

Maintainer: Samir Baladi
Email: riteofrenaissance@proton.me
Issues: GitHub Issues


๐Ÿ”— Links


๐Ÿ“ˆ 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

conscious_bridge-1.0.3.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

conscious_bridge-1.0.3-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file conscious_bridge-1.0.3.tar.gz.

File metadata

  • Download URL: conscious_bridge-1.0.3.tar.gz
  • Upload date:
  • Size: 11.6 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

Hashes for conscious_bridge-1.0.3.tar.gz
Algorithm Hash digest
SHA256 d3419d832cbd683d83a02c0647f2a898e3fd9348f77725bea96c4453f88031b6
MD5 8aba49346d0ad55d8d0d2804d5bb2586
BLAKE2b-256 e3a792f1924c4ec2849343adf966c75188d58db505856e1743c3cc99c468ed88

See more details on using hashes here.

File details

Details for the file conscious_bridge-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: conscious_bridge-1.0.3-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

Hashes for conscious_bridge-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e1a405993f18cfdb3d6cebcea2f5fd89b07fded41d099fca21379efce86e3f85
MD5 83fccf526bac91842c06928e532a1a55
BLAKE2b-256 a5cc0f69fbad5d7a8b5f60709da12c1f2c39b3fb0e5101fcfcee73518e8501f8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page