Skip to content

frnkptrln/systems-and-intelligence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

120 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  systems-and-intelligence

License: MIT Simulations Docs

The Fractal Architecture of Emergence

Exploring how intelligence, adaptation, and structure emerge from the interaction of simple, local rules.


โšก Try it live in your browser

Don't want to install anything? You can experience the core concepts immediately directly in your browser:


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.


๐Ÿ“œ Scientific Publications

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:


โš–๏ธ License & Intellectual Property

This repository and its mathematical frameworks (including the $C$-Score, The Planetary Veto, and Systems Orchestration) are licensed under the MIT License.

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.


๐Ÿ’ก About this Project

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!


๐Ÿ”ฌ Scientific Status

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.


๐Ÿ“‚ Repository Overview

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.

๐Ÿงช Simulation Models

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 $F$
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

๐Ÿ“š Theory & Essays

Selected theoretical notes and essays located in the theory/ directory:

  • The Human Organism in the Silicon Age:
  • 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.

๐Ÿ“ก Interactive Tools

  • 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.

๐Ÿš€ Getting Started

Clone the repository and install dependencies:

git clone https://github.com/frnkptrln/systems-and-intelligence.git cd systems-and-intelligence pip install -r requirements.txt

Some simulations use optional ML dependencies (e.g. PyTorch). Install them with:

pip install -r requirements-ml.txt

Then run any simulation:

cd simulation-models/lenia python3 lenia.py

Press ESC in any simulation window to exit.


๐Ÿ—บ Conceptual Map

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.

About

Experiments, simulations and reflections on emergent behavior, self-organization, and the nature of intelligence. A living thought experiment.

Topics

Resources

License

Stars

Watchers

Forks

Contributors