Proof Atlas.

arXiv:2603.07435v4 · local manuscript and PDF · thm:common

A variance limit for symmetric sources

Automated comparison found no discrepancy

How the statements compare

The fixed-multiplier bound and the fixed-distortion limit agree. They have different hypotheses, and Lean places the derivative assumption exactly where the paper uses it.

Case-by-case comparison
CasePaperChecked Lean statementWhy
Fixed multiplier
not classified
For all τ ≥ 0 and k ≥ 1 the normalized score standard deviation is within (1+√2)√(ρ/k) of a continuous limiting function.Lean takes k=n+1, ρ=1−2p and proves the bound for every optimal prior, with ω(0)=0 and ω(τ)>0 for τ>0.The two substitutions recover the same bound and cover every positive length. Cut.exists_optimal supplies an optimizer at each length.
Fixed distortion
not classified
At a differentiability point of R, use τ(D)=−(ln 2)R′(D). The normalized variance tends to a positive limit in bits squared.Lean uses HasDerivAt at the same interior D and establishes convergence for every sequence of maximizing slopes and optimal priors. The limit is ω(τ(D))²/(ln 2)².The fixed-τ quantity is a standard deviation in nats. Squaring and dividing by (ln 2)² gives the variance in bits squared. The derivative supplies the distortion-selected multiplier.

Scope of the conclusion

The numbered result assumes 0<p<1/2. The fixed-distortion conclusion concerns differentiability points with 0<D<1/2. The separate alternating-mask extension in the discussion falls outside this declaration.

Paper theorem

For a stationary symmetric chain with 0 < p < 1/2 and ρ = 1 − 2p, let ωₖ(τ) be the standard deviation in nats of the optimal length-k score divided by √k. There is a continuous function ω∞ on [0,∞) with ω∞(0) = 0 and ω∞(τ) > 0 for every τ > 0. For every k ≥ 1 and τ ≥ 0, |ωₖ(τ) − ω∞(τ)| ≤ (1 + √2)√(ρ/k). At every 0 < D < 1/2 where the limiting rate R is differentiable, put τ(D) = −(ln 2)R′(D). The normalized block variance v_K(D) = V_K(KD)/K converges to [ω∞(τ(D))]²/(ln 2)² > 0.

Paper lines 525–534 (statement). Definitions at 505–515.

Original manuscript passage
\begin{theorem}[A variance limit for symmetric sources]\label{thm:common}
There is a continuous function $\omega_\infty(\tau)$, zero at $\tau=0$ and positive at every $\tau>0$, such that
\begin{equation}
 |\omega_k(\tau)-\omega_\infty(\tau)|\le(1+\sqrt2)\sqrt{\rho/k},\qquad \tau\ge0 .  \label{eq:common}
\end{equation}
For $0<D<1/2$ at which $R(D)$ is differentiable, let $\tau(D)=-(\ln2)R'(D)$. Then
\begin{equation}
 \lim_{K\to\infty}v_K(D)=\frac{\omega_\infty(\tau(D))^2}{(\ln2)^2}>0.  \label{eq:fixed}
\end{equation}
\end{theorem}
\begin{proof}
Applying the one-cut bound \eqref{eq:cut} to two blocks of length $k$ shows that doubling the block changes its normalized standard deviation by at most $\sqrt{\rho/(2k)}$. These errors are summable over successive doublings. Comparing common multiples gives \eqref{eq:common}. Appendix~\ref{app:positive} proves positivity by relating the gain from joining blocks to the covariance of the score with the number of flips.

We now fix the distortion $D$. Its optimizing multiplier can change with block length. Put $J_0=(1-\hx(p))\ln 2$. Applying the boundary comparison in \eqref{eq:bracket} to the penalized objective gives
\begin{equation}
 f(\tau)=\lim_{k\to\infty} f_k(\tau),\qquad 0\le f_k(\tau)-f(\tau)\le J_0/k .
 \label{eq:redun}
