Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Example 0.16: cylinder potentials and quasi-Bernoulli measures

Open
QAlgorithms.Papers.Independent.Intake100.P82.cylinder_potentials

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.

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.​

Let MMM be a primitive two-sided finite-type subshift, with left shift φ\varphiφ, and let θ(x)j=p(x−j)\theta(x)_j=p(x_{-j})θ(x)j​=p(x−j​) for an involutive alphabet permutation preserving MMM. Let PPP be a fully supported invariant probability. For positive nnn put

Gn(x)=log⁡P{y:yj=xj for 1≤j≤n}.G_n(x)=\log P\{y:y_j=x_j\text{ for }1\le j\le n\}.Gn​(x)=logP{y:yj​=xj​ for 1≤j≤n}.

Every GnG_nGn​ is continuous. If (Gn)(G_n)(Gn​) is asymptotically additive, then its pressure is zero, PPP is weak Gibbs for it, and the empirical/scalar LDP and fluctuation principle hold under PPP. In particular, if these cylinder log potentials satisfy both fixed-constant almost-additive inequalities (0.18) and (0.19), they are asymptotically additive and all these conclusions hold. This is the quasi-Bernoulli application; pressure zero is proved, not imposed.

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.16, arXiv:1712.05167v3, PDF p.10. Coordinates start at one;
pressure zero is a conclusion. Quasi-Bernoulli means both fixed-constant
inequalities (0.18)/(0.19), equivalently almost additivity of the cylinder logs. -/
theorem cylinder_potentials (phi : M → M) (hphi : Continuous phi)
    (S : ShiftPresentation phi) (theta : M ≃ₜ M) (htheta : ShiftReversal phi S theta)
    (P : ProbabilityMeasure M) (hP : ProbabilityInvariant phi P) (hsupport : OpenSetFullSupport P) :
    let G := cylinderPotential phi S P
    (∀ n : ℕ, 1 ≤ n → Continuous (G n)) ∧
    (AsymptoticallyAdditive phi G →
      separatedSetPressure phi G = 0 ∧ WeakGibbs phi G P ∧
      EmpiricalScalarLDP phi G (fun _ => (P : Measure M)) ∧
      FluctuationPrinciple phi G theta true (fun _ => (P : Measure M))) ∧
    (AlmostAdditive phi G → AsymptoticallyAdditive phi G ∧
      separatedSetPressure phi G = 0 ∧ WeakGibbs phi G P ∧
      EmpiricalScalarLDP phi G (fun _ => (P : Measure M)) ∧
      FluctuationPrinciple phi G theta true (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. 10, Example 0.16: cylinder potentials and quasi-Bernoulli measures
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. Suppose there are an alphabet size d≥1d\ge1d≥1, a natural 000-111 matrix AAA, an integer q≥1q\ge1q≥1 with every entry of AqA^qAq strictly positive, and a homeomorphism

c:M⟶XA={z:Z→{0,…,d−1}:Azj,zj+1=1 for every j∈Z}c:M\longrightarrow X_A =\{z:\mathbb Z\to\{0,\ldots,d-1\}:A_{z_j,z_{j+1}}=1\text{ for every }j\in\mathbb Z\}c:M⟶XA​={z:Z→{0,…,d−1}:Azj​,zj+1​​=1 for every j∈Z}

such that c(ϕ(x))j=c(x)j+1c(\phi(x))_j=c(x)_{j+1}c(ϕ(x))j​=c(x)j+1​ for every x,jx,jx,j. Let θ:M→M\theta:M\to Mθ:M→M be a homeomorphism for which there exists a permutation ppp of the alphabet satisfying p2=idp^2=\mathrm{id}p2=id and c(θ(x))j=p(c(x)−j)c(\theta(x))_j=p(c(x)_{-j})c(θ(x))j​=p(c(x)−j​) for every x∈M,j∈Zx\in M,j\in\mathbb Zx∈M,j∈Z. Let PPP be a probability measure with ϕ∗P=P\phi_*P=Pϕ∗​P=P and P(U)>0P(U)>0P(U)>0 for every nonempty open U⊆MU\subseteq MU⊆M. Define

Gn(x)=log⁡ ⁣(P{y:c(y)j=c(x)j for every 1≤j≤n}),G_n(x)= \log\!\left(P\{y:c(y)_j=c(x)_j\text{ for every }1\le j\le n\}\right),Gn​(x)=log(P{y:c(y)j​=c(x)j​ for every 1≤j≤n}),

where the probability is converted to a real number before applying the total real logarithm, whose value at 000 is 000; in particular G0=0G_0=0G0​=0. To specify the conditional conclusions, 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 by a real constant, and that there exist functions FkF_kFk​, continuous for k≥1k\ge1k≥1, such that

lim⁡k→∞lim sup⁡n→∞1n∥Un−∑j=0n−1Fk∘ϕj∥∗=0,∥v∥∗=sup⁡x∈M∣v(x)∣,\lim_{k\to\infty}\limsup_{n\to\infty} \frac1n\left\|U_n-\sum_{j=0}^{n-1}F_k\circ\phi^j\right\|_*=0, \qquad \|v\|_*=\sup_{x\in M}|v(x)|,k→∞lim​n→∞limsup​n1​​Un​−j=0∑n−1​Fk​∘ϕj​∗​=0,∥v∥∗​=x∈Msup​∣v(x)∣,

where the supremum is real-valued and is 000 for an empty or unbounded-above range, and both limits are in the extended real line. Also define

P(U)=sup⁡ε>0lim sup⁡n→∞1nlog⁡ ⁣(sup⁡E⊆M finitex≠y∈E⇒∃0≤j<n, d(ϕjy,ϕjx)≥ε∑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(\phi^j y,\phi^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(ϕjy,ϕjx)≥ε​sup​x∈E∑​eUn​(x)​,

using nonnegative extended sums and the extended logarithm. For probability measures QQQ, 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 when it exists and 000 otherwise, and set

h(Q)=sup⁡k≥1a:M→{0,…,k−1} measurablelim inf⁡n→∞1n∑w−pwlog⁡pw,pw=Q{x:a(ϕjx)=wj (0≤j<n)},h(Q)= \sup_{\substack{k\ge1\\a: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:a(\phi^j x)=w_j\ (0\le j<n)\},h(Q)=k≥1a:M→{0,…,k−1} measurable​sup​n→∞liminf​n1​w∑​−pw​logpw​,pw​=Q{x:a(ϕjx)=wj​ (0≤j<n)},

where www ranges over all words of length nnn, probabilities are converted to reals, and the real logarithm satisfies log⁡0=0\log0=0log0=0. Real integrals are total integrals, equal to 000 for nonintegrable integrands. Put

J(Q)={P(G)−eG(Q)−h(Q),ϕ∗Q=Q,+∞,ϕ∗Q≠Q,IV(s)=inf⁡Q a probability measureϕ∗Q=Q, eV(Q)=sJ(Q).J(Q)= \begin{cases} \mathcal P(G)-e_G(Q)-h(Q),&\phi_*Q=Q,\\ +\infty,&\phi_*Q\ne Q, \end{cases} \quad I_V(s)=\inf_{\substack{Q\text{ a probability measure}\\\phi_*Q=Q,\ e_V(Q)=s}}J(Q).J(Q)={P(G)−eG​(Q)−h(Q),+∞,​ϕ∗​Q=Q,ϕ∗​Q=Q,​IV​(s)=Q a probability measureϕ∗​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=θ(ϕn−1x)T_nx=\theta(\phi^{n-1}x)Tn​x=θ(ϕn−1x), with natural subtraction truncated at 000, and Σn=Gn−Gn∘Tn\Sigma_n=G_n-G_n\circ T_nΣn​=Gn​−Gn​∘Tn​, define

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

with every empty infimum equal to +∞+\infty+∞. The theorem asserts first that GnG_nGn​ is continuous for every n≥1n\ge1n≥1. It then asserts that if A(G)\mathcal A(G)A(G) holds, all of the following conclusions hold; it also asserts that they hold, together with A(G)\mathcal A(G)A(G), if there exists a real constant CCC such that

∣Gm+n(x)−Gm(x)−Gn(ϕmx)∣≤Cfor every m,n≥1 and x∈M.|G_{m+n}(x)-G_m(x)-G_n(\phi^m x)|\le C \quad\text{for every }m,n\ge1\text{ and }x\in M.∣Gm+n​(x)−Gm​(x)−Gn​(ϕmx)∣≤Cfor every m,n≥1 and x∈M.

The conclusions in question include P(G)=0\mathcal P(G)=0P(G)=0 and existence of a function K:R×N→RK:\mathbb R\times\mathbb N\to\mathbb RK:R×N→R such that K(ε,n)≥1K(\varepsilon,n)\ge1K(ε,n)≥1 for every ε>0,n≥1\varepsilon>0,n\ge1ε>0,n≥1,

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

for all such ε,n\varepsilon,nε,n and every xxx, where Bn(x,ε)={y:d(ϕjy,ϕjx)<ε for all 0≤j<n}B_n(x,\varepsilon)=\{y:d(\phi^j y,\phi^j x)<\varepsilon\text{ for all }0\le j<n\}Bn​(x,ε)={y:d(ϕjy,ϕjx)<ε for all 0≤j<n}, and the displayed convergence is in the extended real line. In addition, for positive nnn, define Ln(x)=n−1∑j=0n−1δϕjxL_n(x)=n^{-1}\sum_{j=0}^{n-1}\delta_{\phi^j x}Ln​(x)=n−1∑j=0n−1​δϕjx​, En(A)=P{x:Ln(x)∈A}E_n(A)=P\{x:L_n(x)\in A\}En​(A)=P{x:Ln​(x)∈A}, FnV(B)=P{x:Vn(x)/n∈B}F_n^V(B)=P\{x:V_n(x)/n\in B\}FnV​(B)=P{x:Vn​(x)/n∈B}, and Fnσ(B)=P{x:Σn(x)/n∈B}F_n^\sigma(B)=P\{x:\Sigma_n(x)/n\in B\}Fnσ​(B)=P{x:Σn​(x)/n∈B}. The rates JJJ, IσI_\sigmaIσ​, and IVI_VIV​ for every sequence VVV satisfying A(V)\mathcal A(V)A(V) are lower semicontinuous and nonnegative, and each of the pairs (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 the corresponding probability-measure space or real line; here log⁡0=−∞\log0=-\inftylog0=−∞. For probability measures Q1,Q2,RQ_1,Q_2,RQ1​,Q2​,R and real a,b≥0a,b\ge0a,b≥0 with a+b=1a+b=1a+b=1 and R=aQ1+bQ2R=aQ_1+bQ_2R=aQ1​+bQ2​ as measures, J(R)≤aJ(Q1)+bJ(Q2)J(R)\le aJ(Q_1)+bJ(Q_2)J(R)≤aJ(Q1​)+bJ(Q2​). Each scalar rate has compact sublevel sets at every real level and satisfies

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),

with extended-real arithmetic, including zero weights. For every VVV satisfying A(V)\mathcal A(V)A(V) 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)(ϕ∗Q=Q),Iσ(−s)=Iσ(s)+s,J(Q^\theta)=J(Q)+d_G(Q)\quad(\phi_*Q=Q),\qquad I_\sigma(-s)=I_\sigma(s)+s,J(Qθ)=J(Q)+dG​(Q)(ϕ∗​Q=Q),Iσ​(−s)=Iσ​(s)+s,

and

Iσ(s)=sup⁡a∈R(as−pe(−a)),pe(t)=P((1−t)G+t(Gn∘Tn)n∈N)−P(G).I_\sigma(s)=\sup_{a\in\mathbb R}\bigl(as-p_{\mathrm e}(-a)\bigr),\qquad p_{\mathrm e}(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−pe​(−a)),pe​(t)=P((1−t)G+t(Gn​∘Tn​)n∈N​)−P(G).

The continuity assertion is unconditional under the stated premises; the pressure, measure bounds, and rate assertions have the respective additional hypotheses just specified. All limiting indices are positive, and T0=θT_0=\thetaT0​=θ.

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