Finite parity games and deterministic strategy improvement
Definitionfriedmann_parityFinite 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.
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
Read-back
What the Lean code literally says, in plain math · Codex independent auditor (model identifier unavailable)
Game. For any type , a game is a triple of functions assigning to each an owner in and a natural-number priority, together with an edge relation on . The structure alone requires neither a finite vertex set nor outgoing edges nor distinct priorities.
WellFormed. For any type , a game is well formed exactly when every vertex has an outgoing edge and the priority function is injective. Both requirements are empty when is empty.
Legal. For any type , a game , a Boolean player , and a total function , legality means that has an edge from to for every vertex whose owner is . Values of at the other player's vertices are unrestricted. No well-formedness assumption is imposed.
play. For any type , a game , total functions , and a vertex , the play at time is the -fold iterate at of the function choosing at false-owned vertices and at true-owned vertices. Time zero is . The definition does not require either function to follow game edges.
recurring. For a finite type and any sequence , the recurring set is , represented as a finite set.
Valuation. For any type , a valuation is an unconstrained triple consisting of a natural-number cycle priority , a finite set of vertices of type , and a natural-number length . The fields are not required to arise from an actual play.
playValue. For a finite type with decidable equality, a game , total functions , and , For strategies and a start , the play is , where when the owner is false and otherwise. Let be the set of vertices occurring at arbitrarily late times and , with empty maximum . Choose an arbitrary vertex of priority if one exists, and otherwise set . Let be the least time with , with fallback if that vertex never occurs. The play valuation is , where is a set, so repeated visits are collapsed. No legality or injectivity assumption is imposed. If is empty there is no start ; all fallback conventions remain part of the total definition.
reward. For every natural number , the integer reward is when is even and otherwise; in particular the reward of zero is zero.
SetLT. For a type with decidable equality, a game , and finite sets , is less than exactly when there is such that every has priority at most the priority of , and either the priority of is even and , or it is odd and . 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 with decidable equality, a game , and arbitrary valuation triples , Write for even and for odd . For triples and , write when either ; or and some vertex in the symmetric difference has priority at least that of every vertex in that symmetric difference and is in with even priority or in with odd priority; or , , and either is odd and , or is even and . Write for or . The predicate being defined here is precisely the strict comparison ; neither valuation needs to be realized by a play and the game need not have injective priorities.
ValueLE. For a type with decidable equality, a game , and valuation triples , Write for even and for odd . For triples and , write when either ; or and some vertex in the symmetric difference has priority at least that of every vertex in that symmetric difference and is in with even priority or in with odd priority; or , , and either is odd and , or is even and . Write for or . The predicate being defined here is precisely , namely equality of the complete triples or the specified forward strict comparison, without any well-formedness assumption.
IsMinimum. For a finite type with decidable equality, a game , a total function , a vertex , and a valuation , For strategies and a start , the play is , where when the owner is false and otherwise. Let be the set of vertices occurring at arbitrarily late times and , with empty maximum . Choose an arbitrary vertex of priority if one exists, and otherwise set . Let be the least time with , with fallback if that vertex never occurs. The play valuation is , where is a set, so repeated visits are collapsed. Write for even and for odd . For triples and , write when either ; or and some vertex in the symmetric difference has priority at least that of every vertex in that symmetric difference and is in with even priority or in with odd priority; or , , and either is odd and , or is even and . Write for or . The predicate says that some legal true-player strategy realizes as its play valuation from , and that the play valuation from for every legal true-player strategy. The strategy is not assumed legal, and the minimum is required to be attained.
value. For a finite type with decidable equality, a game , a total function , and a vertex , For strategies and a start , the play is , where when the owner is false and otherwise. Let be the set of vertices occurring at arbitrarily late times and , with empty maximum . Choose an arbitrary vertex of priority if one exists, and otherwise set . Let be the least time with , with fallback if that vertex never occurs. The play valuation is , where is a set, so repeated visits are collapsed. Write for even and for odd . For triples and , write when either ; or and some vertex in the symmetric difference has priority at least that of every vertex in that symmetric difference and is in with even priority or in with odd priority; or , , and either is odd and , or is even and . Write for or . A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each , the selected value under 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 , if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is . The weak comparison used in this selection is equality of triples or the strict comparison just described. No legality of , existence of a legal opponent, or well-formedness assumption is part of the definition.
OptimalCounterstrategy. For a finite type with decidable equality, a game and functions , For strategies and a start , the play is , where when the owner is false and otherwise. Let be the set of vertices occurring at arbitrarily late times and , with empty maximum . Choose an arbitrary vertex of priority if one exists, and otherwise set . Let be the least time with , with fallback if that vertex never occurs. The play valuation is , where is a set, so repeated visits are collapsed. Write for even and for odd . For triples and , write when either ; or and some vertex in the symmetric difference has priority at least that of every vertex in that symmetric difference and is in with even priority or in with odd priority; or , , and either is odd and , or is even and . Write for or . The predicate means that is legal at every true-owned vertex and, simultaneously for every starting vertex and every legal true-player function , the play valuation for is the play valuation for . The same must work for all , and is not assumed legal.
Improving. For a finite type with decidable equality, a game , a total function , and vertices , For strategies and a start , the play is , where when the owner is false and otherwise. Let be the set of vertices occurring at arbitrarily late times and , with empty maximum . Choose an arbitrary vertex of priority if one exists, and otherwise set . Let be the least time with , with fallback if that vertex never occurs. The play valuation is , where is a set, so repeated visits are collapsed. Write for even and for odd . For triples and , write when either ; or and some vertex in the symmetric difference has priority at least that of every vertex in that symmetric difference and is in with even priority or in with odd priority; or , , and either is odd and , or is even and . Write for or . A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each , the selected value under 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 , if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is . A move from to is improving exactly when is false-owned, is an edge, and the selected value at is strictly below the selected value at . This does not require itself to be legal.
Improvable. For a finite type with decidable equality, a game and a total function , For strategies and a start , the play is , where when the owner is false and otherwise. Let be the set of vertices occurring at arbitrarily late times and , with empty maximum . Choose an arbitrary vertex of priority if one exists, and otherwise set . Let be the least time with , with fallback if that vertex never occurs. The play valuation is , where is a set, so repeated visits are collapsed. Write for even and for odd . For triples and , write when either ; or and some vertex in the symmetric difference has priority at least that of every vertex in that symmetric difference and is in with even priority or in with odd priority; or , , and either is odd and , or is even and . Write for or . A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each , the selected value under 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 , if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is . The predicate means that there exist vertices with false-owned, an edge, and selected value at strictly below selected value at . It is false when is empty.
Allowed. For a finite type with decidable equality, a game and total functions , For strategies and a start , the play is , where when the owner is false and otherwise. Let be the set of vertices occurring at arbitrarily late times and , with empty maximum . Choose an arbitrary vertex of priority if one exists, and otherwise set . Let be the least time with , with fallback if that vertex never occurs. The play valuation is , where is a set, so repeated visits are collapsed. Write for even and for odd . For triples and , write when either ; or and some vertex in the symmetric difference has priority at least that of every vertex in that symmetric difference and is in with even priority or in with odd priority; or , , and either is odd and , or is even and . Write for or . A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each , the selected value under 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 , if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is . The change is allowed exactly when follows an edge at every false-owned vertex and, at every such , the selected value under the old strategy at is weakly below the selected value under at . No legality condition on is included.
Improvement. For a finite type with decidable equality, a game and functions , For strategies and a start , the play is , where when the owner is false and otherwise. Let be the set of vertices occurring at arbitrarily late times and , with empty maximum . Choose an arbitrary vertex of priority if one exists, and otherwise set . Let be the least time with , with fallback if that vertex never occurs. The play valuation is , where is a set, so repeated visits are collapsed. Write for even and for odd . For triples and , write when either ; or and some vertex in the symmetric difference has priority at least that of every vertex in that symmetric difference and is in with even priority or in with odd priority; or , , and either is odd and , or is even and . Write for or . A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each , the selected value under 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 , if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is . The predicate requires to be legal for false and its chosen successor at every false vertex to have old selected value weakly at least that of ; 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 for which the old value at is strictly above the old value at . If no improving edge exists, this final requirement is vacuous.
LocalStep. For a finite type with decidable equality, a game and functions , For strategies and a start , the play is , where when the owner is false and otherwise. Let be the set of vertices occurring at arbitrarily late times and , with empty maximum . Choose an arbitrary vertex of priority if one exists, and otherwise set . Let be the least time with , with fallback if that vertex never occurs. The play valuation is , where is a set, so repeated visits are collapsed. Write for even and for odd . For triples and , write when either ; or and some vertex in the symmetric difference has priority at least that of every vertex in that symmetric difference and is in with even priority or in with odd priority; or , , and either is odd and , or is even and . Write for or . A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each , the selected value under 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 , if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is . A local step requires to be false-player legal; every false-owned must choose under 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 and every edge , the old selected value at must be weakly below the old selected value at . All comparisons in the last condition use the old strategy .
GlobalStep. For a finite type with decidable equality, a game and functions , For strategies and a start , the play is , where when the owner is false and otherwise. Let be the set of vertices occurring at arbitrarily late times and , with empty maximum . Choose an arbitrary vertex of priority if one exists, and otherwise set . Let be the least time with , with fallback if that vertex never occurs. The play valuation is , where is a set, so repeated visits are collapsed. Write for even and for odd . For triples and , write when either ; or and some vertex in the symmetric difference has priority at least that of every vertex in that symmetric difference and is in with even priority or in with odd priority; or , , and either is odd and , or is even and . Write for or . A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each , the selected value under 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 , if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is . A global step requires 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 whose successor choices are all weak improvements according to old values, and every vertex , the selected value under at is weakly below the selected value under at .
CompleteRun. For a finite type with decidable equality, a game , an arbitrary binary relation on total strategy functions , an initial strategy , a natural number , and a sequence of strategy functions for all natural , For strategies and a start , the play is , where when the owner is false and otherwise. Let be the set of vertices occurring at arbitrarily late times and , with empty maximum . Choose an arbitrary vertex of priority if one exists, and otherwise set . Let be the least time with , with fallback if that vertex never occurs. The play valuation is , where is a set, so repeated visits are collapsed. Write for even and for odd . For triples and , write when either ; or and some vertex in the symmetric difference has priority at least that of every vertex in that symmetric difference and is in with even priority or in with odd priority; or , , and either is odd and , or is even and . Write for or . A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each , the selected value under 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 , if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is . The predicate requires ; is false-player legal for every ; for every there is a false-owned vertex with an outgoing edge to an endpoint strictly better, in the old selected values for , than its current successor, and holds; and no such improving edge exists for . The cost counts relation steps, may be zero, and the sequence after is unrestricted.
edgeCount. For a finite type and a game , the edge count is . Each ordered pair is counted once, self-loops count once, and an empty vertex type gives count zero.
HardInstance. For a finite type with decidable equality, a game , an initial strategy , an arbitrary step relation on such functions, and a natural number , For strategies and a start , the play is , where when the owner is false and otherwise. Let be the set of vertices occurring at arbitrarily late times and , with empty maximum . Choose an arbitrary vertex of priority if one exists, and otherwise set . Let be the least time with , with fallback if that vertex never occurs. The play valuation is , where is a set, so repeated visits are collapsed. Write for even and for odd . For triples and , write when either ; or and some vertex in the symmetric difference has priority at least that of every vertex in that symmetric difference and is in with even priority or in with odd priority; or , , and either is odd and , or is even and . Write for or . A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each , the selected value under 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 , if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is . The predicate requires that every vertex have an outgoing edge and priorities be injective; is false-player legal; some finite complete run exists; and every finite complete run has length . Here a complete run starts at , is false-player legal through time , satisfies and has an improving outgoing edge at each time , and has no improving outgoing edge at , where an improving edge at 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 such that for every natural there exist a natural number , a game on , and an initial strategy with at most ordered-pair edges and every priority at most , satisfying the following conditions: every vertex has an outgoing edge, priorities are injective, is false-player legal, at least one finite complete local-step run exists, and every such run has at least steps. For strategies and a start , the play is , where when the owner is false and otherwise. Let be the set of vertices occurring at arbitrarily late times and , with empty maximum . Choose an arbitrary vertex of priority if one exists, and otherwise set . Let be the least time with , with fallback if that vertex never occurs. The play valuation is , where is a set, so repeated visits are collapsed. Write for even and for odd . For triples and , write when either ; or and some vertex in the symmetric difference has priority at least that of every vertex in that symmetric difference and is in with even priority or in with odd priority; or , , and either is odd and , or is even and . Write for or . A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each , the selected value under 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 , if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is . 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 , is false-player legal through its endpoint, has an improving edge and a local step before each transition, and ends with none. The same works for all positive ; no requirement is made at , and itself is not separately bounded.
ExponentialGlobal. There is a natural number such that for every natural there exist a natural number , a game on , and an initial strategy , with at most ordered-pair edges and each priority at most , for which every vertex has an outgoing edge, priorities are injective, is false-player legal, some finite complete global-step run exists, and every such run has at least steps. For strategies and a start , the play is , where when the owner is false and otherwise. Let be the set of vertices occurring at arbitrarily late times and , with empty maximum . Choose an arbitrary vertex of priority if one exists, and otherwise set . Let be the least time with , with fallback if that vertex never occurs. The play valuation is , where is a set, so repeated visits are collapsed. Write for even and for odd . For triples and , write when either ; or and some vertex in the symmetric difference has priority at least that of every vertex in that symmetric difference and is in with even priority or in with odd priority; or , , and either is odd and , or is even and . Write for or . A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each , the selected value under 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 , if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is . 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 , 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 , no separate bound on , and is uniform.
Binary. For any type and a game , the predicate says that for every vertex there exist two vertices , which may coincide, such that every edge has or . 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 such that for each Boolean and each natural there exist a natural , a game on and an initial strategy 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 ; every priority is at most ; every vertex has an outgoing edge; priorities are injective; is false-player legal; at least one finite complete run exists under global steps when is true and local steps when is false; and every finite complete run under that chosen relation has length at least . For strategies and a start , the play is , where when the owner is false and otherwise. Let be the set of vertices occurring at arbitrarily late times and , with empty maximum . Choose an arbitrary vertex of priority if one exists, and otherwise set . Let be the least time with , with fallback if that vertex never occurs. The play valuation is , where is a set, so repeated visits are collapsed. Write for even and for odd . For triples and , write when either ; or and some vertex in the symmetric difference has priority at least that of every vertex in that symmetric difference and is in with even priority or in with odd priority; or , , and either is odd and , or is even and . Write for or . A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each , the selected value under 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 , if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is . 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 , 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 works for both flags and all positive ; the witnesses may depend on both, no condition is imposed at , and no separate bound on is included.
Wins. For a finite type with decidable equality, a game , a Boolean player , a total function , and a start , For strategies and a start , the play is , where when the owner is false and otherwise. Let be the set of vertices occurring at arbitrarily late times and , with empty maximum . Choose an arbitrary vertex of priority if one exists, and otherwise set . Let be the least time with , with fallback if that vertex never occurs. The play valuation is , where is a set, so repeated visits are collapsed. The predicate requires to be legal for player and requires, for every total function legal for the other player, that the cycle priority of the play be even when is false, with supplying false moves and true moves, and odd when is true, with supplying false moves and true moves. If no legal opposing strategy exists the universal requirement is empty.
WinningRegion. For a finite type with decidable equality, a game and a Boolean player , the winning region is the set of starts for which there exists a total function legal at every -owned vertex such that every opposing legal function produces an even recurring maximal priority if is false and an odd recurring maximal priority if is true, assigning the two functions to their respective owners. For strategies and a start , the play is , where when the owner is false and otherwise. Let be the set of vertices occurring at arbitrarily late times and , with empty maximum . Choose an arbitrary vertex of priority if one exists, and otherwise set . Let be the least time with , with fallback if that vertex never occurs. The play valuation is , where is a set, so repeated visits are collapsed. The witnessing strategy may depend on .
IsSinkGame. For a finite type with decidable equality, a game , an initial function , and a designated vertex , For strategies and a start , the play is , where when the owner is false and otherwise. Let be the set of vertices occurring at arbitrarily late times and , with empty maximum . Choose an arbitrary vertex of priority if one exists, and otherwise set . Let be the least time with , with fallback if that vertex never occurs. The play valuation is , where is a set, so repeated visits are collapsed. Write for even and for odd . For triples and , write when either ; or and some vertex in the symmetric difference has priority at least that of every vertex in that symmetric difference and is in with even priority or in with odd priority; or , , and either is odd and , or is even and . Write for or . A true-player strategy is legal when it follows an edge at each true-owned vertex; false-player legality is defined similarly. At each , the selected value under 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 , if such a valuation exists; an arbitrary such minimum is selected, and otherwise the value is . The predicate requires every vertex to have an outgoing edge, priorities to be injective, to be false-player legal, to be an edge, the priority of to equal , every other priority to be strictly greater than , and every vertex to reach by a finite path of zero or more edges. It further requires that for every false-player legal function , if at every vertex the selected value under is weakly below the selected value under , then the cycle-priority field of the selected value under is at every vertex. It imposes no prohibition on other outgoing edges of .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.