1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
//! # Fractal Algebra & Generative Systems
//!
//! `fractal_algebra` is a Rust library for exploring generative art and complex systems
//! through the lens of algebraic structures and quantum-inspired concepts.
//!
//! The core idea is to represent complex patterns as `FractalField` objects, which
//! behave like elements in a vector space. These fields can be generated, mutated,
//! and evaluated through an evolutionary process managed by the `GeneratorCriticLoop`.
//!
//! This library integrates My original research concept of a `FractalGraph` enriched
//! with quantum-inspired amplitudes, making it the foundational data structure for
//! advanced simulations within an `EntangledSystem`.
//!
//! ## Key Components
//!
//! - **`FractalField`**: The central data structure, representing a collection of geometric
//! `GraphEdge`s. It supports algebraic operations like addition and scalar multiplication.
//! - **`Generator` & `Critic` Traits**: A flexible system for creating and evaluating
//! `FractalField`s. Use `EvolutionaryGenerator` and `CriticSuite` for a standard setup.
//! - **`GeneratorCriticLoop`**: An engine that drives the evolutionary process, iteratively
//! finding better fields based on critic scores.
//! - **`Resonance` Trait**: An abstraction for measuring coherence, harmony, and other
//! emergent properties of fractals and their transformations.
//! - **`FractalGraph`**: A semantically-typed, directed graph that serves as the substrate
//! for quantum-inspired computations and particle simulations.
//! - **AI & Bayesian Search**: Modules like `ai` and `bayes` provide tools for probabilistic
//! searches and simulations within an `EntangledSystem`.
//!
//! ## Example Usage
//!
//! ```no_run
//! use fractal_algebra::{
//! GeneratorCriticLoop, EvolutionaryGenerator, MutationSuite, CriticSuite,
//! SymmetryCritic, EntropyCritic, FractalField
//! };
//!
//! // 1. Set up a generator with mutation strategies.
//! let generator = EvolutionaryGenerator {
//! mutations: MutationSuite::new(), // Add strategies here
//! count: 10,
//! };
//!
//! // 2. Set up critics to evaluate the fields.
//! let mut critics = CriticSuite::new();
//! critics.add_critic(SymmetryCritic, 0.7);
//! critics.add_critic(EntropyCritic, 0.3);
//!
//! // 3. Create and run the evolutionary loop.
//! let loop_engine = GeneratorCriticLoop {
//! generator,
//! critic_suite: critics,
//! iterations: 100,
//! };
//!
//! if let Some(best_field) = loop_engine.run() {
//! println!("Found a best field!");
//! // Further analysis on best_field...
//! }
//! ```
// --- Module Declarations ---
// --- Public API Exports ---
// Core algebraic and geometric types
pub use MODULUS;
pub use FractalField;
pub use FractalEdge;
pub use GraphEdge;
pub use FractalSignature;
pub use Vec3;
// Graph-related types
pub use ;
// Evolutionary loop components
pub use GeneratorCriticLoop;
pub use CriticSuite;
pub use EvolutionaryGenerator;
pub use LoopReport;
pub use MutationSuite;
pub use RandomFieldGenerator;
// AI and Quantum-Inspired components
pub use ;
pub use ;
pub use ;
// Resonance and Transformation framework
pub use ;
pub use ;
// Core Traits
pub use ;
// Spacetime simulation types
pub use ;
// Testing utilities and laws
pub use ;
pub use canonical_test_fractal;