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.4.tar.gz (12.2 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.4-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

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

Hashes for conscious_bridge-1.0.4.tar.gz
Algorithm Hash digest
SHA256 d5fb2479c1b1dd52d69b59a48d0bf175678aa06b67e062dd405522030ef75bb4
MD5 17bb1d2914972a562795cbe50b1e42bc
BLAKE2b-256 9c7c7080c965261c6c33cc049c75fab0c2525312bd431e7b664cdc00b623bfae

See more details on using hashes here.

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

Hashes for conscious_bridge-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f41b3ba0c202d68697c27615e0fd0fb970e44805be17d1df390ab81174e386c3
MD5 cd9244a8fa428772ded960224f8ed8a1
BLAKE2b-256 cc21ed1f10fbc437256d446ee9fadff8ffb84f8d626c1ac04190eb3ab6fd75a2

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