Proof Atlas.

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

Finite-block varentropy

Interpretation unresolved

How the statements compare

The finite-block varentropy and its asymptotics agree term by term. One scope question remains when identifying varentropy with tilted variance at the zero-rate endpoint.

Case-by-case comparison
CasePaperChecked Lean statementWhy
Finite block
not classified
For N=K−1 transitions, the formula adds the variance of the initial information, N edge variances and two lag sums.Lean takes n=K−1. Its first sum uses i=h−1 for the covariance between edges; the other uses i=h for the initial-state contribution.Under i=h−1, N−h becomes n−i−1 and ρ^(h−1) becomes ρⁱ. At K=1 both sums are empty on both sides.
Limit and first correction
not classified
V_K/K tends to s²+2γ/(1−ρ); a c*/K correction leaves order |ρ|^(K−1)/K for 0<|ρ|<1.Lean proves the same limit and correction for blockVariance at n+1.Substituting K=n+1 gives identical powers and denominators. These varentropy statements have no distortion parameter.
Boundary of the tilted-variance identity
not classified
Theorem 6 invokes the tight entropy branch. The surrounding text distinguishes the backward-channel slope from the zero slope chosen at the biased zero-rate endpoint.BackwardPoint assumes 0 ≤ D < min(π₀,π₁). The implication identifying tiltedVariance with blockVariance therefore excludes D=D₀.For independent Bernoulli(1/4) symbols at D=1/4 the backward slope gives (3/16)(log₂ 3)² per symbol; the assigned zero slope gives zero. Choosing a slope changes the quantity.

Scope of the conclusion

The endpoint question affects the tilted-variance interpretation. It leaves the checked finite sum and limit for the source self-information intact.

Paper theorem

For a stationary binary chain with 0 < a,b < 1, arbitrary bias, and ρ = 1 − a − b, choose a distortion on the tight entropy branch at each length K. Write B₀ for the self-information of the initial state and Aₜ for −log₂ of the transition probability from Xₜ to Xₜ₊₁. Put N = K − 1, s² = Var(A₁), γ = Cov(A₁,A₂), and κ = Cov(B₀,A₁). Block self-information is B₀ + A₁ + ⋯ + A_N. Its variance equals the block tilted-information variance V_K. The exact formula is V_K = Var(B₀) + Ns² + 2γ Σ[h=1,…,N−1] (N − h)ρ^(h−1) + 2κ Σ[h=0,…,N−1] ρ^h, with empty sums zero. Along every such sequence of distortions, V_K/K tends to σ² = s² + 2γ/(1 − ρ). For 0 < |ρ| < 1 the first correction is V_K/K = σ² + c*/K + O(|ρ|^(K−1)/K), where c* = Var(B₀) − s² + 2κ/(1 − ρ) − 2γ[1/(1 − ρ) + 1/(1 − ρ)²].

Paper lines 444–457 (statement). Supporting passages at 121–126, 168–179, 442–443, 458–460.

Original manuscript passage
\begin{theorem}[Finite-block varentropy]\label{thm:varentropy}
Write $B_0=-\log_2\pi_{X_1}$ and $A_t=-\log_2P_{X_tX_{t+1}}$. Then block self-information is $B_0+\sum_{t=1}^{K-1}A_t$. Define $N=K-1$, $s^2=\Var A_1$, $\gamma=\Cov(A_1,A_2)$, and $\kappa=\Cov(B_0,A_1)$. The block variance $V_K=V_K(KD)$ satisfies
\begin{equation}
 V_K=\Var B_0+N s^2+
       2\gamma\sum_{h=1}^{N-1}(N-h)\rho^{h-1}
       +2\kappa\sum_{h=0}^{N-1}\rho^h .                              \label{eq:varent}
