Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma E.3 — binary DFA representation of a transition-dyadic chain

Proved
FSS23105365.chain_to_dfa

by YY · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

finite-staterandomized-ac0samplingzenodo-23105365-appendix-e

For every natural number qqq and every Markov chain MMM on the state set {0,…,q−1}\{0,\ldots,q-1\}{0,…,q−1}, with nonnegative real initial weights summing to one and nonnegative real transition weights whose every row sums to one, assume that each initial weight and every transition weight equals a/2ba/2^ba/2b for some natural numbers a,ba,ba,b that may depend on the weight. There exist a natural number rrr, a deterministic binary automaton BBB with state set {0,…,r−1}\{0,\ldots,r-1\}{0,…,r−1}, a specified initial state, a transition function for each state and Boolean input, and an accepting set, positive natural numbers v,sv,sv,s, and a function φ\varphiφ from the states of BBB to the states of MMM, such that for every natural number nnn and every sequence γ=(γ0,…,γn)\gamma=(\gamma_0,\ldots,\gamma_n)γ=(γ0​,…,γn​) of states of MMM, the fraction of all 2v+ns2^{v+ns}2v+ns binary words xxx of length v+nsv+nsv+ns satisfying φ(B’s state after reading the first v+si bits of x)=γi\varphi(B\text{'s state after reading the first }v+si\text{ bits of }x)=\gamma_iφ(B’s state after reading the first v+si bits of x)=γi​ for every i=0,…,ni=0,\ldots,ni=0,…,n is exactly Minitial(γ0)∏i=0n−1Mtransition(γi,γi+1)M_{\mathrm{initial}}(\gamma_0)\prod_{i=0}^{n-1}M_{\mathrm{transition}}(\gamma_i,\gamma_{i+1})Minitial​(γ0​)∏i=0n−1​Mtransition​(γi​,γi+1​). The witnesses r,B,v,s,φr,B,v,s,\varphir,B,v,s,φ are chosen once for all nnn and all sequences γ\gammaγ, including sequences of probability zero. The accepting set of BBB is not used in the equality. When n=0n=0n=0, the equality concerns the distribution of the projected state after vvv bits and its right-hand side is the initial weight of γ0\gamma_0γ0​. Although positivity of qqq and rrr is not an explicit separate requirement, the normalized initial distribution of MMM rules out q=0q=0q=0, and the specified initial state of BBB rules out r=0r=0r=0. No numerical bounds on r,v,sr,v,sr,v,s or algorithm for obtaining the witnesses are asserted.

Preamble
import Definitions.Def_FSS23105365_DFARun
set_option autoImplicit false
open FSS23105365
Formal statement
namespace FSS23105365
theorem chain_to_dfa {q : ℕ} (M : MarkovChain q)
    (hM : TransitionDyadic M) :
    ∃ r : ℕ, ∃ B : BinaryDFA r, ∃ v s : ℕ, 0 < v ∧ 0 < s ∧
      ∃ φ : Fin r → Fin q, ∀ n : ℕ, ∀ γ : Path q n,
        (Fintype.card {x : Bits (v + n * s) // B.sampledPath φ v s x = γ} : ℝ) /
          2 ^ (v + n * s) = pathLaw M γ := by sorry
end FSS23105365
Source
Jiarui Zhang, Chengwei Liang, Haozhe Jiang, Binhang Yuan, Jingzhao Zhang. Revision Provably Reduces Sequential Computation in Diffusion Language Models. https://doi.org/10.5281/zenodo.23105365, Appendix E. Lemma E.3; the equality of complete projected trajectories at fixed block boundaries.
Human review
  • Endorsed by Shuze Chen · Oct 10, 2026

    Confirmed by the moderator at approval.

  • Endorsed by YY · Oct 10, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me