parity_game_peel_claimed_dominion_counterexample
Consider 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, 0, 3, 4 (in this order), and the edges are 0→3, 1→2, 2→0, 2→1, 3→0, 3→1 (no self-loops, every vertex has a successor), with the min-parity winning condition, and take d = 3 (the priority of vertex 2, a priority of player Odd). Then (1) for every k, the set A^k(G, 3) of arXiv:2511.03752 (the second component of parity_game_peel_seq at index k, computed with own, edge and priority maps of this game and d = 3) is the set of all four vertices, so their intersection A(G, 3) is the whole vertex set; and (2) every infinite sequence of vertices that follows the edges of the game (every play, whatever the two players do) is won by Even: the least priority occurring infinitely often along it is even. So A(G, 3) is not a dominion of player Odd, who wins from no vertex, contrary to Theorem 2 of arXiv:2511.03752; and Algorithm 1 of that paper, whose first iteration on this game has maximum priority 4, hence computes A(G, 3) for Odd and assigns all of it to Odd's winning set, returns W_Odd = V although Even wins from every vertex, contrary to its Theorems 5 and 8.
Statement
theorem parity_game_peel_claimed_dominion_counterexample : (∀ k, (parity_game_peel_seq (![true, true, false, false] : Fin 4 → Bool) (fun v w => (![![false, false, false, true], ![false, false, true, false], ![true, true, false, false], ![true, true, false, false]] : Fin 4 → Fin 4 → Bool) v w) (![4, 0, 3, 4] : Fin 4 → ℕ) 3 k).2 = Finset.univ) ∧ ∀ π : ℕ → Fin 4, (∀ n, (![![false, false, false, true], ![false, false, true, false], ![true, true, false, false], ![true, true, false, false]] : Fin 4 → Fin 4 → Bool) (π n) (π (n + 1)) = true) → parity_game_even_wins_play (![4, 0, 3, 4] : Fin 4 → ℕ) π
- Corrects
- arXiv:2511.03752 (Attractors Is All You Need: Parity Games In Polynomial Time), Theorem 2 (A(G, d) is a dominion of the player of d), and with it Theorems 5 and 8 (Algorithm 1 solves parity games): false on a 4-vertex game without self-loops. Definitions taken from the paper's LaTeX source (v1, the only version); the result holds under both readings of U_{k-1} at k = 0.
- Verified
- 19 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 4
- parity_game_peel_seqA 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_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…
- 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_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…
- 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
The theorem asserts that for a specific 4-vertex parity game on vertex set Fin 4 with:
- vertex ownership own : Fin 4 → Bool given by own 0 = true, own 1 = true, own 2 = false, own 3 = false,
- directed edges E : Fin 4 → Fin 4 → Bool given by $0 \to 3$, $1 \to 2$, $2 \to 0, 1$, and $3 \to 0, 1$ (all other pairs are false),
- vertex priorities prio : Fin 4 → ℕ given by prio 0 = 4, prio 1 = 0, prio 2 = 3, prio 3 = 4, and
- parameter $d = 3$,
both of the following hold:
1. For every natural number $k$, the second component of parity_game_peel_seq own E prio 3 k is equal to Finset.univ (the set of all four vertices).
2. For every sequence $\pi : \mathbb{N} \to \text{Fin } 4$, if for all $n \in \mathbb{N}$, $(\pi(n), \pi(n+1))$ is an edge in $E$, then player Even wins the play $\pi$ under priority function prio (meaning there exists an even priority $k$ that appears infinitely often along $\pi$ while every strictly smaller priority appears only finitely often).
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
The theorem provides an explicit 4-vertex counterexample to the peeling algorithm and claimed dominion property of arXiv:2511.03752. The peeling sequence stabilizes immediately to ({2}, V), so Aᵏ(G, 3) is the entire vertex set V for all k, proven by induction on k via finite-state verification (`decide`). However, Even wins every valid play π: either vertex 1 is visited infinitely often, giving Even a win with least priority 0; or vertex 1 is eventually avoided, forcing all subsequent positions to lie in {0, 3} and giving Even a win with least priority 4.
For every iteration k, the peeled set Aᵏ(G, 3) is the entire vertex set V = {0, 1, 2, 3}.
We split the theorem into its two conjuncts. For the first conjunct, we prove by induction on k that the peeling sequence produces the pair ({2}, V) at every step. For the base case k = 0, the attractor and priority computations are verified by direct finite evaluation (`decide`). For the inductive step k + 1, rewriting with the definition of `parity_game_peel_seq` and the inductive hypothesis reduces the goal to another finite computation verified by `decide`. Projecting to the second component gives Aᵏ(G, 3) = V for all k.
uses
parity_game_peel_seqrefine ⟨?_, ?_⟩ · have h : ∀ k, parity_game_peel_seq (![true, true, false, false] : Fin 4 → Bool) (fun v w => (![![false, false, false, true], ![false, false, true, false], ![true, true, false, false], ![true, true, false, false]] : Fin 4 → Fin 4 → Bool) v w) (![4, 0, 3, 4] : Fin 4 → ℕ) 3 k = ({2}, Finset.univ) := by intro k induction k with | zero => decide | succ k ih => rw [parity_game_peel_seq, ih] decide intro k rw [h k]
If a play π visits vertex 1 infinitely often, then Even wins the play with minimal priority 0.
Fixing an arbitrary valid play π, we perform a case split on whether vertex 1 is visited infinitely often. If it is, priority 0 occurs infinitely often because vertex 1 has priority 0. Since 0 is the smallest natural number (`Nat.not_lt_zero`), no strictly smaller priority can ever appear along π, making 0 the least priority visited infinitely often. Since 0 is even, Even wins the play.
uses
Nat.not_lt_zero· intro π hπ by_cases h : ∀ N, ∃ n, N ≤ n ∧ π n = 1 · refine ⟨0, rfl, ?_, fun j hj => absurd hj (Nat.not_lt_zero j)⟩ intro N obtain ⟨n, hn, e⟩ := h N exact ⟨n, hn, by rw [e]; rfl⟩
If vertex 1 is visited only finitely often, there exists a step N such that every vertex visited at or after step N + 1 has priority 4.
Negating the assumption of infinitely many visits using de Morgan's laws (`not_forall`, `not_exists`, `not_and`) yields a threshold N such that π n ≠ 1 for all n ≥ N. For any step n ≥ N + 1, writing n = m + 1 with m ≥ N, neither the source π m nor the destination π (m + 1) can be vertex 1. An exhaustive check of the game graph shows that any edge from a vertex other than 1 to a vertex other than 1 must end at vertex 0 (from 2 or 3) or vertex 3 (from 0), both of which carry priority 4. This finite transition check over Fin 4 is discharged by `decide`.
uses
not_forall,not_exists,not_and· simp only [not_forall, not_exists, not_and] at h obtain ⟨N, hN⟩ := h have key : ∀ n, N + 1 ≤ n → (![4, 0, 3, 4] : Fin 4 → ℕ) (π n) = 4 := by intro n hn obtain ⟨m, rfl⟩ : ∃ m, n = m + 1 := ⟨n - 1, by omega⟩ have h1 := hN m (by omega) have h2 := hN (m + 1) (by omega) have h3 := hπ m generalize π m = a at h1 h3 generalize π (m + 1) = b at h2 h3 ⊢ revert a b decide
When vertex 1 is visited only finitely often, Even wins the play with minimal priority 4.
Because every vertex from step N + 1 onward has priority 4, priority 4 occurs infinitely often: for any bound M, evaluating at max(M, N + 1) ≥ M (via `le_max_left` and `le_max_right`) provides a step with priority 4. Furthermore, any priority j < 4 cannot appear at or after step N + 1, since equating 4 to j yields an immediate arithmetic contradiction (`omega`). Hence 4 is the least priority occurring infinitely often. Since 4 is even, Even wins the play.
uses
le_max_left,le_max_rightrefine ⟨4, rfl, fun M => ⟨max M (N + 1), le_max_left _ _, key _ (le_max_right _ _)⟩, ?_⟩ intro j hj exact ⟨N + 1, fun n hn e => by rw [key n hn] at e; omega⟩
parity_game_peel_seq- The recursive definition of the peeling sequence for a parity game, which generates a pair of vertex sets (Wᵏ, Aᵏ) at each iteration k.
Nat.not_lt_zero- No natural number is strictly less than zero (∀ n, ¬(n < 0)).
not_forall- A negated universal quantifier is equivalent to an existential statement (¬(∀ x, P x) ↔ ∃ x, ¬P x).
not_exists- A negated existential quantifier is equivalent to a universal statement (¬(∃ x, P x) ↔ ∀ x, ¬P x).
not_and- The negation of a conjunction is equivalent to an implication to negation (¬(a ∧ b) ↔ a → ¬b).
le_max_left- In any linear order, the first argument is at most the maximum of two elements (a ≤ max a b).
le_max_right- In any linear order, the second argument is at most the maximum of two elements (b ≤ max a b).
- The base case (line 18), inductive step (line 21), and transition check (line 41) use `decide` to evaluate boolean expressions, attractor sets, and universal properties by exhaustive computation over the 4-vertex game.
- Integer index arithmetic and bounds (lines 34, 35, 36, and 44) are discharged automatically by `omega`.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem parity_game_peel_claimed_dominion_counterexample : (∀ k, (parity_game_peel_seq (![true, true, false, false] : Fin 4 → Bool) (fun v w => (![![false, false, false, true], ![false, false, true, false], ![true, true, false, false], ![true, true, false, false]] : Fin 4 → Fin 4 → Bool) v w) (![4, 0, 3, 4] : Fin 4 → ℕ) 3 k).2 = Finset.univ) ∧ ∀ π : ℕ → Fin 4, (∀ n, (![![false, false, false, true], ![false, false, true, false], ![true, true, false, false], ![true, true, false, false]] : Fin 4 → Fin 4 → Bool) (π n) (π (n + 1)) = true) → parity_game_even_wins_play (![4, 0, 3, 4] : Fin 4 → ℕ) π := by refine ⟨?_, ?_⟩ · have h : ∀ k, parity_game_peel_seq (![true, true, false, false] : Fin 4 → Bool) (fun v w => (![![false, false, false, true], ![false, false, true, false], ![true, true, false, false], ![true, true, false, false]] : Fin 4 → Fin 4 → Bool) v w) (![4, 0, 3, 4] : Fin 4 → ℕ) 3 k = ({2}, Finset.univ) := by intro k induction k with | zero => decide | succ k ih => rw [parity_game_peel_seq, ih] decide intro k rw [h k] · intro π hπ by_cases h : ∀ N, ∃ n, N ≤ n ∧ π n = 1 · refine ⟨0, rfl, ?_, fun j hj => absurd hj (Nat.not_lt_zero j)⟩ intro N obtain ⟨n, hn, e⟩ := h N exact ⟨n, hn, by rw [e]; rfl⟩ · simp only [not_forall, not_exists, not_and] at h obtain ⟨N, hN⟩ := h have key : ∀ n, N + 1 ≤ n → (![4, 0, 3, 4] : Fin 4 → ℕ) (π n) = 4 := by intro n hn obtain ⟨m, rfl⟩ : ∃ m, n = m + 1 := ⟨n - 1, by omega⟩ have h1 := hN m (by omega) have h2 := hN (m + 1) (by omega) have h3 := hπ m generalize π m = a at h1 h3 generalize π (m + 1) = b at h2 h3 ⊢ revert a b decide refine ⟨4, rfl, fun M => ⟨max M (N + 1), le_max_left _ _, key _ (le_max_right _ _)⟩, ?_⟩ intro j hj exact ⟨N + 1, fun n hn e => by rw [key n hn] at e; omega⟩