AFTD Auto-Formalizing Theoretical Domains

op869_disjoint_interval_game_lift

theoremverified

A local k-colorable online strategy can be played on a fresh disconnected interval after any k-colorable earlier graph, without changing its responses or local goal.

Statement

theorem op869_disjoint_interval_game_lift {n m : ℕ} (offset : ℕ) (h : offset+n ≤ m)
    (baseP : Fin m → Finset (Fin m)) (baseC : Fin m → Finset ℕ)
    (k D t : ℕ)
    (hclear : ∀ x, offset ≤ x.val → baseP x = ∅)
    (hbase : (op869_graph_from_predecessors baseP).Colorable k)
    (g₁ : Op869SequentialState n → Prop) (g₂ : Op869SequentialState m → Prop)
    (hgoal : ∀ s₁ s₂, op869_disjoint_interval_related offset h baseP baseC s₁ s₂ → g₁ s₁ → g₂ s₂)
    (fuel : ℕ) (s₁ : Op869SequentialState n) (s₂ : Op869SequentialState m)
    (hrel : op869_disjoint_interval_related offset h baseP baseC s₁ s₂)
    (hgame : op869_sequential_goal_game g₁ (op869_sequential_legal k D)
      (op869_sequential_valid t) op869_sequential_next fuel s₁) :
    op869_sequential_goal_game g₂ (op869_sequential_legal k m)
      (op869_sequential_valid t) op869_sequential_next fuel s₂
Source
AFTD formalization of arXiv:2610.41516, Lemmas 2.3 and 2.4
Verified
18 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 6
  • op869_goal_game_strategy_simulationA winning finite-game strategy transfers through a relation when legal moves can be simulated, every response can be matched, and related…
  • op869_spliced_colors_updateUpdating a local vertex coloring exactly matches updating the embedded vertex on the larger board.
  • op869_disjoint_splice_bipartitionTwo bipartite graphs on disjoint board regions admit a combined bipartition that preserves both chosen side assignments.
  • 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…
  • op869_graph_from_predecessorsThe simple graph on the ordered vertices Fin n whose edge from an earlier vertex a to a later vertex b exists exactly when a is in the…
  • op869_predecessor_postdegreeThe post-degree of a vertex in an ordered predecessor presentation is the number of later vertices that list it as a predecessor.
Used by 1
  • op869_one_sided_bipartite_gadgetA t-fold adversary can build a bipartite graph in at most 2^(j+1)-1 vertices with one side containing at least t+j ceil(t/2) colors.

The proof, explained

