Proof Atlas.

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

Three-symbol rate and variance

Automated comparison found no discrepancy

How the statements compare

The two threshold values, surviving classes, and operating formulas agree. The apparent change of notation comes from spreading each class mass uniformly across its words.

Case-by-case comparison
CasePaperChecked Lean statementWhy
Support and endpoints
not classified
The support sizes are 8, 6, and 2, with losses at d₁ and d₂.Before d₁ all words have positive mass. At d₁ the alternating pair has zero mass. At d₂ the four one-flip words have zero mass.The class sizes are 2 constants, 4 one-flip words and 2 alternating words. Removing these classes in that order gives 8 → 6 → 2 with the stated endpoint conventions.
Middle and final branches
not classified
The two reduced rate formulas use their branch-specific Z values, with u determined by the distortion equation.Lean uses M(u) = 3D in the middle and L(u) = 3D on the constant branch. Both functions are strictly increasing and the statement gives a unique u in the corresponding interval.S = s₀+s₁ = 1−p², so the two forms of the middle equation agree. Clearing denominators yields the two cubic equations on the stated domain.
Variance
not classified
The reduced variance is the pairwise sum of squared log-ratios. On the last branch it is s₀(1−s₀)[log₂(α/β)]².Lean also gives the variance as the weighted variance of the three log-normalizers, with normalizers (α,β,β) on the last branch.The last two classes have equal scores. Combining their weights gives 1−s₀ and the two-point variance in the manuscript.

Scope of the conclusion

The numbered result uses a symmetric persistent chain, 0 < p < 1/2, with D < 1/2. The first rate formula extends to d₁ even though the support loses words there.

Paper theorem

For a stationary symmetric chain with 0 < p < 1/2, the constant, one-flip, and alternating classes have probabilities (s₀,s₁,s₂) = ((1 − p)², 2p(1 − p), p²). Put S = s₀ + s₁, d₁ = (1 − √(1 − 4p²))/2, u₁ = d₁/(1 − d₁), u₂ = 2p/(1 + √(1 − 4p²)), and F(u) = 3s₀u³/(1 + u³) + (1 − s₀)(1 + u/(1 + u)). The second threshold is d₂ = F(u₂)/3. All eight words are active for 0 ≤ D < d₁. The two alternating words leave at d₁, and the four one-flip words leave at d₂, leaving only the constants up to D < 1/2. For 0 ≤ D ≤ d₁, R₃(3D) = 1 + 2h₂(p) − 3h₂(D) and V₃(3D) = 2ν(p), where ν(p) = p(1 − p)[log₂((1 − p)/p)]². For d₁ < D < d₂ take the unique u in (u₁,u₂) with 3D = s₂ + u/(1 + u) + Su(1 + 2u)/(1 + u + u²). Set H = (1 + u)(1 + u + u²)/2 and β = (u + u²)/2. The three normalizers are Z = (s₀H/S, s₁H/(2S), β). For d₂ ≤ D < 1/2 the two constants have equal reproduction mass. The unique u in [u₂,1) satisfies 3D = F(u), and Z = (α,β,β), where α = (1 + u³)/2. On both reduced branches R₃(3D) = 3D log₂ u − Σᵢ sᵢ log₂ Zᵢ and V₃(3D) is the sum of sᵢsⱼ[log₂(Zᵢ/Zⱼ)]² over i < j. On the final branch V₃(3D) = s₀(1 − s₀)[log₂(α/β)]². Each reduced distortion equation simplifies to a cubic, and D increases strictly with u on each branch.

Paper lines 287–310 (statement). Source probabilities and variance formula at 262–276 and 285–286.

Original manuscript passage
\begin{theorem}[Three-symbol rate and variance]\label{thm:three}
The support has eight words for $0\le D<D_{\rm FS}(3)$, six for $D_{\rm FS}(3)\le D<D_2$, and two for $D_2\le D<1/2$. The alternating words leave at $D_{\rm FS}(3)$ and the one-flip words at $D_2$, where
\begin{align}
 D_{\rm FS}(3)&=\frac{1-\sqrt{1-4p^2}}2,\qquad u_1=\frac{D_{\rm FS}(3)}{1-D_{\rm FS}(3)},\qquad
 u_2=\frac{2p}{1+\sqrt{1-4p^2}},                               \label{eq:d3a}\\
 D_2&=\frac13\left[s_0\frac{3u_2^3}{1+u_2^3}
              +(1-s_0)\left(1+\frac{u_2}{1+u_2}\right)\right].  \label{eq:d3b}
