Encyclopedia Foundation Foundation Thermodynamics Specific Heat Is Second Deriv

ARTICLE 4 claims 3 theorems 1 open

Foundation Thermodynamics Specific Heat Is Second Deriv

In the Recognition Science framework, the heat capacity of a system is not a separate assumption but a mathematical consequence of how its temperature changes with energy.

The heat capacity identity

In classical thermodynamics, the heat capacity of a system tells you how much its temperature rises when you add a certain amount of energy. It is usually defined as the derivative of energy with respect to temperature. The Recognition Science framework starts from a different picture: a ledger, a discrete record of events, where each event has a cost. From that cost structure, the framework derives a temperature and an energy, and the heat capacity then emerges as a derived quantity, not a postulate.

The framework's library of formal results establishes this in a single declaration, specific_heat_is_second_deriv. It proves that the derivative of the framework's temperature with respect to its energy parameter is exactly its specific heat. In symbols, the result states that d/dσ [sinh(σ/N)] = cosh(σ/N) / N, where σ is the log-charge (the framework's energy variable) and N is the number of entries in the ledger. The left side is the rate of change of temperature, and the right side is the definition of specific heat in this model. The proof is a direct application of the chain rule to the hyperbolic functions that define temperature and specific heat.

This result is formal and machine-checked. It does not, however, claim that this specific heat matches any measured value for a real material. It is a statement about the internal consistency of the framework's definitions. The framework also proves that this specific heat is always positive, which it interprets as a stability condition: adding energy always raises the temperature. It further proves that at the zero-energy state, the specific heat equals 1/N, a finite value, and that the temperature itself is zero there.

The declaration does not establish a second law of thermodynamics. The framework's library explicitly notes that no such result exists. The only directional result, full_defect_monotone, proves that a quantity called total defect is non-increasing along a variational trajectory, which the framework itself flags as having the opposite sign to a second law. The intended rescue of a second law through an observer's perspective is stated as an idea but is not proved. The result also does not claim that the framework's temperature is the same as the empirical temperature measured by a thermometer in a laboratory; it is a derived quantity within the model, defined by the equilibrium condition of the ledger.

THEOREM specific_heat_is_second_deriv · IndisputableMonolith/Foundation/Thermodynamics.lean
specific_heat_is_second_deriv · IndisputableMonolith/Foundation/Thermodynamics.lean:413
/-- **THEOREM (Specific Heat Is the Second Derivative of Entropy)**:
    C = d²S_eq/dσ² = d(T)/dσ = cosh(σ/N) / N. -/
theorem specific_heat_is_second_deriv (N : ℕ) (hN : 0 < N) :
    deriv (rs_temperature N) = specific_heat N := by
  ext σ
  unfold rs_temperature specific_heat
  have hchain :
      deriv (fun x : ℝ => Real.sinh (x / N)) σ =
        Real.cosh (σ / N) * (1 / N) := by
    simpa [deriv_div_const, deriv_id''] using
      (Real.deriv_sinh (f := fun x : ℝ => x / N) (x := σ)
        (differentiableAt_id.div_const (N : ℝ)))
  simpa [div_eq_mul_inv, mul_comm, mul_left_comm, mul_assoc] using hchain
THEOREM specific_heat_positive · IndisputableMonolith/Foundation/Thermodynamics.lean
/-- Specific heat is positive for N > 0 (thermodynamic stability). -/
theorem specific_heat_positive (N : ℕ) (hN : 0 < N) (σ : ℝ) :
    0 < specific_heat N σ := by
  unfold specific_heat
  apply div_pos
  · exact Real.cosh_pos _
  · exact Nat.cast_pos.mpr hN
THEOREM full_defect_monotone · IndisputableMonolith/Foundation/Thermodynamics.lean
/-- Total defect is non-increasing for the full ledger. -/
theorem full_defect_monotone {N : ℕ}
    (traj : Trajectory N)
    (h : IsVariationalTrajectory traj) :
    ∀ t, total_defect (traj (t + 1)) ≤ total_defect (traj t) :=
  trajectory_defect_monotone traj h

What this page does not claim

The specific heat derived here matches any measured value for a real material. The framework's temperature is the same as the empirical temperature measured in a laboratory. The framework proves a second law of thermodynamics; the only directional result has the opposite sign.

Verify this page

Every tagged claim above names its theorem. To check one yourself rather than trust this page, elaborate the source module with Lean 4 and audit its axiom basis:

$ lake env lean IndisputableMonolith/Foundation/Thermodynamics.lean
expected axiom basis: [propext, Classical.choice, Quot.sound] (the Lean kernel's standard three; no RS-specific axioms)

A page whose claims cannot be reproduced this way does not ship. In production, every anchor links to the exact declaration in the public source release, and this block carries the build receipt for the page itself.

Derived articles

This page is generated by a question-recursion engine: the questions its answers raise become the next pages. The current agenda, with open targets marked red:

MACHINE LAYER · GROUNDED CLAIM TABLE · CLICK TO EXPAND