The theorem proves that a winning online coloring strategy on an interval of n vertices can be played on a fresh disconnected interval in a larger graph on m vertices via strategy simulation (`op869_goal_game_strategy_simulation`). Each local move S is embedded at the given offset without adding edges to earlier vertices, preserving k-colorability by `op869_disjoint_splice_colorable`. Adversary color responses and state updates remain synchronized with the local game, preserving the winning strategy.

  1. By strategy simulation, lifting an interval strategy to a larger graph reduces to matching each step, checking the initial relation, and using the local strategy.

    Using `classical` and `op869_goal_game_strategy_simulation`, the proof of `op869_interval_game_strategy_lift` reduces the global goal game to showing that each local move can be simulated under `op869_interval_related`, the initial states are related, and the local winning strategy exists.

    lines 24–27

    uses op869_goal_game_strategy_simulation

      classical
      apply op869_goal_game_strategy_simulation g₁ g₂ (op869_sequential_legal k₁ D₁)
        (op869_sequential_legal k₂ D₂) (op869_sequential_valid t) (op869_sequential_valid t)
        op869_sequential_next op869_sequential_next (op869_interval_related offset h baseP baseC) hgoal
  2. For each legal local move S, a global move extending S by external predecessors T is chosen, and any valid global coloring restricts to a valid local coloring.

    By hypothesis `hlegal`, there exists a set T of predecessors before offset such that T ∪ S.map (op869_offset_emb offset h) is legal. Lemma `op869_spliced_valid_response` ensures any valid global adversary color response is valid for S locally.

    lines 28–38

    uses op869_spliced_valid_response

      · intro s₁ s₂ hrel S hlocal
        obtain ⟨T, hT, hglobal⟩ := hlegal s₁ s₂ hrel S hlocal
        refine ⟨T ∪ S.map (op869_offset_emb offset h), hglobal, ?_⟩
        intro colors hvalid
        rcases hrel with ⟨hindex, ext, hext, hP, hC⟩
        have hvalidlocal : op869_sequential_valid t s₁ S colors := by
          constructor
          · exact hvalid.1
          · apply op869_spliced_valid_response offset h baseC s₁.C S T colors
            simpa [← hC] using hvalid.2
        refine ⟨colors, hvalidlocal, ?_⟩
  3. The current local and global indices are within bounds, and the offset embedding identifies vertex s₁.i with s₂.i.

    Linear bounds s₁.i < n and s₂.i < m are established, and `Fin.ext` equates the embedded index op869_offset_emb offset h ⟨s₁.i, hi₁⟩ with ⟨s₂.i, hi₂⟩.

    lines 39–45

    uses Fin.ext

        have hi₁ : s₁.i < n := by rcases hlocal with ⟨hi, _⟩; exact hi
        have hi₂ : s₂.i < m := by omega
        let i : Fin n := ⟨s₁.i, hi₁⟩
        have hemb : op869_offset_emb offset h i = (⟨s₂.i, hi₂⟩ : Fin m) := by
          apply Fin.ext
          change offset+s₁.i = s₂.i
          omega
  4. The updated states preserve the index offset and the predecessor extension condition below the offset.

    The indices advance by 1, preserving s₂'.i = offset + s₁'.i via `dif_pos`. Updating the external predecessor function ext at vertex i with T preserves the condition that external predecessors lie below the offset, using `Function.update_of_ne`.

    lines 46–56

    uses dif_pos, Function.update_of_ne

        unfold op869_interval_related
        constructor
        · simp only [op869_sequential_next, dif_pos hi₁, dif_pos hi₂, Op869SequentialState.i]
          omega
        · refine ⟨Function.update ext i T, ?_, ?_, ?_⟩
          · intro a x hx
            by_cases hai : a = i
            · subst a
              exact hT x (by simpa using hx)
            · apply hext a x
              simpa [Function.update_of_ne hai] using hx
  5. The updated predecessor and color maps match the spliced updates, completing the general interval strategy lift.

    Predecessors and colors commute with splicing via `op869_spliced_predecessors_update` and `op869_spliced_colors_update`. The remaining goals hold by hypotheses hrel and hgame.

    lines 57–64

    uses dif_pos, op869_spliced_predecessors_update, op869_spliced_colors_update

          · simp only [op869_sequential_next, dif_pos hi₁, dif_pos hi₂, Op869SequentialState.P]
            rw [hP, ← hemb]
            exact (op869_spliced_predecessors_update offset h baseP ext s₁.P i T S).symm
          · simp only [op869_sequential_next, dif_pos hi₁, dif_pos hi₂, Op869SequentialState.C]
            rw [hC, ← hemb]
            exact (op869_spliced_colors_update offset h baseC s₁.C i colors).symm
      · exact hrel
      · exact hgame
  6. The initial local state and base state satisfy the disjoint-interval relation when the base graph has no edges or colors on the interval.

    In `op869_disjoint_interval_start`, the initial index is offset. For each vertex x, case splitting on whether offset ≤ x.val < offset + n verifies that the spliced predecessors and colors match the base state using hclear.

    lines 81–94

      classical
      constructor
      · simp
      · constructor
        · funext x
          by_cases hx : offset ≤ x.val ∧ x.val < offset+n
          · have hc := (hclear x hx.1).1
            simp [op869_splice_preds, hx, hc]
          · simp [op869_splice_preds, hx]
        · funext x
          by_cases hx : offset ≤ x.val ∧ x.val < offset+n
          · have hc := (hclear x hx.1).2
            simp [op869_splice_colors, hx, hc]
          · simp [op869_splice_colors, hx]
  7. By strategy simulation, winning the global game reduces to matching each local move with a legal global move, pulling back adversary responses, and preserving the disjoint-interval relation.

    In `op869_disjoint_interval_game_lift`, we apply `op869_goal_game_strategy_simulation` with the relation `op869_disjoint_interval_related`. This reduces the theorem to step simulation, the initial relation, and the local winning strategy.

    lines 110–114

    uses op869_goal_game_strategy_simulation

      classical
      apply op869_goal_game_strategy_simulation g₁ g₂ (op869_sequential_legal k D)
        (op869_sequential_legal k m) (op869_sequential_valid t) (op869_sequential_valid t)
        op869_sequential_next op869_sequential_next
        (op869_disjoint_interval_related offset h baseP baseC) hgoal
  8. A legal local move S at vertex s₁.i is embedded by shifting by the offset, and the updated spliced predecessors simplify.

    The local vertex i corresponds to s₂.i = offset + s₁.i via `op869_offset_emb`. Because the interval is disconnected from the base graph, the external predecessor map is constantly empty (`hext0`). Applying `op869_spliced_predecessors_update` and `Finset.empty_union`, the spliced predecessor update simplifies to the image of S.

    lines 115–131

    uses Fin.ext, op869_spliced_predecessors_update, Finset.empty_union

      · intro s₁ s₂ hrel S hlocal
        rcases hrel with ⟨hindex,hP,hC⟩
        obtain ⟨hi₁,hS,hcolor,hdegree⟩ := hlocal
        have hi₂ : s₂.i < m := by omega
        let i : Fin n := ⟨s₁.i,hi₁⟩
        have hemb : op869_offset_emb offset h i = (⟨s₂.i,hi₂⟩ : Fin m) := by
          apply Fin.ext
          change offset+s₁.i = s₂.i
          omega
        have hext0 : Function.update (fun _ : Fin n => (∅ : Finset (Fin m))) i ∅ =
            (fun _ : Fin n => (∅ : Finset (Fin m))) := by
          funext a
          by_cases ha : a = i <;> simp [ha]
        have huP := op869_spliced_predecessors_update offset h baseP (fun _ => ∅) s₁.P i ∅ S
        rw [hext0] at huP
        simp only [Finset.empty_union] at huP
        refine ⟨S.map (op869_offset_emb offset h), ?_, ?_⟩
  9. The shifted move S.map (op869_offset_emb offset h) is a legal move in the global game state s₂.

    All predecessors in the shifted move precede s₂.i by local predecessor ordering (via `Finset.mem_map.mp`). The spliced graph remains k-colorable by `op869_disjoint_splice_colorable`, and vertex postdegrees are trivially bounded by the universe cardinality via `Finset.card_le_univ`.

    lines 132–145

    uses Finset.mem_map.mp, op869_disjoint_splice_colorable, Finset.card_le_univ

        · refine ⟨hi₂, ?_, ?_, ?_⟩
          · intro x hx
            obtain ⟨a,ha,rfl⟩ := Finset.mem_map.mp hx
            have ha' := hS a ha
            change offset+a.val < s₂.i
            omega
          · rw [hP, ← hemb, ← huP]
            exact op869_disjoint_splice_colorable offset h baseP _ k hclear hbase hcolor
          · rw [hP, ← hemb, ← huP]
            intro x
            unfold op869_predecessor_postdegree
            simpa using Finset.card_le_univ (Finset.univ.filter (fun y : Fin m =>
              x < y ∧ x ∈ op869_splice_preds offset h baseP (fun _ => ∅)
                (Function.update s₁.P i S) y))
  10. Any valid adversary color response in the global game yields a valid adversary response in the local game.

    Given t colors disjoint from the spliced colors of the shifted move, `op869_spliced_valid_response` ensures that these colors are disjoint from the local colors of all vertices in S.

    lines 146–152

    uses op869_spliced_valid_response

        · intro colors hvalid
          have hvalidlocal : op869_sequential_valid t s₁ S colors := by
            constructor
            · exact hvalid.1
            · apply op869_spliced_valid_response offset h baseC s₁.C S ∅ colors
              simpa [← hC] using hvalid.2
          refine ⟨colors,hvalidlocal,?_⟩
  11. The next states after playing the move and color response remain related by the disjoint-interval relation.

    Both state indices advance by 1 using `dif_pos`. Predecessor maps stay related by the earlier simplification `huP`, and color maps commute with splicing by `op869_spliced_colors_update`.

    lines 153–163

    uses dif_pos, op869_spliced_colors_update

          unfold op869_disjoint_interval_related
          constructor
          · simp only [op869_sequential_next, dif_pos hi₁, dif_pos hi₂, Op869SequentialState.i]
            omega
          · constructor
            · simp only [op869_sequential_next, dif_pos hi₁, dif_pos hi₂, Op869SequentialState.P]
              rw [hP, ← hemb]
              exact huP.symm
            · simp only [op869_sequential_next, dif_pos hi₁, dif_pos hi₂, Op869SequentialState.C]
              rw [hC, ← hemb]
              exact (op869_spliced_colors_update offset h baseC s₁.C i colors).symm
  12. The initial relation and local winning strategy hypotheses complete the proof.

    The initial states are related by `hrel`, and the player has a winning strategy in the local game by `hgame`.

    lines 164–165

      · exact hrel
      · exact hgame
