AFTD Auto-Formalizing Theoretical Domains

op869_bounded_vertex_padding

theoremverified

For a positive colorability bound, a bounded adversary winning position remains winning after padding its entire graph and color history to a larger vertex universe.

Statement

theorem op869_bounded_vertex_padding {n m : ℕ} (hnm : n ≤ m) (k t K D : ℕ) (hk : 1 ≤ k)
    (fuel i : ℕ) (P : Fin n → Finset (Fin n)) (C : Fin n → Finset ℕ)
    (hwin : op869_bounded_adversary_forces k t K D fuel i P C) :
    op869_bounded_adversary_forces k t K D fuel i
      (op869_extend_predecessors hnm P) (op869_extend_colors hnm C)
Source
Padding and monotonicity for the finite adversary game of arXiv:2610.41516 Section 2.
Verified
18 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 10
Used by 2
  • op869_bounded_initial_vertex_monoFor a positive colorability bound, an initially winning bounded adversary strategy remains winning on any larger vertex universe with its…
  • op869_bounded_adversary_forces_padA winning position on Fin n stays winning on Fin (n+m) when the extra vertices are added as isolated vertices with empty predecessor and…

The proof, explained

The proof proceeds by induction on fuel. In the inductive step, given that the round index satisfies i < n ≤ m, the adversary plays the embedded predecessor set S in Fin m. This choice preserves index bounds, k-colorability, and postdegrees, while any valid player coloring response restricts to a valid move in the smaller universe, preserving immediate wins or recursive wins via the induction hypothesis.

  1. The base case where fuel is zero holds vacuously.

    We enable classical logic and induct on `fuel`, generalizing over the state parameters `i`, `P`, and `C`. When `fuel = 0`, the predicate `op869_bounded_adversary_forces` evaluates to `False` by definition, so the assumption `hwin` that the adversary forces a win is an immediate contradiction.

    lines 7–9

      classical
      induction fuel generalizing i P C with
      | zero => simp [op869_bounded_adversary_forces] at hwin
  2. In the inductive step with i < n, we have i < m and we unpack the adversary's winning move.

    For fuel of the form `fuel + 1`, we case split on whether `i < n`. Assuming `i < n`, transitivity with `n ≤ m` implies `i < m` by `lt_of_lt_of_le`. Simplifying the adversary winning condition using `dif_pos` unfolds the definition in both the hypothesis and the goal, yielding the adversary's winning move in `Fin n`: a predecessor set S whose elements are strictly smaller than i, such that the updated graph is k-colorable, degrees are bounded by D, and any valid response preserves winning status.

    lines 10–15

    uses lt_of_lt_of_le, dif_pos

      | succ fuel ih =>
        by_cases hi : i < n
        · have him : i < m := lt_of_lt_of_le hi hnm
          simp only [op869_bounded_adversary_forces, dif_pos hi] at hwin
          simp only [op869_bounded_adversary_forces, dif_pos him]
          obtain ⟨S, hS, hcolor, hdegree, hnext⟩ := hwin
  3. Updating the extended predecessor and color tables at vertex i commutes with padding.

    The embedding `Fin.castLE` identifies `i ∈ Fin n` with `i ∈ Fin m`. By `op869_extend_predecessors_update` and `op869_extend_colors_update`, updating the padded structures at i with the embedded set S (respectively, with a color choice c) yields the exact same maps as updating the original structures in `Fin n` and then padding them.

    lines 16–24

    uses Fin.castLE, op869_extend_predecessors_update, op869_extend_colors_update

          have hv : Fin.castLE hnm (⟨i, hi⟩ : Fin n) = (⟨i, him⟩ : Fin m) := by ext; rfl
          have hupdateP : Function.update (op869_extend_predecessors hnm P) (⟨i, him⟩ : Fin m)
              (S.map (Fin.castLEEmb hnm)) =
              op869_extend_predecessors hnm (Function.update P (⟨i, hi⟩ : Fin n) S) := by
            rw [← hv, ← op869_extend_predecessors_update]
          have hupdateC (c : Finset ℕ) : Function.update (op869_extend_colors hnm C)
              (⟨i, him⟩ : Fin m) c =
              op869_extend_colors hnm (Function.update C (⟨i, hi⟩ : Fin n) c) := by
            rw [← hv, ← op869_extend_colors_update]
  4. The adversary chooses the embedded predecessor set as its move at round i in Fin m.

    We instantiate the existential quantifier in the definition of the winning position with the image of S under the canonical embedding `Fin n ↪ Fin m`, generating four subgoals: element index bounds, graph k-colorability, postdegree bound, and winning responses.

    line 25

          refine ⟨S.map (Fin.castLEEmb hnm), ?_, ?_, ?_, ?_⟩
  5. All elements of the padded predecessor set are strictly less than i.

    By `Finset.mem_map.mp`, every element in the mapped set is the image of some `b ∈ S`. Because the embedding preserves numerical values, its value is b, which is strictly less than i by the adversary's winning move in the original game.

    lines 26–28

    uses Finset.mem_map.mp

          · intro a ha
            obtain ⟨b, hb, rfl⟩ := Finset.mem_map.mp ha
            exact hS b hb
  6. The updated padded graph remains k-colorable.

    By the commutation lemma, the updated padded graph is the extension of the updated unpadded graph, which equals the pushforward of the original graph under the embedding by `op869_graph_extend_predecessors`. Since k ≥ 1, k is non-zero, and graph embeddings preserve k-colorability.

    lines 29–31

    uses op869_graph_extend_predecessors

          · rw [hupdateP, op869_graph_extend_predecessors]
            letI : NeZero k := ⟨by omega⟩
            exact hcolor.map (Fin.castLEEmb hnm)
  7. Every vertex in the padded graph has postdegree at most D.

    Rewriting with the commutation lemma expresses the predecessor structure as the extension of the updated unpadded structure. By `op869_extend_postdegree_bound`, the assumption that all postdegrees in `Fin n` are at most D implies the same bound D for all vertices in `Fin m`.

    lines 32–33

    uses op869_extend_postdegree_bound

          · rw [hupdateP]
            exact op869_extend_postdegree_bound hnm _ D hdegree
  8. Any valid color choice in the padded game restricts to a valid move in the original game.

    Let c be a set of t colors disjoint from the padded colors assigned to vertices in the embedded predecessor set. For each `a ∈ S`, its embedding via `Fin.castLE` belongs to the mapped set by `Finset.mem_map.mpr`. Since `a < n`, the padded colors at this vertex are identical to `C a`, so c is disjoint from `C a` for all `a ∈ S`.

    lines 34–38

    uses Fin.castLE, Finset.mem_map.mpr

          · intro c hc hvalid
            have hvalidOld : ∀ a ∈ S, Disjoint (C a) c := by
              intro a ha
              have h := hvalid (Fin.castLE hnm a) (Finset.mem_map.mpr ⟨a, ha, rfl⟩)
              simpa [op869_extend_colors, a.isLt] using h
  9. If the adversary achieves an immediate win in the original game, it also wins immediately in the padded game.

    An immediate win means the union of color sets for vertices up to i contains at least K colors. By `op869_extend_color_prefix`, the union of colors assigned to vertices up to i has identical cardinality in the original and padded games, so it is at least K in `Fin m` as well.

    lines 39–42

    uses op869_extend_color_prefix

            rcases hnext c hc hvalidOld with hsuccess | hrec
            · left
              rw [hupdateC, op869_extend_color_prefix hnm _ i hi]
              exact hsuccess
  10. If the adversary wins recursively in the original game, it also wins recursively in the padded game.

    In the recursive case, the unpadded position is winning with one less unit of fuel at round `i + 1`. Rewriting the updated tables using the update commutation lemmas allows the induction hypothesis `ih` to be applied directly at round `i + 1`.

    lines 43–45

            · right
              rw [hupdateP, hupdateC]
              exact ih (i + 1) _ _ hrec
  11. The case i ≥ n cannot occur.

    When `i ≥ n`, the guard `i < n` in `op869_bounded_adversary_forces` fails, so the predicate simplifies to `False`, contradicting the assumption `hwin`.

    line 46

        · simp [op869_bounded_adversary_forces, hi] at hwin
