AFTD Auto-Formalizing Theoretical Domains

prioritized_borel_three_priority_linear_depth_test_iff

theoremverifiedoriginal

Fix a universe u. The following two existence assertions are equivalent. First, there exists a computable function f from natural numbers to natural numbers such that for every finite type Q in universe u and every three-priority game G on Q, HasWinningStrategyInMem G (f (Fintype.card Q)) holds. Second, there exists a computable function g from natural numbers to natural numbers such that for every natural n and every three-priority game H on Fin n, the following implication holds. If for every fixed public node v the total number of distinct legal state sequences of H along v, combining all terminal states as in op1385PublicStateHistories H v, is at most length(v)+1, then HasWinningStrategyInMem H (g n) holds.

Statement

theorem prioritized_borel_three_priority_linear_depth_test_iff.{u} :
    (∃ bound : ℕ → ℕ, Computable bound ∧ ∀ (Q : Type u) [Fintype Q] (G : PrioritizedBorelGame Q 3),
        HasWinningStrategyInMem G (bound (Fintype.card Q))) ↔
    (∃ bound : ℕ → ℕ, Computable bound ∧ ∀ n (H : PrioritizedBorelGame (Fin n) 3),
      (∀ v, (op1385PublicStateHistories H v).ncard ≤ v.length+1) →
        HasWinningStrategyInMem H (bound n))
Related work
arXiv:2611.10136, Conjecture 19. Sparse public clock for OP-1385.
Verified
29 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 10
  • prioritized_borel_state_reindex_pullbackTransport the state of each edge along an equivalence of state types. A finite-memory winning strategy in the renamed game gives one with…
  • prioritized_borel_sparse_clock_total_history_boundFix a finite state type Q, a three-priority game G, a clock base B greater than one and at least the cardinality of Q, and a finite binary…
  • prioritized_borel_sparse_clock_strategy_pullbackAny winning strategy in the padded game pulls back to a winning strategy for the same player using the very same memory type in the…
  • PrioritizedBorelGameA structure PrioritizedBorelGame (Q : Type*) (k : ℕ) representing a prioritized Borel game with state space Q and k priorities, with…
  • FiniteMemoryStrategyA structure FiniteMemoryStrategy {Q : Type*} {k : ℕ} (G : PrioritizedBorelGame Q k) (pl : BorelGamePlayer) (M : Type*) representing a…
  • TreeGameEdgeA structure TreeGameEdge (Q : Type*) (k : ℕ) representing an edge in a binary tree game arena with state space Q and k priorities, with…
  • op1385SparseClockArenaThe original game with a public exponential clock. Each block consists of forced zero-priority waiting moves followed by one original…
  • HasWinningStrategyInMemThe proposition HasWinningStrategyInMem G m_bound asserts that for a prioritized Borel game G with state space Q and k priorities, there…
  • PrioritizedBorelStrategyWinsA strategy wins for its player if every legal play from the initial position consistent with its memory update and choices is won by that…
  • BorelGamePlayerThe two players in a prioritized Borel game, Eve and Adam.

Read back from the Lean

The theorem asserts an equivalence (↔) between two statements about 3-priority prioritized Borel games on finite state spaces: The left-hand side asserts: There exists a computable function bound : ℕ → ℕ such that for every finite type Q : Type u and every prioritized Borel game G with state space Q and 3 priorities, at least one player (Eve or Adam) has a winning strategy in G using a finite memory of size at most bound (|Q|). The right-hand side asserts: There exists a computable function bound : ℕ → ℕ such that for every natural number n and every prioritized Borel game H with state space Fin n and 3 priorities, if for every node v, the set op1385PublicStateHistories H v has cardinality (ncard) at most v.length + 1, then at least one player has a winning strategy in H using a finite memory of size at most bound n.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

The proof, explained

