Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Winning regions at a terminal strategy

Proved
FriedmannParity.nonimprovable_solves

by kmehltretter82 · Nov 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

algorithm-analysisoliver-friedmanntheoretical-computer-science

For 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.

Preamble
import Definitions.Def_friedmann_parity

set_option autoImplicit false
Formal statement
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 FriedmannParity
Source
Oliver Friedmann, An Exponential Lower Bound for the Latest Deterministic Strategy Iteration Algorithms, LMCS 2011, author PDF https://oliverfriedmann.com/downloads/papers/strategy_improvement_lower_bound_journal.pdf; arXiv:1106.0778v2 https://arxiv.org/abs/1106.0778; §3, Theorem 3.3, all five conclusions
Read-back

What the Lean code literally says, in plain math · Codex independent auditor (model identifier unavailable)

For every finite vertex set VVV equipped with decidable equality, every parity game GGG in which every vertex has an outgoing edge and the natural priority function is injective, and every total function σ:V→V\sigma:V\to Vσ:V→V legal for player 000, assume there do not exist v,wv,wv,w with o(v)=0o(v)=0o(v)=0, E(v,w)E(v,w)E(v,w), and Qσ(σ(v))≺Qσ(w)Q_\sigma(\sigma(v))\prec Q_\sigma(w)Qσ​(σ(v))≺Qσ​(w). The assertion has five conjuncts: the set of vertices at which there exists a winning player-000 function is exactly {v:the first coordinate of Qσ(v) is even}\{v:\text{the first coordinate of }Q_\sigma(v)\text{ is even}\}{v:the first coordinate of Qσ​(v) is even}; the analogous winning set for player 111 is exactly the odd-coordinate set; for every vvv in the even-coordinate set, this particular σ\sigmaσ wins for player 000 at vvv; for every total function τ\tauτ which is legal for player 111 and satisfies Pσ,τ(v)⪯Pσ,τ′(v)P_{\sigma,\tau}(v)\preceq P_{\sigma,\tau'}(v)Pσ,τ​(v)⪯Pσ,τ′​(v) for all vertices vvv and all legal player-111 functions τ′\tau'τ′, the function τ\tauτ wins for player 111 at every vvv in the odd-coordinate set; and for every total player-000 legal function ρ\rhoρ and every vertex vvv, Qρ(v)⪯Qσ(v)Q_\rho(v)\preceq Q_\sigma(v)Qρ​(v)⪯Qσ​(v). A parity game on a finite set VVV equipped with decidable equality consists of an owner o:V→{0,1}o:V\to\{0,1\}o:V→{0,1}, a priority d:V→Nd:V\to\mathbb Nd:V→N, and an edge relation E⊆V×VE\subseteq V\times VE⊆V×V; owner 000 means the Boolean false and owner 111 means true. A strategy is a total function V→VV\to VV→V and is legal for player iii exactly when E(v,σ(v))E(v,\sigma(v))E(v,σ(v)) holds for every vvv with o(v)=io(v)=io(v)=i; its values at the other player's vertices are unrestricted. For any total functions σ,τ:V→V\sigma,\tau:V\to Vσ,τ:V→V and start v∈Vv\in Vv∈V, put f(u)=σ(u)f(u)=\sigma(u)f(u)=σ(u) if o(u)=0o(u)=0o(u)=0 and f(u)=τ(u)f(u)=\tau(u)f(u)=τ(u) otherwise, and πt=ft(v)\pi_t=f^t(v)πt​=ft(v) for t∈Nt\in\mathbb Nt∈N, including π0=v\pi_0=vπ0​=v. Let R={u∈V:∀t∈N ∃k∈N, k≥t and πk=u}R=\{u\in V:\forall t\in\mathbb N\ \exists k\in\mathbb N,\ k\ge t\ \text{and}\ \pi_k=u\}R={u∈V:∀t∈N ∃k∈N, k≥t and πk​=u} and let p=max⁡{d(u):u∈R}p=\max\{d(u):u\in R\}p=max{d(u):u∈R}, with maximum 000 when RRR is empty. If a vertex of RRR has priority ppp, classically choose one such vertex zzz; otherwise set z=vz=vz=v. Let kkk be the least natural index for which πk=z\pi_k=zπk​=z if such an index exists, and 000 otherwise, and let A={πj:0≤j<k, p<d(πj)}A=\{\pi_j:0\le j<k,\ p<d(\pi_j)\}A={πj​:0≤j<k, p<d(πj​)}. Write Pσ,τ(v)=(p,A,k)P_{\sigma,\tau}(v)=(p,A,k)Pσ,τ​(v)=(p,A,k); AAA is a set, so repetitions are discarded. Selection among multiple recurring vertices of priority ppp is by classical choice. This construction is defined without a legality or well-formedness assumption; for an actual start in a finite VVV, some recurring vertex exists and the maximum recurring priority is attained, whereas an empty VVV has no start. A valuation is any triple (p,A,k)(p,A,k)(p,A,k) with p,k∈Np,k\in\mathbb Np,k∈N and A⊆VA\subseteq VA⊆V. Define r(p)=pr(p)=pr(p)=p for even ppp and r(p)=−pr(p)=-pr(p)=−p for odd ppp, as an integer. For finite sets A,BA,BA,B, write A◃BA\triangleleft BA◃B if there exists www in their symmetric difference such that d(u)≤d(w)d(u)\le d(w)d(u)≤d(w) for every uuu in that difference, and either d(w)d(w)d(w) is even and w∈Bw\in Bw∈B, or d(w)d(w)d(w) is odd and w∈Aw\in Aw∈A; an empty symmetric difference cannot satisfy this relation, and a maximum-priority witness is not required to be unique. For a=(p,A,k)a=(p,A,k)a=(p,A,k) and b=(q,B,ℓ)b=(q,B,\ell)b=(q,B,ℓ), define a≺ba\prec ba≺b to mean r(p)<r(q)r(p)<r(q)r(p)<r(q), or p=qp=qp=q and A◃BA\triangleleft BA◃B, or p=qp=qp=q, A=BA=BA=B, and either ppp is odd with k<ℓk<\ellk<ℓ, or ppp is even with ℓ<k\ell<kℓ<k; define a⪯ba\preceq ba⪯b to mean a=ba=ba=b or a≺ba\prec ba≺b. For each σ\sigmaσ and vvv, Qσ(v)Q_\sigma(v)Qσ​(v) is a classically chosen valuation aaa such that some legal player-111 strategy τ\tauτ has Pσ,τ(v)=aP_{\sigma,\tau}(v)=aPσ,τ​(v)=a and a⪯Pσ,τ′(v)a\preceq P_{\sigma,\tau'}(v)a⪯Pσ,τ′​(v) for every legal player-111 strategy τ′\tau'τ′, if such an attained least valuation exists; if none exists, Qσ(v)=(0,∅,0)Q_\sigma(v)=(0,\varnothing,0)Qσ​(v)=(0,∅,0). This minimization is defined separately at each start and does not assume that σ\sigmaσ is legal. Here a function α\alphaα wins for player 000 at vvv if it is legal for player 000 and the first coordinate of Pα,β(v)P_{\alpha,\beta}(v)Pα,β​(v) is even for every legal player-111 function β\betaβ; it wins for player 111 if it is legal for player 111 and the first coordinate of Pβ,α(v)P_{\beta,\alpha}(v)Pβ,α​(v) is odd for every legal player-000 function β\betaβ. The existential winning function in a winning region may depend on the starting vertex, whereas σ\sigmaσ and each quantified optimal τ\tauτ 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 VVV; all winning regions and vertex-indexed claims reduce to empty sets and vacuous quantifiers when VVV is empty.

Human review
  • Endorsed by Shuze Chen · Nov 7, 2026

    Confirmed by the moderator at approval.

  • Endorsed by kmehltretter82 · Nov 7, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me