Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Finite parity games and deterministic strategy improvement

Definition
friedmann_parity

by kmehltretter82 · Nov 2, 2026 · Mathlib 0df444a (Lean v4.33.1)

algorithm-analysisoliver-friedmanntheoretical-computer-science

Finite positional parity games, ultimately periodic plays, three-component valuations, minima over legal counterstrategies, local and global improvement, completed executions, and constrained lower-bound propositions. No witness family or long execution is assumed.

Definition code
import Mathlib.Data.Fintype.Pi
import Mathlib.Data.Fintype.Prod
import Mathlib.Data.Finset.Lattice.Fold
import Mathlib.Order.ConditionallyCompleteLattice.Basic
import Mathlib.Logic.Function.Iterate

set_option autoImplicit false

/-!
Finite parity games and the Vöge–Jurdziński valuation, as in Friedmann,
LMCS 2011, §§2–4. `false` denotes player 0. Functions representing strategies
are ignored at the other player's vertices. Definitions contain no open proofs.
-/
namespace FriedmannParity

structure Game (V : Type) where
  owner : V → Bool
  priority : V → ℕ
  edge : V → V → Prop

variable {V : Type} [Fintype V] [DecidableEq V]

def WellFormed (G : Game V) : Prop :=
  (∀ v, ∃ w, G.edge v w) ∧ Function.Injective G.priority

def Legal (G : Game V) (player : Bool) (σ : V → V) : Prop :=
  ∀ v, G.owner v = player → G.edge v (σ v)

def play (G : Game V) (σ τ : V → V) (v : V) : ℕ → V :=
  fun t => (fun w => if G.owner w = false then σ w else τ w)^[t] v

noncomputable def recurring (π : ℕ → V) : Finset V := by
  classical
  exact Finset.univ.filter (fun v => ∀ t, ∃ k, t ≤ k ∧ π k = v)

structure Valuation (V : Type) where
  cyclePriority : ℕ
  path : Finset V
  length : ℕ
  deriving DecidableEq

/- The finite orbit always has a recurring vertex. Thus `sup` and the least index have
their ordinary intended meanings on finite games; the valuation milestone makes
this obligation explicit. Empty V has no starting vertex. -/
noncomputable def playValue (G : Game V) (σ τ : V → V) (v : V) : Valuation V := by
  classical
  let π := play G σ τ v
  let p := (recurring π).sup G.priority
  let w := if h : ∃ w, w ∈ recurring π ∧ G.priority w = p
    then Classical.choose h else v
  let k := if h : ∃ k : ℕ, π k = w then Nat.find h else 0
  exact ⟨p, ((Finset.range k).image π).filter (fun w => p < G.priority w), k⟩

def reward (p : ℕ) : ℤ := if p % 2 = 0 then (p : ℤ) else -(p : ℤ)

def SetLT (G : Game V) (A B : Finset V) : Prop :=
  ∃ w, w ∈ (A \ B) ∪ (B \ A) ∧
    (∀ u ∈ (A \ B) ∪ (B \ A), G.priority u ≤ G.priority w) ∧
    ((G.priority w % 2 = 0 ∧ w ∈ B) ∨ (G.priority w % 2 = 1 ∧ w ∈ A))

def ValueLT (G : Game V) (a b : Valuation V) : Prop :=
  reward a.cyclePriority < reward b.cyclePriority ∨
  (a.cyclePriority = b.cyclePriority ∧ SetLT G a.path b.path) ∨
  (a.cyclePriority = b.cyclePriority ∧ a.path = b.path ∧
    ((a.cyclePriority % 2 = 1 ∧ a.length < b.length) ∨
      (a.cyclePriority % 2 = 0 ∧ b.length < a.length)))

def ValueLE (G : Game V) (a b : Valuation V) : Prop := a = b ∨ ValueLT G a b

def IsMinimum (G : Game V) (σ : V → V) (v : V) (a : Valuation V) : Prop :=
  (∃ τ, Legal G true τ ∧ playValue G σ τ v = a) ∧
  ∀ τ, Legal G true τ → ValueLE G a (playValue G σ τ v)

/- A constrained minimum of actual legal counterstrategy valuations, never an
arbitrary valuation parameter. The fallback is irrelevant once existence is
proved for the finite, total, injective-priority model. -/
noncomputable def value (G : Game V) (σ : V → V) (v : V) : Valuation V :=
  by
    classical
    exact if h : ∃ a, IsMinimum G σ v a then Classical.choose h else ⟨0, ∅, 0⟩

