Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4.7: Gibbs fluctuation principle

Open
QAlgorithms.Papers.Independent.Intake100.P82.Gibbs_fluctuation_principle

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.

Condition USCE means finite topological entropy and upper semicontinuity of Q↦hφ(Q)Q\mapsto h_\varphi(Q)Q↦hφ​(Q) on invariant probabilities. S is ordinary specification; WPS is the source weak periodic specification; PAP is finiteness of periodic sets and convergence of their normalized log partition sums to pressure.

Choose either C-Commutation, where θ\thetaθ is an involutive homeomorphism and φ=θ∘φ∘θ\varphi=\theta\circ\varphi\circ\thetaφ=θ∘φ∘θ, or R-Reversal, where additionally φ\varphiφ is a homeomorphism and φ−1=θ∘φ∘θ\varphi^{-1}=\theta\circ\varphi\circ\thetaφ−1=θ∘φ∘θ. Set θn=θ\theta_n=\thetaθn​=θ in C and θn=θ∘φn−1\theta_n=\theta\circ\varphi^{n-1}θn​=θ∘φn−1 in R, G^n=Gn∘θn\widehat G_n=G_n\circ\theta_nGn​=Gn​∘θn​, σn=Gn−G^n\sigma_n=G_n-\widehat G_nσn​=Gn​−Gn​, and ep⁡(Q)=G(Q)−G(θ∗Q)\operatorname{ep}(Q)=\mathcal G(Q)-\mathcal G(\theta_*Q)ep(Q)=G(Q)−G(θ∗​Q) for invariant QQQ.

The empirical measure is μnx=n−1∑j=0n−1δφj(x)\mu_n^x=n^{-1}\sum_{j=0}^{n-1}\delta_{\varphi^j(x)}μnx​=n−1∑j=0n−1​δφj(x)​. An LDP below is the full speed-nnn Borel-set principle, with interior in the lower bound and closure in the upper bound. Put

