parity_game_astar
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_astar own E prio d (arguments in this order) is the finite set of vertices v such that 1 ≤ prio v ≤ d, prio v and d have different parities, and v belongs to parity_game_attractor own E pl U, where the player pl is Even if d is even and Odd if d is odd (pl = decide (d % 2 = 0)) and U = parity_game_same_parity_upto prio (prio v − 1) is the set of vertices whose priority is at most prio v − 1 and has the parity of prio v − 1. This is the set A*_d(G) of arXiv:2511.03752, the union over the k ≤ d of parity different from d of the vertices of priority k in the attractor of U_{k−1}(G) for the player of the parity of d; the term k = 0 is empty in a game where every vertex has a successor and is omitted.
Statement
def parity_game_astar {V : Type} [Fintype V] [DecidableEq V] (own : V → Bool) (E : V → V → Bool) (prio : V → ℕ) (d : ℕ) : Finset V
- Defined in
- arXiv:2511.03752 (Attractors Is All You Need: Parity Games In Polynomial Time), Section 3 (the set A*_d(G); the empty k = 0 term omitted)
- Verified
- 19 Nov 2026
- Axioms
- none listed
- Built on 2
- parity_game_attractorA 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…
- parity_game_same_parity_uptoFor a priority map prio : V → ℕ on a finite vertex type V and a natural number d, parity_game_same_parity_upto prio d is the finite set of…
- Used by 1
- parity_game_aprimeA 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…
Read back from the Lean
parity_game_astar own E prio d defines the finite set of vertices v : V in a finite graph with vertex type V (equipped with DecidableEq V and Fintype V), vertex ownership function own : V → Bool, edge relation E : V → V → Bool, and priority function prio : V → ℕ, such that:
1. 1 ≤ prio v,
2. prio v ≤ d,
3. prio v % 2 ≠ d % 2 (i.e., prio v and d have different parities), and
4. v belongs to the attractor for player decide (d % 2 = 0) towards the set parity_game_same_parity_upto prio (prio v - 1) (the set of vertices whose priority is at most prio v - 1 and has the same parity as prio v - 1).
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
/-- The set `A*_d(G)` of arXiv:2511.03752 for the player of the parity of `d`: the vertices whose priority `k ≤ d` has the other parity and which lie in that player's attractor of `U_{k-1}(G)`. For `k = 0` the set `U_{-1}(G)` is empty and so is its attractor (every vertex has a successor), so that term is left out. -/ def parity_game_astar {V : Type} [Fintype V] [DecidableEq V] (own : V → Bool) (E : V → V → Bool) (prio : V → ℕ) (d : ℕ) : Finset V := Finset.univ.filter (fun v => 1 ≤ prio v ∧ prio v ≤ d ∧ prio v % 2 ≠ d % 2 ∧ v ∈ parity_game_attractor own E (decide (d % 2 = 0)) (parity_game_same_parity_upto prio (prio v - 1)))