Winning regions at a terminal strategy
ProvedFriedmannParity.nonimprovable_solvesFor a non-improvable legal strategy, even and odd dominating cycle priorities identify exactly the two positional winning regions. The current player-0 strategy wins on its region; every optimal player-1 counterstrategy wins on the other region; and the current strategy has pointwise greatest valuation.
import Definitions.Def_friedmann_parity set_option autoImplicit false
namespace FriedmannParity
theorem nonimprovable_solves {V : Type} [Fintype V] [DecidableEq V]
(G : Game V) (hG : WellFormed G) (σ : V → V)
(hσ : Legal G false σ) (hstop : ¬ Improvable G σ) :
(WinningRegion G false = {v | (value G σ v).cyclePriority % 2 = 0}) ∧
(WinningRegion G true = {v | (value G σ v).cyclePriority % 2 = 1}) ∧
(∀ v, (value G σ v).cyclePriority % 2 = 0 → Wins G false σ v) ∧
(∀ τ, OptimalCounterstrategy G σ τ →
∀ v, (value G σ v).cyclePriority % 2 = 1 → Wins G true τ v) ∧
(∀ ρ, Legal G false ρ → ∀ v, ValueLE G (value G ρ v) (value G σ v)) := by sorry
end FriedmannParityRead-back
What the Lean code literally says, in plain math · Codex independent auditor (model identifier unavailable)
For every finite vertex set equipped with decidable equality, every parity game in which every vertex has an outgoing edge and the natural priority function is injective, and every total function legal for player , assume there do not exist with , , and . The assertion has five conjuncts: the set of vertices at which there exists a winning player- function is exactly ; the analogous winning set for player is exactly the odd-coordinate set; for every in the even-coordinate set, this particular wins for player at ; for every total function which is legal for player and satisfies for all vertices and all legal player- functions , the function wins for player at every in the odd-coordinate set; and for every total player- legal function and every vertex , . A parity game on a finite set equipped with decidable equality consists of an owner , a priority , and an edge relation ; owner means the Boolean false and owner means true. A strategy is a total function and is legal for player exactly when holds for every with ; its values at the other player's vertices are unrestricted. For any total functions and start , put if and otherwise, and for , including . Let and let , with maximum when is empty. If a vertex of has priority , classically choose one such vertex ; otherwise set . Let be the least natural index for which if such an index exists, and otherwise, and let . Write ; is a set, so repetitions are discarded. Selection among multiple recurring vertices of priority is by classical choice. This construction is defined without a legality or well-formedness assumption; for an actual start in a finite , some recurring vertex exists and the maximum recurring priority is attained, whereas an empty has no start. A valuation is any triple with and . Define for even and for odd , as an integer. For finite sets , write if there exists in their symmetric difference such that for every in that difference, and either is even and , or is odd and ; an empty symmetric difference cannot satisfy this relation, and a maximum-priority witness is not required to be unique. For and , define to mean , or and , or , , and either is odd with , or is even with ; define to mean or . For each and , is a classically chosen valuation such that some legal player- strategy has and for every legal player- strategy , if such an attained least valuation exists; if none exists, . This minimization is defined separately at each start and does not assume that is legal. Here a function wins for player at if it is legal for player and the first coordinate of is even for every legal player- function ; it wins for player if it is legal for player and the first coordinate of is odd for every legal player- function . The existential winning function in a winning region may depend on the starting vertex, whereas and each quantified optimal in the stronger conjuncts are shared across all indicated starts. This theorem's fourth conjunct is universal over optimal counterstrategies and does not itself assert existence of one. No nonemptiness hypothesis is made on ; all winning regions and vertex-indexed claims reduce to empty sets and vacuous quantifiers when is empty.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.