Fin.ext
Two elements of a finite type Fin n are equal if their underlying natural number values are equal.
Finset.empty_union
The union of the empty set with any finite set s is equal to s.
Finset.mem_map.mp
An element is in the image of a finite set under a map if and only if it is the image of some element in the set.
Finset.card_le_univ
The cardinality of any finite subset of a finite type is at most the cardinality of the whole type.
dif_pos
A dependent if-then-else evaluates to the true branch when the condition holds.
Function.update_of_ne
Updating a function at a point a' leaves its value at any distinct point a unchanged.
op869_goal_game_strategy_simulation
A winning strategy in an abstract sequential game can be simulated in another game if there is a simulation relation on states preserved by moves and valid adversary responses.
op869_spliced_predecessors_update
Updating the local predecessor map and external predecessor map at a vertex commutes with splicing them into a base predecessor map at the offset-shifted vertex.
op869_disjoint_splice_colorable
Splicing a k-colorable local predecessor graph onto a disjoint k-colorable base graph produces a k-colorable graph, provided the base graph has no edges at or beyond the offset.
op869_spliced_valid_response
A color response disjoint from spliced colors on an embedded set is disjoint from the local colors of the original vertices.
op869_spliced_colors_update
Updating the local color map at a vertex commutes with splicing it into a base color map at the offset-shifted vertex.

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

