prioritized_borel_polynomial_ambiguity_excludes_double_cycles
If the number of state walks between any pair of fixed endpoints spelling a given word is polynomially bounded in its length, no two distinct closed walks from the same state spell the same word.
Statement
theorem prioritized_borel_polynomial_ambiguity_excludes_double_cycles {Q : Type} [Fintype Q] (T : Q → Bool → Q → Prop) (C d : ℕ) (hpoly : ∀ p q (w : List Bool), Set.ncard {xs : List (Bool × Q) | Op1385StateWalk T p xs q ∧ xs.map Prod.fst = w} ≤ C * (w.length+1)^d) : ∀ q x y, Op1385StateWalk T q x q → Op1385StateWalk T q y q → x.map Prod.fst = y.map Prod.fst → x = y
- Source
- State projections for arXiv:2611.10136, Conjecture 19. The equal-word double-cycle obstruction is the EDA condition in General Algorithms for Testing the Ambiguity of Finite Automata, https://cs.nyu.edu/~mohri/pub/amb.pdf.
- Verified
- 28 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- prioritized_borel_double_cycle_amplificationTwo different closed walks from one state spelling the same word give 2^n different closed walks spelling a common word of n times the…
- Op1385StateWalkA walk of a fixed binary-labeled state graph records its sequence of public directions and successor states.
- Used by 1
- prioritized_borel_polynomial_state_ambiguity_one_state_reductionFor a three-priority Borel tree game, suppose every state transition is allowed by a fixed finite binary-labelled state graph in which the…
The proof, explained
The proof proceeds by contradiction: assuming there exist two distinct closed walks from the same state that spell the same word, one can choose between them across n iterations to generate 2^n distinct closed walks of length n · |x| all spelling the same amplified word. A helper lemma shows that any polynomial bound C(n · |x| + 1)^d is eventually strictly smaller than 2^n. Instantiating n at such a point gives 2^n ≤ C(n · |x| + 1)^d < 2^n, a contradiction.
There exists an integer n ≥ 1 such that n^d / 2^n < 1 / A, where A = C(L + 1)^d + 1.
We define the positive constant A = C(L + 1)^d + 1. Because n^d / 2^n tends to 0 as n → ∞ for any fixed exponent d and base 2 > 1, the ratio eventually falls below 1 / A. We choose an integer n ≥ 1 in this tail.
uses
tendsto_pow_const_div_const_pow_of_one_lt,Filter.eventually_ge_atToplet A := C*(L+1)^d+1 have hA : 0 < (A : ℝ) := by dsimp [A]; positivity have ht := tendsto_pow_const_div_const_pow_of_one_lt d (r := (2 : ℝ)) (by norm_num) have hev : ∀ᶠ n : ℕ in Filter.atTop, (n : ℝ)^d / (2 : ℝ)^n < 1/(A : ℝ) := ht.eventually_lt_const (by positivity) obtain ⟨n,h,hp⟩ := (hev.and (Filter.eventually_ge_atTop 1)).exists
The chosen n satisfies A · n^d < 2^n, reducing the existence goal to showing C(nL + 1)^d ≤ A · n^d.
Multiplying n^d / 2^n < 1 / A by the positive quantities 2^n and A yields A · n^d < 2^n. By transitivity of inequality, showing C(nL + 1)^d ≤ A · n^d suffices to establish C(nL + 1)^d < 2^n with witness n.
uses
div_lt_div_iff₀,one_mul,mul_comm,lt_of_le_of_lthave he : A*n^d < 2^n := by have hh := (div_lt_div_iff₀ (by positivity : (0:ℝ)<2^n) hA).mp h rw [one_mul, mul_comm] at hh exact_mod_cast hh refine ⟨n,lt_of_le_of_lt ?_ he⟩
The inequality C(nL + 1)^d ≤ A · n^d holds, completing the proof of the helper lemma.
Since n ≥ 1, we have nL + 1 ≤ nL + n = n(L + 1). Raising both sides to the d-th power and multiplying by C yields C(nL + 1)^d ≤ C(n(L + 1))^d = C(L + 1)^d n^d. Since C(L + 1)^d ≤ A = C(L + 1)^d + 1, we obtain C(L + 1)^d n^d ≤ A · n^d.
uses
Nat.mul_add,Nat.mul_one,Nat.mul_le_mul_left,Nat.pow_le_pow_left,mul_pow,Nat.mul_le_mul_righthave hn : n*L+1 ≤ n*(L+1) := by rw [Nat.mul_add,Nat.mul_one]; omega calc C * (n*L+1)^d ≤ C * (n*(L+1))^d := Nat.mul_le_mul_left _ (Nat.pow_le_pow_left hn _) _ = (C*(L+1)^d)*n^d := by rw [mul_pow]; ring _ ≤ A*n^d := Nat.mul_le_mul_right _ (by dsimp [A]; omega)
Assume for contradiction that two distinct closed walks from state q spell the same word.
We introduce the state q, two closed walks x and y from q to q, and the assumption that their projected label sequences are identical while x ≠ y.
classical intro q x y hx hy hw by_contra he
Choose n where the polynomial bound is strictly less than 2^n, and amplify the distinct cycles into 2^n distinct walks spelling a common word w of length n · |x|.
Using the helper lemma, we choose n such that C(n · |x| + 1)^d < 2^n. Double-cycle amplification then constructs a word w of length n · |x| and a finset F of 2^n distinct closed walks from q to q that all spell w.
uses
op1385_polynomial_below_two_pow,prioritized_borel_double_cycle_amplificationobtain ⟨n,hn⟩ := op1385_polynomial_below_two_pow C d x.length obtain ⟨w,F,hlen,hF,hmem⟩ := prioritized_borel_double_cycle_amplification T q x y hx hy hw he n
The set S of all closed walks from q to q spelling w is finite.
Every walk in S spells w and therefore has length equal to |w|. Because the alphabet Bool × Q is finite, the collection of all lists of length |w| is finite, making its subset S finite as well.
uses
List.finite_length_eq,List.length_map,congrArglet S := {xs : List (Bool × Q) | Op1385StateWalk T q xs q ∧ xs.map Prod.fst = w} have hfin : S.Finite := (List.finite_length_eq (Bool × Q) w.length).subset (by intro xs h exact (List.length_map ..).symm.trans (congrArg List.length h.2))
The cardinality of F is at most the cardinality of S, so |F| ≤ |S|.
Every walk in the finset F belongs to S. Since S is finite, the cardinality of F is bounded above by the cardinality of S.
uses
Set.ncard_coe_finset,Set.ncard_le_ncardhave hle : F.card ≤ S.ncard := by rw [← Set.ncard_coe_finset] exact Set.ncard_le_ncard (fun z hz => hmem z hz) hfin
A contradiction is reached: 2^n ≤ C(n · |x| + 1)^d, contradicting the choice of n.
By the polynomial ambiguity hypothesis, |S| ≤ C(|w| + 1)^d. Substituting |F| = 2^n, |w| = n · |x|, and chaining with |F| ≤ |S| yields 2^n ≤ C(n · |x| + 1)^d. This directly contradicts C(n · |x| + 1)^d < 2^n; linear arithmetic (omega) closes the goal.
have hb := hle.trans (hpoly q q w) rw [hlen,hF] at hb omega
tendsto_pow_const_div_const_pow_of_one_lt- For any base r > 1 and natural exponent k, the sequence n^k / r^n converges to 0 as n → ∞.
Filter.eventually_ge_atTop- In a preorder directed at infinity, any element is eventually bounded from below by any fixed constant.
div_lt_div_iff₀- For positive denominators, a / b < c / d if and only if a · d < c · b.
one_mul- Multiplying any element on the left by 1 leaves it unchanged: 1 · a = a.
mul_comm- Multiplication is commutative: a · b = b · a.
lt_of_le_of_lt- Transitivity of weak and strict inequality: if a ≤ b and b < c, then a < c.
Nat.mul_add- Multiplication of natural numbers distributes over addition: n(m + k) = nm + nk.
Nat.mul_one- Multiplying a natural number by 1 yields the number itself: n · 1 = n.
Nat.mul_le_mul_left- Multiplying both sides of a natural inequality by a constant on the left preserves the inequality.
Nat.pow_le_pow_left- Raising both sides of an inequality of natural numbers to a power preserves the inequality.
mul_pow- In a commutative monoid, a power of a product is the product of the powers: (ab)^n = a^n b^n.
Nat.mul_le_mul_right- Multiplying both sides of a natural inequality by a constant on the right preserves the inequality.
op1385_polynomial_below_two_pow- For any natural constants C, d, L, the polynomial C(nL + 1)^d is strictly smaller than 2^n for some natural number n.
prioritized_borel_double_cycle_amplification- Given two distinct closed walks from state q spelling the same word, choosing between them across n cycles produces a word w of length n · |x| and a set of 2^n distinct closed walks from q spelling w.
List.finite_length_eq- Over a finite type, the set of all lists of any fixed length n is finite.
List.length_map- Mapping a function over a list preserves its length.
congrArg- Applying a function to equal arguments produces equal results.
Set.ncard_coe_finset- The set cardinality of the set coercion of a finset equals the finset's cardinality.
Set.ncard_le_ncard- If a set is contained in a finite set, its cardinality is at most the cardinality of the larger set.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
set_option maxHeartbeats 900000private theorem op1385_polynomial_below_two_pow (C d L : ℕ) : ∃ n, C * (n*L+1)^d < 2^n := by let A := C*(L+1)^d+1 have hA : 0 < (A : ℝ) := by dsimp [A]; positivity have ht := tendsto_pow_const_div_const_pow_of_one_lt d (r := (2 : ℝ)) (by norm_num) have hev : ∀ᶠ n : ℕ in Filter.atTop, (n : ℝ)^d / (2 : ℝ)^n < 1/(A : ℝ) := ht.eventually_lt_const (by positivity) obtain ⟨n,h,hp⟩ := (hev.and (Filter.eventually_ge_atTop 1)).exists have he : A*n^d < 2^n := by have hh := (div_lt_div_iff₀ (by positivity : (0:ℝ)<2^n) hA).mp h rw [one_mul, mul_comm] at hh exact_mod_cast hh refine ⟨n,lt_of_le_of_lt ?_ he⟩ have hn : n*L+1 ≤ n*(L+1) := by rw [Nat.mul_add,Nat.mul_one]; omega calc C * (n*L+1)^d ≤ C * (n*(L+1))^d := Nat.mul_le_mul_left _ (Nat.pow_le_pow_left hn _) _ = (C*(L+1)^d)*n^d := by rw [mul_pow]; ring _ ≤ A*n^d := Nat.mul_le_mul_right _ (by dsimp [A]; omega)theorem prioritized_borel_polynomial_ambiguity_excludes_double_cycles {Q : Type} [Fintype Q] (T : Q → Bool → Q → Prop) (C d : ℕ) (hpoly : ∀ p q (w : List Bool), Set.ncard {xs : List (Bool × Q) | Op1385StateWalk T p xs q ∧ xs.map Prod.fst = w} ≤ C * (w.length+1)^d) : ∀ q x y, Op1385StateWalk T q x q → Op1385StateWalk T q y q → x.map Prod.fst = y.map Prod.fst → x = y := by classical intro q x y hx hy hw by_contra he obtain ⟨n,hn⟩ := op1385_polynomial_below_two_pow C d x.length obtain ⟨w,F,hlen,hF,hmem⟩ := prioritized_borel_double_cycle_amplification T q x y hx hy hw he n let S := {xs : List (Bool × Q) | Op1385StateWalk T q xs q ∧ xs.map Prod.fst = w} have hfin : S.Finite := (List.finite_length_eq (Bool × Q) w.length).subset (by intro xs h exact (List.length_map ..).symm.trans (congrArg List.length h.2)) have hle : F.card ≤ S.ncard := by rw [← Set.ncard_coe_finset] exact Set.ncard_le_ncard (fun z hz => hmem z hz) hfin have hb := hle.trans (hpoly q q w) rw [hlen,hF] at hb omega