Theory
Formal theoretical background for COGANT: Active Inference, the "code as generative model" thesis, the Generalized Notation Notation (GNN) intermediate representation, and the roundtrip isomorphism theorem. Read this section when you need the formal statement rather than the conceptual primer — for the friendlier introduction see ../concepts/README.md.
Contents
| Page | Description | Level |
|---|---|---|
| Active Inference primer | Short introduction to Active Inference for readers new to the framework | Beginner |
| Active Inference mapping | Theoretical justification for how COGANT maps software constructs to Active Inference roles (HIDDEN_STATE, OBSERVATION, ACTION, POLICY, CONSTRAINT, CONTEXT) | Intermediate |
| Code as generative model | The thesis that a repository is, not merely describes, an Active Inference generative model | Intermediate |
| GNN format | Short introduction to Generalized Notation Notation as COGANT uses it | Intermediate |
| GNN format reference | Working reference for the 19 sections in a GNN package | Advanced |
| Round-trip verification | Forward→Reverse→Forward validation: STRUCTURALLY_ISOMORPHIC, ROLE_PRESERVED, DRIFT, and FAILED status vocabulary. |
Intermediate |
| Isomorphism theorem | Formal statement and proof sketch of the program-graph / generative-model isomorphism (Galois connection) | Advanced |
Recommended Reading Order
- Active Inference primer — minimum vocabulary if you have not encountered the framework before.
- Code as generative model — the thesis that motivates the rest of the module.
- Active Inference mapping — how the thesis is cashed out for concrete code patterns (the 22 translation rules and 7 core roles).
- GNN format — the intermediate representation in which everything is expressed.
- GNN format reference — exhaustive reference for the 19-section package layout.
- Round-trip verification — how the forward and reverse passes are validated with role-preservation and strict invariant ledgers.
- Isomorphism theorem — formal closure of the loop: program-graph / generative-model duality as a Galois connection.
Related modules
- ../concepts/README.md — friendlier primers on the same topics.
- ../evaluation/README.md — empirical evidence for the claims stated here.
- ../reference/README.md — canonical COGANT schema and API references.
- ../rnd/README.md — exploratory notes that have not yet been promoted into formal theory.
Agent notes: AGENTS.md - Hub: ../index.md