Repository navigation
Formal: general finite maximum entropy and the constrained Gibbs maximiser (FORM-S2) - #158
Merged
Merged
Conversation
H(p) <= log n with equality iff uniform; Gibbs law maximises entropy under a mean-energy constraint, uniquely; strict Bool witnesses.
This was referenced Oct 9, 2026
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 #85 (FORM-S2). Not closing: fep-030's disposition and the 030↔031 relation upgrade wait for independent review.
fep-030 proved only the Bernoulli and uniform cases. New:
FEP.FiniteInformation:entropy_le_log_card(H(p) ≤ log n for every finite law) andentropy_eq_log_card_iff(equality iff uniform), viacrossEntropy_uniformandfiniteKL ≥ 0.entropy_lt_log_card_of_ne_uniform.boolBiased_entropy_lt_log_two.FEP.VariationalDuality:energyGibbsLaw E β.entropy q = β⟨E⟩_q + log Z − KL(q‖p_β).energyGibbs_maxEntropy: under the mean-energy constraint the Gibbs law maximises entropy, with equality iff q = p_β. Plus the strict versionenergyGibbs_entropy_lt_of_ne.Evidence:
lake --wfail build FepSketchespasses (8,997 jobs, zero warnings), and#print axiomson all 13 declarations shows only the standard three.--checkpasses.check_render_log --verify-receipt,check_orphan_compiles, the formal and methods tests (157) and ruff pass.Witness for a later 030↔031 relation review:
FEP.VariationalDuality.energyGibbs_maxEntropy.