entropy
Defines entropy of a system as beta times average energy plus the log of the partition function. Workers deriving holographic bounds or the arrow of time from J-cost would cite this expression when moving from microscopic recognition cost to thermodynamic entropy. The definition is a direct one-line transcription of the standard relation S = β⟨E⟩ + ln Z in units with k_B = 1.
claimFor a system consisting of a nonempty list of energy levels, the entropy at inverse temperature β is S = β ⟨E⟩ + ln Z, where ⟨E⟩ is the expectation value of energy under the Boltzmann weights and Z is the sum of those weights.
background
The module derives the Boltzmann distribution from the J-cost functional of Recognition Science. A System is a structure holding a nonempty list of EnergyLevel records; each level carries an energy value used to build the partition function Z = Σ exp(-β E_i) and the average energy ⟨E⟩ = Σ E_i exp(-β E_i) / Z. The supplied entropy definition sits downstream of the defect-based entropy in InitialCondition, where entropy equals total_defect of a configuration, and of the anchor maps Z and F that assign integer charges to particle species.
proof idea
The definition is a one-line algebraic expression that directly implements the thermodynamic identity S = β⟨E⟩ + ln Z. It composes the already-defined averageEnergy and partitionFunction on the System structure; no tactics or lemmas are invoked beyond the Real.log and multiplication primitives.
why it matters in Recognition Science
This definition supplies the entropy functional referenced by cone_entropy_bound (which asserts entropy ≤ area / (4 λ_rec²)) and by initial_state_minimum_entropy (which shows the ground state has minimal entropy). It completes the THERMO-001 derivation of Boltzmann statistics from J-cost minimization and feeds the ArrowOfTime result that entropy increase is asymmetric. The placement links the eight-tick octave and phi-ladder mass formula to thermodynamic selection in cosmology.
scope and limits
- Does not derive the Boltzmann distribution or prove its uniqueness.
- Does not restore the Boltzmann constant k_B or specify units.
- Does not address quantum statistics, indistinguishability, or degeneracy.
- Does not prove concavity, positivity, or the second law.
formal statement (Lean)
203noncomputable def entropy (sys : System) (beta : ℝ) : ℝ :=
proof body
Definition body.
204 beta * averageEnergy sys beta + Real.log (partitionFunction sys beta)
205
206/-- Free energy F = -kT ln Z = ⟨E⟩ - TS. -/
used by (40)
-
cone_bound_export -
cone_entropy_bound -
ConeEntropyFacts -
complementary_explanation -
jcost_ground_state -
before_asymm -
entropy -
initial_state_minimum_entropy -
nonunity_positive_entropy -
unity_unique_minimizer -
c_RS_neg -
blackHoleHorizonStatesCert -
c_RS_band -
N_horizon_pos -
bhMass_nonneg_in_window -
blackHoleInformationCert -
entropy_bound_by_initial_BH_half -
joint_VN_entropy -
joint_VN_entropy_conserved -
joint_VN_entropy_zero -
naive_entropy_sum -
pageEntropy -
page_time_at_half_evap -
S_BH_anti -
S_BH_at_def -
S_radiation_at -
S_radiation_le_S_thermal -
S_R_at_page_eq_S_BH -
S_thermal_at_def -
mass_lt_implies_page_lt