Skip to content

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
  1. Active Inference primer — minimum vocabulary if you have not encountered the framework before.
  2. Code as generative model — the thesis that motivates the rest of the module.
  3. Active Inference mapping — how the thesis is cashed out for concrete code patterns (the 22 translation rules and 7 core roles).
  4. GNN format — the intermediate representation in which everything is expressed.
  5. GNN format reference — exhaustive reference for the 19-section package layout.
  6. Round-trip verification — how the forward and reverse passes are validated with role-preservation and strict invariant ledgers.
  7. Isomorphism theorem — formal closure of the loop: program-graph / generative-model duality as a Galois connection.

Agent notes: AGENTS.md - Hub: ../index.md