Gibbs traces from representative columns #
The thermal seeds of the spin-1 certificate (OpenAI, thermal72.tex, Sections "Representative
columns" and "Exact totals and rational enclosures") never form the Gibbs operator. They write
Z = Tr e^{-bH} = e^{bc} ‖F‖_F², F = exp (-(b/2) (H + c I)),
compute one integer column X_ρ ≈ Q F e_ρ per symmetry orbit of basis vectors, and turn the
integer W = ∑_ρ ν_ρ ‖X_ρ‖² into a rational enclosure of Z. This file proves that chain for
an arbitrary Hermitian matrix on an arbitrary finite index type, so that each concrete
enclosure needs only the per-column error E and the integer W as data.
gibbsHalf H b c = exp (-(b/2) • (H + c • 1))is the half-step factorF.gibbsTrace_eq_exp_mul_sum_nsq:Z = e^{bc} ∑_r ‖F e_r‖², fromFᴴ F = e^{-bc} e^{-bH}andSpectral.sum_nsq_mulVec_single(∑_r ‖M e_r‖² = Re Tr (Mᴴ M));sum_nsq_gibbsHalf_eq_sum:∑_r ‖F e_r‖² = ∑_i e^{-b(λᵢ + c)}; a scalar shiftH + amultiplies the trace bye^{-ba}(gibbsTrace_add_smul_one) and adds toc(gibbsHalf_add_smul_one).nsq_gibbsHalf_single_eq: a unitaryUthat commutes withHand mapse_rto a phase timese_{r'}gives the columnsrandr'ofFequal norms.abs_sqrt_wsum_sub_le: Minkowski's inequality in the weightedℓ²direct sum,|√(∑ ν ‖X‖²) - √(∑ ν ‖Y‖²)| ≤ √(∑ ν) Ewhen every‖X_ρ - Y_ρ‖ ≤ E; and the triangle inequalitynsq_add_le_sqfor squared norms.gibbsTrace_enclosure: the rational enclosures max(0, r - ℰ)² / Q² ≤ Z ≤ (s + t)(r + 1 + ℰ)² / Q², with the variantsgibbsTrace_enclosure_of_rep(representatives from a maprep, fiber sizesν,∑ ν = dim; the regrouping is Mathlib'sFinset.sum_comp) andgibbsTrace_enclosure_of_intColumns(integer columns,r = Nat.sqrt W).
The paper states |√W - Q ‖F‖_F| ≤ √(3^n) E < ℰ; only ≤ ℰ is used, so the hypotheses below
ask for (∑ ν) E² ≤ ℰ², a rational inequality.
The half-step Gibbs factor #
The half-step Gibbs factor F = exp (-(b/2) (H + c I)) of the shifted Hamiltonian, whose
squared Frobenius norm is e^{-bc} Tr e^{-bH}.
Equations
- CertifiedGaps.Trace.gibbsHalf H b c = NormedSpace.exp (↑(-(b / 2)) • (H + ↑c • 1))
Instances For
Fᴴ F = e^{-bc} e^{-bH}: the two half steps recombine into one full Gibbs step.
Frobenius form of the Gibbs trace. Z = Tr e^{-bH} = e^{bc} ∑_r ‖F e_r‖².
The squared Frobenius norm of F in terms of the spectrum:
∑_r ‖F e_r‖² = ∑ᵢ e^{-b(λᵢ + c)}.
A scalar shift H + a multiplies the Gibbs trace by e^{-ba}.
Symmetries #
A unitary symmetry U of H can be moved through F without changing norms:
‖F U v‖ = ‖U F v‖ = ‖F v‖.
Signed and phase permutations. If a unitary symmetry U of H maps the basis vector
e_r to u e_{r'} with |u| = 1, the columns r and r' of F have equal norms.
Minkowski's inequality in the weighted direct sum #
Minkowski in the weighted direct sum. If every column error is at most E, the
weighted ℓ² norms of the two families differ by at most √(∑ w) E. With integer weights
w_ρ = ν_ρ this is the triangle inequality in the direct sum that repeats each column ν_ρ
times.
The triangle inequality for squared norms: ‖x‖ ≤ a and ‖y‖ ≤ b give
‖x + y‖ ≤ a + b. Used to add the rounding error of an integer column to the truncation error
of the polynomial it approximates.
The rational enclosure #
Rational enclosure of a Gibbs trace from representative columns.
Data: representatives R with weights ν that reproduce the squared Frobenius norm of
F = gibbsHalf H b c (horbit), computed columns X_ρ within E of Q F e_ρ (hcol),
their weighted total W (hW), an integer r with r² ≤ W < (r + 1)², a bound
(∑ ν) E² ≤ ℰ², and s ≤ e^{bc} ≤ s + t. Conclusion:
s max(0, r - ℰ)² / Q² ≤ Tr e^{-bH} ≤ (s + t)(r + 1 + ℰ)² / Q².
gibbsTrace_enclosure with the representatives produced by a map rep that is constant
on column norms: ν_ρ is the size of the fiber of ρ, so ∑ ν = |n| and the error budget
reads |n| E² ≤ ℰ².
gibbsTrace_enclosure for integer columns X_ρ ∈ ℤⁿ and r = ⌊√W⌋, where the integer
total is W = ∑_ρ ν_ρ ∑_w X_ρ(w)².