AFTD Auto-Formalizing Theoretical Domains

prioritized_borel_no_double_cycle_one_state_reduction

theoremverified

A universal one-state memory bound b transfers unchanged to a three-priority game whose state transitions fit a fixed graph without two distinct closed state walks on the same public word from the same start.

Statement

theorem prioritized_borel_no_double_cycle_one_state_reduction {Q : Type} [Fintype Q]
    (G : PrioritizedBorelGame Q 3) (T : Q → Bool → Q → Prop)
    (hT : ∀ e ∈ G.edges, T e.source_state e.dir e.target_state)
    (hcycle : ∀ q xs ys, Op1385StateWalk T q xs q → Op1385StateWalk T q ys q →
      xs.map Prod.fst = ys.map Prod.fst → xs = ys)
    (b : ℕ) (hone : ∀ H : PrioritizedBorelGame Unit 3, HasWinningStrategyInMem H b) :
    HasWinningStrategyInMem G b
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 7
  • prioritized_borel_no_double_cycle_segmentsIf a finite state-transition graph admits at most one closed state walk for each start and public word, segments that stay inside a…
  • prioritized_borel_eventually_returnable_state_edgesOn an infinite walk in a finite binary-labelled state graph, every sufficiently late transition has a return path to its source state.
  • prioritized_borel_eventually_unambiguous_segments_reductionMark edges so that every legal play uses only finitely many marked edges and any unmarked segment has its encoded trace determined by its…
  • TreeGameEdgeA structure TreeGameEdge (Q : Type*) (k : ℕ) representing an edge in a binary tree game arena with state space Q and k priorities, with…
  • HasWinningStrategyInMemThe proposition HasWinningStrategyInMem G m_bound asserts that for a prioritized Borel game G with state space Q and k priorities, there…
  • PrioritizedBorelGameA structure PrioritizedBorelGame (Q : Type*) (k : ℕ) representing a prioritized Borel game with state space Q and k priorities, with…
  • Op1385StateWalkA walk of a fixed binary-labeled state graph records its sequence of public directions and successor states.
Used by 1

The proof, explained

The proof reduces the memory bound for the game G to the one-state case using prioritized_borel_eventually_unambiguous_segments_reduction. A 'cut' edge is defined as a transition whose target state cannot return to its source state. Because T has no double cycles on the same word, segments between cut edges have unambiguous traces (prioritized_borel_no_double_cycle_segments). Finally, because the state space Q is finite, any infinite play eventually traverses only returnable transitions (prioritized_borel_eventually_returnable_state_edges), meaning cut edges occur only finitely often.

  1. It suffices to show that any valid play in G eventually stops encountering cut edges.

    We define an edge e to be a 'cut' if there is no path in T returning from its target state to its source state. We then apply prioritized_borel_eventually_unambiguous_segments_reduction, which transfers the memory bound b from one-state games (hone) to G. The requirement that segment traces between cuts are unambiguous is discharged by prioritized_borel_no_double_cycle_segments, which applies because T has no two distinct cycles on the same word (hcycle). This leaves the remaining obligation to show that any valid play in G encounters only finitely many cut edges.

    lines 8–10

    uses prioritized_borel_eventually_unambiguous_segments_reduction, prioritized_borel_no_double_cycle_segments

      let cut (e : TreeGameEdge Q 3) := ¬∃ xs, Op1385StateWalk T e.target_state xs e.source_state
      apply prioritized_borel_eventually_unambiguous_segments_reduction G cut
        (prioritized_borel_no_double_cycle_segments G T hT hcycle) _ b hone
  2. For any valid play π, there is an index N after which every edge transition is returnable in T.

    Let π be an arbitrary valid play in G, whose edges lie in G and whose state transitions are continuous. By prioritized_borel_eventually_returnable_state_edges, because the state space Q is finite and all edges follow the transition relation T, any infinite walk eventually stays within recurrent components: there exists a threshold N such that for all n ≥ N, there is a walk in T from the target state of π(n) back to its source state.

    lines 11–12

    uses prioritized_borel_eventually_returnable_state_edges

      intro π hl _ hn
      obtain ⟨N,hN⟩ := prioritized_borel_eventually_returnable_state_edges T π (fun n => hT _ (hl n)) (fun n => (hn n).2)
  3. For all n ≥ N, the edge π(n) is not a cut edge, showing that cut edges occur only finitely often.

    By definition, an edge is a cut if and only if no walk in T returns from its target state to its source state. For each n ≥ N, the return walk provided by hN directly refutes this condition, proving ¬cut(π(n)) for all n ≥ N and closing the final goal.

    line 13

      exact ⟨N,fun n hn hcut => hcut (hN n hn)⟩
prioritized_borel_eventually_unambiguous_segments_reduction
For a 3-priority Borel game on a finite state space and a cut predicate on edges, if segments between cut edges have unique traces and every valid play eventually encounters no cut edges, then a universal memory bound b for one-state games transfers to the full game.
prioritized_borel_no_double_cycle_segments
If a game's edges follow a transition relation T with no two distinct cycles on the same sequence of directions from the same state, then segments between cut edges (edges whose target state cannot return to their source state) have unique traces.
prioritized_borel_eventually_returnable_state_edges
In an infinite sequence of edges over a finite state space following valid transitions with connected states, there exists an index N after which every edge transition can be reversed by a walk in T from the target state back to the source state.

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

theorem prioritized_borel_no_double_cycle_one_state_reduction {Q : Type} [Fintype Q]    (G : PrioritizedBorelGame Q 3) (T : Q → Bool → Q → Prop)    (hT : ∀ e ∈ G.edges, T e.source_state e.dir e.target_state)    (hcycle : ∀ q xs ys, Op1385StateWalk T q xs q → Op1385StateWalk T q ys q →      xs.map Prod.fst = ys.map Prod.fst → xs = ys)    (b : ℕ) (hone : ∀ H : PrioritizedBorelGame Unit 3, HasWinningStrategyInMem H b) :    HasWinningStrategyInMem G b := by  let cut (e : TreeGameEdge Q 3) := ¬∃ xs, Op1385StateWalk T e.target_state xs e.source_state  apply prioritized_borel_eventually_unambiguous_segments_reduction G cut    (prioritized_borel_no_double_cycle_segments G T hT hcycle) _ b hone  intro π hl _ hn  obtain ⟨N,hN⟩ := prioritized_borel_eventually_returnable_state_edges T π (fun n => hT _ (hl n)) (fun n => (hn n).2)  exact ⟨N,fun n hn hcut => hcut (hN n hn)⟩
See it in the graphDiscuss this resultChallenge it