parity_game_not_even_wins_play_of_odd_min
If an odd priority k occurs infinitely often along a play and every smaller priority occurs only finitely often, then Even does not win the play under the min-parity condition (the least priority seen infinitely often is unique).
Statement
theorem parity_game_not_even_wins_play_of_odd_min {V : Type} (prio : V → ℕ) (π : ℕ → V) (k : ℕ) (hk : k % 2 = 1) (hf : ∀ N, ∃ n, N ≤ n ∧ prio (π n) = k) (hlt : ∀ j, j < k → ∃ N, ∀ n, N ≤ n → prio (π n) ≠ j) : ¬ parity_game_even_wins_play prio π
- Source
- arXiv:2511.03752 (Attractors Is All You Need: Parity Games In Polynomial Time): sanity lemma for the min-parity winning condition
- Verified
- 19 Nov 2026
- Axioms
Quot.soundpropext- 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…
The proof, explained
The theorem is proved by contradiction. Assuming Even wins the play under the min-parity condition, there is an even priority k' that appears infinitely often such that all smaller priorities appear only finitely often. By trichotomy, either k < k', k = k', or k' < k. The case k = k' is impossible because k is odd while k' is even, and the cases k < k' and k' < k are impossible because the minimality of the larger priority contradicts the infinite recurrence of the smaller one.
Assume for contradiction that Even wins the play, obtaining an even priority k' that occurs infinitely often along the play, with every strictly smaller priority occurring only finitely often.
Unfolding the definition of Even winning (parity_game_even_wins_play), we assume the negation of the theorem's goal. This provides an even priority k' (k' % 2 = 0), a proof that k' occurs infinitely often along the play π, and a proof that every priority j < k' occurs only finitely often along π.
rintro ⟨k', hk', hf', hlt'⟩
It suffices to derive a contradiction in each case of the trichotomy between k and k': k < k', k = k', or k' < k.
By the trichotomy of natural numbers (Nat.lt_trichotomy), any two natural numbers satisfy k < k', k = k', or k' < k. Applying this case distinction splits the goal into three subgoals.
uses
Nat.lt_trichotomyrcases Nat.lt_trichotomy k k' with h | h | h
The case k < k' leads to a contradiction.
Because k < k', the minimality condition on k' provides an index N beyond which priority k never appears along π. But by the hypothesis that k occurs infinitely often, there is some index n ≥ N at which priority k does appear, contradicting the cutoff property.
· obtain ⟨N, hN⟩ := hlt' k h obtain ⟨n, hn, e⟩ := hf N exact hN n hn e
The case k = k' is impossible. automation
If k = k', then k would have to be both odd (k % 2 = 1) and even (k' % 2 = 0). This parity contradiction is resolved by linear integer arithmetic (omega).
· omegaThe case k' < k leads to a contradiction.
Symmetrically, because k' < k, the hypothesis that every priority smaller than k occurs only finitely often yields an index N beyond which k' never appears. But k' is assumed to occur infinitely often, so it appears at some index n ≥ N, contradicting the cutoff property.
· obtain ⟨N, hN⟩ := hlt k' h obtain ⟨n, hn, e⟩ := hf' N exact hN n hn e
Nat.lt_trichotomy- For any two natural numbers a and b, exactly one of a < b, a = b, or b < a holds (expressed as a three-way disjunction).
- In the case k = k' (line 9), the automated tactic omega closes the goal by detecting the arithmetic contradiction between k % 2 = 1 and k' % 2 = 0.
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_not_even_wins_play_of_odd_min {V : Type} (prio : V → ℕ) (π : ℕ → V) (k : ℕ) (hk : k % 2 = 1) (hf : ∀ N, ∃ n, N ≤ n ∧ prio (π n) = k) (hlt : ∀ j, j < k → ∃ N, ∀ n, N ≤ n → prio (π n) ≠ j) : ¬ parity_game_even_wins_play prio π := by rintro ⟨k', hk', hf', hlt'⟩ rcases Nat.lt_trichotomy k k' with h | h | h · obtain ⟨N, hN⟩ := hlt' k h obtain ⟨n, hn, e⟩ := hf N exact hN n hn e · omega · obtain ⟨N, hN⟩ := hlt k' h obtain ⟨n, hn, e⟩ := hf' N exact hN n hn e