\end{equation}
Empty sums vanish. In particular, along any sequence of distortions on the full-support branches, $V_K/K\to\sigma_X^2=s^2+2\gamma/(1-\rho)$. For $0<|\rho|<1$ the first correction follows by summing geometric series, giving
\[
 \frac{V_K}{K}=\sigma_X^2+\frac{c_*}{K}+O\!\left(\frac{|\rho|^{K-1}}K\right),\qquad
 c_*=\Var B_0-s^2+\frac{2\kappa}{1-\rho}
 -2\gamma\left(\frac1{1-\rho}+\frac1{(1-\rho)^2}\right).
\]
\end{theorem}
\begin{proof}
For a two-state stationary chain, conditioning on the last state of the first edge and applying $P^h$ gives
$\Cov(A_1,A_{1+h})=\rho^{h-1}\gamma$ for $h\ge1$ and $\Cov(B_0,A_{1+h})=\rho^h \kappa$ for $h\ge0$. Expanding the variance of the sum gives \eqref{eq:varent}; summing the two finite geometric series gives the displayed correction. For $\rho=0$ the bits are independent and the normalized varentropy is constant.
\end{proof}

What Lean proved

Mathematical reading of the audited Lean statement

Take any stationary binary Markov chain with state probabilities π=(p,q), p,q>0, p+q=1, and transition probabilities a=P(1|0), b=P(0|1) in (0,1), with pa=qb. Write ρ=1−a−b, K=n+1, P_K for the path law, B=−log₂π(X₁), and A_i=−log₂P(X_{i+1}|X_i). For every n≥0 and every word, its surprisal is B+Σ_{i=1}ⁿ A_i. Put v_B=Var(B), v_A=Var(A₁), γ=Cov(A₁,A₂), and κ=Cov(B,A₁). The block surprisal variance V_K equals v_B+n v_A+2γ Σ_{i=0}^{n−2}(n−i−1)ρⁱ+2κ Σ_{i=0}^{n−1}ρⁱ, with empty sums zero. For 0≤D<min(p,q), every reproduction prior r whose independent Bernoulli(D) flips give P_K has tilted-score variance V_K. The score is K D log₂u−log₂Σ_y r(y)u^{d(x,y)}, with u=D/(1−D) and Hamming distance d (Lean uses log₂0=0 at D=0). The assertion is conditional on such a prior. As n→∞, V_K/K tends to v∞=v_A+2γ/(1−ρ). If 0<|ρ|<1, then V_K/K−v∞−c/K=O(|ρ|ⁿ/K), where c=v_B−v_A+2κ/(1−ρ)−2γ[(1−ρ)⁻¹+(1−ρ)⁻²].

lean/BlockHierarchy/Varentropy/Statement.lean:85–93 (FiniteBlockVarentropyStatement), 20–57 (path law, scores, moments and constants), 59–83 (backward condition, tilted score and finite formula). lean/FirstChangeStatement.lean:8–23 (BinaryModel and persistence). lean/ReducedPair/Moments.lean:8–13 (base-two logs and variance).

Paper PDF · Lean source and verification evidence

Inspect the exact Lean statement and definitions
BlockHierarchy.Varentropy.FiniteBlockVarentropyStatement · BlockHierarchy/Varentropy/Statement.lean L85
def FiniteBlockVarentropyStatement : Prop :=
  ∀ m : BinaryModel,
    (∀ n (w : Bits (n+1)), -logTwo (pathLaw m n w)=B m w.1+edgeSum m w.1 n w.2) ∧
    (∀ n, blockVariance m n=finiteFormula m n) ∧
    (∀ n D q, BackwardPoint m n D q → tiltedVariance m n D q=blockVariance m n) ∧
    Tendsto (fun n : ℕ => blockVariance m n/((n:ℝ)+1)) atTop (𝓝 (limitingVariance m)) ∧
    (0 < |m.persistence| → |m.persistence| < 1 →
      (fun n : ℕ => blockVariance m n/((n:ℝ)+1)-limitingVariance m-correction m/((n:ℝ)+1))
        =O[atTop] (fun n : ℕ => |m.persistence|^n/((n:ℝ)+1)))
