Expected free energy decomposes into risk plus ambiguity
ProvedFreeEnergyPrinciple.expectedFreeEnergy_eq_risk_add_ambiguityThe risk-plus-ambiguity decomposition of expected free energy — the canonical decomposition behind expected free energy in active inference [Friston et al. 2017].
Fix a finite generative model over policy, state, and outcome types, a policy , and suppose the model has full support: every predicted state, every predicted outcome, and every preference mass is strictly positive. Write
- for the expected free energy of the policy, defined as pragmatic cost minus epistemic value (the epistemic sign is fixed by definition);
- for the preference risk — divergence of the predicted outcome law from the preference law;
- averaged under for the likelihood ambiguity.
Then
The proof runs through two entropy identities available from the definition layer: the epistemic value is the predicted outcome entropy minus the ambiguity (mutual information via the entropy decomposition of the joint), and the risk is the cross-entropy minus the same outcome entropy (Gibbs' inequality under full reference support). Substituting both into the definition leaves exactly risk plus ambiguity.
A companion corollary available from the same substrate: the decomposition is a sum of nonnegative terms, so — but the decomposition itself, not mere nonnegativity, is the target.
import Definitions.Def_fep_finite_laws import Definitions.Def_fep_finite_information import Definitions.Def_fep_generative_model import Definitions.Def_fep2_expected_free_energy
namespace FreeEnergyPrinciple
theorem expectedFreeEnergy_eq_risk_add_ambiguity
{Policy State Outcome : Type*} [Fintype Policy] [Fintype State]
[Fintype Outcome]
(model : GenerativeModel Policy State Outcome) (policy : Policy)
(support : FullSupport model) :
expectedFreeEnergy model policy =
risk model policy + ambiguity model policy := by sorry
end FreeEnergyPrincipleRead-back
What the Lean code literally says, in plain math · glm-flash-latest
Let (policies), (states), (outcomes) be arbitrary types, each equipped with a finite-type structure. The theorem asserts: for every generative model (a structure carrying an initial state law , a policy-indexed transition kernel , a likelihood kernel , a preference law , and a policy prior — all normalized real-valued mass functions on the finite types), every policy , and every certificate of full support of , we have
Unfolding the bundle's own definitions, with , , and joint law :
where is the totalized KL integrand (defined at , contributing there), so the risk sum and the KL are finite even at zero-mass atoms.
The full-support hypothesis consists of three strict-positivity assumptions: for all ; for all ; for all . These are the only assumptions; nothing is assumed about the policy prior, and no model failing positivity falls under the claim. The equality is an equation between real numbers, asserted for every policy and model; no converse is claimed.
AUDITOR-FLAG: the proof body is a bare sorry — the statement is unproved as shipped in this artifact.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.