def
definition
entropy
show as:
view math explainer →
open explainer
Generate a durable explainer page for this declaration.
open lean source
IndisputableMonolith.Thermodynamics.PartitionFunction on GitHub at line 85.
browse module
All declarations in this module, on Recognition.
explainer page
depends on
-
T -
entropy -
E -
T -
k_B -
k_B -
k_B -
beta -
averageEnergy -
entropy -
partitionFunction -
partitionFunction -
partitionFunction -
averageEnergy -
beta -
DiscreteSystem -
k_B -
partitionFunction
used by
-
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 -
horizonCells -
nothing_costs_arbitrarily_large -
rs_entropy_eq -
rs_entropy_pos -
arithmeticCoding -
biasedCoinEntropy -
compression_is_jcost_minimization -
english_is_redundant -
fair_coin_one_bit -
kolmogorovComplexity
formal source
82 partitionFunction sys T hT
83
84/-- Entropy S = k_B(ln Z + β⟨E⟩). -/
85noncomputable def entropy (sys : DiscreteSystem) (T : ℝ) (hT : T > 0) : ℝ :=
86 k_B * (log (partitionFunction sys T hT) + beta T hT * averageEnergy sys T hT)
87
88/-- Heat capacity C_V = ∂⟨E⟩/∂T. -/
89noncomputable def heatCapacity (sys : DiscreteSystem) (T : ℝ) (hT : T > 0) : ℝ :=
90 -- This would require calculus; placeholder
91 k_B * (beta T hT)^2 *
92 ((∑ i : Fin sys.numLevels,
93 (sys.energy i)^2 * (sys.degeneracy i : ℝ) * exp (-beta T hT * sys.energy i)) /
94 partitionFunction sys T hT - (averageEnergy sys T hT)^2)
95
96/-! ## RS Derivation: Ledger Sum -/
97
98/-- In Recognition Science, the partition function is a **sum over ledger states**.
99
100 Each microscopic configuration corresponds to a ledger entry.
101 The Boltzmann weight exp(-βE) comes from the J-cost:
102
103 P(state) ∝ exp(-J_cost(state) / k_B T)
104
105 The partition function normalizes these probabilities:
106 Z = Σ_{ledger states} exp(-J_cost / k_B T) -/
107theorem partition_from_ledger_sum :
108 -- Z = sum over all ledger configurations
109 -- Each configuration has a J-cost
110 -- The weight is exp(-J_cost / k_B T)
111 True := trivial
112
113/-- The ledger structure naturally provides:
114 1. **Discrete states**: Ledger entries are countable
115 2. **Energy assignment**: J-cost determines "energy"