JG(Q)={p(G)−G(Q)−hφ(Q),Q∈Pφ(M),+∞,otherwise.J_{\mathcal G}(Q)=\begin{cases}p(\mathcal G)-\mathcal G(Q)-h_\varphi(Q),&Q\in\mathcal P_\varphi(M),\\+\infty,&\text{otherwise}.\end{cases}JG​(Q)={p(G)−G(Q)−hφ​(Q),+∞,​Q∈Pφ​(M),otherwise.​

Assume USCE and S and let PPP be a weak Gibbs probability for G∈A(M)\mathcal G\in\mathcal A(M)G∈A(M). Under the single fixed law PPP:

The empirical rate satisfies JG(θ∗Q)=JG(Q)+ep⁡(Q)J_{\mathcal G}(\theta_*Q)=J_{\mathcal G}(Q)+\operatorname{ep}(Q)JG​(θ∗​Q)=JG​(Q)+ep(Q) for every invariant QQQ. Moreover σn/n\sigma_n/nσn​/n obeys the full LDP with good convex rate

I(s)=inf⁡Q∈Pφ(M)ep⁡(Q)=sJG(Q),I(−s)=I(s)+s.I(s)=\inf_{\substack{Q\in\mathcal P_\varphi(M)\\\operatorname{ep}(Q)=s}}J_{\mathcal G}(Q),\qquad I(-s)=I(s)+s.I(s)=Q∈Pφ​(M)ep(Q)=s​inf​JG​(Q),I(−s)=I(s)+s.

Writing e(α)=p((1−α)G+αG^)−p(G)e(\alpha)=p((1-\alpha)\mathcal G+\alpha\widehat{\mathcal G})-p(\mathcal G)e(α)=p((1−α)G+αG​)−p(G), one also has I(s)=sup⁡α{αs−e(−α)}I(s)=\sup_\alpha\{\alpha s-e(-\alpha)\}I(s)=supα​{αs−e(−α)}.

The law need not be invariant, ergodic, or equivalent to its reversal.

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

/-- Theorem 4.7, arXiv:1712.05167v3, PDF p.32: empirical FR, scalar FT/FR,
goodness, convexity, and duality under a fixed weak Gibbs probability. -/
theorem Gibbs_fluctuation_principle (phi : M → M) (hphi : Continuous phi)
    (hu : USCE phi) (hs : Specification phi) (theta : M ≃ₜ M) (rev : Bool)
    (hsym : Symmetry phi theta rev) (G : ℕ → M → ℝ)
    (hG : AsymptoticallyAdditive phi G) (P : ProbabilityMeasure M)
    (hg : WeakGibbs phi G P) :
    FluctuationPrinciple phi G theta rev (fun _ => (P : Measure M)) := by sorry

end CompactDynamics

end QAlgorithms.Papers.Independent.Intake100.P82

end
Source
Fluctuation Theorem and Thermodynamic Formalism, arXiv:1712.05167v3, PDF p. 32, Theorem 4.7: Gibbs fluctuation principle
Read-back

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

Let ϕ:M→M\phi:M\to Mϕ:M→M be continuous. Write Snf=∑j=0n−1f∘ϕjS_nf=\sum_{j=0}^{n-1}f\circ\phi^jSn​f=∑j=0n−1​f∘ϕj, Bn(x,ϵ)={y: d(ϕjy,ϕjx)<ϵ for 0≤j<n}B_n(x,\epsilon)=\{y:\ d(\phi^j y,\phi^j x)<\epsilon\text{ for }0\le j<n\}Bn​(x,ϵ)={y: d(ϕjy,ϕjx)<ϵ for 0≤j<n}, and ∥f∥∞=sup⁡x∣f(x)∣\|f\|_\infty=\sup_x|f(x)|∥f∥∞​=supx​∣f(x)∣, with the total real supremum equal to 000 for an empty or unbounded-above set. Call U=(Un)U=(U_n)U=(Un​) admissible if every UnU_nUn​, n≥1n\ge1n≥1, is bounded and measurable and there are continuous fkf_kfk​, k≥1k\ge1k≥1, satisfying

lim⁡k→∞lim sup⁡n→∞∥Un−Snfk∥∞n=0\lim_{k\to\infty}\limsup_{n\to\infty}\frac{\|U_n-S_nf_k\|_\infty}{n}=0k→∞lim​n→∞limsup​n∥Un​−Sn​fk​∥∞​​=0

in the extended real line. Define

p(U)=sup⁡ϵ>0lim sup⁡n→∞1nlog⁡ ⁣(sup⁡E⊂M finitex≠y∈E⇒y∉Bn(x,ϵ)∑x∈EeUn(x)),p(U)=\sup_{\epsilon>0}\limsup_{n\to\infty}\frac1n \log\!\left(\sup_{\substack{E\subset M\text{ finite}\\ x\ne y\in E\Rightarrow y\notin B_n(x,\epsilon)}}\sum_{x\in E}e^{U_n(x)}\right),p(U)=ϵ>0sup​n→∞limsup​n1​log​E⊂M finitex=y∈E⇒y∈/Bn​(x,ϵ)​sup​x∈E∑​eUn​(x)​,

including the empty finite set and using extended nonnegative sums and the extended logarithm. For a probability QQQ, define

h(Q)=sup⁡k≥1c:M→{0,…,k−1} measurablelim inf⁡n→∞1n∑w∈{0,…,k−1}n−qwlog⁡qw,qw=Q{x: c(ϕjx)=wj for 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\in\{0,\ldots,k-1\}^n}-q_w\log q_w,\qquad q_w=Q\{x:\ c(\phi^j x)=w_j\text{ for }0\le j<n\},h(Q)=k≥1c:M→{0,…,k−1} measurable​sup​n→∞liminf​n1​w∈{0,…,k−1}n∑​−qw​logqw​,qw​=Q{x: c(ϕjx)=wj​ for 0≤j<n},

where 0log⁡0=00\log0=00log0=0. Assume the cover entropy of ϕ\phiϕ on MMM is less than +∞+\infty+∞, and hhh is upper semicontinuous on the probabilities satisfying ϕ∗Q=Q\phi_*Q=Qϕ∗​Q=Q. Assume also that for every ϵ>0\epsilon>0ϵ>0, some integer N≥1N\ge1N≥1 has this property: every finite nonempty family of intervals [ai,bi]⊂N[a_i,b_i]\subset\mathbb N[ai​,bi​]⊂N, ai≤bia_i\le b_iai​≤bi​, and points xix_ixi​, with all times in distinct intervals at distance at least NNN, admits xxx with d(ϕkx,ϕkxi)<ϵd(\phi^k x,\phi^k x_i)<\epsilond(ϕkx,ϕkxi​)<ϵ for every ai≤k≤bia_i\le k\le b_iai​≤k≤bi​. Let θ\thetaθ be an involutive homeomorphism and rrr a Boolean. For true rrr, assume there exists a homeomorphism fff with ϕ=f\phi=fϕ=f and f−1=θ∘ϕ∘θf^{-1}=\theta\circ\phi\circ\thetaf−1=θ∘ϕ∘θ; for false rrr, assume ϕ=θ∘ϕ∘θ\phi=\theta\circ\phi\circ\thetaϕ=θ∘ϕ∘θ. Let GGG be admissible and PPP a probability measure. Assume p(G)=pp(G)=pp(G)=p for some real ppp and there is K:R×N→RK:\mathbb R\times\mathbb N\to\mathbb RK:R×N→R with K(ϵ,n)≥1K(\epsilon,n)\ge1K(ϵ,n)≥1 for all ϵ>0,n≥1\epsilon>0,n\ge1ϵ>0,n≥1,

lim⁡ϵ↓0lim sup⁡n→∞log⁡K(ϵ,n)n=0,K(ϵ,n)−1eGn(x)−np≤P(Bn(x,ϵ))≤K(ϵ,n)eGn(x)−np\lim_{\epsilon\downarrow0}\limsup_{n\to\infty}\frac{\log K(\epsilon,n)}n=0, \qquad K(\epsilon,n)^{-1}e^{G_n(x)-np} \le P(B_n(x,\epsilon)) \le K(\epsilon,n)e^{G_n(x)-np}ϵ↓0lim​n→∞limsup​nlogK(ϵ,n)​=0,K(ϵ,n)−1eGn​(x)−np≤P(Bn​(x,ϵ))≤K(ϵ,n)eGn​(x)−np

for all ϵ>0,n≥1,x\epsilon>0,n\ge1,xϵ>0,n≥1,x, with the iterated limit in the extended real line. Define Tn=θ∘ϕn−1T_n=\theta\circ\phi^{n-1}Tn​=θ∘ϕn−1 when rrr is true, using subtraction truncated at zero, and Tn=θT_n=\thetaTn​=θ otherwise; put σn=Gn−Gn∘Tn\sigma_n=G_n-G_n\circ T_nσn​=Gn​−Gn​∘Tn​. For each probability QQQ, let uG(Q)u_G(Q)uG​(Q) be the real limit of n−1∫Gn dQn^{-1}\int G_n\,dQn−1∫Gn​dQ if it exists, and 000 otherwise, and define

J(Q)={p(G)−uG(Q)−h(Q),ϕ∗Q=Q,+∞,ϕ∗Q≠Q,Δ(Q)=uG(Q)−uG(θ∗Q),I(s)=inf⁡Q probabilityϕ∗Q=QΔ(Q)=sJ(Q),J(Q)= \begin{cases} p(G)-u_G(Q)-h(Q),&\phi_*Q=Q,\\ +\infty,&\phi_*Q\ne Q, \end{cases} \quad \Delta(Q)=u_G(Q)-u_G(\theta_*Q),\quad I(s)=\inf_{\substack{Q\text{ probability}\\\phi_*Q=Q\\\Delta(Q)=s}}J(Q),J(Q)={p(G)−uG​(Q)−h(Q),+∞,​ϕ∗​Q=Q,ϕ∗​Q=Q,​Δ(Q)=uG​(Q)−uG​(θ∗​Q),I(s)=Q probabilityϕ∗​Q=QΔ(Q)=s​inf​J(Q),

where an empty infimum is +∞+\infty+∞. Set E(b)=p(((1−b)Gn+b Gn∘Tn)n)−p(G)E(b)=p(((1-b)G_n+b\,G_n\circ T_n)_n)-p(G)E(b)=p(((1−b)Gn​+bGn​∘Tn​)n​)−p(G). Then every invariant probability QQQ satisfies

J(θ∗Q)=J(Q)+Δ(Q).J(\theta_*Q)=J(Q)+\Delta(Q).J(θ∗​Q)=J(Q)+Δ(Q).

Furthermore, III is lower semicontinuous and nonnegative, and for every measurable A⊂RA\subset\mathbb RA⊂R,

−inf⁡s∈int⁡AI(s)≤lim inf⁡n→∞1nlog⁡P{x:σn(x)/n∈A},lim sup⁡n→∞1nlog⁡P{x:σn(x)/n∈A}≤−inf⁡s∈A‾I(s).-\inf_{s\in\operatorname{int}A}I(s) \le\liminf_{n\to\infty}\frac1n\log P\{x:\sigma_n(x)/n\in A\}, \qquad \limsup_{n\to\infty}\frac1n\log P\{x:\sigma_n(x)/n\in A\} \le-\inf_{s\in\overline A}I(s).−s∈intAinf​I(s)≤n→∞liminf​n1​logP{x:σn​(x)/n∈A},n→∞limsup​n1​logP{x:σn​(x)/n∈A}≤−s∈Ainf​I(s).

For every real ccc, the set {s:I(s)≤c}\{s:I(s)\le c\}{s:I(s)≤c} is compact; for all x,y,a,b∈Rx,y,a,b\in\mathbb Rx,y,a,b∈R with a,b≥0a,b\ge0a,b≥0 and a+b=1a+b=1a+b=1,

I(ax+by)≤aI(x)+bI(y);I(ax+by)\le aI(x)+bI(y);I(ax+by)≤aI(x)+bI(y);

and for every real sss,

I(−s)=I(s)+s,I(s)=sup⁡a∈R(as−E(−a)).I(-s)=I(s)+s,\qquad I(s)=\sup_{a\in\mathbb R}\bigl(as-E(-a)\bigr).I(−s)=I(s)+s,I(s)=a∈Rsup​(as−E(−a)).

All these rate expressions use extended real arithmetic, including zero convex weights and empty infima. The asymptotic indices are positive, and G0G_0G0​ is unrestricted.

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