AFTD Auto-Formalizing Theoretical Domains

op869_bounded_adversary_forces_mono_k

theoremverified

Allowing more colours for the colour player preserves a winning position in the bounded adversary game.

Statement

theorem op869_bounded_adversary_forces_mono_k {n : ℕ} (k k' t K D : ℕ) (hkk : k ≤ 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 P C
Source
step towards op869_online_coloring_deterministic_lower_bound
Verified
18 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
  • 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_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.

The proof, explained

The theorem is proved by induction on the remaining fuel, generalizing over the current vertex index and the game configurations. When the index is within bounds, the adversary's winning predecessor set S for k colours also works for k' colours because any k-colourable graph is k'-colourable when k ≤ k'. For each valid response by the colour player, the position either reaches the required colour count immediately or remains winning in subsequent rounds by the induction hypothesis.

  1. The theorem holds vacuously in the base case where fuel = 0.

    We proceed by induction on the fuel parameter, generalizing over the vertex index i, the predecessor map P, and the colour assignment C. In the base case fuel = 0, the winning condition op869_bounded_adversary_forces is defined to be False, so the hypothesis h immediately yields a contradiction.

    lines 6–7

      induction fuel generalizing i P C with
      | zero => simp [op869_bounded_adversary_forces] at h
  2. When the current index i is within bounds (i < n), there exists a predecessor set S satisfying the colouring and degree requirements.

    In the inductive step for fuel + 1, we split on whether i < n. Assuming i < n, we unfold the definition of op869_bounded_adversary_forces using dif_pos in both the hypothesis h and the goal. Extracting the existential witness from h yields a predecessor set S ⊆ {0, …, i - 1} such that the graph augmented with S is k-colourable, all postdegrees remain at most D, and any valid response by the colour player either reaches the colour threshold K or forces a win in subsequent rounds.

    lines 8–11

    uses dif_pos

      | succ fuel ih =>
        by_cases hi : i < n
        · simp only [op869_bounded_adversary_forces, dif_pos hi] at h ⊢
          obtain ⟨S, hS, hcolor, hdegree, hnext⟩ := h
  3. The same predecessor set S satisfies the predecessor, degree, and k'-colourability requirements for the enlarged colour bound.

    We provide the same predecessor set S as the witness for the goal. The condition that predecessors have indices strictly less than i and the postdegree bound ≤ D carry over directly. Furthermore, because k ≤ k', any valid k-colouring of the graph is also a valid k'-colouring, so the updated graph is k'-colourable.

    line 12

          refine ⟨S, hS, hcolor.mono hkk, hdegree, ?_⟩
  4. Any valid response by the colour player remains winning with k' colours.

    Consider any set c of t colours disjoint from the colour sets of all vertices in S. By the hypothesis on S, this move either results in at least K distinct colours overall (which satisfies the left disjunct of the goal via Or.inl), or leads to a state that is winning with fuel remaining. In the latter case, applying the induction hypothesis ih to round i + 1 confirms that the position is winning with k' colours, satisfying the right disjunct via Or.inr.

    lines 13–16

    uses Or.inl, Or.inr

          intro c hc hvalid
          rcases hnext c hc hvalid with hw | hrec
          · exact Or.inl hw
          · exact Or.inr (ih (i + 1) _ _ hrec)
  5. The case i ≥ n cannot occur.

    When i ≥ n, the definition of op869_bounded_adversary_forces evaluates to False, contradicting the hypothesis h.

    line 17

        · simp [op869_bounded_adversary_forces, hi] at h
dif_pos
If a decidable proposition c holds, then the conditional expression `if c then t else e` reduces to its then-branch t.
Or.inl
From a proof of a, establishes the disjunction a ∨ b.
Or.inr
From a proof of b, establishes the disjunction a ∨ 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

/-- A winning position in the bounded game with k colours allowed stays winning when k is enlarged. -/theorem op869_bounded_adversary_forces_mono_k {n : ℕ} (k k' t K D : ℕ) (hkk : k ≤ 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 P C := by  induction fuel generalizing i P C with  | zero => simp [op869_bounded_adversary_forces] at h  | succ fuel ih =>    by_cases hi : i < n    · simp only [op869_bounded_adversary_forces, dif_pos hi] at h ⊢      obtain ⟨S, hS, hcolor, hdegree, hnext⟩ := h      refine ⟨S, hS, hcolor.mono hkk, hdegree, ?_⟩      intro c hc hvalid      rcases hnext c hc hvalid with hw | hrec      · exact Or.inl hw      · exact Or.inr (ih (i + 1) _ _ hrec)    · simp [op869_bounded_adversary_forces, hi] at h
See it in the graphDiscuss this resultChallenge it