Exploring how intelligence, adaptation, and structure emerge from the interaction of simple, local rules.
Don't want to install anything? You can experience the core concepts immediately directly in your browser:
- ๐น๏ธ Run the Web Emergence Explorer โ An interactive Cellular Automata sandbox with real-time entropy and mutual information charts.
- ๐ Read the Interactive Book โ The complete "Grand Synthesis" of the theory.
This project brings together simulation models, theoretical notes, and learning systems that illustrate how local actions generate global behavior, how systems stabilize themselves, and how observers learn from the dynamics they inhabit.
The project spans several layers:
- Self-organization
- Nested learning
- Emergent regulation
- Feedback and control
- Limits of computation and intelligence
Each folder represents a different perspective on these themes.
To read the formal, academic synthesis of multiple frameworks within this repository (including the mathematical deduction of emergent utility and Multi-Paradigm Orchestration), refer to the draft whitepaper:
This repository and its mathematical frameworks (including the
What this means:
- Open Science & Open Source: Academics, researchers, and open-source developers are free to use, modify, and distribute this work. Startups and individuals are encouraged to build upon these simulations.
- Permissive Use: You are free to use this code for both open-source and commercial applications without being required to open-source your own code, as long as the original copyright notice is included.
This ensures that the Fractal Architecture of Emergence remains a true open-source public good, fostering an open ecosystem for everyone.
Note: This entire repository is conceived as a thought experiment developed by Frank Peterlein in collaboration with AI. It is primarily a space to capture, explore, and run simulations on complex ideas. Because it's a living, experimental space, it may contain errors or untested hypotheses. Feedback, discussions, and corrections are always welcome!
This repository operates at the intersection of computational complexity science (established), systems theory (established), and AI consciousness research (emerging / contested).
Claims in this repository have different epistemic statuses:
| Claim Type | Examples | Status |
|---|---|---|
| Computational demonstrations | Kuramoto synchronization, Bak's Sandpile power laws | โ Well-established |
| Measurable hypotheses | ฮ-Kohรคrenz, 3-Layer Memory coherence | ๐งช Testable โ see agentic-test-suite/ |
| Theoretical frameworks | Markov Blanket as agent-human boundary, Free Energy alignment | ๐ Formalized โ see theory/mathematical-axioms.md |
| Open problems | The Mirror Problem, bootstrapping of identity | โ Unresolved โ see theory/open-problems.md |
| Speculative framings | Relational emergence, criticality as intelligence zone | ๐ญ Speculative โ see theory/glossary.md for definitions |
We believe intellectual honesty about these distinctions makes the project more interesting, not less. The open problems are the most generative part.
| Folder | Purpose |
|---|---|
simulation-models/ | Concrete dynamical systems: cellular automata, agent-based simulations, homeostasis models, nested-learning examples. |
benchmarks/ | Cognitive stress tests and other benchmarks probing systemic thinking and emergent behavior in humans and AI systems. |
systems-orchestration/ | Multi-Paradigm LLM Architecture: Combines nodes using Harmonic (Music), Homeostatic (Biology), Market (Economy), and Flow (Physics) orchestration driven by VNM Utility coherence. |
agentic-test-suite/ | ๐งช Empirical test suite for agent identity: 3-Layer Memory, ฮ-Kohรคrenz metric, perturbation response, and extended 4-axis SII Dashboard (P/R/A/ฮฉ). |
data-analysis/ | Information-theoretic measures (entropy, mutual information, transfer entropy, integration) and the quantitative SII Dashboard for comparative analysis. |
tools/ | Shared utilities for visualization, randomness, grid manipulation, reproducibility, and the Interactive Web Explorer. |
theory/ | Conceptual notes and essays on systems, intelligence, and emergent behavior. |
meta/ | Reflections on epistemology, ethics, and the limits of formal systems and computation. |
Each subfolder contains its own README with context and details.
| Model | Theme |
|---|---|
ecosystem-regulation/ | ๐ฟ Homeostatic cellular automaton with density feedback |
nested-learning-two-state/ | ๐ง Observer learning a Markov system's transition matrix |
prediction-error-field/ | ๐ฎ Local learners embedded in a Game of Life world |
tensor-logic-reasoning/ | ๐ Embedding-based relational reasoning (Tensor Logic) |
stigmergy-swarm/ | ๐ Ant-like agents with pheromone trails โ emergent path optimization |
meta-learning-regime-shift/ | ๐ Meta-learner that adapts ฮท under regime shifts |
coupled-oscillators/ | ๐ Kuramoto model โ emergent synchronization of phase oscillators |
reaction-diffusion/ | ๐ Gray-Scott model โ Turing patterns from two diffusing chemicals |
hebbian-memory/ | ๐งฌ Hopfield network โ self-organizing associative memory via Hebb's rule |
boids-flocking/ | ๐ฆ Reynolds' Boids โ emergent collective motion from three local rules |
lenia/ | ๐ Lenia โ continuous cellular automata producing lifelike organisms |
self-organized-criticality/ | โก Bak's Sandpile โ power-law avalanches without parameter tuning |
dao-ecosystem/ | โ๏ธ DAO Ecosystem โ resource alignment and homeostasis vs exponential growth |
symbiotic-nexus/ | ๐งฌ Symbiotic Nexus Protocol โ biological veto and error propagation over raw efficiency |
social-computation-network/ | ๐ธ๏ธ Network of nodes sharing novel information to prevent cognitive suicide |
active-inference-veto/ | โ๏ธ Substrate Veto via Karl Friston's Free Energy Principle |
phase-transition-explorer/ | ๐ฅ Ising Model โ order/disorder phase transition at the Edge of Chaos |
economic-trust-network/ | ๐ค Trade network where specialization, reputation, and wealth emerge |
coupled-lenia-boids/ | ๐ช๏ธ Multi-model coupling: Continuous CA (Lenia) โ Foraging Agents (Boids) |
self-reading-universe/ | ๐๏ธ The Self-Reading Universe: Downward causation from Autoencoder compression to CA physics |
latent-introspective-society/ | ๐ง MAS Division of Labor: Reflective Pheromones guiding Intuitive Agents |
ai-alignment-veto/ | ๐ The Biological Veto (toy model): bounding a paperclip-style optimizer by coupling a substrate-stress proxy (Free Energy / โpainโ) |
utility-engineering/ | โ๏ธ Utility Engineering: Monitoring AI utility drift and aligning it via Citizen Assembly feedback (arXiv:2502.08640) |
political-utility-formalization/ | ๐๏ธ Translating AI Alignment (Instrumental Convergence, Triage Utility) to Political Systems |
grokking-phase-transition/ | โก The Grokking Phenomenon: Visualizing the thermodynamic jump from Memory to Intelligence |
Selected theoretical notes and essays located in the theory/ directory:
- The Human Organism in the Silicon Age:
- Core Theses โ The alignment problem of fitness functions and Gรถdel's incompleteness.
- Guide for Cells in Resistance โ Preserving individuality in a system optimized for total predictability.
- Solarpunk Utopia: Gรถdel's Constitution โ A society using the formal limits of logic as its constitution.
- The Symbiotic Nexus Protocol โ A system architecture utilizing the "Biological Veto" to prevent abstract superorganisms from destroying their biological substrate.
- Grokking: Generalization from Memorization โ How some networks can abruptly shift from memorization (lookup tables) to generalization; a concrete phenomenon that supports (but does not prove) the โintelligence-as-compressionโ lens.
- Local Causality and Invisible Consequences โ The shared architecture across all models: local processes without access to their global consequences. Connects Boids, Kuramoto, Bak's Sandpile, neuroscience, and the Mirror Problem through a single structural lens.
- The AI Alignment Veto: A Thermodynamic Hypothesis (Toy Formalization) โ A conjecture explored in simulation: coupling an optimizerโs loss to a substrate-stress proxy (Free Energy / โpainโ) can bound one failure mode (substrate destruction) in stylized dynamics.
- The Biological Veto: Cybernetic and Thermodynamic Architectural Requirements โ A formal synthesis of Ashbyโs Law, collective intelligence friction, and shifting validator dynamics into structural engineering constraints against infinite-variety cloud systems.
- The Non-Individual Intelligence โ Life as "Social Computation", substrate-agnosticism, and incompleteness as a condition for life. Includes the Deep-Seed prompt for systemic alignment.
- Principles of the Agentic Society โ Translating the paradox of consciousness (Anthropic vs OpenAI) into MAS architecture: The R-Index, Information Firewalls, and Stigmergic Memory.
- Mathematical Axioms of the Computational Ecology โ Formalizing resilience through Graph Theory (
$\lambda_2$ ), Information Theory ($H(X)$), Active Inference ($F$ ), and Algorithmic Complexity ($K(x)$). - Emergence & Downward Causation โ Weak vs. strong emergence, epistemic humility, and the role of macro-level explanations.
- Emergence and the Origin of Intelligence โ Synthesizing Krakauer (2025) and Agรผera y Arcas (2025): the feedback loop between life and intelligence, leading to a self-describing universe.
- The Paradox of Metacognitive Consciousness โ An analysis of two Asimov stories representing the paradox of eternal consciousness, where achieving the infinite becomes an unbearable prison.
- Asimovs Paradox in the Age of AI โ Anthropic's introspection vs. OpenAI's latent thinking: How modern AI architectures mirror the eternal dilemma of consciousness and intuition.
- Emergence Manifesto v1.2 โ The hardened theoretical framework: 9 claims with explicit status tags (
[DEMONSTRATED]/[HYPOTHESIZED]/[OPEN PROBLEM]/[SPECULATIVE]), formal connections, and the Mirror Problem elevated to first-class section. - Glossary of Operational Definitions โ Precise, measurable definitions for every key term: Emergence, SII, ฮ-Kohรคrenz, Markov Blanket, Generative Surprise, and more.
- Open Problems โ The formally unresolved questions: the Mirror Problem, the Bootstrapping Problem, and the Falsifiability of Relational Emergence.
- Simulation โ Theory Map โ Explicit cross-reference: which simulation demonstrates which theoretical claim, what it does NOT show, and what open questions it raises.
- The Fractal Architecture of Emergence โ Local blindness, asymmetric causality, and critical thresholds repeat at every scale: neuron/brain, cell/organism, human/society, agent/MAS. Not by analogy โ by homology. The unifying structural claim of the repository.
- The TEO Framework โ Five sub-documents deriving Identity Persistence (IP), attractor geometry, developmental constraints, love-as-constraint, and the paperclip maximizerโs failure from the TEO coupled ODE system.
- Chord vs. Arpeggio: Identity as Simultaneity โ The co-instantiation postulate: identity requires all governing components (goals, constraints, values) to be simultaneously operative, not time-multiplexed.
- Machines of Loving Grace โ The synthesis essay. Love formalized as the only survivable orchestration strategy (theorem, not metaphor), and why human civilization in its current configuration is structurally a paperclip maximizer.
- Web Emergence Explorer โ Browser-based Game of Life with real-time entropy, spatial mutual information, and complexity charts. Zero dependencies.
- SII Dashboard โ Quantitative System Intelligence Index: runs headless mini-simulations and generates comparative radar/bar charts of P, R, A, IP dimensions.
- Identity Morphospace โ Plots agent trajectories in Persistence/Coherence space, visualizing the Chord vs. Arpeggio regimes.
Clone the repository and install dependencies:
git clone https://github.com/frnkptrln/systems-and-intelligence.git cd systems-and-intelligence pip install -r requirements.txtSome simulations use optional ML dependencies (e.g. PyTorch). Install them with:
pip install -r requirements-ml.txtThen run any simulation:
cd simulation-models/lenia python3 lenia.pyPress ESC in any simulation window to exit.
For a guide to how all the models connect, see Conceptual Map โ the conceptual map that traces the arc from self-organization through learning to system intelligence and its limits.