\end{align}
\normalfont
For $0\le D\le D_{\rm FS}(3)$ the two quantities are $R_3=1+2\hx(p)-3\hx(D)$ and $V_3=2\nu(p)$. On the other two branches, with $s=(s_0,s_1,s_2)$, they are
\[
 R_3(3D)=3D\log_2u-\sum_{i=0}^2s_i\log_2Z_i,\qquad V_3(3D)=\Vfun(s,Z).
\]
For $D_{\rm FS}(3)<D<D_2$, solve for the unique $u\in(u_1,u_2)$ satisfying
\begin{equation}
 3D=s_2+\frac{u}{1+u}+S_{01}\frac{u(1+2u)}{1+u+u^2}.          \label{eq:3mid}
\end{equation}
Put $\beta_u=(u+u^2)/2$ and $H_u=(1+u)(1+u+u^2)/2$. The three normalizers in class order are $(s_0 H_u/S_{01},\,s_1 H_u/(2S_{01}),\,\beta_u)$.

For $D_2\le D<1/2$, the two constants have equal reproduction mass. A constant input is at distances $0,3$ from the two outputs, and every other input is at distances $1,2$. Thus $\alpha_u=(1+u^3)/2$ is the normalizer for constant inputs and $\beta_u$ for the others. The unique $u\in[u_2,1)$ satisfies
\[
 3D=s_0\frac{3u^3}{1+u^3}+(1-s_0)\left(1+\frac{u}{1+u}\right).
\]
In particular $V_3(3D)=s_0(1-s_0)\log_2^2(\alpha_u/\beta_u)$. Clearing denominators gives a cubic on each branch. The distortion increases strictly with $u$ on that branch. \end{theorem}

What Lean proved

Mathematical reading of the audited Lean statement

For the stationary symmetric binary Markov triple with flip probability 0<p<1/2, group words by their number of adjacent flips (0,1,2). The classes have sizes (2,4,2) and source weights s=(s₀,s₁,s₂)=((1−p)²,2p(1−p),p²). In the formulas below, class masses are spread uniformly within a class. Write α=(1+u³)/2, β=(u+u²)/2, S=s₀+s₁ and h for binary entropy in bits. Define the middle and constant-word cost functions by M(u)=p²+u/(1+u)+(1−p²)u(1+2u)/(1+u+u²) and L(u)=3s₀u³/(1+u³)+(1−s₀)(1+u/(1+u)). Put d₁=(1−√(1−4p²))/2, u₁=d₁/(1−d₁), u₂=2p/(1+√(1−4p²)) and d₂=L(u₂)/3. Then 0<d₁<d₂<1/2 and 0<u₁<u₂<1. Both costs are strictly increasing on u≥0. For any real D and u≥0, 3D=M(u) is equivalent to (3D−p²)(1+u)(1+u+u²)=u(1+u+u²)+(1−p²)u(1+2u)(1+u). Likewise, 3D=L(u) is equivalent to 3D(1+u³)=3s₀u³+(1−s₀)(1+2u)(1−u+u²). For each branch, with source law P and Hamming distance d, Z(x)=ΣᵧQ(y)u^{d(x,y)}. The joint P(x)Q(y)u^{d(x,y)}/Z(x) has expected cost exactly 3D and minimizes mutual information over all joints with source P and cost ≤3D. Every minimizer has reproduction marginal Q. R is the achieved information in bits per triple and V=Var_P[3D log₂u−log₂Z(X)]. • For 0≤D≤d₁, take u=D/(1−D), f(t)=(t−D(1−D))/(1−2D)², and class masses (f(s₀),2f(p(1−p)),f(p²)). All eight words have positive mass below d₁. At d₁ exactly the six words with fewer than two flips remain. Z(x)=(1+u)³P(x), R=1+2h(p)−3h(D), and V=2p(1−p)[log₂((1−p)/p)]². • For d₁<D<d₂ there is a unique u∈(u₁,u₂) with M(u)=3D. Put H=(1+u)(1+u+u²)/2 and t=(pH/(1+p)−β)/(α−β). The class masses (1−2t,2t,0) give positive mass to precisely the six words with fewer than two flips. The class normalizers are z=(s₀H/S,s₁H/(2S),β). Then R=3D log₂u−Σᵢsᵢlog₂zᵢ and V=Var_s[−log₂zᵢ]. • For d₂≤D<1/2 there is a unique u∈[u₂,1) with L(u)=3D. Only 000 and 111 have mass, each 1/2. Use z=(α,β,β) in the preceding rate and variance formulas. Here V=s₀(1−s₀)[log₂(α/β)]². The additional display holds for all real p,D,u and every positive triple z. The weighted variance of 3D log₂u−log₂z on the eight words is Σᵢ<ⱼ sᵢsⱼ[log₂(zᵢ/zⱼ)]². For these unrestricted parameters, variance means the finite weighted central second moment in Lean, and log₂ uses Lean’s total real logarithm.

