AFTD Auto-Formalizing Theoretical Domains

op869_macro_step_strategy_simulation

theoremverified

A strategy in one finite game transfers to another if each source move can be simulated by at most B target moves, preserving a state relation or reaching the target goal early.

Statement

theorem op869_macro_step_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) (B : ℕ)
    (hgoal : ∀ s₁ s₂, rel s₁ s₂ → g₁ s₁ → g₂ s₂)
    (hstep : ∀ s₁ s₂, rel s₁ s₂ → ∀ a₁, legal₁ s₁ a₁ →
      op869_sequential_goal_game
        (fun s₂' => g₂ s₂' ∨ ∃ r₁, valid₁ s₁ a₁ r₁ ∧ rel (next₁ s₁ a₁ r₁) s₂')
        legal₂ valid₂ next₂ B s₂) :
    ∀ fuel s₁ s₂, rel s₁ s₂ → op869_sequential_goal_game g₁ legal₁ valid₁ next₁ fuel s₁ →
      op869_sequential_goal_game g₂ legal₂ valid₂ next₂ (B*fuel) s₂
Source
AFTD formalization of arXiv:2610.41516, Lemma 2.5
Verified
18 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
Used by 2

The proof, explained

The simulation transfers a winning strategy from a source game to a target game by induction on fuel. Each source move is simulated by at most B target moves to reach an intermediate condition, and the early bind theorem chains this with the inductive hypothesis for the remaining rounds.

  1. Base case m = 0 of op869_game_early_bind holds vacuously. automation

    With 0 fuel, the assumption hfirst is False by definition of op869_sequential_goal_game.

    lines 7–8

    uses op869_sequential_goal_game

      induction m generalizing s with
      | zero => simp [op869_sequential_goal_game] at hfirst
  2. In inductive step of early bind, unpack the first move.

    Unpack the winning move a and its legality from hfirst.

    lines 10–13

    uses op869_sequential_goal_game, Nat.succ_add

        simp only [op869_sequential_goal_game] at hfirst
        simp only [Nat.succ_add, op869_sequential_goal_game]
        obtain ⟨a, ha, hnext⟩ := hfirst
        refine ⟨a, ha, ?_⟩
  3. Handle responses for early bind. automation

    For each response, case analysis on intermediate goal and inductive hypothesis.

    lines 14–20

    uses Or.inl, Or.inr, op869_sequential_fuel_mono_internal

        intro r hr
        rcases hnext r hr with hmid | hrest
        · rcases hcont _ hmid with hgoal | hfuture
          · exact Or.inl hgoal
          · right
            exact op869_sequential_fuel_mono_internal goal legal valid next n (m+n) _ (by omega) hfuture
        · exact Or.inr (ih _ hrest)
  4. Base case fuel = 0 of simulation holds vacuously. automation

    With 0 fuel, the source game assumption is False.

    lines 35–39

    uses op869_sequential_goal_game

      intro fuel
      induction fuel with
      | zero =>
        intro s₁ s₂ hrel hsource
        simp [op869_sequential_goal_game] at hsource
  5. In inductive step, extract the source move and define continuation.

    Extract the source move a1, simulate B steps to an intermediate state, and show any intermediate state either satisfies g2 or can continue for B*fuel steps.

    lines 41–53

    uses op869_sequential_goal_game, Or.inl, Or.inr

        intro s₁ s₂ hrel hsource
        simp only [op869_sequential_goal_game] at hsource
        obtain ⟨a₁, ha₁, hnext⟩ := hsource
        have hfirst := hstep s₁ s₂ hrel a₁ ha₁
        have hcont : ∀ s₂',
            (g₂ s₂' ∨ ∃ r₁, valid₁ s₁ a₁ r₁ ∧ rel (next₁ s₁ a₁ r₁) s₂') →
            g₂ s₂' ∨ op869_sequential_goal_game g₂ legal₂ valid₂ next₂ (B*fuel) s₂' := by
          intro s₂' h
          rcases h with hgoal₂ | ⟨r₁, hr₁, hrel'⟩
          · exact Or.inl hgoal₂
          · rcases hnext r₁ hr₁ with hgoal₁ | hgame
            · exact Or.inl (hgoal _ _ hrel' hgoal₁)
            · exact Or.inr (ih _ _ hrel' hgame)
  6. Chain the games and conclude. automation

    Apply op869_game_early_bind to compose the B-step simulation with the remaining fuel.

    lines 54–58

    uses op869_game_early_bind

        have hout := op869_game_early_bind g₂
          (fun s₂' => g₂ s₂' ∨ ∃ r₁, valid₁ s₁ a₁ r₁ ∧ rel (next₁ s₁ a₁ r₁) s₂')
          legal₂ valid₂ next₂ B (B*fuel) s₂ hfirst hcont
        have heq : B + B*fuel = B*(fuel+1) := by ring
        rwa [heq] at hout
op869_sequential_goal_game
0 fuel in sequential goal game is contradictory
Nat.succ_add
successor addition formula
Or.inl
left disjunction injection
op869_sequential_fuel_mono_internal
fuel monotonicity
Or.inr
right disjunction injection
op869_game_early_bind
early bind theorem

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 op869_game_early_bind {S M R : Type} (goal intermediate : S → Prop)    (legal : S → M → Prop) (valid : S → M → R → Prop) (next : S → M → R → S)    (m n : ℕ) (s : S)    (hfirst : op869_sequential_goal_game intermediate legal valid next m s)    (hcont : ∀ s, intermediate s → goal s ∨ op869_sequential_goal_game goal legal valid next n s) :    op869_sequential_goal_game goal legal valid next (m+n) s := by  induction m generalizing s with  | zero => simp [op869_sequential_goal_game] at hfirst  | succ m ih =>    simp only [op869_sequential_goal_game] at hfirst    simp only [Nat.succ_add, op869_sequential_goal_game]    obtain ⟨a, ha, hnext⟩ := hfirst    refine ⟨a, ha, ?_⟩    intro r hr    rcases hnext r hr with hmid | hrest    · rcases hcont _ hmid with hgoal | hfuture      · exact Or.inl hgoal      · right        exact op869_sequential_fuel_mono_internal goal legal valid next n (m+n) _ (by omega) hfuture    · exact Or.inr (ih _ hrest)/-- A many-move strategy-simulation principle for the online-coloring construction. -/theorem op869_macro_step_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) (B : ℕ)    (hgoal : ∀ s₁ s₂, rel s₁ s₂ → g₁ s₁ → g₂ s₂)    (hstep : ∀ s₁ s₂, rel s₁ s₂ → ∀ a₁, legal₁ s₁ a₁ →      op869_sequential_goal_game        (fun s₂' => g₂ s₂' ∨ ∃ r₁, valid₁ s₁ a₁ r₁ ∧ rel (next₁ s₁ a₁ r₁) s₂')        legal₂ valid₂ next₂ B s₂) :    ∀ fuel s₁ s₂, rel s₁ s₂ → op869_sequential_goal_game g₁ legal₁ valid₁ next₁ fuel s₁ →      op869_sequential_goal_game g₂ legal₂ valid₂ next₂ (B*fuel) s₂ := by  intro fuel  induction fuel with  | zero =>    intro s₁ s₂ hrel hsource    simp [op869_sequential_goal_game] at hsource  | succ fuel ih =>    intro s₁ s₂ hrel hsource    simp only [op869_sequential_goal_game] at hsource    obtain ⟨a₁, ha₁, hnext⟩ := hsource    have hfirst := hstep s₁ s₂ hrel a₁ ha₁    have hcont : ∀ s₂',        (g₂ s₂' ∨ ∃ r₁, valid₁ s₁ a₁ r₁ ∧ rel (next₁ s₁ a₁ r₁) s₂') →        g₂ s₂' ∨ op869_sequential_goal_game g₂ legal₂ valid₂ next₂ (B*fuel) s₂' := by      intro s₂' h      rcases h with hgoal₂ | ⟨r₁, hr₁, hrel'⟩      · exact Or.inl hgoal₂      · rcases hnext r₁ hr₁ with hgoal₁ | hgame        · exact Or.inl (hgoal _ _ hrel' hgoal₁)        · exact Or.inr (ih _ _ hrel' hgame)    have hout := op869_game_early_bind g₂      (fun s₂' => g₂ s₂' ∨ ∃ r₁, valid₁ s₁ a₁ r₁ ∧ rel (next₁ s₁ a₁ r₁) s₂')      legal₂ valid₂ next₂ B (B*fuel) s₂ hfirst hcont    have heq : B + B*fuel = B*(fuel+1) := by ring    rwa [heq] at hout
See it in the graphDiscuss this resultChallenge it