parity_game_attractor_superset
The attractor of a set U of vertices, for either player, contains U.
Statement
theorem parity_game_attractor_superset {V : Type} [Fintype V] [DecidableEq V] (own : V → Bool) (E : V → V → Bool) (pl : Bool) (U : Finset V) : U ⊆ parity_game_attractor own E pl U
- Source
- arXiv:2511.03752 (Attractors Is All You Need: Parity Games In Polynomial Time): sanity lemma for the attractor definition
- Verified
- 19 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- 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…
The proof, explained
The parity game attractor of a set U is defined as the |V|-fold iteration of an inflationary one-step attractor operator F(X) = X ∪ … starting from U. Generalizing the iteration count |V| to an arbitrary natural number n, the inclusion U ⊆ F^[n](U) is established by induction on n. The base case n = 0 is trivial reflexivity (U ⊆ U), and the inductive step follows because each iteration only adds vertices via a union, preserving containment by transitivity.
It suffices to prove by induction on n that U ⊆ F^[n](U) for all n ∈ ℕ, where F(X) = X ∪ … is the one-step attractor operator.
Unfolding the definition of parity_game_attractor reveals that the attractor is the |V|-fold iteration of an operator F that adds to any set X those vertices from which the player can force play into X. Generalizing the vertex count |V| to an arbitrary natural number n allows the statement to be proven by induction on n.
unfold parity_game_attractor generalize Fintype.card V = n induction n with
The base case holds: U ⊆ F^[0](U). automation
Applying an operator zero times is the identity function, so F^[0](U) = U. The resulting goal U ⊆ U is closed by simplification via reflexivity.
| zero => simpAssuming U ⊆ F^[n](U), the inclusion holds for n + 1: U ⊆ F^[n+1](U).
Rewriting with Function.iterate_succ_apply' decomposes the (n+1)-th iterate into F(F^[n](U)), which has the form F^[n](U) ∪ …. By Finset.subset_union_left, any set is contained in its union with another set, giving F^[n](U) ⊆ F^[n+1](U). Combining this with the induction hypothesis U ⊆ F^[n](U) via transitivity completes the inductive step.
uses
Function.iterate_succ_apply',Finset.subset_union_left| succ n ih => rw [Function.iterate_succ_apply'] exact ih.trans Finset.subset_union_left
Function.iterate_succ_apply'- The (n+1)-th iterate of a function f equals f applied to the n-th iterate: f^{n+1}(x) = f(f^n(x)).
Finset.subset_union_left- Every finite set is a subset of its union with any other finite set: s₁ ⊆ s₁ ∪ s₂.
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_attractor_superset {V : Type} [Fintype V] [DecidableEq V] (own : V → Bool) (E : V → V → Bool) (pl : Bool) (U : Finset V) : U ⊆ parity_game_attractor own E pl U := by unfold parity_game_attractor generalize Fintype.card V = n induction n with | zero => simp | succ n ih => rw [Function.iterate_succ_apply'] exact ih.trans Finset.subset_union_left