fa_slow_ai 0.1.1

A slow AI implementation using fractal algebra.
Documentation
# Slow AI: A Quantum Resonance & Spacetime Curvature Simulation 🌌


[![Crates.io](https://img.shields.io/crates/v/fa_slow_ai.svg?style=flat-square)](https://crates.io/crates/fa_slow_ai)
[![Docs.rs](https://img.shields.io/docsrs/fa_slow_ai?style=flat-square)](https://docs.rs/fa_slow_ai)
[![License: MIT OR Apache-2.0](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue?style=flat-square)](https://opensource.org/licenses/MIT)
[![Rust](https://github.com/Neil-Crago/fractal_algebra/actions/workflows/rust2.yml/badge.svg)](https://github.com/Neil-Crago/fractal_algebra/actions/workflows/rust2.yml)
[![Rust Version](https://img.shields.io/badge/rust-1.79%2B-orange.svg)](https://www.rust-lang.org/)
[![Project Status](https://img.shields.io/badge/status-active-brightgreen.svg)]()

This project is a computational exploration of a novel philosophical framework: the idea that **quantum mechanics is the semantic residue of a dimensional transition**. It simulates a "toy universe" where quantum-like effects (entanglement, resonance) and general relativistic effects (spacetime curvature) are not just parallel systems, but are part of a single, co-evolving feedback loop.

The simulation evolves an AI from a simple probabilistic guesser into a sophisticated signal processor, which then becomes a participant in a universe where its actions can warp the very fabric of the space it inhabits.

***

## Core Concepts


The project is built on a narrative of evolution, both for the AI and the simulation's physics.

1.  **From Guesser to Analyst:** The AI begins as a "Slow AI," a probabilistic explorer that relies on thousands of random guesses to find a resonant frequency. It then evolves into a "Deterministic Analyst," using waveform analysis to deduce the system's underlying rules from a small data sample.

2.  **Signal in the Noise:** The analyst is upgraded to a "Virtual Signal Processor." Using a Fast Fourier Transform (FFT), it learns to deconstruct a complex, noisy signal into its constituent pure waves, isolating the primary signal from interference. This models the search for coherence in a chaotic environment.

3.  **The QM ↔ GR Feedback Loop:** The final stage implements a feedback loop inspired by John Wheeler's summary of general relativity: "Spacetime tells matter how to move; matter tells spacetime how to curve."
    * **Quantum Mechanics (QM):** Multiple wave sources create interference patterns, representing "matter" or "energy" hotspots on a graph.
    * **General Relativity (GR):** These energy hotspots then "curve spacetime" by dynamically modifying the graph's connections, creating new shortcuts.
    * This new structure then affects how future waves propagate, completing the loop.

***

## The Five Phases of the Simulation


The application runs a comprehensive test suite that demonstrates the entire evolutionary journey in five distinct parts:

* **Part 1: The "Slow AI"**
    A simple, brute-force search for a resonant frequency, demonstrating the initial inefficient approach.

* **Part 2: The Waveform Analyst**
    A deterministic analysis of a clean signal. The AI takes a small sample and derives the wave's equation to predict the peak.

* **Part 3: The Signal Processor**
    The AI is presented with a noisy, multi-frequency signal. It uses an FFT to decompose the signal and correctly identify the primary frequency from the interference.

* **Part 4: The Interference Engine**
    A test of the precision targeting system. Two in-phase wave sources are created on a line graph, and the simulation correctly shows a "hotspot" of constructive interference at the equidistant center point.

* **Part 5: The Feedback Loop**
    The grand finale. The interference hotspot generated in the previous step is used to actively "curve" the graph, creating new connections and demonstrating the full QM ↔ GR feedback loop.

***

## Getting Started


### Prerequisites


* [Rust]https://www.rust-lang.org/tools/install (latest stable version recommended)
* Git

***

## Understanding the Output


The program will print the results of each of the five phases to the console.

* You will see the initial random search, followed by the successful prediction from the simple analyst.
* Next, the FFT report will show the successful decomposition of the noisy signal.
* Finally, you will see the "before" and "after" state of the graph, showing a hotspot being created at the center and then the graph's connections being physically altered by that hotspot's energy.

This project serves as a conceptual pathfinder, using a "rough model" to explore profound ideas about the nature of physics, memory, and information. Enjoy the simulation!

## Related Crates

This crate is part of a collection of crates by the same author:
These include:-
  * MOMA
  * MOMA_simulation_engine
  * tma_engine
  * factorial_engine
  * fractal_algebra