Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Example 0.14: boundary terms in finite spin chains

Open
QAlgorithms.Papers.Independent.Intake100.P82.boundary_terms

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let MMM be a nonempty compact metric space with its Borel sigma-algebra, and let φ:M→M\varphi:M\to Mφ:M→M be continuous. Write P(M)\mathcal P(M)P(M) for Borel probabilities with the weak topology, Pφ(M)\mathcal P_\varphi(M)Pφ​(M) for invariant probabilities, and Eφ(M)\mathcal E_\varphi(M)Eφ​(M) for ergodic probabilities. Entropy hφh_\varphihφ​ is Kolmogorov–Sinai entropy with natural logarithms. For a bounded Borel sequence G=(Gn)n≥1\mathcal G=(G_n)_{n\ge1}G=(Gn​)n≥1​, asymptotic additivity means uniform approximation at linear scale by sums Sng=∑j=0n−1g∘φjS_n g=\sum_{j=0}^{n-1}g\circ\varphi^jSn​g=∑j=0n−1​g∘φj of continuous functions. For such a sequence, G(Q)\mathcal G(Q)G(Q) denotes the constructed real limit of n−1∫Gn dQn^{-1}\int G_n\,dQn−1∫Gn​dQ on invariant probabilities, and p(G)p(\mathcal G)p(G) denotes its topological pressure. All time limits use positive integers.

Assume φ\varphiφ is an expansive homeomorphism satisfying Bowen specification. Let θ\thetaθ be a continuous involution with φ−1=θ∘φ∘θ\varphi^{-1}=\theta\circ\varphi\circ\thetaφ−1=θ∘φ∘θ. No regularity of the potential beyond that stated, uniqueness of equilibrium, or ergodicity is assumed.

For Mn=Fix⁡(φn)M_n=\operatorname{Fix}(\varphi^n)Mn​=Fix(φn) finite and nonempty, put Zn=∑x∈MneGn(x)Z_n=\sum_{x\in M_n}e^{G_n(x)}Zn​=∑x∈Mn​​eGn​(x) and Pn=Zn−1∑x∈MneGn(x)δxP_n=Z_n^{-1}\sum_{x\in M_n}e^{G_n(x)}\delta_xPn​=Zn−1​∑x∈Mn​​eGn​(x)δx​. At the finitely many unused early times with empty periodic sets, use a fixed reference Dirac law. This extension has no effect on any asymptotic assertion.

Assume MMM is a full two-sided finite-alphabet shift. Let g=AΦg=A_\Phig=AΦ​ be the given continuous onsite potential, and let bnb_nbn​ be bounded Borel boundary terms satisfying ∥bn∥∞/n→0\|b_n\|_\infty/n\to0∥bn​∥∞​/n→0. Then

Gn=Sng+bn∈A(M),(Gn)∼(Sng).G_n=S_n g+b_n\in\mathcal A(M),\qquad (G_n)\sim(S_n g).Gn​=Sn​g+bn​∈A(M),(Gn​)∼(Sn​g).

Consequently the empirical/scalar LDP and fluctuation principle of the asymptotically additive extension hold for the finite-size periodic laws defined by GnG_nGn​. Here equivalence means ∥Gn−Sng∥∞/n→0\|G_n-S_n g\|_\infty/n\to0∥Gn​−Sn​g∥∞​/n→0. This isolates the boundary correction; it assumes the continuous onsite potential rather than asserting a construction of interactions or infinite-volume Gibbs states. Finite configurations are identified with fixed points, not primitive cyclic orbit classes.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P82
Formal statement
noncomputable section

open Filter MeasureTheory Set

open scoped Topology BigOperators ENNReal

namespace QAlgorithms.Papers.Independent.Intake100.P82

attribute [local instance] Classical.propDecidable

section CompactDynamics

variable {M : Type*} [instMetric : MetricSpace M] [instCompact : CompactSpace M]
  [instNonempty : Nonempty M] [instMeasurable : MeasurableSpace M] [instBorel : BorelSpace M]

-- Retain standing assumptions even when a displayed lemma does not use them.

include instCompact instNonempty instBorel

local instance : DecidableEq M := Classical.decEq M