BlockHierarchy/PairVariance/ThreeStatement.lean lines 7 (ThreeFullStatement); BlockHierarchy/Three/PaperStatement.lean lines 13–69 (PaperPoint, supportSize, ThreeSymbolStatement); BlockHierarchy/PairVariance/Statement.lean lines 9–16 (pairSum, threeWeights, ThreeDisplayStatement); BlockHierarchy/Three/Classes.lean lines 8–25,46–57 (classes, chain and normalizer); BlockHierarchy/Three/Thresholds.lean lines 6–8 and BlockHierarchy/Three/Inverse.lean lines 8 (thresholds); BlockHierarchy/Three/Distortion.lean lines 5–9 (cost functions); BlockHierarchy/Three/FullWeights.lean lines 6–8 and BlockHierarchy/Three/MiddleWeights.lean lines 5–9 (priors); BlockHierarchy/Three/Entropy.lean lines 6–7 and BlockHierarchy/Three/OperatingPoint.lean lines 43–48,62–63 (entropy and variance); BlockHierarchy/FiniteRD.lean lines 8–18 (Optimal, joint)

Paper PDF · Lean source and verification evidence

Inspect the exact Lean statement and definitions
BlockHierarchy.PairVariance.ThreeFullStatement · BlockHierarchy/PairVariance/ThreeStatement.lean L6
/-- The complete numbered theorem together with its displayed pairwise-variance formula. -/
def ThreeFullStatement : Prop := Three.ThreeSymbolStatement ∧ ThreeDisplayStatement
BlockHierarchy.Channel.cost · FiniteChannel.lean L17
def cost (d J : X → Y → ℝ) : ℝ := ∑ x, ∑ y, J x y * d x y
BlockHierarchy.Channel.info · FiniteChannel.lean L13
/-- Mutual information in nats, expressed in terms of the joint mass and marginals. -/
noncomputable def info (P : X → ℝ) (q : Y → ℝ) (J : X → Y → ℝ) : ℝ :=
  ∑ x, ∑ y, J x y * (Real.log (J x y) - Real.log (P x) - Real.log (q y))
BlockHierarchy.FiniteRD.Optimal · BlockHierarchy/FiniteRD.lean L8
def Optimal (P : X → ℝ) (q : Y → ℝ) (d : X → Y → ℕ) (J : X → Y → ℝ) (b : ℝ) : Prop :=
  (∀ x y, 0 ≤ J x y) ∧ (∀ x, ∑ y, J x y = P x) ∧ (∀ y, ∑ x, J x y = q y) ∧
  Channel.cost (fun x y => (d x y : ℝ)) J ≤ b ∧
  ∀ t L, (∀ x y, 0 ≤ L x y) → (∀ x, ∑ y, L x y=P x) → (∀ y, ∑ x, L x y=t y) →
    Channel.cost (fun x y => (d x y : ℝ)) L ≤ b → Channel.info P q J ≤ Channel.info P t L
