The heat-capacity coefficient at the Hagedorn point (erratum) #
Theorem 5.2 of the paper states C_V(γ = 1, N) = (log N)²/4; the erratum corrects it to
(log N)²/12 (a factor 3). This file checks the algebraic chain of both derivations of the
corrected coefficient, with L = log N. The asymptotic statement (→ as N → ∞, which needs
Euler–Maclaurin bounds for the harmonic sums) is not formalized. The integral
∫₁ᴺ log x / x dx = (log N)²/2 behind it is integral_log_div_self
(Formalizations.Analysis.SpecialFunctions.Integrals.LogDivSelf).
Main results #
var_log_d_identity,cv_from_cumulant_at_hagedorn(cumulant route):L²/3 − (L/2)² = L²/12, andC_V = γ² Var(log d) = L²/12atγ = 1.log_one_plus_x_coefficient_24,log_z_quadratic_coefficient,log_z_to_U_coefficient(Taylor route):1/6 − 1/8 = 1/24,2 · L²/24 = L²/12.deriv_U_corrected_at_one,cv_corrected_at_hagedorn: forU(γ) = L/2 + (1 − γ) L²/12,U'(1) = −L²/12andC_V = −γ² U'(1) = L²/12.original_is_three_times_corrected,original_ne_corrected,cv_factor_three_decomposition: the publishedL²/4is three times the corrected value and differs from it forL ≠ 0.
References #
- C. Marín, Predicting How Transformers Attend (2026), §5.2, and its erratum (2026-05-02),
Zenodo 19826343. Ported from
Taf/ErratumCV.leanof karlesmarin/lean-taf (Lean v4.30.0-rc2).
Cumulant route #
Taylor route #
1/6 − 1/8 = 1/24 (the log (1 + x) step).
Erratum eq. (5): dU/dγ at γ = 1 is −(log N)²/12.