\end{equation}
The finite-block multipliers maximize $f_K(\tau)-\tau D$, and $\max_\tau[f(\tau)-\tau D]=R(D)\ln2$. The uniform reproduction prior gives $Z(x)=[(1+e^{-\tau})/2]^K$, hence $f_K(\tau)\le\ln2$. Since the objective at an optimum is at least its value zero at $\tau=0$, every maximizing slope lies in $[0,(\ln2)/D]$. Thus every limit point maximizes $f(\tau)-\tau D$. Differentiability gives a unique maximizer $\tau(D)$, which is positive in the interior by the rate bound in Appendix~\ref{app:positive}. Taking $\tau_K\to \tau(D)$ in the uniform estimate \eqref{eq:common} proves \eqref{eq:fixed}.
\end{proof}

What Lean proved

Mathematical reading of the audited Lean statement

For each symmetric stationary binary chain with flip probability 0<p<1/2 there is a real function ω continuous on [0,∞), with ω(0)=0 and ω(τ)>0 for τ>0. For every τ≥0, block length K=n+1≥1 and prior q minimizing expected score S_q(x)=−ln Σ_y q(y)e^{−τd(x,y)} for Hamming distance d, write ω_K(τ,q)=√Var(S_q)/√K. Then |ω_K(τ,q)−ω(τ)|≤(1+√2)√((1−2p)/K). For every 0<D<1/2, the constrained rates R_K(D) converge to R(D), defined by the limit operator on this sequence. R_K is the infimum of mutual information in bits per symbol over all test channels with expected Hamming distortion ≤KD. If R is differentiable at D with derivative r, set τ_D=−(ln 2)r. Then ω(τ_D)²/(ln 2)²>0. For every K a maximizing slope exists, meaning a maximizer over t≥0 of C_K(t)−tD, where C_K(t) is the infimum of expected score per symbol over priors. For every sequence of such slopes T_K and every sequence of priors q_K optimal at T_K, ω_K(T_K,q_K)²/(ln 2)² tends to ω(τ_D)²/(ln 2)². The slope-existence and selected-variance conclusions both fall under the derivative hypothesis.

lean/BlockHierarchy/VarianceLimit/Statement.lean:40–56 (VarianceLimitStatement), 9–36 (channels, constrained and limiting rates, canonical cost, maximizing slope and normalized deviation). lean/BlockHierarchy/Cut/Statement.lean:8–23, 32–35, 41–51 (source, Hamming distance, score and optimization).

Paper PDF · Lean source and verification evidence

Inspect the exact Lean statement and definitions
BlockHierarchy.VarianceLimit.VarianceLimitStatement · BlockHierarchy/VarianceLimit/Statement.lean L38
/-- Theorem 8 in the manuscript, including positive limiting variance at
differentiability points of the operational constrained rate. -/
def VarianceLimitStatement : Prop :=
  ∀ p : ℝ, 0<p → p<1/2 → ∃ ω : ℝ → ℝ,
    ContinuousOn ω (Set.Ici 0) ∧ ω 0=0 ∧ (∀ τ, 0<τ → 0<ω τ) ∧
    (∀ τ, 0≤τ → ∀ n (q : Word n → ℝ),
      Optimal (mass p n) τ (distance n) q →
      |omegaAt p τ n q-ω τ| ≤ (1+Real.sqrt 2)*Real.sqrt ((1-2*p)/((n:ℝ)+1))) ∧
    ∀ D : ℝ, 0<D → D<1/2 →
      Tendsto (fun n : ℕ => constrainedRate p n D) atTop (𝓝 (rateBits p D)) ∧
      (∀ dR : ℝ, HasDerivAt (rateBits p) dR D →
        let τD := -(Real.log 2)*dR
        0<(ω τD)^2/(Real.log 2)^2 ∧
        (∀ n, ∃ τ, MaximizingSlope p D n τ) ∧
        ∀ (T : ℕ → ℝ) (q : (n : ℕ) → Word n → ℝ),
          (∀ n, MaximizingSlope p D n (T n)) →
          (∀ n, Optimal (mass p n) (T n) (distance n) (q n)) →
          Tendsto (fun n => (omegaAt p (T n) n (q n))^2/(Real.log 2)^2)
            atTop (𝓝 ((ω τD)^2/(Real.log 2)^2)))
