AFTD Auto-Formalizing Theoretical Domains

parity_game_even_wins_play_of_frequently_zero

theoremverified

A play that visits priority 0 infinitely often is won by Even under the min-parity condition.

Statement

theorem parity_game_even_wins_play_of_frequently_zero {V : Type} (prio : V → ℕ) (π : ℕ → V)
    (h : ∀ N, ∃ n, N ≤ n ∧ prio (π n) = 0) : 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
none — Lean reports it depends on no axioms
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

To show that Even wins the play under the min-parity condition, we exhibit an even priority that occurs infinitely often such that no smaller priority occurs infinitely often. Setting the priority to 0 immediately works: 0 is even, hypothesis h guarantees it appears infinitely often, and because 0 is the smallest natural number, the requirement that no smaller priority occurs is vacuously true.

  1. The play π satisfies Even's winning condition with minimal priority k = 0.

    By definition, Even wins if there is an even priority k that occurs infinitely often along π such that all priorities strictly less than k occur only finitely often. We instantiate this existential witness with k = 0, verifying: (1) 0 % 2 = 0 holds definitionally; (2) priority 0 occurs infinitely often by hypothesis h; and (3) the condition for any priority j < 0 is vacuously satisfied because no natural number is less than 0 (Nat.not_lt_zero).

    line 3

    uses Nat.not_lt_zero

      exact ⟨0, rfl, h, fun j hj => absurd hj (Nat.not_lt_zero j)⟩
Nat.not_lt_zero
No natural number is strictly less than zero (¬ n < 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

theorem parity_game_even_wins_play_of_frequently_zero {V : Type} (prio : V → ℕ) (π : ℕ → V)    (h : ∀ N, ∃ n, N ≤ n ∧ prio (π n) = 0) : parity_game_even_wins_play prio π := by  exact ⟨0, rfl, h, fun j hj => absurd hj (Nat.not_lt_zero j)⟩
See it in the graphDiscuss this resultChallenge it