op869_goal_game_strategy_simulation
A winning finite-game strategy transfers through a relation when legal moves can be simulated, every response can be matched, and related goal states preserve success.
Statement
theorem op869_goal_game_strategy_simulation {S₁ S₂ M₁ M₂ R₁ R₂ : Type} (g₁ : S₁ → Prop) (g₂ : S₂ → Prop) (legal₁ : S₁ → M₁ → Prop) (legal₂ : S₂ → M₂ → Prop) (valid₁ : S₁ → M₁ → R₁ → Prop) (valid₂ : S₂ → M₂ → R₂ → Prop) (next₁ : S₁ → M₁ → R₁ → S₁) (next₂ : S₂ → M₂ → R₂ → S₂) (rel : S₁ → S₂ → Prop) (hgoal : ∀ s₁ s₂, rel s₁ s₂ → g₁ s₁ → g₂ s₂) (hstep : ∀ s₁ s₂, rel s₁ s₂ → ∀ a₁, legal₁ s₁ a₁ → ∃ a₂, legal₂ s₂ a₂ ∧ ∀ r₂, valid₂ s₂ a₂ r₂ → ∃ r₁, valid₁ s₁ a₁ r₁ ∧ rel (next₁ s₁ a₁ r₁) (next₂ s₂ a₂ r₂)) : ∀ fuel s₁ s₂, rel s₁ s₂ → op869_sequential_goal_game g₁ legal₁ valid₁ next₁ fuel s₁ → op869_sequential_goal_game g₂ legal₂ valid₂ next₂ fuel s₂
- Source
- Strategy simulation for the adaptive online-coloring construction in arXiv:2610.41516 Section 2.
- Verified
- 18 Nov 2026
- Axioms
- none — Lean reports it depends on no axioms
- Built on 1
- op869_bounded_game_sequential_composeIf an adversary can force a chosen intermediate state property within fuel₁ moves, and can then force K colors within fuel₂ further moves…
- Used by 1
- op869_disjoint_interval_game_liftA local k-colorable online strategy can be played on a fresh disconnected interval after any k-colorable earlier graph, without changing…
The proof, explained
The theorem is proved by induction on the fuel budget. The base case (zero fuel) is vacuously true because winning with zero fuel is impossible by definition. In the inductive step with fuel + 1, player 1's winning move is transferred to a legal move for player 2 via the step simulation hypothesis, and for each valid opponent response, the simulation yields a matched response leading to related successor states where player 2 either reaches the goal immediately or wins by the induction hypothesis.
The simulation holds vacuously in the base case with 0 fuel.
We proceed by induction on fuel. When fuel = 0, the assumption that player 1 has a winning strategy (`hgame`) is contradictory because `op869_sequential_goal_game` with 0 fuel simplifies to False by definition, so the base case holds vacuously.
uses
op869_sequential_goal_gameintro fuel induction fuel with | zero => intro s₁ s₂ hrel hgame simp [op869_sequential_goal_game] at hgame
In the inductive step for fuel + 1, player 1 has a legal move whose valid responses either reach the goal or preserve a win with the remaining fuel.
Under the induction hypothesis `ih` for fuel, we assume related states s₁ and s₂ (`hrel`) and that player 1 has a winning strategy with fuel + 1 steps (`hgame`). Unfolding `op869_sequential_goal_game` in both `hgame` and the goal, we unpack `hgame` to obtain player 1's legal move a₁ (`ha₁`) such that every valid response leads either to goal g₁ or to a winning position with fuel steps remaining (`hnext`).
uses
op869_sequential_goal_game| succ fuel ih => intro s₁ s₂ hrel hgame simp only [op869_sequential_goal_game] at hgame ⊢ obtain ⟨a₁, ha₁, hnext⟩ := hgamePlayer 2 chooses a legal move a₂ that simulates player 1's move a₁.
Applying the step simulation hypothesis (`hstep`) to the related states s₁, s₂ and player 1's legal move a₁, we obtain a legal move a₂ for player 2 (`ha₂`) whose opponent responses can all be matched (`hresponses`). We supply a₂ as the required move for player 2 in the goal.
obtain ⟨a₂, ha₂, hresponses⟩ := hstep s₁ s₂ hrel a₁ ha₁ refine ⟨a₂, ha₂, ?_⟩
Every valid response to a₂ is matched by a valid response to a₁ leading to related successor states.
Given an arbitrary valid response r₂ to a₂ (`hr₂`), the simulation property of a₂ (`hresponses`) yields a valid response r₁ to a₁ (`hr₁`) such that the resulting successor states in game 1 and game 2 are related by `rel` (`hrel'`).
intro r₂ hr₂ obtain ⟨r₁, hr₁, hrel'⟩ := hresponses r₂ hr₂
The successor state in game 2 either satisfies goal g₂ or allows player 2 to win with the remaining fuel.
Since r₁ is valid, player 1's strategy guarantee (`hnext`) gives two cases for game 1's successor state: either goal g₁ is achieved, or game 1 is won in fuel steps. In the first case, since the successor states are related (`hrel'`), goal preservation (`hgoal`) implies g₂ holds, which gives the disjunction via `Or.inl`. In the second case, the induction hypothesis `ih` applied to the related successor states implies player 2 can win within fuel steps, which gives the disjunction via `Or.inr`.
uses
Or.inl,Or.inrrcases hnext r₁ hr₁ with hgoal₁ | hgame₁ · exact Or.inl (hgoal _ _ hrel' hgoal₁) · exact Or.inr (ih _ _ hrel' hgame₁)
op869_sequential_goal_game- The predicate defining when a player has a winning strategy in a sequential game within a given fuel bound: false at 0 fuel, and at fuel + 1 requiring a legal move such that all valid responses lead either to a goal state or to a state winning with the remaining fuel.
Or.inl- The left injection for disjunction, proving A ∨ B from a proof of A.
Or.inr- The right injection for disjunction, proving A ∨ B from a proof of B.
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.
/-- Transfer a finite adaptive strategy through a state relation. -/theorem op869_goal_game_strategy_simulation {S₁ S₂ M₁ M₂ R₁ R₂ : Type} (g₁ : S₁ → Prop) (g₂ : S₂ → Prop) (legal₁ : S₁ → M₁ → Prop) (legal₂ : S₂ → M₂ → Prop) (valid₁ : S₁ → M₁ → R₁ → Prop) (valid₂ : S₂ → M₂ → R₂ → Prop) (next₁ : S₁ → M₁ → R₁ → S₁) (next₂ : S₂ → M₂ → R₂ → S₂) (rel : S₁ → S₂ → Prop) (hgoal : ∀ s₁ s₂, rel s₁ s₂ → g₁ s₁ → g₂ s₂) (hstep : ∀ s₁ s₂, rel s₁ s₂ → ∀ a₁, legal₁ s₁ a₁ → ∃ a₂, legal₂ s₂ a₂ ∧ ∀ r₂, valid₂ s₂ a₂ r₂ → ∃ r₁, valid₁ s₁ a₁ r₁ ∧ rel (next₁ s₁ a₁ r₁) (next₂ s₂ a₂ r₂)) : ∀ fuel s₁ s₂, rel s₁ s₂ → op869_sequential_goal_game g₁ legal₁ valid₁ next₁ fuel s₁ → op869_sequential_goal_game g₂ legal₂ valid₂ next₂ fuel s₂ := by intro fuel induction fuel with | zero => intro s₁ s₂ hrel hgame simp [op869_sequential_goal_game] at hgame | succ fuel ih => intro s₁ s₂ hrel hgame simp only [op869_sequential_goal_game] at hgame ⊢ obtain ⟨a₁, ha₁, hnext⟩ := hgame obtain ⟨a₂, ha₂, hresponses⟩ := hstep s₁ s₂ hrel a₁ ha₁ refine ⟨a₂, ha₂, ?_⟩ intro r₂ hr₂ obtain ⟨r₁, hr₁, hrel'⟩ := hresponses r₂ hr₂ rcases hnext r₁ hr₁ with hgoal₁ | hgame₁ · exact Or.inl (hgoal _ _ hrel' hgoal₁) · exact Or.inr (ih _ _ hrel' hgame₁)