def OptimalCounterstrategy (G : Game V) (σ τ : V → V) : Prop :=
  Legal G true τ ∧ ∀ v τ', Legal G true τ' →
    ValueLE G (playValue G σ τ v) (playValue G σ τ' v)

def Improving (G : Game V) (σ : V → V) (v w : V) : Prop :=
  G.owner v = false ∧ G.edge v w ∧
    ValueLT G (value G σ (σ v)) (value G σ w)

def Improvable (G : Game V) (σ : V → V) : Prop := ∃ v w, Improving G σ v w

def Allowed (G : Game V) (σ σ' : V → V) : Prop :=
  Legal G false σ' ∧ ∀ v, G.owner v = false →
    ValueLE G (value G σ (σ v)) (value G σ (σ' v))

def Improvement (G : Game V) (σ σ' : V → V) : Prop :=
  Allowed G σ σ' ∧
    (Improvable G σ → ∃ v, G.owner v = false ∧
      ValueLT G (value G σ (σ v)) (value G σ (σ' v)))

def LocalStep (G : Game V) (σ σ' : V → V) : Prop :=
  Improvement G σ σ' ∧ ∀ v w, G.owner v = false → G.edge v w →
    ValueLE G (value G σ w) (value G σ (σ' v))

def GlobalStep (G : Game V) (σ σ' : V → V) : Prop :=
  Improvement G σ σ' ∧ ∀ ρ, Allowed G σ ρ → ∀ v,
    ValueLE G (value G ρ v) (value G σ' v)

def CompleteRun (G : Game V) (step : (V → V) → (V → V) → Prop)
    (ι : V → V) (T : ℕ) (run : ℕ → (V → V)) : Prop :=
  run 0 = ι ∧ (∀ t, t ≤ T → Legal G false (run t)) ∧
    (∀ t, t < T → Improvable G (run t) ∧ step (run t) (run (t + 1))) ∧
    ¬ Improvable G (run T)

noncomputable def edgeCount (G : Game V) : ℕ := by
  classical
  exact (Finset.univ.filter (fun e : V × V => G.edge e.1 e.2)).card

def HardInstance (G : Game V) (ι : V → V)
    (step : (V → V) → (V → V) → Prop) (iterations : ℕ) : Prop :=
  WellFormed G ∧ Legal G false ι ∧
    (∃ T run, CompleteRun G step ι T run) ∧
    ∀ T run, CompleteRun G step ι T run → iterations ≤ T

/- Both families, including their size bound, are conclusions to be proved.
No field or hypothesis supplies a long execution. The constant is uniform in n.
Size is edges, as in the source, rather than vertices or numeric bit length. -/
def ExponentialLocal : Prop :=
  ∃ C : ℕ, 0 < C ∧ ∀ n : ℕ, 0 < n →
    ∃ N : ℕ, ∃ G : Game (Fin N), ∃ ι : Fin N → Fin N,
      edgeCount G ≤ C * n ∧
      (∀ v, G.priority v ≤ C * n) ∧ HardInstance G ι (LocalStep G) (2 ^ n)

def ExponentialGlobal : Prop :=
  ∃ C : ℕ, 0 < C ∧ ∀ n : ℕ, 0 < n →
    ∃ N : ℕ, ∃ G : Game (Fin N), ∃ ι : Fin N → Fin N,
      edgeCount G ≤ C * n ∧
      (∀ v, G.priority v ≤ C * n) ∧ HardInstance G ι (GlobalStep G) (2 ^ n)

def Binary (G : Game V) : Prop :=
  ∀ v, ∃ a b, ∀ w, G.edge v w → w = a ∨ w = b

def ExponentialBinary : Prop :=
  ∃ C : ℕ, 0 < C ∧ ∀ global : Bool, ∀ n : ℕ, 0 < n →
    ∃ N : ℕ, ∃ G : Game (Fin N), ∃ ι : Fin N → Fin N,
      Binary G ∧ edgeCount G ≤ C * n ∧
      (∀ v, G.priority v ≤ C * n) ∧
      HardInstance G ι (if global then GlobalStep G else LocalStep G) (2 ^ n)

def Wins (G : Game V) (player : Bool) (σ : V → V) (v : V) : Prop :=
  Legal G player σ ∧ ∀ τ, Legal G (!player) τ →
    (if player = false then (playValue G σ τ v).cyclePriority % 2 = 0
      else (playValue G τ σ v).cyclePriority % 2 = 1)

def WinningRegion (G : Game V) (player : Bool) : Set V :=
  {v | ∃ σ, Wins G player σ v}

def IsSinkGame (G : Game V) (ι : V → V) (sink : V) : Prop :=
  WellFormed G ∧ Legal G false ι ∧
    G.edge sink sink ∧ G.priority sink = 1 ∧
    (∀ v, v ≠ sink → 1 < G.priority v) ∧
    (∀ v, Relation.ReflTransGen G.edge v sink) ∧
    ∀ σ, Legal G false σ →
      (∀ v, ValueLE G (value G ι v) (value G σ v)) →
      ∀ v, (value G σ v).cyclePriority = 1

end FriedmannParity
Source
Friedmann, LMCS2011, §§2–8; https://arxiv.org/abs/1106.0778
Read-back

What the Lean code literally says, in plain math · Codex independent auditor (model identifier unavailable)

Game. For any type VVV, a game is a triple of functions assigning to each v∈Vv\in Vv∈V an owner in {false,true}\{\mathrm{false},\mathrm{true}\}{false,true} and a natural-number priority, together with an edge relation on VVV. The structure alone requires neither a finite vertex set nor outgoing edges nor distinct priorities.

WellFormed. For any type VVV, a game GGG is well formed exactly when every vertex has an outgoing edge and the priority function is injective. Both requirements are empty when VVV is empty.

Legal. For any type VVV, a game GGG, a Boolean player bbb, and a total function σ:V→V\sigma:V\to Vσ:V→V, legality means that GGG has an edge from vvv to σ(v)\sigma(v)σ(v) for every vertex vvv whose owner is bbb. Values of σ\sigmaσ at the other player's vertices are unrestricted. No well-formedness assumption is imposed.

play. For any type VVV, a game GGG, total functions σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V, and a vertex vvv, the play at time t∈Nt\in\mathbb Nt∈N is the ttt-fold iterate at vvv of the function choosing σ(w)\sigma(w)σ(w) at false-owned vertices and τ(w)\tau(w)τ(w) at true-owned vertices. Time zero is vvv. The definition does not require either function to follow game edges.

recurring. For a finite type VVV and any sequence π:N→V\pi:\mathbb N\to Vπ:N→V, the recurring set is {v∈V:∀t∈N, ∃k∈N, k≥t and πk=v}\{v\in V:\forall t\in\mathbb N,\ \exists k\in\mathbb N,\ k\ge t\ \text{and}\ \pi_k=v\}{v∈V:∀t∈N, ∃k∈N, k≥t and πk​=v}, represented as a finite set.

Valuation. For any type VVV, a valuation is an unconstrained triple (p,S,k)(p,S,k)(p,S,k) consisting of a natural-number cycle priority ppp, a finite set SSS of vertices of type VVV, and a natural-number length kkk. The fields are not required to arise from an actual play.

playValue. For a finite type VVV with decidable equality, a game GGG, total functions σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V, and v∈Vv\in Vv∈V, For strategies σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V and a start vvv, the play is πt=Ft(v)\pi_t=F^t(v)πt​=Ft(v), where F(w)=σ(w)F(w)=\sigma(w)F(w)=σ(w) when the owner is false and F(w)=τ(w)F(w)=\tau(w)F(w)=τ(w) otherwise. Let RRR be the set of vertices occurring at arbitrarily late times and p=max⁡{priority⁡(w):w∈R}p=\max\{\operatorname{priority}(w):w\in R\}p=max{priority(w):w∈R}, with empty maximum 000. Choose an arbitrary vertex w∈Rw\in Rw∈R of priority ppp if one exists, and otherwise set w=vw=vw=v. Let kkk be the least time with πk=w\pi_k=wπk​=w, with fallback k=0k=0k=0 if that vertex never occurs. The play valuation is (p,S,k)(p,S,k)(p,S,k), where S={πt:0≤t<k, priority⁡(πt)>p}S=\{\pi_t:0\le t<k,\ \operatorname{priority}(\pi_t)>p\}S={πt​:0≤t<k, priority(πt​)>p} is a set, so repeated visits are collapsed. No legality or injectivity assumption is imposed. If VVV is empty there is no start vvv; all fallback conventions remain part of the total definition.

reward. For every natural number ppp, the integer reward is ppp when ppp is even and −p-p−p otherwise; in particular the reward of zero is zero.

SetLT. For a type VVV with decidable equality, a game GGG, and finite sets A,B⊆VA,B\subseteq VA,B⊆V, AAA is less than BBB exactly when there is w∈A△Bw\in A\mathbin{\triangle}Bw∈A△B such that every u∈A△Bu\in A\mathbin{\triangle}Bu∈A△B has priority at most the priority of www, and either the priority of www is even and w∈Bw\in Bw∈B, or it is odd and w∈Aw\in Aw∈A. Empty symmetric difference makes the predicate false. The definition permits tied maximal priorities and does not require the game's priorities to be injective.

ValueLT. For a type VVV with decidable equality, a game GGG, and arbitrary valuation triples a,ba,ba,b, Write r(p)=pr(p)=pr(p)=p for even ppp and r(p)=−pr(p)=-pr(p)=−p for odd ppp. For triples a=(p,A,k)a=(p,A,k)a=(p,A,k) and b=(q,B,l)b=(q,B,l)b=(q,B,l), write a<vba<_{\mathrm v}ba<v​b when either r(p)<r(q)r(p)<r(q)r(p)<r(q); or p=qp=qp=q and some vertex www in the symmetric difference A△BA\mathbin{\triangle}BA△B has priority at least that of every vertex in that symmetric difference and is in BBB with even priority or in AAA with odd priority; or p=qp=qp=q, A=BA=BA=B, and either ppp is odd and k<lk<lk<l, or ppp is even and l<kl<kl<k. Write a≤vba\le_{\mathrm v}ba≤v​b for a=ba=ba=b or a<vba<_{\mathrm v}ba<v​b. The predicate being defined here is precisely the strict comparison <v<_{\mathrm v}<v​; neither valuation needs to be realized by a play and the game need not have injective priorities.

ValueLE. For a type VVV with decidable equality, a game GGG, and valuation triples a,ba,ba,b, Write r(p)=pr(p)=pr(p)=p for even ppp and r(p)=−pr(p)=-pr(p)=−p for odd ppp. For triples a=(p,A,k)a=(p,A,k)a=(p,A,k) and b=(q,B,l)b=(q,B,l)b=(q,B,l), write a<vba<_{\mathrm v}ba<v​b when either r(p)<r(q)r(p)<r(q)r(p)<r(q); or p=qp=qp=q and some vertex www in the symmetric difference A△BA\mathbin{\triangle}BA△B has priority at least that of every vertex in that symmetric difference and is in BBB with even priority or in AAA with odd priority; or p=qp=qp=q, A=BA=BA=B, and either ppp is odd and k<lk<lk<l, or ppp is even and l<kl<kl<k. Write a≤vba\le_{\mathrm v}ba≤v​b for a=ba=ba=b or a<vba<_{\mathrm v}ba<v​b. The predicate being defined here is precisely a≤vba\le_{\mathrm v}ba≤v​b, namely equality of the complete triples or the specified forward strict comparison, without any well-formedness assumption.

IsMinimum. For a finite type VVV with decidable equality, a game GGG, a total function σ:V→V\sigma:V\to Vσ:V→V, a vertex vvv, and a valuation aaa, For strategies σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V and a start vvv, the play is πt=Ft(v)\pi_t=F^t(v)πt​=Ft(v), where F(w)=σ(w)F(w)=\sigma(w)F(w)=σ(w) when the owner is false and F(w)=τ(w)F(w)=\tau(w)F(w)=τ(w) otherwise. Let RRR be the set of vertices occurring at arbitrarily late times and p=max⁡{priority⁡(w):w∈R}p=\max\{\operatorname{priority}(w):w\in R\}p=max{priority(w):w∈R}, with empty maximum 000. Choose an arbitrary vertex w∈Rw\in Rw∈R of priority ppp if one exists, and otherwise set w=vw=vw=v. Let kkk be the least time with πk=w\pi_k=wπk​=w, with fallback k=0k=0k=0 if that vertex never occurs. The play valuation is (p,S,k)(p,S,k)(p,S,k), where S={πt:0≤t<k, priority⁡(πt)>p}S=\{\pi_t:0\le t<k,\ \operatorname{priority}(\pi_t)>p\}S={πt​:0≤t<k, priority(πt​)>p} is a set, so repeated visits are collapsed. Write r(p)=pr(p)=pr(p)=p for even ppp and r(p)=−pr(p)=-pr(p)=−p for odd ppp. For triples a=(p,A,k)a=(p,A,k)a=(p,A,k) and b=(q,B,l)b=(q,B,l)b=(q,B,l), write a<vba<_{\mathrm v}ba<v​b when either r(p)<r(q)r(p)<r(q)r(p)<r(q); or p=qp=qp=q and some vertex www in the symmetric difference A△BA\mathbin{\triangle}BA△B has priority at least that of every vertex in that symmetric difference and is in BBB with even priority or in AAA with odd priority; or p=qp=qp=q, A=BA=BA=B, and either ppp is odd and k<lk<lk<l, or ppp is even and l<kl<kl<k. Write a≤vba\le_{\mathrm v}ba≤v​b for a=ba=ba=b or a<vba<_{\mathrm v}ba<v​b. The predicate says that some legal true-player strategy τ\tauτ realizes aaa as its play valuation from vvv, and that a≤va\le_{\mathrm v}a≤v​ the play valuation from vvv for every legal true-player strategy. The strategy σ\sigmaσ is not assumed legal, and the minimum is required to be attained.

value. For a finite type VVV with decidable equality, a game GGG, a total function σ:V→V\sigma:V\to Vσ:V→V, and a vertex vvv, For strategies σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V and a start vvv, the play is πt=Ft(v)\pi_t=F^t(v)πt​=Ft(v), where F(w)=σ(w)F(w)=\sigma(w)F(w)=σ(w) when the owner is false and F(w)=τ(w)F(w)=\tau(w)F(w)=τ(w) otherwise. Let RRR be the set of vertices occurring at arbitrarily late times and p=max⁡{priority⁡(w):w∈R}p=\max\{\operatorname{priority}(w):w\in R\}p=max{priority(w):w∈R}, with empty maximum 000. Choose an arbitrary vertex w∈Rw\in Rw∈R of priority ppp if one exists, and otherwise set w=vw=vw=v. Let kkk be the least time with πk=w\pi_k=wπk​=w, with fallback k=0k=0k=0 if that vertex never occurs. The play valuation is (p,S,k)(p,S,k)(p,S,k), where S={πt:0≤t<k, priority⁡(πt)>p}S=\{\pi_t:0\le t<k,\ \operatorname{priority}(\pi_t)>p\}S={πt​:0≤t<k, priority(πt​)>p} is a set, so repeated visits are collapsed. Write r(p)=pr(p)=pr(p)=p for even ppp and r(p)=−pr(p)=-pr(p)=−p for odd ppp. For triples a=(p,A,k)a=(p,A,k)a=(p,A,k) and b=(q,B,l)b=(q,B,l)b=(q,B,l), write a<vba<_{\mathrm v}ba<v​b when either r(p)<r(q)r(p)<r(q)r(p)<r(q); or p=qp=qp=q and some vertex www in the symmetric difference A△BA\mathbin{\triangle}BA△B has priority at least that of every vertex in that symmetric difference and is in BBB with even priority or in AAA with odd priority; or p=qp=qp=q, A=BA=BA=B, and either ppp is odd and k<lk<lk<l, or ppp is even and l<kl<kl<k. Write a≤vba\le_{\mathrm v}ba≤v​b for a=ba=ba=b or a<vba<_{\mathrm v}ba<v​b. A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each vvv, the selected value under σ\sigmaσ is a valuation attained by a legal true-player strategy and weakly no greater than every valuation attained by any legal true-player strategy from vvv, if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is (0,∅,0)(0,\varnothing,0)(0,∅,0). The weak comparison used in this selection is equality of triples or the strict comparison just described. No legality of σ\sigmaσ, existence of a legal opponent, or well-formedness assumption is part of the definition.

OptimalCounterstrategy. For a finite type VVV with decidable equality, a game GGG and functions σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V, For strategies σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V and a start vvv, the play is πt=Ft(v)\pi_t=F^t(v)πt​=Ft(v), where F(w)=σ(w)F(w)=\sigma(w)F(w)=σ(w) when the owner is false and F(w)=τ(w)F(w)=\tau(w)F(w)=τ(w) otherwise. Let RRR be the set of vertices occurring at arbitrarily late times and p=max⁡{priority⁡(w):w∈R}p=\max\{\operatorname{priority}(w):w\in R\}p=max{priority(w):w∈R}, with empty maximum 000. Choose an arbitrary vertex w∈Rw\in Rw∈R of priority ppp if one exists, and otherwise set w=vw=vw=v. Let kkk be the least time with πk=w\pi_k=wπk​=w, with fallback k=0k=0k=0 if that vertex never occurs. The play valuation is (p,S,k)(p,S,k)(p,S,k), where S={πt:0≤t<k, priority⁡(πt)>p}S=\{\pi_t:0\le t<k,\ \operatorname{priority}(\pi_t)>p\}S={πt​:0≤t<k, priority(πt​)>p} is a set, so repeated visits are collapsed. Write r(p)=pr(p)=pr(p)=p for even ppp and r(p)=−pr(p)=-pr(p)=−p for odd ppp. For triples a=(p,A,k)a=(p,A,k)a=(p,A,k) and b=(q,B,l)b=(q,B,l)b=(q,B,l), write a<vba<_{\mathrm v}ba<v​b when either r(p)<r(q)r(p)<r(q)r(p)<r(q); or p=qp=qp=q and some vertex www in the symmetric difference A△BA\mathbin{\triangle}BA△B has priority at least that of every vertex in that symmetric difference and is in BBB with even priority or in AAA with odd priority; or p=qp=qp=q, A=BA=BA=B, and either ppp is odd and k<lk<lk<l, or ppp is even and l<kl<kl<k. Write a≤vba\le_{\mathrm v}ba≤v​b for a=ba=ba=b or a<vba<_{\mathrm v}ba<v​b. The predicate means that τ\tauτ is legal at every true-owned vertex and, simultaneously for every starting vertex vvv and every legal true-player function τ′\tau'τ′, the play valuation for (σ,τ,v)(\sigma,\tau,v)(σ,τ,v) is ≤v\le_{\mathrm v}≤v​ the play valuation for (σ,τ′,v)(\sigma,\tau',v)(σ,τ′,v). The same τ\tauτ must work for all vvv, and σ\sigmaσ is not assumed legal.

Improving. For a finite type VVV with decidable equality, a game GGG, a total function σ:V→V\sigma:V\to Vσ:V→V, and vertices v,wv,wv,w, For strategies σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V and a start vvv, the play is πt=Ft(v)\pi_t=F^t(v)πt​=Ft(v), where F(w)=σ(w)F(w)=\sigma(w)F(w)=σ(w) when the owner is false and F(w)=τ(w)F(w)=\tau(w)F(w)=τ(w) otherwise. Let RRR be the set of vertices occurring at arbitrarily late times and p=max⁡{priority⁡(w):w∈R}p=\max\{\operatorname{priority}(w):w\in R\}p=max{priority(w):w∈R}, with empty maximum 000. Choose an arbitrary vertex w∈Rw\in Rw∈R of priority ppp if one exists, and otherwise set w=vw=vw=v. Let kkk be the least time with πk=w\pi_k=wπk​=w, with fallback k=0k=0k=0 if that vertex never occurs. The play valuation is (p,S,k)(p,S,k)(p,S,k), where S={πt:0≤t<k, priority⁡(πt)>p}S=\{\pi_t:0\le t<k,\ \operatorname{priority}(\pi_t)>p\}S={πt​:0≤t<k, priority(πt​)>p} is a set, so repeated visits are collapsed. Write r(p)=pr(p)=pr(p)=p for even ppp and r(p)=−pr(p)=-pr(p)=−p for odd ppp. For triples a=(p,A,k)a=(p,A,k)a=(p,A,k) and b=(q,B,l)b=(q,B,l)b=(q,B,l), write a<vba<_{\mathrm v}ba<v​b when either r(p)<r(q)r(p)<r(q)r(p)<r(q); or p=qp=qp=q and some vertex www in the symmetric difference A△BA\mathbin{\triangle}BA△B has priority at least that of every vertex in that symmetric difference and is in BBB with even priority or in AAA with odd priority; or p=qp=qp=q, A=BA=BA=B, and either ppp is odd and k<lk<lk<l, or ppp is even and l<kl<kl<k. Write a≤vba\le_{\mathrm v}ba≤v​b for a=ba=ba=b or a<vba<_{\mathrm v}ba<v​b. A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each vvv, the selected value under σ\sigmaσ is a valuation attained by a legal true-player strategy and weakly no greater than every valuation attained by any legal true-player strategy from vvv, if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is (0,∅,0)(0,\varnothing,0)(0,∅,0). A move from vvv to www is improving exactly when vvv is false-owned, (v,w)(v,w)(v,w) is an edge, and the selected value at σ(v)\sigma(v)σ(v) is strictly below the selected value at www. This does not require σ\sigmaσ itself to be legal.

Improvable. For a finite type VVV with decidable equality, a game GGG and a total function σ:V→V\sigma:V\to Vσ:V→V, For strategies σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V and a start vvv, the play is πt=Ft(v)\pi_t=F^t(v)πt​=Ft(v), where F(w)=σ(w)F(w)=\sigma(w)F(w)=σ(w) when the owner is false and F(w)=τ(w)F(w)=\tau(w)F(w)=τ(w) otherwise. Let RRR be the set of vertices occurring at arbitrarily late times and p=max⁡{priority⁡(w):w∈R}p=\max\{\operatorname{priority}(w):w\in R\}p=max{priority(w):w∈R}, with empty maximum 000. Choose an arbitrary vertex w∈Rw\in Rw∈R of priority ppp if one exists, and otherwise set w=vw=vw=v. Let kkk be the least time with πk=w\pi_k=wπk​=w, with fallback k=0k=0k=0 if that vertex never occurs. The play valuation is (p,S,k)(p,S,k)(p,S,k), where S={πt:0≤t<k, priority⁡(πt)>p}S=\{\pi_t:0\le t<k,\ \operatorname{priority}(\pi_t)>p\}S={πt​:0≤t<k, priority(πt​)>p} is a set, so repeated visits are collapsed. Write r(p)=pr(p)=pr(p)=p for even ppp and r(p)=−pr(p)=-pr(p)=−p for odd ppp. For triples a=(p,A,k)a=(p,A,k)a=(p,A,k) and b=(q,B,l)b=(q,B,l)b=(q,B,l), write a<vba<_{\mathrm v}ba<v​b when either r(p)<r(q)r(p)<r(q)r(p)<r(q); or p=qp=qp=q and some vertex www in the symmetric difference A△BA\mathbin{\triangle}BA△B has priority at least that of every vertex in that symmetric difference and is in BBB with even priority or in AAA with odd priority; or p=qp=qp=q, A=BA=BA=B, and either ppp is odd and k<lk<lk<l, or ppp is even and l<kl<kl<k. Write a≤vba\le_{\mathrm v}ba≤v​b for a=ba=ba=b or a<vba<_{\mathrm v}ba<v​b. A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each vvv, the selected value under σ\sigmaσ is a valuation attained by a legal true-player strategy and weakly no greater than every valuation attained by any legal true-player strategy from vvv, if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is (0,∅,0)(0,\varnothing,0)(0,∅,0). The predicate means that there exist vertices v,wv,wv,w with vvv false-owned, (v,w)(v,w)(v,w) an edge, and selected value at σ(v)\sigma(v)σ(v) strictly below selected value at www. It is false when VVV is empty.

Allowed. For a finite type VVV with decidable equality, a game GGG and total functions σ,σ′:V→V\sigma,\sigma':V\to Vσ,σ′:V→V, For strategies σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V and a start vvv, the play is πt=Ft(v)\pi_t=F^t(v)πt​=Ft(v), where F(w)=σ(w)F(w)=\sigma(w)F(w)=σ(w) when the owner is false and F(w)=τ(w)F(w)=\tau(w)F(w)=τ(w) otherwise. Let RRR be the set of vertices occurring at arbitrarily late times and p=max⁡{priority⁡(w):w∈R}p=\max\{\operatorname{priority}(w):w\in R\}p=max{priority(w):w∈R}, with empty maximum 000. Choose an arbitrary vertex w∈Rw\in Rw∈R of priority ppp if one exists, and otherwise set w=vw=vw=v. Let kkk be the least time with πk=w\pi_k=wπk​=w, with fallback k=0k=0k=0 if that vertex never occurs. The play valuation is (p,S,k)(p,S,k)(p,S,k), where S={πt:0≤t<k, priority⁡(πt)>p}S=\{\pi_t:0\le t<k,\ \operatorname{priority}(\pi_t)>p\}S={πt​:0≤t<k, priority(πt​)>p} is a set, so repeated visits are collapsed. Write r(p)=pr(p)=pr(p)=p for even ppp and r(p)=−pr(p)=-pr(p)=−p for odd ppp. For triples a=(p,A,k)a=(p,A,k)a=(p,A,k) and b=(q,B,l)b=(q,B,l)b=(q,B,l), write a<vba<_{\mathrm v}ba<v​b when either r(p)<r(q)r(p)<r(q)r(p)<r(q); or p=qp=qp=q and some vertex www in the symmetric difference A△BA\mathbin{\triangle}BA△B has priority at least that of every vertex in that symmetric difference and is in BBB with even priority or in AAA with odd priority; or p=qp=qp=q, A=BA=BA=B, and either ppp is odd and k<lk<lk<l, or ppp is even and l<kl<kl<k. Write a≤vba\le_{\mathrm v}ba≤v​b for a=ba=ba=b or a<vba<_{\mathrm v}ba<v​b. A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each vvv, the selected value under σ\sigmaσ is a valuation attained by a legal true-player strategy and weakly no greater than every valuation attained by any legal true-player strategy from vvv, if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is (0,∅,0)(0,\varnothing,0)(0,∅,0). The change is allowed exactly when σ′\sigma'σ′ follows an edge at every false-owned vertex and, at every such vvv, the selected value under the old strategy σ\sigmaσ at σ(v)\sigma(v)σ(v) is weakly below the selected value under σ\sigmaσ at σ′(v)\sigma'(v)σ′(v). No legality condition on σ\sigmaσ is included.

Improvement. For a finite type VVV with decidable equality, a game GGG and functions σ,σ′:V→V\sigma,\sigma':V\to Vσ,σ′:V→V, For strategies σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V and a start vvv, the play is πt=Ft(v)\pi_t=F^t(v)πt​=Ft(v), where F(w)=σ(w)F(w)=\sigma(w)F(w)=σ(w) when the owner is false and F(w)=τ(w)F(w)=\tau(w)F(w)=τ(w) otherwise. Let RRR be the set of vertices occurring at arbitrarily late times and p=max⁡{priority⁡(w):w∈R}p=\max\{\operatorname{priority}(w):w\in R\}p=max{priority(w):w∈R}, with empty maximum 000. Choose an arbitrary vertex w∈Rw\in Rw∈R of priority ppp if one exists, and otherwise set w=vw=vw=v. Let kkk be the least time with πk=w\pi_k=wπk​=w, with fallback k=0k=0k=0 if that vertex never occurs. The play valuation is (p,S,k)(p,S,k)(p,S,k), where S={πt:0≤t<k, priority⁡(πt)>p}S=\{\pi_t:0\le t<k,\ \operatorname{priority}(\pi_t)>p\}S={πt​:0≤t<k, priority(πt​)>p} is a set, so repeated visits are collapsed. Write r(p)=pr(p)=pr(p)=p for even ppp and r(p)=−pr(p)=-pr(p)=−p for odd ppp. For triples a=(p,A,k)a=(p,A,k)a=(p,A,k) and b=(q,B,l)b=(q,B,l)b=(q,B,l), write a<vba<_{\mathrm v}ba<v​b when either r(p)<r(q)r(p)<r(q)r(p)<r(q); or p=qp=qp=q and some vertex www in the symmetric difference A△BA\mathbin{\triangle}BA△B has priority at least that of every vertex in that symmetric difference and is in BBB with even priority or in AAA with odd priority; or p=qp=qp=q, A=BA=BA=B, and either ppp is odd and k<lk<lk<l, or ppp is even and l<kl<kl<k. Write a≤vba\le_{\mathrm v}ba≤v​b for a=ba=ba=b or a<vba<_{\mathrm v}ba<v​b. A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each vvv, the selected value under σ\sigmaσ is a valuation attained by a legal true-player strategy and weakly no greater than every valuation attained by any legal true-player strategy from vvv, if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is (0,∅,0)(0,\varnothing,0)(0,∅,0). The predicate requires σ′\sigma'σ′ to be legal for false and its chosen successor at every false vertex to have old selected value weakly at least that of σ(v)\sigma(v)σ(v); in addition, if any false-owned vertex has an outgoing edge whose endpoint's old value is strictly above that of its current successor, then there must be at least one false-owned vertex vvv for which the old value at σ′(v)\sigma'(v)σ′(v) is strictly above the old value at σ(v)\sigma(v)σ(v). If no improving edge exists, this final requirement is vacuous.

LocalStep. For a finite type VVV with decidable equality, a game GGG and functions σ,σ′:V→V\sigma,\sigma':V\to Vσ,σ′:V→V, For strategies σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V and a start vvv, the play is πt=Ft(v)\pi_t=F^t(v)πt​=Ft(v), where F(w)=σ(w)F(w)=\sigma(w)F(w)=σ(w) when the owner is false and F(w)=τ(w)F(w)=\tau(w)F(w)=τ(w) otherwise. Let RRR be the set of vertices occurring at arbitrarily late times and p=max⁡{priority⁡(w):w∈R}p=\max\{\operatorname{priority}(w):w\in R\}p=max{priority(w):w∈R}, with empty maximum 000. Choose an arbitrary vertex w∈Rw\in Rw∈R of priority ppp if one exists, and otherwise set w=vw=vw=v. Let kkk be the least time with πk=w\pi_k=wπk​=w, with fallback k=0k=0k=0 if that vertex never occurs. The play valuation is (p,S,k)(p,S,k)(p,S,k), where S={πt:0≤t<k, priority⁡(πt)>p}S=\{\pi_t:0\le t<k,\ \operatorname{priority}(\pi_t)>p\}S={πt​:0≤t<k, priority(πt​)>p} is a set, so repeated visits are collapsed. Write r(p)=pr(p)=pr(p)=p for even ppp and r(p)=−pr(p)=-pr(p)=−p for odd ppp. For triples a=(p,A,k)a=(p,A,k)a=(p,A,k) and b=(q,B,l)b=(q,B,l)b=(q,B,l), write a<vba<_{\mathrm v}ba<v​b when either r(p)<r(q)r(p)<r(q)r(p)<r(q); or p=qp=qp=q and some vertex www in the symmetric difference A△BA\mathbin{\triangle}BA△B has priority at least that of every vertex in that symmetric difference and is in BBB with even priority or in AAA with odd priority; or p=qp=qp=q, A=BA=BA=B, and either ppp is odd and k<lk<lk<l, or ppp is even and l<kl<kl<k. Write a≤vba\le_{\mathrm v}ba≤v​b for a=ba=ba=b or a<vba<_{\mathrm v}ba<v​b. A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each vvv, the selected value under σ\sigmaσ is a valuation attained by a legal true-player strategy and weakly no greater than every valuation attained by any legal true-player strategy from vvv, if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is (0,∅,0)(0,\varnothing,0)(0,∅,0). A local step requires σ′\sigma'σ′ to be false-player legal; every false-owned vvv must choose under σ′\sigma'σ′ a successor whose old selected value is weakly at least that of the old successor; if any improving edge exists then at least one of these changes must be strict; and for every false-owned vvv and every edge (v,w)(v,w)(v,w), the old selected value at www must be weakly below the old selected value at σ′(v)\sigma'(v)σ′(v). All comparisons in the last condition use the old strategy σ\sigmaσ.

GlobalStep. For a finite type VVV with decidable equality, a game GGG and functions σ,σ′:V→V\sigma,\sigma':V\to Vσ,σ′:V→V, For strategies σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V and a start vvv, the play is πt=Ft(v)\pi_t=F^t(v)πt​=Ft(v), where F(w)=σ(w)F(w)=\sigma(w)F(w)=σ(w) when the owner is false and F(w)=τ(w)F(w)=\tau(w)F(w)=τ(w) otherwise. Let RRR be the set of vertices occurring at arbitrarily late times and p=max⁡{priority⁡(w):w∈R}p=\max\{\operatorname{priority}(w):w\in R\}p=max{priority(w):w∈R}, with empty maximum 000. Choose an arbitrary vertex w∈Rw\in Rw∈R of priority ppp if one exists, and otherwise set w=vw=vw=v. Let kkk be the least time with πk=w\pi_k=wπk​=w, with fallback k=0k=0k=0 if that vertex never occurs. The play valuation is (p,S,k)(p,S,k)(p,S,k), where S={πt:0≤t<k, priority⁡(πt)>p}S=\{\pi_t:0\le t<k,\ \operatorname{priority}(\pi_t)>p\}S={πt​:0≤t<k, priority(πt​)>p} is a set, so repeated visits are collapsed. Write r(p)=pr(p)=pr(p)=p for even ppp and r(p)=−pr(p)=-pr(p)=−p for odd ppp. For triples a=(p,A,k)a=(p,A,k)a=(p,A,k) and b=(q,B,l)b=(q,B,l)b=(q,B,l), write a<vba<_{\mathrm v}ba<v​b when either r(p)<r(q)r(p)<r(q)r(p)<r(q); or p=qp=qp=q and some vertex www in the symmetric difference A△BA\mathbin{\triangle}BA△B has priority at least that of every vertex in that symmetric difference and is in BBB with even priority or in AAA with odd priority; or p=qp=qp=q, A=BA=BA=B, and either ppp is odd and k<lk<lk<l, or ppp is even and l<kl<kl<k. Write a≤vba\le_{\mathrm v}ba≤v​b for a=ba=ba=b or a<vba<_{\mathrm v}ba<v​b. A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each vvv, the selected value under σ\sigmaσ is a valuation attained by a legal true-player strategy and weakly no greater than every valuation attained by any legal true-player strategy from vvv, if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is (0,∅,0)(0,\varnothing,0)(0,∅,0). A global step requires σ′\sigma'σ′ to be false-player legal, to choose at every false vertex an endpoint of old selected value weakly at least that of the old successor, and to make at least one strict such change whenever any improving edge exists; moreover, for every false-player legal function ρ\rhoρ whose successor choices are all weak improvements according to old values, and every vertex vvv, the selected value under ρ\rhoρ at vvv is weakly below the selected value under σ′\sigma'σ′ at vvv.

CompleteRun. For a finite type VVV with decidable equality, a game GGG, an arbitrary binary relation SSS on total strategy functions V→VV\to VV→V, an initial strategy ι\iotaι, a natural number TTT, and a sequence σt\sigma_tσt​ of strategy functions for all natural ttt, For strategies σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V and a start vvv, the play is πt=Ft(v)\pi_t=F^t(v)πt​=Ft(v), where F(w)=σ(w)F(w)=\sigma(w)F(w)=σ(w) when the owner is false and F(w)=τ(w)F(w)=\tau(w)F(w)=τ(w) otherwise. Let RRR be the set of vertices occurring at arbitrarily late times and p=max⁡{priority⁡(w):w∈R}p=\max\{\operatorname{priority}(w):w\in R\}p=max{priority(w):w∈R}, with empty maximum 000. Choose an arbitrary vertex w∈Rw\in Rw∈R of priority ppp if one exists, and otherwise set w=vw=vw=v. Let kkk be the least time with πk=w\pi_k=wπk​=w, with fallback k=0k=0k=0 if that vertex never occurs. The play valuation is (p,S,k)(p,S,k)(p,S,k), where S={πt:0≤t<k, priority⁡(πt)>p}S=\{\pi_t:0\le t<k,\ \operatorname{priority}(\pi_t)>p\}S={πt​:0≤t<k, priority(πt​)>p} is a set, so repeated visits are collapsed. Write r(p)=pr(p)=pr(p)=p for even ppp and r(p)=−pr(p)=-pr(p)=−p for odd ppp. For triples a=(p,A,k)a=(p,A,k)a=(p,A,k) and b=(q,B,l)b=(q,B,l)b=(q,B,l), write a<vba<_{\mathrm v}ba<v​b when either r(p)<r(q)r(p)<r(q)r(p)<r(q); or p=qp=qp=q and some vertex www in the symmetric difference A△BA\mathbin{\triangle}BA△B has priority at least that of every vertex in that symmetric difference and is in BBB with even priority or in AAA with odd priority; or p=qp=qp=q, A=BA=BA=B, and either ppp is odd and k<lk<lk<l, or ppp is even and l<kl<kl<k. Write a≤vba\le_{\mathrm v}ba≤v​b for a=ba=ba=b or a<vba<_{\mathrm v}ba<v​b. A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each vvv, the selected value under σ\sigmaσ is a valuation attained by a legal true-player strategy and weakly no greater than every valuation attained by any legal true-player strategy from vvv, if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is (0,∅,0)(0,\varnothing,0)(0,∅,0). The predicate requires σ0=ι\sigma_0=\iotaσ0​=ι; σt\sigma_tσt​ is false-player legal for every t≤Tt\le Tt≤T; for every t<Tt<Tt<T there is a false-owned vertex with an outgoing edge to an endpoint strictly better, in the old selected values for σt\sigma_tσt​, than its current successor, and S(σt,σt+1)S(\sigma_t,\sigma_{t+1})S(σt​,σt+1​) holds; and no such improving edge exists for σT\sigma_TσT​. The cost TTT counts relation steps, may be zero, and the sequence after TTT is unrestricted.

edgeCount. For a finite type VVV and a game GGG, the edge count is ∣{(v,w)∈V×V:G has edge (v,w)}∣|\{(v,w)\in V\times V:G\text{ has edge }(v,w)\}|∣{(v,w)∈V×V:G has edge (v,w)}∣. Each ordered pair is counted once, self-loops count once, and an empty vertex type gives count zero.

HardInstance. For a finite type VVV with decidable equality, a game GGG, an initial strategy ι:V→V\iota:V\to Vι:V→V, an arbitrary step relation SSS on such functions, and a natural number LLL, For strategies σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V and a start vvv, the play is πt=Ft(v)\pi_t=F^t(v)πt​=Ft(v), where F(w)=σ(w)F(w)=\sigma(w)F(w)=σ(w) when the owner is false and F(w)=τ(w)F(w)=\tau(w)F(w)=τ(w) otherwise. Let RRR be the set of vertices occurring at arbitrarily late times and p=max⁡{priority⁡(w):w∈R}p=\max\{\operatorname{priority}(w):w\in R\}p=max{priority(w):w∈R}, with empty maximum 000. Choose an arbitrary vertex w∈Rw\in Rw∈R of priority ppp if one exists, and otherwise set w=vw=vw=v. Let kkk be the least time with πk=w\pi_k=wπk​=w, with fallback k=0k=0k=0 if that vertex never occurs. The play valuation is (p,S,k)(p,S,k)(p,S,k), where S={πt:0≤t<k, priority⁡(πt)>p}S=\{\pi_t:0\le t<k,\ \operatorname{priority}(\pi_t)>p\}S={πt​:0≤t<k, priority(πt​)>p} is a set, so repeated visits are collapsed. Write r(p)=pr(p)=pr(p)=p for even ppp and r(p)=−pr(p)=-pr(p)=−p for odd ppp. For triples a=(p,A,k)a=(p,A,k)a=(p,A,k) and b=(q,B,l)b=(q,B,l)b=(q,B,l), write a<vba<_{\mathrm v}ba<v​b when either r(p)<r(q)r(p)<r(q)r(p)<r(q); or p=qp=qp=q and some vertex www in the symmetric difference A△BA\mathbin{\triangle}BA△B has priority at least that of every vertex in that symmetric difference and is in BBB with even priority or in AAA with odd priority; or p=qp=qp=q, A=BA=BA=B, and either ppp is odd and k<lk<lk<l, or ppp is even and l<kl<kl<k. Write a≤vba\le_{\mathrm v}ba≤v​b for a=ba=ba=b or a<vba<_{\mathrm v}ba<v​b. A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each vvv, the selected value under σ\sigmaσ is a valuation attained by a legal true-player strategy and weakly no greater than every valuation attained by any legal true-player strategy from vvv, if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is (0,∅,0)(0,\varnothing,0)(0,∅,0). The predicate requires that every vertex have an outgoing edge and priorities be injective; ι\iotaι is false-player legal; some finite complete run exists; and every finite complete run has length T≥LT\ge LT≥L. Here a complete run starts at ι\iotaι, is false-player legal through time TTT, satisfies SSS and has an improving outgoing edge at each time t<Tt<Tt<T, and has no improving outgoing edge at TTT, where an improving edge at vvv is a false-player edge to an endpoint strictly above the current successor in selected value. The requirement quantifies over all such finite complete runs; it says nothing about infinite executions, and its separate existence clause rules out vacuity through absence of finite complete runs.

ExponentialLocal. There is a natural number C>0C>0C>0 such that for every natural n>0n>0n>0 there exist a natural number NNN, a game on {0,…,N−1}\{0,\ldots,N-1\}{0,…,N−1}, and an initial strategy ι\iotaι with at most CnCnCn ordered-pair edges and every priority at most CnCnCn, satisfying the following conditions: every vertex has an outgoing edge, priorities are injective, ι\iotaι is false-player legal, at least one finite complete local-step run exists, and every such run has at least 2n2^n2n steps. For strategies σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V and a start vvv, the play is πt=Ft(v)\pi_t=F^t(v)πt​=Ft(v), where F(w)=σ(w)F(w)=\sigma(w)F(w)=σ(w) when the owner is false and F(w)=τ(w)F(w)=\tau(w)F(w)=τ(w) otherwise. Let RRR be the set of vertices occurring at arbitrarily late times and p=max⁡{priority⁡(w):w∈R}p=\max\{\operatorname{priority}(w):w\in R\}p=max{priority(w):w∈R}, with empty maximum 000. Choose an arbitrary vertex w∈Rw\in Rw∈R of priority ppp if one exists, and otherwise set w=vw=vw=v. Let kkk be the least time with πk=w\pi_k=wπk​=w, with fallback k=0k=0k=0 if that vertex never occurs. The play valuation is (p,S,k)(p,S,k)(p,S,k), where S={πt:0≤t<k, priority⁡(πt)>p}S=\{\pi_t:0\le t<k,\ \operatorname{priority}(\pi_t)>p\}S={πt​:0≤t<k, priority(πt​)>p} is a set, so repeated visits are collapsed. Write r(p)=pr(p)=pr(p)=p for even ppp and r(p)=−pr(p)=-pr(p)=−p for odd ppp. For triples a=(p,A,k)a=(p,A,k)a=(p,A,k) and b=(q,B,l)b=(q,B,l)b=(q,B,l), write a<vba<_{\mathrm v}ba<v​b when either r(p)<r(q)r(p)<r(q)r(p)<r(q); or p=qp=qp=q and some vertex www in the symmetric difference A△BA\mathbin{\triangle}BA△B has priority at least that of every vertex in that symmetric difference and is in BBB with even priority or in AAA with odd priority; or p=qp=qp=q, A=BA=BA=B, and either ppp is odd and k<lk<lk<l, or ppp is even and l<kl<kl<k. Write a≤vba\le_{\mathrm v}ba≤v​b for a=ba=ba=b or a<vba<_{\mathrm v}ba<v​b. A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each vvv, the selected value under σ\sigmaσ is a valuation attained by a legal true-player strategy and weakly no greater than every valuation attained by any legal true-player strategy from vvv, if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is (0,∅,0)(0,\varnothing,0)(0,∅,0). A local step chooses, at each false vertex, a legal successor weakly maximizing the old selected value over all its outgoing edges, makes only weak improvements over the old choices, and makes some strict improvement whenever an improving edge exists. A finite complete run starts at ι\iotaι, is false-player legal through its endpoint, has an improving edge and a local step before each transition, and ends with none. The same CCC works for all positive nnn; no requirement is made at n=0n=0n=0, and NNN itself is not separately bounded.

ExponentialGlobal. There is a natural number C>0C>0C>0 such that for every natural n>0n>0n>0 there exist a natural number NNN, a game on {0,…,N−1}\{0,\ldots,N-1\}{0,…,N−1}, and an initial strategy ι\iotaι, with at most CnCnCn ordered-pair edges and each priority at most CnCnCn, for which every vertex has an outgoing edge, priorities are injective, ι\iotaι is false-player legal, some finite complete global-step run exists, and every such run has at least 2n2^n2n steps. For strategies σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V and a start vvv, the play is πt=Ft(v)\pi_t=F^t(v)πt​=Ft(v), where F(w)=σ(w)F(w)=\sigma(w)F(w)=σ(w) when the owner is false and F(w)=τ(w)F(w)=\tau(w)F(w)=τ(w) otherwise. Let RRR be the set of vertices occurring at arbitrarily late times and p=max⁡{priority⁡(w):w∈R}p=\max\{\operatorname{priority}(w):w\in R\}p=max{priority(w):w∈R}, with empty maximum 000. Choose an arbitrary vertex w∈Rw\in Rw∈R of priority ppp if one exists, and otherwise set w=vw=vw=v. Let kkk be the least time with πk=w\pi_k=wπk​=w, with fallback k=0k=0k=0 if that vertex never occurs. The play valuation is (p,S,k)(p,S,k)(p,S,k), where S={πt:0≤t<k, priority⁡(πt)>p}S=\{\pi_t:0\le t<k,\ \operatorname{priority}(\pi_t)>p\}S={πt​:0≤t<k, priority(πt​)>p} is a set, so repeated visits are collapsed. Write r(p)=pr(p)=pr(p)=p for even ppp and r(p)=−pr(p)=-pr(p)=−p for odd ppp. For triples a=(p,A,k)a=(p,A,k)a=(p,A,k) and b=(q,B,l)b=(q,B,l)b=(q,B,l), write a<vba<_{\mathrm v}ba<v​b when either r(p)<r(q)r(p)<r(q)r(p)<r(q); or p=qp=qp=q and some vertex www in the symmetric difference A△BA\mathbin{\triangle}BA△B has priority at least that of every vertex in that symmetric difference and is in BBB with even priority or in AAA with odd priority; or p=qp=qp=q, A=BA=BA=B, and either ppp is odd and k<lk<lk<l, or ppp is even and l<kl<kl<k. Write a≤vba\le_{\mathrm v}ba≤v​b for a=ba=ba=b or a<vba<_{\mathrm v}ba<v​b. A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each vvv, the selected value under σ\sigmaσ is a valuation attained by a legal true-player strategy and weakly no greater than every valuation attained by any legal true-player strategy from vvv, if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is (0,∅,0)(0,\varnothing,0)(0,∅,0). A global step is a false-player legal change making only weak improvements of successor old values and at least one strict change if an improving edge exists, and whose resulting selected value at every vertex weakly dominates that for every false-player legal strategy making only such weak improvements. A complete run starts at ι\iotaι, is false-player legal through its endpoint, has an improving edge and a global step before each transition, and ends with none. There is no requirement for n=0n=0n=0, no separate bound on NNN, and CCC is uniform.

Binary. For any type VVV and a game GGG, the predicate says that for every vertex vvv there exist two vertices a,ba,ba,b, which may coincide, such that every edge (v,w)(v,w)(v,w) has w=aw=aw=a or w=bw=bw=b. It does not require either candidate to be a successor or require any outgoing edge. For an empty vertex type the condition is vacuous.

ExponentialBinary. There is a natural number C>0C>0C>0 such that for each Boolean ggg and each natural n>0n>0n>0 there exist a natural NNN, a game on {0,…,N−1}\{0,\ldots,N-1\}{0,…,N−1} and an initial strategy ι\iotaι with the following properties: every vertex's successors are contained in some pair of vertices, which may coincide; the number of ordered-pair edges is at most CnCnCn; every priority is at most CnCnCn; every vertex has an outgoing edge; priorities are injective; ι\iotaι is false-player legal; at least one finite complete run exists under global steps when ggg is true and local steps when ggg is false; and every finite complete run under that chosen relation has length at least 2n2^n2n. For strategies σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V and a start vvv, the play is πt=Ft(v)\pi_t=F^t(v)πt​=Ft(v), where F(w)=σ(w)F(w)=\sigma(w)F(w)=σ(w) when the owner is false and F(w)=τ(w)F(w)=\tau(w)F(w)=τ(w) otherwise. Let RRR be the set of vertices occurring at arbitrarily late times and p=max⁡{priority⁡(w):w∈R}p=\max\{\operatorname{priority}(w):w\in R\}p=max{priority(w):w∈R}, with empty maximum 000. Choose an arbitrary vertex w∈Rw\in Rw∈R of priority ppp if one exists, and otherwise set w=vw=vw=v. Let kkk be the least time with πk=w\pi_k=wπk​=w, with fallback k=0k=0k=0 if that vertex never occurs. The play valuation is (p,S,k)(p,S,k)(p,S,k), where S={πt:0≤t<k, priority⁡(πt)>p}S=\{\pi_t:0\le t<k,\ \operatorname{priority}(\pi_t)>p\}S={πt​:0≤t<k, priority(πt​)>p} is a set, so repeated visits are collapsed. Write r(p)=pr(p)=pr(p)=p for even ppp and r(p)=−pr(p)=-pr(p)=−p for odd ppp. For triples a=(p,A,k)a=(p,A,k)a=(p,A,k) and b=(q,B,l)b=(q,B,l)b=(q,B,l), write a<vba<_{\mathrm v}ba<v​b when either r(p)<r(q)r(p)<r(q)r(p)<r(q); or p=qp=qp=q and some vertex www in the symmetric difference A△BA\mathbin{\triangle}BA△B has priority at least that of every vertex in that symmetric difference and is in BBB with even priority or in AAA with odd priority; or p=qp=qp=q, A=BA=BA=B, and either ppp is odd and k<lk<lk<l, or ppp is even and l<kl<kl<k. Write a≤vba\le_{\mathrm v}ba≤v​b for a=ba=ba=b or a<vba<_{\mathrm v}ba<v​b. A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each vvv, the selected value under σ\sigmaσ is a valuation attained by a legal true-player strategy and weakly no greater than every valuation attained by any legal true-player strategy from vvv, if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is (0,∅,0)(0,\varnothing,0)(0,∅,0). An allowed change is false-player legal and chooses successors weakly improving all old selected values; an improvement is an allowed change with some strict successor improvement whenever any improving false-player edge exists. A local step is an improvement whose chosen successor weakly dominates every outgoing successor in old selected value at each false vertex. A global step is an improvement whose resulting selected value at every vertex weakly dominates the result of every allowed change. A complete run starts at ι\iotaι, is false-player legal through its endpoint, has an improving edge and the chosen step at every transition, and ends with no improving edge. The constant CCC works for both flags and all positive nnn; the witnesses may depend on both, no condition is imposed at n=0n=0n=0, and no separate bound on NNN is included.

Wins. For a finite type VVV with decidable equality, a game GGG, a Boolean player bbb, a total function σ:V→V\sigma:V\to Vσ:V→V, and a start vvv, For strategies σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V and a start vvv, the play is πt=Ft(v)\pi_t=F^t(v)πt​=Ft(v), where F(w)=σ(w)F(w)=\sigma(w)F(w)=σ(w) when the owner is false and F(w)=τ(w)F(w)=\tau(w)F(w)=τ(w) otherwise. Let RRR be the set of vertices occurring at arbitrarily late times and p=max⁡{priority⁡(w):w∈R}p=\max\{\operatorname{priority}(w):w\in R\}p=max{priority(w):w∈R}, with empty maximum 000. Choose an arbitrary vertex w∈Rw\in Rw∈R of priority ppp if one exists, and otherwise set w=vw=vw=v. Let kkk be the least time with πk=w\pi_k=wπk​=w, with fallback k=0k=0k=0 if that vertex never occurs. The play valuation is (p,S,k)(p,S,k)(p,S,k), where S={πt:0≤t<k, priority⁡(πt)>p}S=\{\pi_t:0\le t<k,\ \operatorname{priority}(\pi_t)>p\}S={πt​:0≤t<k, priority(πt​)>p} is a set, so repeated visits are collapsed. The predicate requires σ\sigmaσ to be legal for player bbb and requires, for every total function τ\tauτ legal for the other player, that the cycle priority of the play be even when bbb is false, with σ\sigmaσ supplying false moves and τ\tauτ true moves, and odd when bbb is true, with τ\tauτ supplying false moves and σ\sigmaσ true moves. If no legal opposing strategy exists the universal requirement is empty.

WinningRegion. For a finite type VVV with decidable equality, a game GGG and a Boolean player bbb, the winning region is the set of starts vvv for which there exists a total function σ\sigmaσ legal at every bbb-owned vertex such that every opposing legal function produces an even recurring maximal priority if bbb is false and an odd recurring maximal priority if bbb is true, assigning the two functions to their respective owners. For strategies σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V and a start vvv, the play is πt=Ft(v)\pi_t=F^t(v)πt​=Ft(v), where F(w)=σ(w)F(w)=\sigma(w)F(w)=σ(w) when the owner is false and F(w)=τ(w)F(w)=\tau(w)F(w)=τ(w) otherwise. Let RRR be the set of vertices occurring at arbitrarily late times and p=max⁡{priority⁡(w):w∈R}p=\max\{\operatorname{priority}(w):w\in R\}p=max{priority(w):w∈R}, with empty maximum 000. Choose an arbitrary vertex w∈Rw\in Rw∈R of priority ppp if one exists, and otherwise set w=vw=vw=v. Let kkk be the least time with πk=w\pi_k=wπk​=w, with fallback k=0k=0k=0 if that vertex never occurs. The play valuation is (p,S,k)(p,S,k)(p,S,k), where S={πt:0≤t<k, priority⁡(πt)>p}S=\{\pi_t:0\le t<k,\ \operatorname{priority}(\pi_t)>p\}S={πt​:0≤t<k, priority(πt​)>p} is a set, so repeated visits are collapsed. The witnessing strategy may depend on vvv.

IsSinkGame. For a finite type VVV with decidable equality, a game GGG, an initial function ι:V→V\iota:V\to Vι:V→V, and a designated vertex zzz, For strategies σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V and a start vvv, the play is πt=Ft(v)\pi_t=F^t(v)πt​=Ft(v), where F(w)=σ(w)F(w)=\sigma(w)F(w)=σ(w) when the owner is false and F(w)=τ(w)F(w)=\tau(w)F(w)=τ(w) otherwise. Let RRR be the set of vertices occurring at arbitrarily late times and p=max⁡{priority⁡(w):w∈R}p=\max\{\operatorname{priority}(w):w\in R\}p=max{priority(w):w∈R}, with empty maximum 000. Choose an arbitrary vertex w∈Rw\in Rw∈R of priority ppp if one exists, and otherwise set w=vw=vw=v. Let kkk be the least time with πk=w\pi_k=wπk​=w, with fallback k=0k=0k=0 if that vertex never occurs. The play valuation is (p,S,k)(p,S,k)(p,S,k), where S={πt:0≤t<k, priority⁡(πt)>p}S=\{\pi_t:0\le t<k,\ \operatorname{priority}(\pi_t)>p\}S={πt​:0≤t<k, priority(πt​)>p} is a set, so repeated visits are collapsed. Write r(p)=pr(p)=pr(p)=p for even ppp and r(p)=−pr(p)=-pr(p)=−p for odd ppp. For triples a=(p,A,k)a=(p,A,k)a=(p,A,k) and b=(q,B,l)b=(q,B,l)b=(q,B,l), write a<vba<_{\mathrm v}ba<v​b when either r(p)<r(q)r(p)<r(q)r(p)<r(q); or p=qp=qp=q and some vertex www in the symmetric difference A△BA\mathbin{\triangle}BA△B has priority at least that of every vertex in that symmetric difference and is in BBB with even priority or in AAA with odd priority; or p=qp=qp=q, A=BA=BA=B, and either ppp is odd and k<lk<lk<l, or ppp is even and l<kl<kl<k. Write a≤vba\le_{\mathrm v}ba≤v​b for a=ba=ba=b or a<vba<_{\mathrm v}ba<v​b. A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each vvv, the selected value under σ\sigmaσ is a valuation attained by a legal true-player strategy and weakly no greater than every valuation attained by any legal true-player strategy from vvv, if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is (0,∅,0)(0,\varnothing,0)(0,∅,0). The predicate requires every vertex to have an outgoing edge, priorities to be injective, ι\iotaι to be false-player legal, (z,z)(z,z)(z,z) to be an edge, the priority of zzz to equal 111, every other priority to be strictly greater than 111, and every vertex to reach zzz by a finite path of zero or more edges. It further requires that for every false-player legal function σ\sigmaσ, if at every vertex the selected value under ι\iotaι is weakly below the selected value under σ\sigmaσ, then the cycle-priority field of the selected value under σ\sigmaσ is 111 at every vertex. It imposes no prohibition on other outgoing edges of zzz.

Human review
  • Endorsed by Shuze Chen · Nov 3, 2026

    Confirmed by the moderator at approval.

  • Endorsed by kmehltretter82 · Nov 3, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me