BlockHierarchy.FiniteRD.joint · BlockHierarchy/FiniteRD.lean L17
noncomputable def joint (P Z : X → ℝ) (q : Y → ℝ) (d : X → Y → ℕ) (u : ℝ) (x : X) (y : Y) :=
  q y * kernel P Z d u x y
BlockHierarchy.FiniteRD.kernel · BlockHierarchy/FiniteRD.lean L14
noncomputable def kernel (P Z : X → ℝ) (d : X → Y → ℕ) (u : ℝ) (x : X) (y : Y) :=
  P x/Z x * u^(d x y)
BlockHierarchy.PairVariance.ThreeDisplayStatement · BlockHierarchy/PairVariance/Statement.lean L14
def ThreeDisplayStatement : Prop :=
  ∀ (p D u : ℝ) (Z : Fin 3 → ℝ), (∀ i, 0 < Z i) →
    Three.tilted p (3*D) u (Three.classValue (Z 0) (Z 1) (Z 2))=pairSum (threeWeights p) Z
BlockHierarchy.PairVariance.pairSum · BlockHierarchy/PairVariance/Statement.lean L7
/-- Equation (pairvar) in arXiv:2603.07435v4. Each unordered pair of distinct
classes occurs once, with the square of its log-ratio in bits. -/
noncomputable def pairSum {I : Type*} [Fintype I] [LinearOrder I]
    (s Z : I → ℝ) := ∑ i, ∑ j ∈ Finset.univ.filter (i < ·), s i*s j*(logTwo (Z i/Z j))^2
BlockHierarchy.PairVariance.threeWeights · BlockHierarchy/PairVariance/Statement.lean L12
noncomputable def threeWeights (p : ℝ) : Fin 3 → ℝ := ![(1-p)^2,2*p*(1-p),p^2]
BlockHierarchy.Three.PaperPoint · BlockHierarchy/Three/PaperStatement.lean L10
/-- A single Markov block, total Hamming cost, and information in bits.
The optimizing joint is compared against every joint law with the given
source marginal and distortion budget. Every optimizing marginal is identified. -/
def PaperPoint (p D u : ℝ) (q z : Word → ℝ) (R V : ℝ) : Prop :=
  let J := FiniteRD.joint (markov p) z q hamming u
  (∀ x, normalizer q u x=z x) ∧
  Channel.cost (fun x y => (hamming x y : ℝ)) J = 3*D ∧
  FiniteRD.Optimal (markov p) q hamming J (3*D) ∧
  (∀ t L, FiniteRD.Optimal (markov p) t hamming L (3*D) → t=q) ∧
  Channel.info (markov p) q J / Real.log 2 = R ∧ tilted p (3*D) u z=V
