Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3.1: periodic empirical and asymptotically additive LDPs

Open
QAlgorithms.Papers.Independent.Intake100.P82.periodic_empirical_scalar_LDP

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.

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.

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, WPS, S and PAP, and let G∈A(M)\mathcal G\in\mathcal A(M)G∈A(M). Under the periodic laws, all of the following hold.

For V=(Vn)∈A(M)\mathcal V=(V_n)\in\mathcal A(M)V=(Vn​)∈A(M), define

IV(s)=inf⁡Q∈Pφ(M)V(Q)=sJG(Q).I_{\mathcal V}(s)=\inf_{\substack{Q\in\mathcal P_\varphi(M)\\\mathcal V(Q)=s}}J_{\mathcal G}(Q).IV​(s)=Q∈Pφ​(M)V(Q)=s​inf​JG​(Q).

The empirical measures obey the LDP with lower semicontinuous convex rate JGJ_{\mathcal G}JG​. For every such V\mathcal VV, Vn/nV_n/nVn​/n obeys the LDP with good convex rate IVI_{\mathcal V}IV​, and

IV(s)=sup⁡α∈R{αs−p(G+αV)+p(G)}.I_{\mathcal V}(s)=\sup_{\alpha\in\mathbb R}\{\alpha s-p(\mathcal G+\alpha\mathcal V)+p(\mathcal G)\}.IV​(s)=α∈Rsup​{αs−p(G+αV)+p(G)}.

The contraction uses every AA observable, including bounded Borel terms, rather than only additive continuous tests.

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 3.1, arXiv:1712.05167v3, PDF p.27: full empirical LDP and every
AA scalar LDP, convexity/goodness and exact Legendre duality. -/
theorem periodic_empirical_scalar_LDP (phi : M → M) (hphi : Continuous phi)
    (h : PeriodicHypotheses phi) (G : ℕ → M → ℝ)
    (hG : AsymptoticallyAdditive phi G) (reference : M) :
    EmpiricalScalarLDP phi G (periodicLaw phi G reference) := by sorry

end CompactDynamics

end QAlgorithms.Papers.Independent.Intake100.P82

end
Source
Fluctuation Theorem and Thermodynamic Formalism, arXiv:1712.05167v3, PDF p. 27, Theorem 3.1: periodic empirical and asymptotically additive LDPs
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. Put Snu=∑j=0n−1u∘ϕjS_nu=\sum_{j=0}^{n-1}u\circ\phi^jSn​u=∑j=0n−1​u∘ϕj, and call Un:M→RU_n:M\to\mathbb RUn​:M→R admissible if every UnU_nUn​, n≥1n\ge1n≥1, is measurable and bounded and there are functions FkF_kFk​, continuous for k≥1k\ge1k≥1, such that

lim⁡k→∞lim sup⁡n→∞∥Un+1−Sn+1Fk+1∥∞n+1=0\lim_{k\to\infty}\limsup_{n\to\infty} \frac{\|U_{n+1}-S_{n+1}F_{k+1}\|_\infty}{n+1}=0k→∞lim​n→∞limsup​n+1∥Un+1​−Sn+1​Fk+1​∥∞​​=0

in the extended reals, where the norm is the real supremum of ∣u(x)∣|u(x)|∣u(x)∣, equal to 000 for an empty or unbounded-above range. Define

P(U)=sup⁡ε>0lim sup⁡n→∞1nlog⁡ ⁣(sup⁡E∑x∈EeUn(x)),\mathcal P(U)=\sup_{\varepsilon>0}\limsup_{n\to\infty}\frac1n \log\!\left(\sup_E\sum_{x\in E}e^{U_n(x)}\right),P(U)=ε>0sup​n→∞limsup​n1​log(Esup​x∈E∑​eUn​(x)),

where positive nnn are used and EEE ranges over finite sets whose distinct points have distance at least ε\varepsilonε at some iterate before nnn. Assume all four of the following conditions: the topological cover entropy of ϕ\phiϕ on MMM is less than +∞+\infty+∞, and Q↦hϕ(Q)Q\mapsto h_\phi(Q)Q↦hϕ​(Q) is upper semicontinuous on invariant probability measures; there exist m:R×N→Nm:\mathbb R\times\mathbb N\to\mathbb Nm:R×N→N and ρ:R→R\rho:\mathbb R\to\mathbb Rρ:R→R such that ρ(ε)→0\rho(\varepsilon)\to0ρ(ε)→0 as ε↓0\varepsilon\downarrow0ε↓0, and, for every ε>0\varepsilon>0ε>0, m(ε,n+1)/(n+1)→ρ(ε)m(\varepsilon,n+1)/(n+1)\to\rho(\varepsilon)m(ε,n+1)/(n+1)→ρ(ε), while for all sufficiently large n≥1n\ge1n≥1, m(ε,n)<nm(\varepsilon,n)<nm(ε,n)<n and every xxx has a point yyy with ϕny=y\phi^ny=yϕny=y and d(ϕjy,ϕjx)<εd(\phi^jy,\phi^jx)<\varepsilond(ϕjy,ϕjx)<ε for 0≤j<n−m(ε,n)0\le j<n-m(\varepsilon,n)0≤j<n−m(ε,n); for every ε>0\varepsilon>0ε>0, some integer N≥1N\ge1N≥1 allows every finite nonempty collection of natural-number intervals [ai,bi][a_i,b_i][ai​,bi​], with ai≤bia_i\le b_iai​≤bi​ and every pair of times from distinct intervals at distance at least NNN, and every collection xi∈Mx_i\in Mxi​∈M, to be traced by a point xxx satisfying d(ϕkx,ϕkxi)<εd(\phi^kx,\phi^kx_i)<\varepsilond(ϕkx,ϕkxi​)<ε for all k∈[ai,bi]k\in[a_i,b_i]k∈[ai​,bi​]; and Fix⁡(ϕn)\operatorname{Fix}(\phi^n)Fix(ϕn) is finite for every n≥1n\ge1n≥1, with