/-- Example 0.14, arXiv:1712.05167v3, PDF p.9. The explicit boundary-term
consequence for a given continuous onsite potential; no external construction
of the interaction energy or classification of infinite-volume Gibbs states.
Finite chains correspond to fixed points, never cyclic-shift equivalence classes. -/
theorem boundary_terms (f theta : M ≃ₜ M) (h : IntroHypotheses f theta)
    (hfull : FullShift f) (g : C(M, ℝ)) (b : ℕ → M → ℝ)
    (hb : BorelSequence b)
    (hsub : Tendsto (fun n : ℕ => supNorm (b (n + 1)) / ((n + 1 : ℕ) : ℝ)) atTop (𝓝 0))
    (reference : M) :
    let G := fun n x => orbitSum f g n x + b n x
    AsymptoticallyAdditive f G ∧ EquivalentPotentials G (orbitSum f g) ∧
      EmpiricalScalarLDP f G (periodicLaw f G reference) ∧
      FluctuationPrinciple f G theta true (periodicLaw f G reference) := by sorry

end CompactDynamics

end QAlgorithms.Papers.Independent.Intake100.P82

end
Source
Fluctuation Theorem and Thermodynamic Formalism, arXiv:1712.05167v3, PDF p. 9, Example 0.14: boundary terms in finite spin chains
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

Let f,θ:M→Mf,\theta:M\to Mf,θ:M→M be homeomorphisms satisfying these conditions: some δ>0\delta>0δ>0 makes d(fkx,fky)≤δd(f^k x,f^k y)\le\deltad(fkx,fky)≤δ for every integer kkk imply x=yx=yx=y, with inverse iterates for negative kkk; for every ε>0\varepsilon>0ε>0 there exists N∈NN\in\mathbb NN∈N, N≥1N\ge1N≥1, such that any finite nonempty family of intervals [ai,bi]⊆N[a_i,b_i]\subseteq\mathbb N[ai​,bi​]⊆N, with every pair of times from distinct intervals at distance at least NNN, and arbitrary points zi∈Mz_i\in Mzi​∈M, admits xxx with d(fkx,fkzi)<εd(f^k x,f^k z_i)<\varepsilond(fkx,fkzi​)<ε throughout each interval and f(max⁡ibi−min⁡iai)+Nx=xf^{(\max_i b_i-\min_i a_i)+N}x=xf(maxi​bi​−mini​ai​)+Nx=x; and θ2=id\theta^2=\mathrm{id}θ2=id, with a homeomorphism u=fu=fu=f pointwise satisfying u−1(x)=θ(f(θx))u^{-1}(x)=\theta(f(\theta x))u−1(x)=θ(f(θx)). Assume also that there exist an alphabet size d≥1d\ge1d≥1, a natural 000-111 matrix AAA all of whose entries equal 111, a positive integer qqq for which every entry of AqA^qAq is positive, and a homeomorphism c:M→{0,…,d−1}Zc:M\to\{0,\ldots,d-1\}^{\mathbb Z}c:M→{0,…,d−1}Z such that c(f(x))j=c(x)j+1c(f(x))_j=c(x)_{j+1}c(f(x))j​=c(x)j+1​ for every x,jx,jx,j. Let g:M→Rg:M\to\mathbb Rg:M→R be continuous, let b:N→M→Rb:\mathbb N\to M\to\mathbb Rb:N→M→R have measurable, bounded-in-absolute-value functions bnb_nbn​ for every n≥1n\ge1n≥1, and assume

lim⁡n→∞∥bn∥∗n=0,∥v∥∗=sup⁡x∈M∣v(x)∣,\lim_{n\to\infty}\frac{\|b_n\|_*}{n}=0, \qquad \|v\|_*=\sup_{x\in M}|v(x)|,n→∞lim​n∥bn​∥∗​​=0,∥v∥∗​=x∈Msup​∣v(x)∣,

where this is a real supremum, equal to 000 for an empty or unbounded-above range. Choose any x∗∈Mx_*\in Mx∗​∈M, and put Hn(x)=∑j=0n−1g(fjx)H_n(x)=\sum_{j=0}^{n-1}g(f^j x)Hn​(x)=∑j=0n−1​g(fjx) and Gn(x)=Hn(x)+bn(x)G_n(x)=H_n(x)+b_n(x)Gn​(x)=Hn​(x)+bn​(x). For any sequence UUU, let A(U)\mathcal A(U)A(U) mean that each UnU_nUn​, n≥1n\ge1n≥1, is measurable and bounded in absolute value, and there exist functions FkF_kFk​, continuous for k≥1k\ge1k≥1, such that

lim⁡k→∞lim sup⁡n→∞1n∥Un−∑j=0n−1Fk∘fj∥∗=0,\lim_{k\to\infty}\limsup_{n\to\infty} \frac1n\left\|U_n-\sum_{j=0}^{n-1}F_k\circ f^j\right\|_*=0,k→∞lim​n→∞limsup​n1​​Un​−j=0∑n−1​Fk​∘fj​∗​=0,

with both limits in the extended real line. The theorem first asserts A(G)\mathcal A(G)A(G) and