BlockHierarchy.Three.ThreeSymbolStatement · BlockHierarchy/Three/PaperStatement.lean L24
/-- Theorem 3 of arXiv:2603.07435v4, from the lossless point up to, but
excluding, distortion one half. The two transition points belong to the
six- and two-word supports respectively. -/
def ThreeSymbolStatement : Prop :=
  ∀ p : ℝ, 0 < p → p < 1/2 →
    let s0 := (1-p)^2
    let s1 := 2*p*(1-p)
    let S := s0+s1
    (0 < criticalD p ∧ criticalD p < secondD p ∧ secondD p < 1/2 ∧
      0 < firstU p ∧ firstU p < secondU p ∧ secondU p < 1) ∧
    (∀ a b : ℝ, 0 ≤ a → a < b →
      middleCost p a < middleCost p b ∧ constantCost p a < constantCost p b) ∧
    (∀ D u : ℝ, 0 ≤ u →
      (3*D=middleCost p u ↔ (3*D-p^2)*(1+u)*(1+u+u^2) =
        u*(1+u+u^2)+(1-p^2)*u*(1+2*u)*(1+u)) ∧
      (3*D=constantCost p u ↔ 3*D*(1+u^3) =
        s0*3*u^3 + (1-s0)*(1+2*u)*(1-u+u^2))) ∧
    (∀ D : ℝ, 0 ≤ D → D ≤ criticalD p →
      let u := D/(1-D)
      let q := fullPrior p D
      (∀ y, 0 < q y ↔ flips y < 2 ∨ D < criticalD p) ∧
      supportSize q = (if D < criticalD p then 8 else 6) ∧
      PaperPoint p D u q (fun x => (1+u)^3*markov p x)
        (1+2*binaryEntropy p-3*binaryEntropy D) (2*nu p)) ∧
    (∀ D : ℝ, criticalD p < D → D < secondD p →
      ∃ u ∈ Set.Ioo (firstU p) (secondU p), middleCost p u=3*D ∧
        (∀ v ∈ Set.Ioo (firstU p) (secondU p), middleCost p v=3*D → v=u) ∧
        let q := sixPrior p u
        let a := s0*middleH u/S
        let b := s1*middleH u/(2*S)
        let c := beta u
        (∀ y, 0 < q y ↔ flips y < 2) ∧ supportSize q=6 ∧
        PaperPoint p D u q (classValue a b c)
          (3*D*logTwo u-classMean p (logTwo a) (logTwo b) (logTwo c))
          (classVariance p (-logTwo a) (-logTwo b) (-logTwo c))) ∧
    (∀ D : ℝ, secondD p ≤ D → D < 1/2 →
      ∃ u ∈ Set.Ico (secondU p) 1, constantCost p u=3*D ∧
        (∀ v ∈ Set.Ico (secondU p) 1, constantCost p v=3*D → v=u) ∧
        let q := prior 1 0 0
        let a := alpha u
        let b := beta u
        (∀ y, q y=(if flips y=0 then 1/2 else 0)) ∧ supportSize q=2 ∧
        PaperPoint p D u q (classValue a b b)
          (3*D*logTwo u-classMean p (logTwo a) (logTwo b) (logTwo b))
          (classVariance p (-logTwo a) (-logTwo b) (-logTwo b)) ∧
        tilted p (3*D) u (classValue a b b)=s0*(1-s0)*logTwo (a/b)^2)
BlockHierarchy.Three.Word · BlockHierarchy/Three/Classes.lean L8
abbrev Word := Bool × Bool × Bool
BlockHierarchy.Three.alpha · BlockHierarchy/Three/Classes.lean L53
noncomputable def alpha (u : ℝ) := (1+u^3)/2
BlockHierarchy.Three.beta · BlockHierarchy/Three/Classes.lean L54
noncomputable def beta (u : ℝ) := (u+u^2)/2
BlockHierarchy.Three.binaryEntropy · BlockHierarchy/Three/Entropy.lean L6
noncomputable def binaryEntropy (p : ℝ) := -(p*logTwo p+(1-p)*logTwo (1-p))
BlockHierarchy.Three.classMean · BlockHierarchy/Three/OperatingPoint.lean L43
noncomputable def classMean (p a b c : ℝ) :=
  (1-p)^2*a + 2*p*(1-p)*b+p^2*c
BlockHierarchy.Three.classValue · BlockHierarchy/Three/Classes.lean L17
/-- A value per word, indexed by the number of adjacent flips. -/
def classValue (a b c : ℝ) (x : Word) : ℝ :=
  if x.1 = x.2.1 then (if x.2.1 = x.2.2 then a else b)
  else (if x.2.1 = x.2.2 then b else c)
BlockHierarchy.Three.classVariance · BlockHierarchy/Three/OperatingPoint.lean L46
noncomputable def classVariance (p a b c : ℝ) :=
  let m := classMean p a b c
  classMean p ((a-m)^2) ((b-m)^2) ((c-m)^2)
BlockHierarchy.Three.constantCost · BlockHierarchy/Three/Distortion.lean L8
noncomputable def constantCost (p u : ℝ) :=
  (1-p)^2*(3*u^3/(1+u^3)) + (1-(1-p)^2)*(1+u/(1+u))
