AFTD Auto-Formalizing Theoretical Domains

op869_bounded_adversary_forces_mono_degree

theoremverified

Increasing the post-degree bound preserves a winning position in the bounded t-fold adversary game.

Statement

theorem op869_bounded_adversary_forces_mono_degree {n : ℕ} (k t K : ℕ) (D D' : ℕ) (hDD : D ≤ D')
    (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.
Used by 1
  • op869_equal_fold_simulationThe fold-simulation conclusion holds in the case t=q: its numerical bounds are large enough to pad the board and relax the post-degree…

The proof, explained

The theorem is proved by induction on the fuel parameter. At any stage with i < n, the player can reuse the exact same predecessor set S that forced a win under budget D. Since D ≤ D', every vertex's post-degree remains within the larger budget D' by transitivity, while graph colorability and predecessor ordering are unchanged. For any adversary response, an immediate win persists, and a continuation win follows by the induction hypothesis.

  1. The base case with zero fuel holds vacuously.

    We proceed by induction on `fuel`, generalizing the stage index `i`, predecessor map `P`, and color assignment `C`. When `fuel = 0`, the predicate `op869_bounded_adversary_forces` is defined to be `False`, so the hypothesis `h` is contradictory.

    lines 6–7

      induction fuel generalizing i P C with
      | zero => simp [op869_bounded_adversary_forces] at h
  2. In the inductive step with i < n, the same predecessor set S satisfies the valid move and degree conditions under the larger degree budget D'.

    Assuming the result holds for `fuel`, consider `fuel + 1` and split on whether i < n. When i < n, simplifying with the definition of `op869_bounded_adversary_forces` via `dif_pos` unfolds both the hypothesis and the goal. From the hypothesis, we obtain a predecessor set S consisting of vertices preceding i, such that the updated graph is k-colorable, the post-degree of every vertex is at most D, and every valid adversary response leads to a winning position. Proposing this same set S for the budget D' preserves the precedence and k-colorability conditions, while the post-degree bound D' holds because each post-degree is at most D and D ≤ D' by transitivity (`le_trans`).

    lines 8–12

    uses dif_pos, le_trans

      | 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, fun a => le_trans (hdegree a) hDD, ?_⟩
  3. For every valid adversary response c, the game either achieves the target number of colors immediately or continues to a winning position under budget D'.

    Let c be an adversary choice of t colors disjoint from the colors of the vertices in S. Under the original winning condition, either the total number of colors assigned reaches at least K, which immediately wins under D' as well (`Or.inl`), or the game transitions to a winning position at stage i + 1 with remaining fuel `fuel`. In the latter case, applying the induction hypothesis (`ih`) shows that the next position is also winning with budget D' (`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)
  4. The case i ≥ n is impossible.

    When i < n is false, the definition of `op869_bounded_adversary_forces` evaluates to `False`, contradicting the assumption h and closing the goal.

    line 17

        · simp [op869_bounded_adversary_forces, hi] at h
dif_pos
A dependent if-then-else expression `if h : c then t else e` evaluates to the `then` branch `t` when the condition `c` holds.
le_trans
Transitivity of inequality: if a ≤ b and b ≤ c, then a ≤ c.
Or.inl
Constructs a proof of a disjunction a ∨ b from a proof of the left disjunct a.
Or.inr
Constructs a proof of a disjunction a ∨ b from a proof of the right disjunct 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

/-- Raising the post-degree budget of the bounded adversary game keeps every winning position winning. -/theorem op869_bounded_adversary_forces_mono_degree {n : ℕ} (k t K : ℕ) (D D' : ℕ) (hDD : D ≤ D')    (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, fun a => le_trans (hdegree a) hDD, ?_⟩      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