lim⁡n→∞∥Gn−Hn∥∗n=0.\lim_{n\to\infty}\frac{\|G_n-H_n\|_*}{n}=0.n→∞lim​n∥Gn​−Hn​∥∗​​=0.

For the remaining conclusions define, for any sequence UUU,

P(U)=sup⁡ε>0lim sup⁡n→∞1nlog⁡ ⁣(sup⁡E⊆M finitex≠y∈E⇒∃0≤j<n, d(fjy,fjx)≥ε∑x∈EeUn(x)),\mathcal P(U)= \sup_{\varepsilon>0}\limsup_{n\to\infty}\frac1n \log\!\left( \sup_{\substack{E\subseteq M\text{ finite}\\ x\ne y\in E\Rightarrow\exists\,0\le j<n,\ d(f^j y,f^j x)\ge\varepsilon}} \sum_{x\in E}e^{U_n(x)} \right),P(U)=ε>0sup​n→∞limsup​n1​log​E⊆M finitex=y∈E⇒∃0≤j<n, d(fjy,fjx)≥ε​sup​x∈E∑​eUn​(x)​,

using nonnegative extended sums and extended logarithms. Let eU(Q)e_U(Q)eU​(Q) be the real limit of n−1∫Un dQn^{-1}\int U_n\,dQn−1∫Un​dQ if it exists and 000 otherwise, and put

h(Q)=sup⁡k≥1c:M→{0,…,k−1} measurablelim inf⁡n→∞1n∑w−pwlog⁡pw,pw=Q{x:c(fjx)=wj (0≤j<n)}.h(Q)= \sup_{\substack{k\ge1\\c:M\to\{0,\ldots,k-1\}\text{ measurable}}} \liminf_{n\to\infty}\frac1n\sum_w-p_w\log p_w,\qquad p_w=Q\{x:c(f^j x)=w_j\ (0\le j<n)\}.h(Q)=k≥1c:M→{0,…,k−1} measurable​sup​n→∞liminf​n1​w∑​−pw​logpw​,pw​=Q{x:c(fjx)=wj​ (0≤j<n)}.

Here www runs over all words of length nnn, probabilities are converted to reals, the real logarithm is 000 at 000, and real integrals are total integrals, equal to 000 for nonintegrable integrands. Set