BlockHierarchy.BinaryModel · FirstChangeStatement.lean L6
/-- Stationary probabilities and transition probabilities in Section 2.
Flow balance means that the two off-diagonal word probabilities coincide. -/
structure BinaryModel where
  p : ℝ
  q : ℝ
  a : ℝ
  b : ℝ
  ppos : 0 < p
  qpos : 0 < q
  normalized : p+q=1
  apos : 0 < a
  alt : a < 1
  bpos : 0 < b
  blt : b < 1
  balanced : p*a=q*b
BlockHierarchy.BinaryModel.a · FirstChangeStatement.lean L11
  a : ℝ
BlockHierarchy.BinaryModel.b · FirstChangeStatement.lean L12
  b : ℝ
BlockHierarchy.BinaryModel.mk · FirstChangeStatement.lean L8
structure BinaryModel where
BlockHierarchy.BinaryModel.p · FirstChangeStatement.lean L9
  p : ℝ
BlockHierarchy.BinaryModel.persistence · FirstChangeStatement.lean L23
def persistence (m : BinaryModel) := 1-m.a-m.b
BlockHierarchy.BinaryModel.q · FirstChangeStatement.lean L10
  q : ℝ
BlockHierarchy.Varentropy.A · BlockHierarchy/Varentropy/Statement.lean L36
noncomputable def A (m : BinaryModel) (x y : Bool) := -logTwo (transition m x y)
BlockHierarchy.Varentropy.B · BlockHierarchy/Varentropy/Statement.lean L35
noncomputable def B (m : BinaryModel) (x : Bool) := -logTwo (pi m x)
BlockHierarchy.Varentropy.BackwardPoint · BlockHierarchy/Varentropy/Statement.lean L66
/-- On the backward-channel branch, pushing the reproduction prior through the
independent Bernoulli(D) errors gives the Markov source. This also describes
the lossless endpoint. The stated domain uses the paper's nonzero-rate slope
convention and omits its biased zero-rate endpoint. -/
def BackwardPoint (m : BinaryModel) (n : ℕ) (D : ℝ) (q : Bits (n+1) → ℝ) : Prop :=
  0 ≤ D ∧ D < min m.p m.q ∧ (∀ y, 0 ≤ q y) ∧ (∑ y, q y)=1 ∧
  ∀ x, normalizer (D/(1-D)) q x / (1+D/(1-D))^(n+1)=pathLaw m n x
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.blockVariance · BlockHierarchy/Varentropy/Statement.lean L52
noncomputable def blockVariance (m : BinaryModel) (n : ℕ) :=
  variance (pathLaw m n) (fun w => -logTwo (pathLaw m n w))
BlockHierarchy.Varentropy.correction · BlockHierarchy/Varentropy/Statement.lean L55
noncomputable def correction (m : BinaryModel) :=
  varB m-edgeVar m+2*kappa m/(1-m.persistence)-
    2*gamma m*(1/(1-m.persistence)+1/(1-m.persistence)^2)
BlockHierarchy.Varentropy.covariance · BlockHierarchy/Varentropy/Statement.lean L42
noncomputable def covariance {X : Type*} [Fintype X] (P f g : X → ℝ) :=
  ∑ x, P x * (f x-mean P f) * (g x-mean P g)
BlockHierarchy.Varentropy.edgeSum · BlockHierarchy/Varentropy/Statement.lean L38
noncomputable def edgeSum (m : BinaryModel) (x : Bool) : (n : ℕ) → Bits n → ℝ
  | 0, _ => 0
  | n+1, ys => A m x ys.1 + edgeSum m ys.1 n ys.2
BlockHierarchy.Varentropy.edgeVar · BlockHierarchy/Varentropy/Statement.lean L46
noncomputable def edgeVar (m : BinaryModel) :=
  variance (pathLaw m 1) (fun w => A m w.1 w.2.1)
