AFTD Auto-Formalizing Theoretical Domains

op869_bounded_adversary_forces_pad

theoremverified

A winning position on Fin n stays winning on Fin (n+m) when the extra vertices are added as isolated vertices with empty predecessor and colour sets.

Statement

theorem op869_bounded_adversary_forces_pad {n m : ℕ} (k t K D : ℕ) (hk : 1 ≤ k)
    (fuel i : ℕ) (P : Fin n → Finset (Fin n)) (C : Fin n → Finset ℕ)
    (h : op869_bounded_adversary_forces k t K D fuel i P C) :
    op869_bounded_adversary_forces k t K D fuel i
      (fun j : Fin (n + m) => if hj : (j : ℕ) < n then (P ⟨j, hj⟩).image (Fin.castLE (Nat.le_add_right n m)) else ∅)
      (fun j : Fin (n + m) => if hj : (j : ℕ) < n then C ⟨j, hj⟩ else ∅)
Source
step towards op869_online_coloring_deterministic_lower_bound
Verified
18 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 4
  • op869_bounded_adversary_forcesThe bounded t-fold adversary game is the t-fold game where, after each move, every vertex has post-degree at most D.
  • op869_bounded_vertex_paddingFor a positive colorability bound, a bounded adversary winning position remains winning after padding its entire graph and color history…
  • op869_extend_predecessorsExtend a predecessor presentation to a larger initial-segment universe, leaving added vertices isolated.
  • op869_extend_colorsExtend color histories to a larger vertex universe by assigning no colors to new vertices.
Used by 1

The proof, explained

The theorem establishes that a winning bounded-adversary position on $n$ vertices remains winning when padded with $m$ isolated vertices that have empty predecessor and color sets. The argument invokes the general vertex padding theorem (`op869_bounded_vertex_padding`) using the inequality $n \le n + m$. Because the general theorem expresses predecessor extension via `Finset.map` along an embedding while the theorem statement uses `Finset.image`, the proof reconciles the two representations using `Finset.map_eq_image`. Since the color extension already matches by definition, substituting this equality finishes the proof.

  1. The adversary forces a win on the extended vertex set $\mathrm{Fin}(n+m)$ under the canonical predecessor extension `op869_extend_predecessors` and color extension `op869_extend_colors`.

    Apply `op869_bounded_vertex_padding` with the inequality $n \le n + m$ supplied by `Nat.le_add_right n m`. Since $(P, C)$ is a winning position on $\mathrm{Fin}(n)$ by hypothesis $h$ and $1 \le k$ by $hk$, the padded position on $\mathrm{Fin}(n+m)$ is winning.

    line 8

    uses op869_bounded_vertex_padding, Nat.le_add_right

      have hp := op869_bounded_vertex_padding (Nat.le_add_right n m) k t K D hk fuel i P C h
  2. The canonical predecessor extension `op869_extend_predecessors (Nat.le_add_right n m) P` equals the function that assigns $(P\langle j, hj \rangle).\mathrm{image}(\mathrm{Fin.castLE} \dots)$ to each vertex $j < n$ and $\emptyset$ to vertices $j \ge n$.

    By function extensionality (`funext j`), it suffices to show that both predecessor functions agree on an arbitrary vertex $j$. The definition of `op869_extend_predecessors` assigns $(P\langle j, hj\rangle).\mathrm{map}(\mathrm{Fin.castLEEmb} \dots)$ when $j < n$ and $\emptyset$ otherwise. Simplifying by unfolding this definition and applying `Finset.map_eq_image` replaces mapping along the embedding with the set image under `Fin.castLE`, matching the desired pointwise expression.

    lines 9–12

    uses op869_extend_predecessors, Finset.map_eq_image

      have hpred : op869_extend_predecessors (Nat.le_add_right n m) P =
          (fun j : Fin (n + m) => if hj : (j : ℕ) < n then (P ⟨j, hj⟩).image (Fin.castLE (Nat.le_add_right n m)) else ∅) := by
        funext j
        simp [op869_extend_predecessors, Finset.map_eq_image]
  3. The adversary forces a win on $\mathrm{Fin}(n+m)$ with the predecessor and color assignments specified in the theorem statement.

    Substitute the equality `hpred` into `hp` (`hpred ▸ hp`). This replaces the canonical predecessor extension with the explicit image-based predecessor function. Since `op869_extend_colors` is already definitionally identical to the conditional color assignment in the goal, this concludes the proof.

    line 13

      exact hpred ▸ hp
op869_bounded_vertex_padding
If a position on $n$ vertices is winning for the bounded adversary and $n \le m$, then the canonically extended position on $m$ vertices (with empty predecessor and color sets for new vertices) is also winning.
Nat.le_add_right
For any natural numbers $n$ and $m$, $n \le n + m$.
op869_extend_predecessors
The canonical extension of a predecessor map from $\mathrm{Fin}(n)$ to $\mathrm{Fin}(m)$ when $n \le m$, embedding existing predecessors into $\mathrm{Fin}(m)$ and assigning the empty set to new vertices.
Finset.map_eq_image
Mapping a finite set along an embedding is equal to taking its image under the underlying function.

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

/-- Padding a winning bounded-adversary position by isolated vertices gives a winning position on the larger vertex set. -/theorem op869_bounded_adversary_forces_pad {n m : ℕ} (k t K D : ℕ) (hk : 1 ≤ k)    (fuel i : ℕ) (P : Fin n → Finset (Fin n)) (C : Fin n → Finset ℕ)    (h : op869_bounded_adversary_forces k t K D fuel i P C) :    op869_bounded_adversary_forces k t K D fuel i      (fun j : Fin (n + m) => if hj : (j : ℕ) < n then (P ⟨j, hj⟩).image (Fin.castLE (Nat.le_add_right n m)) else ∅)      (fun j : Fin (n + m) => if hj : (j : ℕ) < n then C ⟨j, hj⟩ else ∅) := by  have hp := op869_bounded_vertex_padding (Nat.le_add_right n m) k t K D hk fuel i P C h  have hpred : op869_extend_predecessors (Nat.le_add_right n m) P =      (fun j : Fin (n + m) => if hj : (j : ℕ) < n then (P ⟨j, hj⟩).image (Fin.castLE (Nat.le_add_right n m)) else ∅) := by    funext j    simp [op869_extend_predecessors, Finset.map_eq_image]  exact hpred ▸ hp
See it in the graphDiscuss this resultChallenge it