BlockHierarchy.Cut.IsPrior · BlockHierarchy/Cut/Statement.lean L41
def IsPrior {X : Type*} [Fintype X] (q : X → ℝ) : Prop := (∀ y, 0 ≤ q y) ∧ (∑ y, q y) = 1
BlockHierarchy.Cut.Optimal · BlockHierarchy/Cut/Statement.lean L49
/-- Global minimization of the finite objective in (canon), measured in nats. -/
def Optimal {X : Type*} [Fintype X] (P : X → ℝ) (τ : ℝ) (d : X → X → ℕ) (q : X → ℝ) : Prop :=
  IsPrior q ∧ ∀ r, IsPrior r → mean P (score τ d q) ≤ mean P (score τ d r)
BlockHierarchy.Cut.Word · BlockHierarchy/Cut/Statement.lean L7
/-- The index counts the internal transitions in a nonempty word. -/
abbrev Word (n : ℕ) := Bits (n+1)
BlockHierarchy.Cut.Z · BlockHierarchy/Cut/Statement.lean L43
noncomputable def Z {X : Type*} [Fintype X] (τ : ℝ) (d : X → X → ℕ) (q : X → ℝ) (x : X) :=
  ∑ y, q y * Real.exp (-τ * (d x y : ℝ))
BlockHierarchy.Cut.distance · BlockHierarchy/Cut/Statement.lean L32
def distance (n : ℕ) : Word n → Word n → ℕ := hamming (n+1)
BlockHierarchy.Cut.mass · BlockHierarchy/Cut/Statement.lean L22
/-- The symmetric binary Markov path starts in the uniform distribution. -/
noncomputable def mass (p : ℝ) (n : ℕ) (x : Word n) := (1/2 : ℝ) * tail p x.1 n x.2
BlockHierarchy.Cut.score · BlockHierarchy/Cut/Statement.lean L46
noncomputable def score {X : Type*} [Fintype X] (τ : ℝ) (d : X → X → ℕ) (q : X → ℝ) (x : X) :=
  -Real.log (Z τ d q x)
BlockHierarchy.Cut.step · BlockHierarchy/Cut/Statement.lean L10
def step (p : ℝ) (x y : Bool) := if x = y then 1-p else p
BlockHierarchy.Cut.tail · BlockHierarchy/Cut/Statement.lean L12
def tail (p : ℝ) (x : Bool) : (n : ℕ) → Bits n → ℝ
  | 0, _ => 1
  | n+1, ys => step p x ys.1 * tail p ys.1 n ys.2
BlockHierarchy.Varentropy.Bits · BlockHierarchy/Varentropy/Statement.lean L9
/-- Binary words of length k, with the oldest symbol first. -/
def Bits : ℕ → Type
  | 0 => Unit
  | k+1 => Bool × Bits k
BlockHierarchy.Varentropy.hamming · BlockHierarchy/Varentropy/Statement.lean L59
def hamming : (k : ℕ) → Bits k → Bits k → ℕ
  | 0, _, _ => 0
  | k+1, x, y => (if x.1=y.1 then 0 else 1)+hamming k x.2 y.2
BlockHierarchy.Varentropy.instFintypeBits · BlockHierarchy/Varentropy/Statement.lean L14
instance instFintypeBits : (k : ℕ) → Fintype (Bits k)
  | 0 => inferInstanceAs (Fintype Unit)
  | k+1 =>
    letI := instFintypeBits k
    inferInstanceAs (Fintype (Bool × Bits k))