lt_of_lt_of_le
If a < b and b ≤ c, then a < c.
dif_pos
A dependent conditional `if h : c then t else e` reduces to `t` when the condition `c` holds.
Fin.castLE
Embeds an element of `Fin n` into `Fin m` when n ≤ m, preserving its underlying numerical value.
op869_extend_predecessors_update
Extending a predecessor map updated at vertex i with set S equals updating the extended predecessor map at `Fin.castLE h i` with the mapped set.
op869_extend_colors_update
Extending a color map updated at vertex i with set c equals updating the extended color map at `Fin.castLE h i` with c.
Finset.mem_map.mp
An element is in the image `S.map f` of a finset under an embedding only if it equals `f b` for some `b ∈ S`.
Finset.mem_map.mpr
If b ∈ S, then `f b` belongs to the mapped finset `S.map f`.
op869_graph_extend_predecessors
The graph constructed from extended predecessors equals the pushforward (graph map) of the original predecessor graph under the canonical embedding `Fin.castLEEmb`.
op869_extend_postdegree_bound
If all vertices in a predecessor map have postdegree at most D, then all vertices in its extension also have postdegree at most D.
op869_extend_color_prefix
For i < n, the union of colors assigned to vertices up to index i is identical whether computed from the original color map or the extended color map.

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