J(Q)={P(G)−eG(Q)−h(Q),f∗Q=Q,+∞,f∗Q≠Q,IV(s)=inf⁡Q a probability measuref∗Q=Q, eV(Q)=sJ(Q).J(Q)= \begin{cases} \mathcal P(G)-e_G(Q)-h(Q),&f_*Q=Q,\\ +\infty,&f_*Q\ne Q, \end{cases} \quad I_V(s)=\inf_{\substack{Q\text{ a probability measure}\\f_*Q=Q,\ e_V(Q)=s}}J(Q).J(Q)={P(G)−eG​(Q)−h(Q),+∞,​f∗​Q=Q,f∗​Q=Q,​IV​(s)=Q a probability measuref∗​Q=Q, eV​(Q)=s​inf​J(Q).

Writing Qθ=θ∗QQ^\theta=\theta_*QQθ=θ∗​Q, dG(Q)=eG(Q)−eG(Qθ)d_G(Q)=e_G(Q)-e_G(Q^\theta)dG​(Q)=eG​(Q)−eG​(Qθ), Tnx=θ(fn−1x)T_nx=\theta(f^{n-1}x)Tn​x=θ(fn−1x), with truncated natural subtraction at n=0n=0n=0, and Σn=Gn−Gn∘Tn\Sigma_n=G_n-G_n\circ T_nΣn​=Gn​−Gn​∘Tn​, also put

Iσ(s)=inf⁡Q a probability measuref∗Q=Q, dG(Q)=sJ(Q).I_\sigma(s)=\inf_{\substack{Q\text{ a probability measure}\\f_*Q=Q,\ d_G(Q)=s}}J(Q).Iσ​(s)=Q a probability measuref∗​Q=Q, dG​(Q)=s​inf​J(Q).

Every empty infimum is +∞+\infty+∞. Use the laws

μn={∑x:fnx=xeGn(x)δx∑x:fnx=xeGn(x),{x:fnx=x} finite and nonempty,δx∗,otherwise,\mu_n= \begin{cases} \displaystyle\frac{\sum_{x:f^n x=x}e^{G_n(x)}\delta_x} {\sum_{x:f^n x=x}e^{G_n(x)}}, &\{x:f^n x=x\}\text{ finite and nonempty},\\ \delta_{x_*},&\text{otherwise}, \end{cases}μn​=⎩⎨⎧​∑x:fnx=x​eGn​(x)∑x:fnx=x​eGn​(x)δx​​,δx∗​​,​{x:fnx=x} finite and nonempty,otherwise,​

and, for positive nnn, let Ln(x)=n−1∑j=0n−1δfjxL_n(x)=n^{-1}\sum_{j=0}^{n-1}\delta_{f^j x}Ln​(x)=n−1∑j=0n−1​δfjx​, En(A)=μn{x:Ln(x)∈A}E_n(A)=\mu_n\{x:L_n(x)\in A\}En​(A)=μn​{x:Ln​(x)∈A}, FnV(B)=μn{x:Vn(x)/n∈B}F_n^V(B)=\mu_n\{x:V_n(x)/n\in B\}FnV​(B)=μn​{x:Vn​(x)/n∈B}, and Fnσ(B)=μn{x:Σn(x)/n∈B}F_n^\sigma(B)=\mu_n\{x:\Sigma_n(x)/n\in B\}Fnσ​(B)=μn​{x:Σn​(x)/n∈B}. The rates JJJ, IσI_\sigmaIσ​, and IVI_VIV​ for every VVV satisfying A(V)\mathcal A(V)A(V) are lower semicontinuous and nonnegative, and each associated pair (E,J)(E,J)(E,J), (Fσ,Iσ)(F^\sigma,I_\sigma)(Fσ,Iσ​), and (FV,IV)(F^V,I_V)(FV,IV​) satisfies

−inf⁡int⁡AR≤lim inf⁡n→∞1nlog⁡Tn(A)≤lim sup⁡n→∞1nlog⁡Tn(A)≤−inf⁡A‾R-\inf_{\operatorname{int}A}R \le\liminf_{n\to\infty}\frac1n\log T_n(A) \le\limsup_{n\to\infty}\frac1n\log T_n(A) \le-\inf_{\overline A}R−intAinf​R≤n→∞liminf​n1​logTn​(A)≤n→∞limsup​n1​logTn​(A)≤−Ainf​R

for every measurable set AAA in its respective probability-measure space or real line, with log⁡0=−∞\log0=-\inftylog0=−∞. Moreover, for probability measures P,Q,RP,Q,RP,Q,R and real a,b≥0a,b\ge0a,b≥0 with a+b=1a+b=1a+b=1 and R=aP+bQR=aP+bQR=aP+bQ as measures, J(R)≤aJ(P)+bJ(Q)J(R)\le aJ(P)+bJ(Q)J(R)≤aJ(P)+bJ(Q). Every IVI_VIV​ and IσI_\sigmaIσ​ has compact sublevel sets at every real level and obeys

I(ax+by)≤aI(x)+bI(y)(x,y∈R, a,b≥0, a+b=1),I(ax+by)\le aI(x)+bI(y) \quad(x,y\in\mathbb R,\ a,b\ge0,\ a+b=1),I(ax+by)≤aI(x)+bI(y)(x,y∈R, a,b≥0, a+b=1),

in extended-real arithmetic, including zero weights. For every such VVV and every s∈Rs\in\mathbb Rs∈R,

IV(s)=sup⁡a∈R(as−[P(G+aV)−P(G)]).I_V(s)=\sup_{a\in\mathbb R}\left(as-\bigl[\mathcal P(G+aV)-\mathcal P(G)\bigr]\right).IV​(s)=a∈Rsup​(as−[P(G+aV)−P(G)]).

Finally,

J(Qθ)=J(Q)+dG(Q)(f∗Q=Q),Iσ(−s)=Iσ(s)+s,J(Q^\theta)=J(Q)+d_G(Q)\quad(f_*Q=Q),\qquad I_\sigma(-s)=I_\sigma(s)+s,J(Qθ)=J(Q)+dG​(Q)(f∗​Q=Q),Iσ​(−s)=Iσ​(s)+s,

and

Iσ(s)=sup⁡a∈R(as−p(−a)),p(t)=P((1−t)G+t(Gn∘Tn)n∈N)−P(G).I_\sigma(s)=\sup_{a\in\mathbb R}\bigl(as-p(-a)\bigr),\qquad p(t)=\mathcal P\bigl((1-t)G+t(G_n\circ T_n)_{n\in\mathbb N}\bigr)-\mathcal P(G).Iσ​(s)=a∈Rsup​(as−p(−a)),p(t)=P((1−t)G+t(Gn​∘Tn​)n∈N​)−P(G).

All asymptotic indices are positive; b0b_0b0​ is unrestricted, G0=b0G_0=b_0G0​=b0​, and T0=θT_0=\thetaT0​=θ. The periodic law at zero uses the same finite-and-nonempty rule displayed above.

Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me