Repository navigation
Formal: Helmholtz free energy as the minimum of the variational functional (FORM-S3) - #161
Merged
Merged
Conversation
…d, dF/dT = -S (#86, FORM-S3)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #86 (FORM-S3). Not closing: fep-013's disposition and the 013↔002 relation wait for independent review.
fep-013 proved
dF/dT = −Son abstractU(T), S(T)with no link to variational free energy. New section at the end ofvariational_duality.lean(names arehelmholtz*, distinct from #158'senergyGibbsLaw):helmholtz_decomposition:⟨E⟩_q − T·H(q) = F(T) + T·KL(q‖p_T), withF = −T log Zand Gibbs lawp_T ∝ exp(−E/T).helmholtzFreeEnergy_le:F(T) = min_q (⟨E⟩_q − T·H(q)).helmholtzFreeEnergy_eq_iff: the minimiser is unique, the Gibbs law.helmholtzFreeEnergy_lt: strict inequality off the Gibbs law.hasDerivAt_helmholtzFreeEnergy:dF/dT = −H(p_T). This is fep-013's relation, now derived for the Gibbs family rather than assumed on abstract functions.helmholtz_bool_uniform_gt: on the two-level system, the uniform law has strictly larger variational free energy than F(T) at every T > 0.Evidence:
lake --wfail build FepSketchespasses, and every axiom set is the standard three.--checkpasses, as docheck_render_log --verify-receipt,theorem_ref_auditandcheck_orphan_compiles.