parity_game_even_wins_from
A game on a finite vertex type V is given by own : V → Bool (own v = true means Even owns v, false means Odd owns v), E : V → V → Bool (E v w = true means there is an edge from v to w) and prio : V → ℕ (the priority of each vertex). A player is a Boolean: true is Even, false is Odd. parity_game_even_wins_from own E prio v (arguments in this order) says that there is a map σ : V → V (a positional strategy of Even) with E u (σ u) = true for every vertex u owned by Even, such that every infinite sequence π : ℕ → V with π 0 = v, with E (π n) (π (n+1)) = true for all n, and with π (n+1) = σ (π n) whenever π n is owned by Even, is won by Even in the min-parity sense (parity_game_even_wins_play prio π: the least priority occurring infinitely often along π is even). By positional determinacy of parity games this is equivalent to Even having a winning strategy from v.
Statement
def parity_game_even_wins_from {V : Type} (own : V → Bool) (E : V → V → Bool) (prio : V → ℕ) (v : V) : Prop
- Defined in
- arXiv:2511.03752 (Attractors Is All You Need: Parity Games In Polynomial Time), Section 2 (memoryless winning strategy from a vertex)
- Verified
- 19 Nov 2026
- Axioms
- none listed
- Built on 1
- parity_game_even_wins_playFor a priority map prio : V → ℕ and an infinite sequence of vertices π : ℕ → V, Even wins the play π (min-parity condition) if there is an…
- Used by 1
- parity_game_even_wins_from_counterexample_gameIn the parity game on the four vertices 0, 1, 2, 3 in which Even owns vertices 0 and 1, Odd owns vertices 2 and 3, the priorities are 4,…
Read back from the Lean
For a type V, ownership function own : V → Bool, edge relation E : V → V → Bool, priority assignment prio : V → ℕ, and starting vertex v : V, the declaration asserts that player Even has a positional winning strategy from v. Specifically, there exists a strategy function σ : V → V such that:
1. For every vertex u : V such that own u = true, E u (σ u) = true (i.e., σ selects a valid outgoing edge from u).
2. For every play π : ℕ → V, if:
- π 0 = v (the play starts at v),
- for all n : ℕ, E (π n) (π (n + 1)) = true (the play follows valid edges at every step), and
- for all n : ℕ, own (π n) = true → π (n + 1) = σ (π n) (player Even moves according to σ),
then parity_game_even_wins_play prio π holds, which means there exists an even natural number k such that:
- k % 2 = 0,
- k occurs infinitely often along π (∀ N, ∃ n ≥ N, prio (π n) = k), and
- every strictly smaller priority j < k occurs only finitely often along π (∀ j < k, ∃ N, ∀ n ≥ N, prio (π n) ≠ j),
so the minimum priority occurring infinitely often along π is even.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- Even wins the parity game from vertex `v` with a positional strategy `σ` (min-parity condition): every play from `v` in which Even follows `σ` is won by Even. By positional determinacy this is the same as Even having any winning strategy from `v`. -/ def parity_game_even_wins_from {V : Type} (own : V → Bool) (E : V → V → Bool) (prio : V → ℕ) (v : V) : Prop := ∃ σ : V → V, (∀ u, own u = true → E u (σ u) = true) ∧ ∀ π : ℕ → V, π 0 = v → (∀ n, E (π n) (π (n + 1)) = true) → (∀ n, own (π n) = true → π (n + 1) = σ (π n)) → parity_game_even_wins_play prio π