theorem free_energy_decomposition [NeZero J] {ρ : ℝ} (hρ : ρ ≠ 0)
(x : Fin J → ℝ) (hx : ∀ j, 0 < x j) :
ρ * Real.log (powerMean J ρ hρ x) =
ρ * efficiencyTerm x ρ + escortEntropy x ρ - Real.log ↑J := by
rw [logCES_eq_logPartition hρ x hx, logZ_eq_rho_eff_plus_entropy x hx ρ]### The Thermodynamic Decomposition of Value