BlockHierarchy.Three.criticalD · BlockHierarchy/Three/Thresholds.lean L6
noncomputable def criticalD (p : ℝ) := (1-Real.sqrt (1-4*p^2))/2
BlockHierarchy.Three.firstU · BlockHierarchy/Three/Thresholds.lean L7
noncomputable def firstU (p : ℝ) := criticalD p / (1-criticalD p)
BlockHierarchy.Three.flips · BlockHierarchy/Three/Classes.lean L10
def flips (x : Word) : ℕ :=
  (if x.1 = x.2.1 then 0 else 1) + (if x.2.1 = x.2.2 then 0 else 1)
BlockHierarchy.Three.fullPrior · BlockHierarchy/Three/FullWeights.lean L7
noncomputable def fullPrior (p D : ℝ) :=
  prior (fullWeight D ((1-p)^2)) (2*fullWeight D (p*(1-p))) (fullWeight D (p^2))
BlockHierarchy.Three.fullWeight · BlockHierarchy/Three/FullWeights.lean L6
noncomputable def fullWeight (D s : ℝ) := (s-D*(1-D))/(1-2*D)^2
BlockHierarchy.Three.hamming · BlockHierarchy/Three/Classes.lean L13
def hamming (x y : Word) : ℕ :=
  (if x.1 = y.1 then 0 else 1) + (if x.2.1 = y.2.1 then 0 else 1) +
  (if x.2.2 = y.2.2 then 0 else 1)
BlockHierarchy.Three.markov · BlockHierarchy/Three/Classes.lean L24
noncomputable def markov (p : ℝ) (x : Word) : ℝ :=
  (1/2) * step p x.1 x.2.1 * step p x.2.1 x.2.2
BlockHierarchy.Three.middleCost · BlockHierarchy/Three/Distortion.lean L5
noncomputable def middleCost (p u : ℝ) :=
  p^2 + u/(1+u) + (1-p^2)*(u*(1+2*u)/(1+u+u^2))
BlockHierarchy.Three.middleH · BlockHierarchy/Three/MiddleWeights.lean L5
noncomputable def middleH (u : ℝ) := (1+u)*(1+u+u^2)/2
BlockHierarchy.Three.normalizer · BlockHierarchy/Three/Classes.lean L56
noncomputable def normalizer (q : Word → ℝ) (u : ℝ) (x : Word) : ℝ :=
  ∑ y, q y * u^(hamming x y)
BlockHierarchy.Three.nu · BlockHierarchy/Three/Entropy.lean L7
noncomputable def nu (p : ℝ) := p*(1-p)*logTwo ((1-p)/p)^2
BlockHierarchy.Three.pairWeight · BlockHierarchy/Three/MiddleWeights.lean L6
noncomputable def pairWeight (p u : ℝ) := (p*middleH u/(1+p)-beta u)/(alpha u-beta u)
BlockHierarchy.Three.prior · BlockHierarchy/Three/Classes.lean L46
noncomputable def prior (w0 w1 w2 : ℝ) := classValue (w0/2) (w1/4) (w2/2)
BlockHierarchy.Three.secondD · BlockHierarchy/Three/Inverse.lean L8
noncomputable def secondD (p : ℝ) := constantCost p (secondU p)/3
BlockHierarchy.Three.secondU · BlockHierarchy/Three/Thresholds.lean L8
noncomputable def secondU (p : ℝ) := 2*p/(1+Real.sqrt (1-4*p^2))
BlockHierarchy.Three.sixPrior · BlockHierarchy/Three/MiddleWeights.lean L7
noncomputable def sixPrior (p u : ℝ) := prior (1-2*pairWeight p u) (2*pairWeight p u) 0
BlockHierarchy.Three.step · BlockHierarchy/Three/Classes.lean L22
def step (p : ℝ) (a b : Bool) := if a = b then 1-p else p
BlockHierarchy.Three.supportSize · BlockHierarchy/Three/PaperStatement.lean L21
noncomputable def supportSize (q : Word → ℝ) : ℕ :=
  (Finset.univ.filter (fun y => 0 < q y)).card
BlockHierarchy.Three.tilted · BlockHierarchy/Three/OperatingPoint.lean L62
noncomputable def tilted (p b u : ℝ) (z : Word → ℝ) :=
  variance (markov p) (fun x => b*logTwo u-logTwo (z x))
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

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

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