def op869_interval_related {n m : ℕ} (offset : ℕ) (h : offset+n ≤ m)    (baseP : Fin m → Finset (Fin m)) (baseC : Fin m → Finset ℕ)    (s₁ : Op869SequentialState n) (s₂ : Op869SequentialState m) : Prop :=  s₂.i = offset+s₁.i ∧ ∃ ext : Fin n → Finset (Fin m),    (∀ a x, x ∈ ext a → x.val < offset) ∧    s₂.P = op869_splice_preds offset h baseP ext s₁.P ∧    s₂.C = op869_splice_colors offset h baseC s₁.Ctheorem op869_interval_game_strategy_lift {n m : ℕ} (offset : ℕ) (h : offset+n ≤ m)    (baseP : Fin m → Finset (Fin m)) (baseC : Fin m → Finset ℕ)    (k₁ k₂ D₁ D₂ t : ℕ)    (g₁ : Op869SequentialState n → Prop) (g₂ : Op869SequentialState m → Prop)    (hgoal : ∀ s₁ s₂, op869_interval_related offset h baseP baseC s₁ s₂ → g₁ s₁ → g₂ s₂)    (hlegal : ∀ s₁ s₂, op869_interval_related offset h baseP baseC s₁ s₂ →      ∀ S, op869_sequential_legal k₁ D₁ s₁ S →        ∃ T : Finset (Fin m), (∀ x ∈ T, x.val < offset) ∧          op869_sequential_legal k₂ D₂ s₂ (T ∪ S.map (op869_offset_emb offset h)))    (fuel : ℕ) (s₁ : Op869SequentialState n) (s₂ : Op869SequentialState m)    (hrel : op869_interval_related offset h baseP baseC s₁ s₂)    (hgame : op869_sequential_goal_game g₁ (op869_sequential_legal k₁ D₁)      (op869_sequential_valid t) op869_sequential_next fuel s₁) :    op869_sequential_goal_game g₂ (op869_sequential_legal k₂ D₂)      (op869_sequential_valid t) op869_sequential_next fuel s₂ := by  classical  apply op869_goal_game_strategy_simulation g₁ g₂ (op869_sequential_legal k₁ D₁)    (op869_sequential_legal k₂ D₂) (op869_sequential_valid t) (op869_sequential_valid t)    op869_sequential_next op869_sequential_next (op869_interval_related offset h baseP baseC) hgoal  · intro s₁ s₂ hrel S hlocal    obtain ⟨T, hT, hglobal⟩ := hlegal s₁ s₂ hrel S hlocal    refine ⟨T ∪ S.map (op869_offset_emb offset h), hglobal, ?_⟩    intro colors hvalid    rcases hrel with ⟨hindex, ext, hext, hP, hC⟩    have hvalidlocal : op869_sequential_valid t s₁ S colors := by      constructor      · exact hvalid.1      · apply op869_spliced_valid_response offset h baseC s₁.C S T colors        simpa [← hC] using hvalid.2    refine ⟨colors, hvalidlocal, ?_⟩    have hi₁ : s₁.i < n := by rcases hlocal with ⟨hi, _⟩; exact hi    have hi₂ : s₂.i < m := by omega    let i : Fin n := ⟨s₁.i, hi₁⟩    have hemb : op869_offset_emb offset h i = (⟨s₂.i, hi₂⟩ : Fin m) := by      apply Fin.ext      change offset+s₁.i = s₂.i      omega    unfold op869_interval_related    constructor    · simp only [op869_sequential_next, dif_pos hi₁, dif_pos hi₂, Op869SequentialState.i]      omega    · refine ⟨Function.update ext i T, ?_, ?_, ?_⟩      · intro a x hx        by_cases hai : a = i        · subst a          exact hT x (by simpa using hx)        · apply hext a x          simpa [Function.update_of_ne hai] using hx      · simp only [op869_sequential_next, dif_pos hi₁, dif_pos hi₂, Op869SequentialState.P]        rw [hP, ← hemb]        exact (op869_spliced_predecessors_update offset h baseP ext s₁.P i T S).symm      · simp only [op869_sequential_next, dif_pos hi₁, dif_pos hi₂, Op869SequentialState.C]        rw [hC, ← hemb]        exact (op869_spliced_colors_update offset h baseC s₁.C i colors).symm  · exact hrel  · exact hgamedef op869_disjoint_interval_related {n m : ℕ} (offset : ℕ) (h : offset+n ≤ m)    (baseP : Fin m → Finset (Fin m)) (baseC : Fin m → Finset ℕ)    (s₁ : Op869SequentialState n) (s₂ : Op869SequentialState m) : Prop :=  s₂.i = offset+s₁.i ∧    s₂.P = op869_splice_preds offset h baseP (fun _ => ∅) s₁.P ∧    s₂.C = op869_splice_colors offset h baseC s₁.Ctheorem op869_disjoint_interval_start {n m : ℕ} (offset : ℕ) (h : offset+n ≤ m)    (baseP : Fin m → Finset (Fin m)) (baseC : Fin m → Finset ℕ)    (hclear : ∀ x, offset ≤ x.val → baseP x = ∅ ∧ baseC x = ∅) :    op869_disjoint_interval_related offset h baseP baseC      ⟨0, (fun _ => ∅), (fun _ => ∅)⟩ ⟨offset, baseP, baseC⟩ := by  classical  constructor  · simp  · constructor    · funext x      by_cases hx : offset ≤ x.val ∧ x.val < offset+n      · have hc := (hclear x hx.1).1        simp [op869_splice_preds, hx, hc]      · simp [op869_splice_preds, hx]    · funext x      by_cases hx : offset ≤ x.val ∧ x.val < offset+n      · have hc := (hclear x hx.1).2        simp [op869_splice_colors, hx, hc]      · simp [op869_splice_colors, hx]/-- Disconnected-copy strategy transport for the bipartite gadget. -/theorem op869_disjoint_interval_game_lift {n m : ℕ} (offset : ℕ) (h : offset+n ≤ m)    (baseP : Fin m → Finset (Fin m)) (baseC : Fin m → Finset ℕ)    (k D t : ℕ)    (hclear : ∀ x, offset ≤ x.val → baseP x = ∅)    (hbase : (op869_graph_from_predecessors baseP).Colorable k)    (g₁ : Op869SequentialState n → Prop) (g₂ : Op869SequentialState m → Prop)    (hgoal : ∀ s₁ s₂, op869_disjoint_interval_related offset h baseP baseC s₁ s₂ → g₁ s₁ → g₂ s₂)    (fuel : ℕ) (s₁ : Op869SequentialState n) (s₂ : Op869SequentialState m)    (hrel : op869_disjoint_interval_related offset h baseP baseC s₁ s₂)    (hgame : op869_sequential_goal_game g₁ (op869_sequential_legal k D)      (op869_sequential_valid t) op869_sequential_next fuel s₁) :    op869_sequential_goal_game g₂ (op869_sequential_legal k m)      (op869_sequential_valid t) op869_sequential_next fuel s₂ := by  classical  apply op869_goal_game_strategy_simulation g₁ g₂ (op869_sequential_legal k D)    (op869_sequential_legal k m) (op869_sequential_valid t) (op869_sequential_valid t)    op869_sequential_next op869_sequential_next    (op869_disjoint_interval_related offset h baseP baseC) hgoal  · intro s₁ s₂ hrel S hlocal    rcases hrel with ⟨hindex,hP,hC⟩    obtain ⟨hi₁,hS,hcolor,hdegree⟩ := hlocal    have hi₂ : s₂.i < m := by omega    let i : Fin n := ⟨s₁.i,hi₁⟩    have hemb : op869_offset_emb offset h i = (⟨s₂.i,hi₂⟩ : Fin m) := by      apply Fin.ext      change offset+s₁.i = s₂.i      omega    have hext0 : Function.update (fun _ : Fin n => (∅ : Finset (Fin m))) i ∅ =        (fun _ : Fin n => (∅ : Finset (Fin m))) := by      funext a      by_cases ha : a = i <;> simp [ha]    have huP := op869_spliced_predecessors_update offset h baseP (fun _ => ∅) s₁.P i ∅ S    rw [hext0] at huP    simp only [Finset.empty_union] at huP    refine ⟨S.map (op869_offset_emb offset h), ?_, ?_⟩    · refine ⟨hi₂, ?_, ?_, ?_⟩      · intro x hx        obtain ⟨a,ha,rfl⟩ := Finset.mem_map.mp hx        have ha' := hS a ha        change offset+a.val < s₂.i        omega      · rw [hP, ← hemb, ← huP]        exact op869_disjoint_splice_colorable offset h baseP _ k hclear hbase hcolor      · rw [hP, ← hemb, ← huP]        intro x        unfold op869_predecessor_postdegree        simpa using Finset.card_le_univ (Finset.univ.filter (fun y : Fin m =>          x < y ∧ x ∈ op869_splice_preds offset h baseP (fun _ => ∅)            (Function.update s₁.P i S) y))    · intro colors hvalid      have hvalidlocal : op869_sequential_valid t s₁ S colors := by        constructor        · exact hvalid.1        · apply op869_spliced_valid_response offset h baseC s₁.C S ∅ colors          simpa [← hC] using hvalid.2      refine ⟨colors,hvalidlocal,?_⟩      unfold op869_disjoint_interval_related      constructor      · simp only [op869_sequential_next, dif_pos hi₁, dif_pos hi₂, Op869SequentialState.i]        omega      · constructor        · simp only [op869_sequential_next, dif_pos hi₁, dif_pos hi₂, Op869SequentialState.P]          rw [hP, ← hemb]          exact huP.symm        · simp only [op869_sequential_next, dif_pos hi₁, dif_pos hi₂, Op869SequentialState.C]          rw [hC, ← hemb]          exact (op869_spliced_colors_update offset h baseC s₁.C i colors).symm  · exact hrel  · exact hgame
See it in the graphDiscuss this resultChallenge it