/-- For a positive colorability bound, a bounded adversary winning position remains winning after padding its entire graph and color history to a larger vertex universe. -/theorem op869_bounded_vertex_padding {n m : ℕ} (hnm : n ≤ m) (k t K D : ℕ) (hk : 1 ≤ k)    (fuel i : ℕ) (P : Fin n → Finset (Fin n)) (C : Fin n → Finset ℕ)    (hwin : op869_bounded_adversary_forces k t K D fuel i P C) :    op869_bounded_adversary_forces k t K D fuel i      (op869_extend_predecessors hnm P) (op869_extend_colors hnm C) := by  classical  induction fuel generalizing i P C with  | zero => simp [op869_bounded_adversary_forces] at hwin  | succ fuel ih =>    by_cases hi : i < n    · have him : i < m := lt_of_lt_of_le hi hnm      simp only [op869_bounded_adversary_forces, dif_pos hi] at hwin      simp only [op869_bounded_adversary_forces, dif_pos him]      obtain ⟨S, hS, hcolor, hdegree, hnext⟩ := hwin      have hv : Fin.castLE hnm (⟨i, hi⟩ : Fin n) = (⟨i, him⟩ : Fin m) := by ext; rfl      have hupdateP : Function.update (op869_extend_predecessors hnm P) (⟨i, him⟩ : Fin m)          (S.map (Fin.castLEEmb hnm)) =          op869_extend_predecessors hnm (Function.update P (⟨i, hi⟩ : Fin n) S) := by        rw [← hv, ← op869_extend_predecessors_update]      have hupdateC (c : Finset ℕ) : Function.update (op869_extend_colors hnm C)          (⟨i, him⟩ : Fin m) c =          op869_extend_colors hnm (Function.update C (⟨i, hi⟩ : Fin n) c) := by        rw [← hv, ← op869_extend_colors_update]      refine ⟨S.map (Fin.castLEEmb hnm), ?_, ?_, ?_, ?_⟩      · intro a ha        obtain ⟨b, hb, rfl⟩ := Finset.mem_map.mp ha        exact hS b hb      · rw [hupdateP, op869_graph_extend_predecessors]        letI : NeZero k := ⟨by omega⟩        exact hcolor.map (Fin.castLEEmb hnm)      · rw [hupdateP]        exact op869_extend_postdegree_bound hnm _ D hdegree      · intro c hc hvalid        have hvalidOld : ∀ a ∈ S, Disjoint (C a) c := by          intro a ha          have h := hvalid (Fin.castLE hnm a) (Finset.mem_map.mpr ⟨a, ha, rfl⟩)          simpa [op869_extend_colors, a.isLt] using h        rcases hnext c hc hvalidOld with hsuccess | hrec        · left          rw [hupdateC, op869_extend_color_prefix hnm _ i hi]          exact hsuccess        · right          rw [hupdateP, hupdateC]          exact ih (i + 1) _ _ hrec    · simp [op869_bounded_adversary_forces, hi] at hwin
See it in the graphDiscuss this resultChallenge it