The equivalence is proved by showing that the same computable bound works in both directions. In the forward direction, any game on Fin(n) can be universe-lifted to Type u without changing its cardinality, so the universal bound yields a winning strategy that pulls back to Fin(n). In the reverse direction, any game on a finite type Q in Type u is reindexed to Fin(|Q|) and converted into a sparse clock arena with clock parameter B = |Q| + 2; this arena satisfies the linear public history condition, and its winning strategy pulls back to the original game with the same memory bound.

  1. The equivalence reduces to proving each implication separately.

    The constructor tactic splits the if-and-only-if statement into the forward implication (a universal bound implies a bound for linear-history test games) and the reverse implication (a bound for linear-history test games implies a universal bound).

    line 7

      constructor
  2. In the forward direction, it suffices to show that the assumed bound f applies to an arbitrary game on Fin(n).

    We assume the existence of a computable universal bound f. Supplying f as the candidate bound, we introduce an arbitrary natural number n and game H on Fin(n), setting aside the linear history growth hypothesis which is not needed.

    lines 8–10

      · rintro ⟨f,hf,hall⟩
        refine ⟨f,hf,?_⟩
        intro n H _
  3. H has a winning strategy with memory bounded by f(n).

    We lift the state space Fin(n) from Type 0 to Type u via Equiv.ulift.symm and apply the universal hypothesis to the reindexed game. Because the universe lift preserves cardinality, the memory bound is f(n). Finally, prioritized_borel_state_reindex_pullback pulls this winning strategy back along the equivalence to the original game H.

    lines 11–15

    uses Equiv.ulift.symm, prioritized_borel_state_reindex_pullback

        let F : Fin n ≃ ULift.{u} (Fin n) := Equiv.ulift.symm
        have hu := hall _ (op1385ReindexGame H F)
        have hh : Fintype.card (ULift.{u} (Fin n)) = n := by simp
        rw [hh] at hu
        exact prioritized_borel_state_reindex_pullback H F _ hu
  4. In the reverse direction, it suffices to show that the linear-history bound f applies to any game on any finite type Q in Type u.

    We assume a computable bound f for games on Fin(n) satisfying the linear history condition. We supply f as the candidate bound and introduce an arbitrary finite type Q in Type u and an arbitrary 3-priority game G on Q.

    lines 16–18

      · rintro ⟨f,hf,hsmall⟩
        refine ⟨f,hf,?_⟩
        intro Q inst G
  5. The sparse clock arena of the reindexed game satisfies the linear history bound and thus admits a winning strategy with memory bounded by f(|Q|).

    We reindex G along the equivalence F : Q ≃ Fin(|Q|) from Fintype.equivFin to obtain a game D on Fin(|Q|). Choosing the clock parameter B = |Q| + 2 ensures 1 < B and |Fin(|Q|)| ≤ B. By prioritized_borel_sparse_clock_total_history_bound, the sparse clock arena of D with parameter B satisfies the linear public history condition. Applying the hypothesis hsmall to this arena yields a winning strategy with memory bounded by f(|Q|).

    lines 19–24

    uses Fintype.equivFin, prioritized_borel_sparse_clock_total_history_bound

        let F := Fintype.equivFin Q
        let D := op1385ReindexGame G F
        let B := Fintype.card Q+2
        have hB : 1 < B := by dsimp [B]; omega
        have hcard : Fintype.card (Fin (Fintype.card Q)) ≤ B := by simp [B]
        have hw := hsmall _ (op1385SparseClockArena D B) (prioritized_borel_sparse_clock_total_history_bound D hB hcard)
  6. G has a winning strategy with memory bounded by f(|Q|).

    Unpacking the winning strategy σ on the sparse clock arena, prioritized_borel_sparse_clock_strategy_pullback pulls σ back to a winning strategy τ for D using the exact same finite memory type. Then prioritized_borel_state_reindex_pullback pulls τ back along F to G, completing the reverse implication.

    lines 25–27

    uses prioritized_borel_sparse_clock_strategy_pullback, prioritized_borel_state_reindex_pullback

        obtain ⟨pl,M,hfin,hm,σ,hs⟩ := hw
        obtain ⟨τ,hτ⟩ := prioritized_borel_sparse_clock_strategy_pullback D hB pl σ hs
        exact prioritized_borel_state_reindex_pullback G F _ ⟨pl,M,hfin,hm,τ,hτ⟩
Equiv.ulift.symm
The canonical equivalence between any type α and its universe lift ULift(α).
Fintype.equivFin
The canonical equivalence between any finite type Q and Fin(|Q|).
prioritized_borel_sparse_clock_total_history_bound
For any 3-priority game G on a finite type Q and any clock bound B with 1 < B and |Q| ≤ B, the sparse clock arena of G has at most |v| + 1 public state histories along any public node v.
prioritized_borel_sparse_clock_strategy_pullback
Any winning finite-memory strategy in the sparse clock arena of G (with clock bound B > 1) can be pulled back to a winning finite-memory strategy in G using the same memory type.
prioritized_borel_state_reindex_pullback
A winning strategy with memory bound b in a reindexed game op1385ReindexGame(G, F) can be pulled back along the state equivalence F to a winning strategy in memory bound b for the original game G.

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_three_priority_linear_depth_test_iff.{u} :    (∃ bound : ℕ → ℕ, Computable bound ∧ ∀ (Q : Type u) [Fintype Q] (G : PrioritizedBorelGame Q 3),        HasWinningStrategyInMem G (bound (Fintype.card Q))) ↔    (∃ bound : ℕ → ℕ, Computable bound ∧ ∀ n (H : PrioritizedBorelGame (Fin n) 3),      (∀ v, (op1385PublicStateHistories H v).ncard ≤ v.length+1) →        HasWinningStrategyInMem H (bound n)) := by  constructor  · rintro ⟨f,hf,hall⟩    refine ⟨f,hf,?_⟩    intro n H _    let F : Fin n ≃ ULift.{u} (Fin n) := Equiv.ulift.symm    have hu := hall _ (op1385ReindexGame H F)    have hh : Fintype.card (ULift.{u} (Fin n)) = n := by simp    rw [hh] at hu    exact prioritized_borel_state_reindex_pullback H F _ hu  · rintro ⟨f,hf,hsmall⟩    refine ⟨f,hf,?_⟩    intro Q inst G    let F := Fintype.equivFin Q    let D := op1385ReindexGame G F    let B := Fintype.card Q+2    have hB : 1 < B := by dsimp [B]; omega    have hcard : Fintype.card (Fin (Fintype.card Q)) ≤ B := by simp [B]    have hw := hsmall _ (op1385SparseClockArena D B) (prioritized_borel_sparse_clock_total_history_bound D hB hcard)    obtain ⟨pl,M,hfin,hm,σ,hs⟩ := hw    obtain ⟨τ,hτ⟩ := prioritized_borel_sparse_clock_strategy_pullback D hB pl σ hs    exact prioritized_borel_state_reindex_pullback G F _ ⟨pl,M,hfin,hm,τ,hτ⟩
See it in the graphDiscuss this resultChallenge it