ActiveInferenceSynthetic is an executable teaching paper introducing Active Inference across equilibrium and non-equilibrium settings. Its Python demonstrations cover Bayesian inference, action selection, planning, Markov blankets, hierarchical inference, and the value of information. Tested numerical examples, selected Lean proofs, reproducible figures, a manuscript PDF, and a twenty-minute narrated lecture make the models and their assumptions explicit.
Daniel Ari Friedman and Alexandra Mikhailova · Active Inference Institute
Read the paper · Watch/download the lecture · Documentation · Zenodo archive
| Resource | Repository copy | Archived download |
|---|---|---|
| Revised paper | 28-page PDF | Release PDF |
| Daniel lecture | Twenty-minute MP4 | 1080p video |
| Linked slides | Slide PDF | Release slides |
| Captions | SRT, WebVTT | Included with the release |
| Narration | Transcript, speaker notes | Included in the source archive |
| Frozen lecture replay | Replay instructions | Recordings, inputs and runtime |
| Archived repository | Publication guide | Source ZIP, distribution 0.6.1 |
The PDF and MP4 are ordinary root files. publication.json and SHA256SUMS.txt bind their exact bytes and media companions. GitHub may require downloading the video for playback.
The 0.6.1 release
and Zenodo record are fixed archival
snapshots. Development documentation and tooling on main can advance beyond
them; use the archived source ZIP to reproduce that exact distribution.
CHANGELOG.md separates unreleased changes from archived versions.
Requirements: Python 3.11+ and uv. The numerical examples need no provider credentials, template checkout, Lean, or GNN installation.
git clone https://github.com/docxology/ActiveInferenceSynthetic.git
cd ActiveInferenceSynthetic
uv sync --locked --extra dev
uv run python -c "from active_inference_synthetic.synthetic_agent import synthetic_agent_demo; print(synthetic_agent_demo(observation=1).commitment.choice)"
The example prints 1: the informative observation changes the next commitment.
uv run python scripts/verify_publication.py
uv run python scripts/generate_all_figures.py
uv run python scripts/run_teaching_experiments.py
uv run pytest tests/ --cov=src --cov-fail-under=90
Generated figures, hydrated manuscript sections and experiment reports appear
under output/. The publication verifier needs a Git checkout.
See the full quick start for installation modes,
troubleshooting for failures, and
CONTRIBUTING.md for the development workflow.
| Question | Demonstration | Start here |
|---|---|---|
| What explains an observation? | Bayesian conditioning and variational-free-energy descent | Generative model |
| Which action or sequence should follow? | One-step EFE, finite-history planning and an explicit normalization bridge | Action, planning |
| When is information useful? | Feedback utility, acquisition cost, and irrelevant-payoff controls | Decision value |
| How does an observation change behavior? | Informative and uninformative cue/commitment episodes | Synthetic agent |
| How do levels of a model interact? | Exact context/state prediction and joint conditioning | Hierarchy |
| What is a statistical boundary? | Gaussian marginal dependence and conditional independence | Markov blanket |
| How do relaxation and steady circulation differ? | Deterministic trajectories, matched-noise OU current and entropy production | Trajectories, steady state |
Methods explains carriers, units and analytical controls; the manuscript develops the teaching sequence. These are controlled model demonstrations. Persistent current alone does not establish life or intelligence, and informational VFE/EFE do not become physical free energy through shared terminology.
- Python: deterministic numerical examples, figures and manuscript hydration.
Installed imports use
active_inference_synthetic; checkout scripts usesrc. - Lean: selected real-valued results from the pinned
fep_formal
FepSketcheslibrary, with paper-specific adapters and explicit hypotheses. Follow formal setup; native checks require its exact toolchain and dependencies. - GNN: authored optional specifications and a real-parser bridge. Parsing does not establish backend equivalence.
- Paper rendering: the separate research template supplies PDF/HTML rendering. Rendering instructions identify the required link and tools.
- Lecture replay: the frozen bundle supplies measured recordings and a scoped LectureCreate runtime. A source clone alone does not include those replay inputs.
STANDALONE.md and project positioning define these boundaries. The tracked Python workflow defines numerical, publication, lint, type and packaging checks; native Lean proof verification remains separate. Missing native tools produce explicit test skips, not evidence of verified proofs.
| Path | Responsibility |
|---|---|
| src/ | Numerical models and figure builders |
| scripts/ | Figure, experiment, hydration and verification entry points |
| tests/ | Real-computation and file-based controls |
| formal/ | Pinned Lean adapters, witnesses and axiom checks |
| docs/ | Reader/developer guides and authored manuscript |
| data/ | Claim ledger and GNN model inputs |
| media/ | Lecture companions and frozen authoring sources |
| .github/ | Automated Python checks and their scope |
Every maintained folder has a README and AGENTS guide. AGENTS.md defines contributor-agent boundaries; ISA.md and TODO.md record purpose and implemented scope.
Use GitHub's Cite this repository menu or CITATION.cff. For the archived paper and public distribution:
@article{friedman2026synthetic,
author = {Friedman, Daniel Ari and Mikhailova, Alexandra},
title = {Active Inference -- A Synthetic Overview},
year = {2026},
version = {0.6.1},
doi = {10.5281/zenodo.23396307},
url = {https://zenodo.org/records/23396307}
}
Scientific package/manuscript version is 0.5.0; archived distribution is 0.6.1, reusing lecture edition_v15 from teaching release 0.6.0. The publication guide explains which identity to cite.
The project declares CC-BY-4.0 in its archival/citation metadata. LICENSE contains the full license text. Retain attribution and identify modifications when reusing project material; external dependencies and referenced works retain their own terms.