BlockHierarchy.VarianceLimit.IsChannel · BlockHierarchy/VarianceLimit/Statement.lean L9
/-- A test channel returns a probability law for each source word. -/
def IsChannel {X : Type*} [Fintype X] (W : X → X → ℝ) : Prop := ∀ x, IsPrior (W x)
BlockHierarchy.VarianceLimit.MaximizingSlope · BlockHierarchy/VarianceLimit/Statement.lean L32
def MaximizingSlope (p D : ℝ) (n : ℕ) (τ : ℝ) : Prop :=
  0≤τ ∧ ∀ t, 0≤t → canonicalCost p n t-t*D ≤ canonicalCost p n τ-τ*D
BlockHierarchy.VarianceLimit.canonicalCost · BlockHierarchy/VarianceLimit/Statement.lean L28
noncomputable def canonicalCost (p : ℝ) (n : ℕ) (τ : ℝ) :=
  sInf {r : ℝ | ∃ q : Word n → ℝ, IsPrior q ∧
    r = mean (mass p n) (score τ (distance n) q) / ((n:ℝ)+1)}
BlockHierarchy.VarianceLimit.constrainedRate · BlockHierarchy/VarianceLimit/Statement.lean L19
/-- The paper's constrained block rate in bits per symbol. Index n means n+1 symbols. -/
noncomputable def constrainedRate (p : ℝ) (n : ℕ) (D : ℝ) :=
  sInf {r : ℝ | ∃ W : Word n → Word n → ℝ, IsChannel W ∧
    totalDistortion (mass p n) (distance n) W ≤ ((n:ℝ)+1)*D ∧
    r=informationNats (mass p n) W / (((n:ℝ)+1)*Real.log 2)}
BlockHierarchy.VarianceLimit.informationNats · BlockHierarchy/VarianceLimit/Statement.lean L12
noncomputable def informationNats {X : Type*} [Fintype X] (P : X → ℝ) (W : X → X → ℝ) :=
  ∑ x, ∑ y, P x * W x y * Real.log (W x y / (∑ u, P u * W u y))
BlockHierarchy.VarianceLimit.omegaAt · BlockHierarchy/VarianceLimit/Statement.lean L35
noncomputable def omegaAt (p τ : ℝ) (n : ℕ) (q : Word n → ℝ) :=
  Real.sqrt (variance (mass p n) (score τ (distance n) q)) / Real.sqrt ((n:ℝ)+1)
BlockHierarchy.VarianceLimit.rateBits · BlockHierarchy/VarianceLimit/Statement.lean L25
/-- A stationary source has the limiting per-symbol rate of its finite blocks. -/
noncomputable def rateBits (p D : ℝ) := limUnder atTop (fun n : ℕ => constrainedRate p n D)
BlockHierarchy.VarianceLimit.totalDistortion · BlockHierarchy/VarianceLimit/Statement.lean L15
noncomputable def totalDistortion {X : Type*} [Fintype X] (P : X → ℝ)
    (d : X → X → ℕ) (W : X → X → ℝ) :=
  ∑ x, ∑ y, P x * W x y * (d x y : ℝ)
BlockHierarchy.mean · ReducedPair/Moments.lean L10
noncomputable def mean {X : Type*} [Fintype X] (P f : X → ℝ) := ∑ x, P x*f x
BlockHierarchy.variance · ReducedPair/Moments.lean L12
noncomputable def variance {X : Type*} [Fintype X] (P f : X → ℝ) :=
  ∑ x, P x*(f x-mean P f)^2

The numbered theorem concerns the persistent chain (0 < p < 1/2). The alternating-mask extension discussed separately in the manuscript is outside this declaration. The distortion-limit conclusion assumes differentiability.

Next action · Author (optional)
Review the comparison whenever convenient.

To respond, ask your agent to open the local review dashboard for this paper.