1nlog⁡ ⁣(∑ϕnx=xeUn(x))⟶P(U)for every admissible U.\frac1n\log\!\left(\sum_{\phi^nx=x}e^{U_n(x)}\right)\longrightarrow\mathcal P(U) \quad\text{for every admissible }U.n1​log​ϕnx=x∑​eUn​(x)​⟶P(U)for every admissible U.

Here

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

where www runs through words of length nnn, and the real logarithm has value 000 at 000. Fix any admissible GGG and reference point o∈Mo\in Mo∈M. Let νn\nu_nνn​ assign weights proportional to eGn(x)e^{G_n(x)}eGn​(x) to Fix⁡(ϕn)\operatorname{Fix}(\phi^n)Fix(ϕn) if that set is finite and nonempty, and let νn=δo\nu_n=\delta_oνn​=δo​ otherwise. For any UUU and probability measure 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, if it exists, and 000 otherwise. Define

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_\phi(Q),&\phi_*Q=Q,\\ +\infty,&\phi_*Q\ne Q, \end{cases} \qquad 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).

Then JJJ is lower semicontinuous and nonnegative, and for every measurable set AAA of probability measures, with

bn(A)=νn{x:∃Q∈A, Q=1n∑j=0n−1δϕjx}(n≥1),b_n(A)=\nu_n\left\{x:\exists Q\in A,\ Q=\frac1n\sum_{j=0}^{n-1}\delta_{\phi^jx}\right\} \quad(n\ge1),bn​(A)=νn​{x:∃Q∈A, Q=n1​j=0∑n−1​δϕjx​}(n≥1),

one has

−inf⁡Q∈int⁡AJ(Q)≤lim inf⁡n→∞1nlog⁡bn(A),lim sup⁡n→∞1nlog⁡bn(A)≤−inf⁡Q∈A‾J(Q).-\inf_{Q\in\operatorname{int}A}J(Q) \le\liminf_{n\to\infty}\frac1n\log b_n(A), \qquad \limsup_{n\to\infty}\frac1n\log b_n(A) \le-\inf_{Q\in\overline A}J(Q).−Q∈intAinf​J(Q)≤n→∞liminf​n1​logbn​(A),n→∞limsup​n1​logbn​(A)≤−Q∈Ainf​J(Q).

Furthermore, for all 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, one has J(R)≤aJ(P)+bJ(Q)J(R)\le aJ(P)+bJ(Q)J(R)≤aJ(P)+bJ(Q). For every admissible VVV, IVI_VIV​ is lower semicontinuous and nonnegative, every set {s:IV(s)≤c}\{s:I_V(s)\le c\}{s:IV​(s)≤c} is compact for every real ccc, and

IV(ax+by)≤aIV(x)+bIV(y)(x,y∈R, a,b≥0, a+b=1).I_V(ax+by)\le aI_V(x)+bI_V(y) \quad(x,y\in\mathbb R,\ a,b\ge0,\ a+b=1).IV​(ax+by)≤aIV​(x)+bIV​(y)(x,y∈R, a,b≥0, a+b=1).

For every measurable B⊆RB\subseteq\mathbb RB⊆R,

−inf⁡s∈int⁡BIV(s)≤lim inf⁡n→∞1nlog⁡νn{x:Vn(x)/n∈B},lim sup⁡n→∞1nlog⁡νn{x:Vn(x)/n∈B}≤−inf⁡s∈B‾IV(s),-\inf_{s\in\operatorname{int}B}I_V(s) \le\liminf_{n\to\infty}\frac1n\log\nu_n\{x:V_n(x)/n\in B\}, \qquad \limsup_{n\to\infty}\frac1n\log\nu_n\{x:V_n(x)/n\in B\} \le-\inf_{s\in\overline B}I_V(s),−s∈intBinf​IV​(s)≤n→∞liminf​n1​logνn​{x:Vn​(x)/n∈B},n→∞limsup​n1​logνn​{x:Vn​(x)/n∈B}≤−s∈Binf​IV​(s),

and, for every real sss,

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

All rate and pressure arithmetic is in the extended reals; empty infima equal +∞+\infty+∞, probability logarithms at zero equal −∞-\infty−∞, the convexity assertions include zero coefficients, and these large-deviation bounds use no index 000.

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