Posterior-form variational free energy upper-bounds outcome surprisal
ProvedFreeEnergyPrinciple.variational_free_energy_ge_surprisalThe variational free-energy bound of the free energy principle, in posterior form, over a finite generative model.
Fix a finite generative model over finite types (initial state law, policy-conditioned transitions, state-to-outcome likelihood, preferences, policy prior — definitions Def_fep_finite_laws, Def_fep_finite_information, Def_fep_generative_model). For a policy and an outcome with positive predicted mass , let be the exact Bayesian posterior state law and let the outcome surprisal be . For any recognition density — a normalized finite law over states — the posterior-form variational free energy is
The theorem asserts, for every recognition density :
Whatever internal state estimate the system carries, the variational free energy of the data is never below the data's surprisal; the excess is exactly the KL divergence from the recognition density to the Bayesian posterior. This is the goal theorem of the mission — the finite, model-relative form of the free energy principle's core inequality (surprisal bound in the sense of Friston 2010; posterior-form identity in the sense of Parr–Pezzulo–Friston 2022).
Formalization Note — the positivity hypothesis is explicit because the Bayesian posterior is defined only there; KL is the totalized real-valued finite KL of Def_fep_finite_information, nonnegative with no support assumptions; zero-mass atoms are handled by the exact convention. Transcribed from the proved theorem outcomeSurprisal_le_variationalFreeEnergy of FepSketches.active_inference in the fep_lean formalization; compiled against the platform environment.
import Definitions.Def_fep_finite_laws import Definitions.Def_fep_finite_information import Definitions.Def_fep_generative_model
namespace FreeEnergyPrinciple
theorem variational_free_energy_ge_surprisal
{Policy State Outcome : Type*} [Fintype Policy] [Fintype State]
[Fintype Outcome]
(model : GenerativeModel Policy State Outcome) (policy : Policy)
(outcome : Outcome) (h : 0 < predictedOutcome model policy outcome)
(recognition : FiniteLaw State) :
outcomeSurprisal model policy outcome ≤
variationalFreeEnergy model policy outcome h recognition := by sorry
end FreeEnergyPrincipleRead-back
What the Lean code literally says, in plain math · glm-flash-latest
Read-back of variational_free_energy_ge_surprisal.
Let , , and be finite types of policies, states, and outcomes, respectively. Fix a generative model (a structure in the bundle FreeEnergyPrinciple bundling the model's distributions over these types), a policy , and an outcome .
The theorem assumes that the model's predicted probability of outcome under policy , denoted in the bundle's notation (predictedOutcome m π o), is strictly positive: . It further takes an arbitrary element of the type FiniteLaw State, i.e. an arbitrary probability law on the finite state space (the "recognition density"); no condition is imposed on .
Under these assumptions, the theorem asserts the inequality
where the left-hand side is the outcome surprisal outcomeSurprisal m π o, defined in the bundle as the negative logarithm of the predicted probability , and the right-hand side is the variational free energy variationalFreeEnergy m π o h ρ, a quantity defined in the bundle that depends on the model , the policy , the outcome , the positivity hypothesis (which is needed for the surprisal to be defined), and the chosen recognition law .
In plain terms: for every policy , every outcome whose predicted probability is strictly positive, and every probability law on states, the surprisal of is at most the variational free energy evaluated at .
Points worth noting for the audit:
- The inequality holds for every recognition law simultaneously (it is universally quantified as an explicit argument), not merely for the one minimizing free energy.
- Outcomes with are excluded by the strict-positivity hypothesis ; the statement says nothing about them.
- All three types are assumed finite (
Fintype), which is part of the hypothesis structure of the statement. - The definitions of
outcomeSurprisal,variationalFreeEnergy,predictedOutcome, andFiniteLaware taken from this bundle and their exact formulas were not supplied here; the expansion above renders only their roles as referenced in the statement, and the auditor should compare the bundle's actual definitions of these quantities against the intended claim.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.