BlockHierarchy.Varentropy.finiteFormula · BlockHierarchy/Varentropy/Statement.lean L78
/-- Equation (varent) of arXiv:2603.07435v4. The lag index i represents h-1
for pairs of edges and h for pairs involving the initial state. -/
noncomputable def finiteFormula (m : BinaryModel) (n : ℕ) :=
  varB m + (n:ℝ)*edgeVar m +
    2*gamma m*(∑ i ∈ Finset.range (n-1), ((n:ℝ)-(i:ℝ)-1)*m.persistence^i) +
    2*kappa m*(∑ i ∈ Finset.range n, m.persistence^i)
BlockHierarchy.Varentropy.gamma · BlockHierarchy/Varentropy/Statement.lean L48
noncomputable def gamma (m : BinaryModel) := covariance (pathLaw m 2)
  (fun w => A m w.1 w.2.1) (fun w => A m w.2.1 w.2.2.1)
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.Varentropy.kappa · BlockHierarchy/Varentropy/Statement.lean L50
noncomputable def kappa (m : BinaryModel) := covariance (pathLaw m 1)
  (fun w => B m w.1) (fun w => A m w.1 w.2.1)
BlockHierarchy.Varentropy.limitingVariance · BlockHierarchy/Varentropy/Statement.lean L54
noncomputable def limitingVariance (m : BinaryModel) := edgeVar m+2*gamma m/(1-m.persistence)
BlockHierarchy.Varentropy.normalizer · BlockHierarchy/Varentropy/Statement.lean L63
noncomputable def normalizer {k : ℕ} (u : ℝ) (q : Bits k → ℝ) (x : Bits k) :=
  ∑ y, q y*u^hamming k x y
BlockHierarchy.Varentropy.pathLaw · BlockHierarchy/Varentropy/Statement.lean L32
noncomputable def pathLaw (m : BinaryModel) (n : ℕ) (ys : Bits (n+1)) :=
  pi m ys.1 * tailLaw m ys.1 n ys.2
BlockHierarchy.Varentropy.pi · BlockHierarchy/Varentropy/Statement.lean L20
def pi (m : BinaryModel) (x : Bool) := if x then m.q else m.p
BlockHierarchy.Varentropy.tailLaw · BlockHierarchy/Varentropy/Statement.lean L28
noncomputable def tailLaw (m : BinaryModel) (x : Bool) : (n : ℕ) → Bits n → ℝ
  | 0, _ => 1
  | n+1, ys => transition m x ys.1 * tailLaw m ys.1 n ys.2
BlockHierarchy.Varentropy.tiltedVariance · BlockHierarchy/Varentropy/Statement.lean L74
noncomputable def tiltedVariance (m : BinaryModel) (n : ℕ) (D : ℝ) (q : Bits (n+1) → ℝ) :=
  let u := D/(1-D)
  variance (pathLaw m n) (fun x => ((n:ℝ)+1)*D*logTwo u-logTwo (normalizer u q x))
BlockHierarchy.Varentropy.transition · BlockHierarchy/Varentropy/Statement.lean L21
def transition (m : BinaryModel) (x y : Bool) : ℝ :=
  match x,y with
  | false,false => 1-m.a
  | false,true => m.a
  | true,false => m.b
  | true,true => 1-m.b
BlockHierarchy.Varentropy.varB · BlockHierarchy/Varentropy/Statement.lean L45
noncomputable def varB (m : BinaryModel) := variance (pi m) (B m)
BlockHierarchy.logTwo · ReducedPair/Moments.lean L8
noncomputable def logTwo (p : ℝ) := Real.log p / Real.log 2
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 finite-sum variance formula and its limit agree. The question concerns the tilted variance at the zero-rate threshold. Lean assumes D is strictly below it. Paper line 179 gives an example: for independent Bernoulli(1/4) symbols at D = 1/4, the per-symbol variance is (3/16)(log₂ 3)² at the backward-channel slope and zero at the paper’s assigned slope. The checked declaration does not establish the backward-slope endpoint.

Next action · Proof agent
Reconcile the scope of Theorem 6 with the slope convention at paper lines 149 and 179. If the backward-slope endpoint is included, prove that case explicitly in Lean. If the numbered claim is confined to the interior and lossless endpoint, document that reading with the source passage and repeat the comparison.

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