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.2.tar.gz (11.9 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.2-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: conscious_bridge-1.0.2.tar.gz
  • Upload date:
  • Size: 11.9 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.2.tar.gz
Algorithm Hash digest
SHA256 a6a36585fbdc249703bd0648fac203670ac094b55c4c165710e1fa9b4952e027
MD5 12b9020cef100c5bc2843372eaa055f7
BLAKE2b-256 252acd7033e5047b33d7bfdcbabaf85285ab397c735c65437dd149a003763abd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: conscious_bridge-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0a86d7cf25492c8fef939f4c193dc6aa23bc3e7abfd2c96ab0e8761af102314d
MD5 213572d5359557ca14b770285fdfd3d8
BLAKE2b-256 08f15143603bfac9d192404528d73c8d05f0b908977ea5fd925c4e4a79b9026a

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