AFTD Auto-Formalizing Theoretical Domains

op869_one_sided_bipartite_gadget

theoremverified

A 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.

Statement

theorem op869_one_sided_bipartite_gadget :
  ∀ t j n : ℕ, 1 ≤ t → 2^(j+1)-1 ≤ n →
    op869_sequential_goal_game
      (fun s : Op869SequentialState n => ∃ side : Fin n → Bool,
        (∀ x y, (op869_graph_from_predecessors s.P).Adj x y → side x ≠ side y) ∧
        t+j*((t+1)/2) ≤
          ((Finset.univ.filter (fun x : Fin n => x.val < s.i ∧ side x = true)).biUnion s.C).card)
      (op869_sequential_legal 2 n) (op869_sequential_valid t) op869_sequential_next n
      ⟨0, (fun _ => ∅), (fun _ => ∅)⟩
Source
arXiv:2610.41516, Lemma 2.3
Verified
18 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 8
  • op869_disjoint_interval_game_liftA local k-colorable online strategy can be played on a fresh disconnected interval after any k-colorable earlier graph, without changing…
  • op869_game_maintains_prefixA bounded online-coloring strategy preserves graph colorability, the board-size bound, and empty predecessor and color sets at all future…
  • op869_board_two_copies_amplifyOn the actual finite board, after two disjoint bipartite copies and a new vertex joined to the first designated side, one can orient the…
  • op869_macro_step_strategy_simulationA strategy in one finite game transfers to another if each source move can be simulated by at most B target moves, preserving a state…
  • 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.
  • op869_disjoint_splice_bipartitionTwo bipartite graphs on disjoint board regions admit a combined bipartition that preserves both chosen side assignments.

The proof, explained

The theorem shows that an adversary in an online coloring game can build a 2-colorable (bipartite) graph on at most 2^(j+1)-1 vertices such that one side of the bipartition receives at least t + j ⌈t/2⌉ distinct colors when the colorer must assign t valid colors to each vertex. The proof proceeds by induction on j: the base case j = 0 introduces a single isolated vertex, yielding t colors. For the inductive step j + 1, the adversary constructs two independent disjoint copies of the gadget of size b = 2^(j+1)-1 and then adds a single 'root' vertex connected to the true-partition vertices of the first copy, forcing at least ⌈(t+1)/2⌉ additional colors on one side by an amplification lemma.

  1. The local winning strategy on n vertices can be strengthened to maintain the 2-coloring prefix invariant.

    Applying op869_game_maintains_prefix with the empty initial configuration (which satisfies the prefix invariant by op869_empty_prefix_invariant) shows that the adversary can achieve the goal while keeping the graph 2-colorable and future vertices unassigned.

    lines 20–21

    uses op869_game_maintains_prefix, op869_empty_prefix_invariant

      have hsource := op869_game_maintains_prefix 2 n t (op869_one_sided_goal t j) n
        ⟨0, (fun _ => ∅), (fun _ => ∅)⟩ (op869_empty_prefix_invariant n 2 (by omega)) hgame
  2. The local one-sided strategy lifts to an m-vertex ambient game starting at offset.

    Applying op869_disjoint_interval_game_lift lifts the game strategy to the interval [offset, offset + n), starting from the related initial state provided by op869_disjoint_interval_start.

    lines 22–31

    uses op869_disjoint_interval_game_lift, op869_disjoint_interval_start

      apply op869_disjoint_interval_game_lift offset h baseP baseC 2 n t
        (fun x hx => (hclear x hx).1) hbase
        (fun sl => op869_prefix_invariant 2 sl ∧ op869_one_sided_goal t j sl)
        (fun sg => ∃ sl : Op869SequentialState n,
          op869_disjoint_interval_related offset h baseP baseC sl sg ∧
          op869_prefix_invariant 2 sl ∧ op869_one_sided_goal t j sl)
      · intro sl sg hr hg
        exact ⟨sl,hr,hg⟩
      · exact op869_disjoint_interval_start offset h baseP baseC hclear
      · exact hsource
  3. The spliced graph admits a valid 2-coloring extending both the base and local colorings.

    Unpacking the relation and local goal, op869_disjoint_splice_bipartition constructs a 2-coloring `side` of the ambient graph that matches `localSide` on the embedded interval.

    lines 44–50

    uses op869_disjoint_splice_bipartition

      classical
      rcases hrel with ⟨hindex,hP,hC⟩
      obtain ⟨localSide,hlocalSide,hbound⟩ := hgoal
      obtain ⟨side,houtside,hinside,hproper⟩ :=
        op869_disjoint_splice_bipartition offset h baseP sl.P baseSide localSide hclear hbaseSide hlocalSide
      refine ⟨side, ?_, ?_⟩
      · simpa [hP] using hproper
  4. The embedded local true vertices map into ambient true vertices within the active prefix. automation

    Any local vertex with localSide x = true maps under op869_offset_emb to an ambient vertex offset + x < sg.i having side = true by definition of the spliced coloring.

    lines 51–62

    uses op869_offset_emb

      · let A := Finset.univ.filter (fun x : Fin n => x.val < sl.i ∧ localSide x = true)
        let B := Finset.univ.filter (fun x : Fin m => x.val < sg.i ∧ side x = true)
        have hsub : A.map (op869_offset_emb offset h) ⊆ B := by
          intro x hx
          obtain ⟨a,ha,rfl⟩ := Finset.mem_map.mp hx
          have ha' : a.val < sl.i ∧ localSide a = true := (Finset.mem_filter.mp ha).2
          simp only [B, Finset.mem_filter, Finset.mem_univ, true_and]
          constructor
          · change offset+a.val < sg.i
            omega
          · rw [hinside a]
            exact ha'.2
  5. The ambient true side has at least t + j ⌈(t+1)/2⌉ colors, lifting the one-sided goal to the ambient game.

    The set of colors on the ambient true vertices contains the spliced colors on the embedded local true vertices, which by op869_spliced_colors_biUnion equals the local color union, preserving the cardinality lower bound via le_trans.

    lines 63–68

    uses op869_spliced_colors_biUnion, le_trans

        have hc := Finset.card_le_card (Finset.biUnion_subset_biUnion_of_subset_left sg.C hsub)
        have heq : ((A.map (op869_offset_emb offset h)).biUnion sg.C).card =
            (A.biUnion sl.C).card := by
          rw [hC, op869_spliced_colors_biUnion]
        rw [heq] at hc
        exact le_trans hbound hc
  6. The vertex budget n is at least 1. automation

    A case split on n rules out n = 0 by the assumption 1 ≤ n.

    lines 78–81

      classical
      cases n with
      | zero => omega
      | succ n =>
  7. Playing an isolated vertex with no predecessors is a legal opening move. automation

    Introducing vertex 0 with an empty predecessor set preserves 2-colorability and degree bounds since no edges are added.

    lines 82–105

    uses op869_empty_prefix_invariant

        have hi : 0 < n+1 := by omega
        let v : Fin (n+1) := ⟨0,hi⟩
        let P : Fin (n+1) → Finset (Fin (n+1)) := fun _ => ∅
        let C : Fin (n+1) → Finset ℕ := fun _ => ∅
        have hP : Function.update P v ∅ = P := by
          funext a
          by_cases ha : a = v <;> simp [P,ha]
        have hgraph : (op869_graph_from_predecessors P).Colorable 2 := by
          have he := op869_empty_prefix_invariant (n+1) 2 (by omega)
          exact he.2.1
        change op869_sequential_goal_game _ (op869_sequential_legal 2 (n+1))
          (op869_sequential_valid t) op869_sequential_next (n+1) ⟨0,P,C⟩
        simp only [op869_sequential_goal_game]
        refine ⟨∅, ?_, ?_⟩
        · refine ⟨hi, ?_, ?_, ?_⟩
          · simp
          · change (op869_graph_from_predecessors (Function.update P v ∅)).Colorable 2
            rw [hP]
            exact hgraph
          · change ∀ a, op869_predecessor_postdegree (Function.update P v ∅) a ≤ n+1
            rw [hP]
            intro a
            unfold op869_predecessor_postdegree
            simp [P]
  8. For any t colors assigned to the vertex, putting it on the true side achieves at least t colors.

    The adversary assigns the constant true bipartition. Since vertex 0 has t colors, the union of colors on the true side has cardinality at least t, meeting the goal for j = 0.

    lines 106–126

        · intro colors hvalid
          left
          simp only [op869_sequential_next, dif_pos hi]
          refine ⟨fun _ => true, ?_, ?_⟩
          · intro a b hadj
            change (op869_graph_from_predecessors (Function.update P v ∅)).Adj a b at hadj
            rw [hP] at hadj
            change (a < b ∧ a ∈ P b) ∨ (b < a ∧ b ∈ P a) at hadj
            simp [P] at hadj
          · have hsubset : colors ⊆
              ((Finset.univ.filter (fun x : Fin (n+1) => x.val < 1 ∧ true = true)).biUnion
                (Function.update C v colors)) := by
              intro c hc
              refine Finset.mem_biUnion.mpr ⟨v, ?_, ?_⟩
              · simp [v]
              · simpa using hc
            have hcard := Finset.card_le_card hsubset
            have hct : colors.card = t := hvalid.1
            change t ≤ ((Finset.univ.filter (fun x : Fin (n+1) => x.val < 1 ∧ true = true)).biUnion
              (Function.update C v colors)).card
            omega
  9. A 2-coloring of the spliced graph can be extended to the new root vertex by setting its side to false.

    Predecessors of the root are all cleared after the root index. The two disjoint bipartitions are spliced, and op869_add_root_to_bipartition assigns the root side false, making it properly 2-colored since its neighbors in S are all on the true side.

    lines 150–170

    uses op869_spliced_future_predecessors_empty, op869_disjoint_splice_bipartition, op869_add_root_to_bipartition

      classical
      let root : Fin m := ⟨offset+i, hr⟩
      let P₀ := op869_splice_preds offset h baseP (fun _ => ∅) P
      let C₀ := op869_splice_colors offset h baseC C
      have hSroot : ∀ x ∈ S, x < root := by
        intro x hx
        have hb := hSbefore x hx
        change x.val < offset+i
        omega
      have hclear : ∀ x, root.val ≤ x.val → P₀ x = ∅ := by
        intro x hx
        apply op869_spliced_future_predecessors_empty offset h baseP P i hbaseClear hlocalClear
        exact hx
      obtain ⟨same, hsameOutside, hsameInside, hsameProper⟩ :=
        op869_disjoint_splice_bipartition offset h baseP P baseSide localSide hbaseClear hbaseSide hlocalSide
      have hsameS : ∀ x ∈ S, same x = true := by
        intro x hx
        rw [hsameOutside x (by have := hSbefore x hx; omega)]
        exact hSside x hx
      obtain ⟨side, hkeep, hroot, hproper⟩ :=
        op869_add_root_to_bipartition P₀ root S same hclear hSroot hsameProper hsameS
  10. Connecting the root vertex to S is a legal move preserving 2-colorability and postdegrees. automation

    The root index is strictly within bounds, all predecessors in S precede the root, and the resulting graph is 2-colorable by op869_bool_bipartition_colorable with postdegrees at most m.

    lines 171–182

    uses op869_bool_bipartition_colorable

      simp only [op869_sequential_goal_game]
      refine ⟨S, ?_, ?_⟩
      · refine ⟨hr, ?_, ?_, ?_⟩
        · intro x hx
          exact hSroot x hx
        · change (op869_graph_from_predecessors (Function.update P₀ root S)).Colorable 2
          exact op869_bool_bipartition_colorable _ side hproper
        · change ∀ x, op869_predecessor_postdegree (Function.update P₀ root S) x ≤ m
          intro x
          unfold op869_predecessor_postdegree
          simpa using Finset.card_le_univ (Finset.univ.filter
            (fun y : Fin m => x < y ∧ x ∈ Function.update P₀ root S y))
  11. Whichever t colors the algorithm assigns to the root, color amplification adds at least ⌈(t+1)/2⌉ colors to one side.

    By op869_board_two_copies_amplify, the root receives t colors disjoint from its predecessors, forcing at least a + ⌈(t+1)/2⌉ colors on the true side of a suitable 2-coloring.

    lines 183–192

    uses op869_board_two_copies_amplify

      · intro X hvalid
        left
        simp only [op869_sequential_next, dif_pos hr]
        have hamp := op869_board_two_copies_amplify offset h baseP baseC P C baseSide localSide
          i a t hi hr hbaseClear hlocalClear hbaseSide hlocalSide S hSbefore hSside X hvalid.1 hvalid.2 hfirst hsecond
        obtain ⟨side',hproper',hbound⟩ := hamp
        refine ⟨side',hproper',?_⟩
        change a+(t+1)/2 ≤ ((Finset.univ.filter (fun x : Fin m =>
          x.val < offset+i+1 ∧ side' x = true)).biUnion (Function.update C₀ root X)).card
        simpa only [Nat.lt_succ_iff] using hbound
  12. Sequential game strategies are monotone with respect to weakening the goal.

    By induction on the fuel, if the adversary has a winning strategy for g₁, applying the implication g₁ s → g₂ s at the leaves yields a winning strategy for g₂.

    lines 200–209

      induction fuel generalizing s with
      | zero => simp [op869_sequential_goal_game] at hgame
      | succ fuel ih =>
        simp only [op869_sequential_goal_game] at hgame ⊢
        obtain ⟨a,ha,hnext⟩ := hgame
        refine ⟨a,ha,?_⟩
        intro r hr
        rcases hnext r hr with hgoal₁ | hrest
        · exact Or.inl (hgoal _ hgoal₁)
        · exact Or.inr (ih _ hrest)
  13. The base case j = 0 holds: in at least 1 vertex, the adversary obtains t colors on one side.

    For j = 0, the target is t + 0 = t colors. Applying op869_game_goal_mono to the base gadget op869_one_sided_gadget_base achieves the goal in m ≥ 1 vertices.

    lines 216–224

    uses op869_game_goal_mono, op869_one_sided_gadget_base

      induction j with
      | zero =>
        intro m hm
        have hm' : 1 ≤ m := by norm_num at hm; omega
        apply op869_game_goal_mono _ (op869_one_sided_goal t 0)
          (op869_sequential_legal 2 m) (op869_sequential_valid t) op869_sequential_next
          ?_ m _ (op869_one_sided_gadget_base t m hm')
        intro s hs
        simpa [op869_one_sided_goal] using hs
  14. Budget arithmetic: two copies of size b = 2^(j+1)-1 plus one root vertex fit within m. automation

    Since 2^(j+2)-1 ≤ m, we have b + (b + 1) ≤ m. The base graph is initialized with empty predecessor and color functions on m vertices, which is 2-colorable.

    lines 225–245

    uses op869_empty_prefix_invariant

      | succ j ih =>
        intro m hm
        let b := 2^(j+1)-1
        have hpow : 2 ≤ 2^(j+1) := by
          have hp := Nat.pow_le_pow_right (by omega : 0 < 2) (by omega : 1 ≤ j+1)
          simpa using hp
        have hpows : 2^((j+1)+1) = 2^(j+1)*2 := by rw [pow_succ]
        have hb : 1 ≤ b := by dsimp [b]; omega
        have hbudget : b+(b+1) ≤ m := by dsimp [b]; omega
        have h0 : 0+b ≤ m := by omega
        let E : Fin m → Finset (Fin m) := fun _ => ∅
        let F : Fin m → Finset ℕ := fun _ => ∅
        have hclear0 : ∀ x : Fin m, 0 ≤ x.val → E x = ∅ ∧ F x = ∅ := by simp [E,F]
        have hbase0 : (op869_graph_from_predecessors E).Colorable 2 := by
          have h := op869_empty_prefix_invariant m 2 (by omega)
          exact h.2.1
        have hbaseSide0 : ∀ x y, (op869_graph_from_predecessors E).Adj x y →
            (fun _ : Fin m => false) x ≠ (fun _ : Fin m => false) y := by
          intro x y hxy
          change (x < y ∧ x ∈ E y) ∨ (y < x ∧ y ∈ E x) at hxy
          simp [E] at hxy
  15. The adversary plays the first copy of the j-gadget on vertices [0, b).

    By the induction hypothesis and op869_play_one_sided_copy, the adversary wins the first subgame of size b on the prefix [0, b), maintaining the prefix invariant.

    lines 246–254

    uses op869_play_one_sided_copy, op869_game_maintains_prefix, op869_empty_prefix_invariant

        have hlocal := ih b (by dsimp [b]; rfl)
        let firstGoal : Op869SequentialState m → Prop := fun sg =>
          ∃ sl : Op869SequentialState b, op869_disjoint_interval_related 0 h0 E F sl sg ∧
            op869_prefix_invariant 2 sl ∧ op869_one_sided_goal t j sl
        have hfirst : op869_sequential_goal_game firstGoal (op869_sequential_legal 2 m)
            (op869_sequential_valid t) op869_sequential_next b ⟨0,E,F⟩ :=
          op869_play_one_sided_copy 0 h0 E F t j hclear0 hbase0 hlocal
        have hfirst' := op869_game_maintains_prefix 2 m t firstGoal b ⟨0,E,F⟩
          (op869_empty_prefix_invariant m 2 (by omega)) hfirst
  16. The adversary plays the second copy of the j-gadget on vertices [sf.i, sf.i + b).

    Lifting the first copy's outcome to the ambient board via op869_one_sided_goal_disjoint_lift, the adversary plays a second independent copy of the j-gadget starting at offset sf.i using op869_play_one_sided_copy.

    lines 255–279

    uses op869_one_sided_goal_disjoint_lift, op869_play_one_sided_copy, op869_game_maintains_prefix

        have hcont : ∀ sf : Op869SequentialState m,
            (op869_prefix_invariant 2 sf ∧ firstGoal sf) →
            op869_one_sided_goal t (j+1) sf ∨
              op869_sequential_goal_game (op869_one_sided_goal t (j+1))
                (op869_sequential_legal 2 m) (op869_sequential_valid t) op869_sequential_next (b+1) sf := by
          intro sf hsf
          obtain ⟨hinvf, sl, hrel, hinvl, hgl⟩ := hsf
          have hfi : sf.i ≤ b := by
            have hidx := hrel.1
            have hli := hinvl.1
            omega
          have hfirstGlobal : op869_one_sided_goal t j sf :=
            op869_one_sided_goal_disjoint_lift 0 h0 E F (fun _ => false) t j
              (fun x hx => rfl) hbaseSide0 sl sf hrel hgl
          obtain ⟨baseSide,hbaseSide,hbaseBound⟩ := hfirstGlobal
          have h2 : sf.i+b ≤ m := by omega
          have hclear2 : ∀ x : Fin m, sf.i ≤ x.val → sf.P x = ∅ ∧ sf.C x = ∅ := hinvf.2.2
          have hbase2 : (op869_graph_from_predecessors sf.P).Colorable 2 := hinvf.2.1
          let secondGoal : Op869SequentialState m → Prop := fun sg =>
            ∃ sl₂ : Op869SequentialState b, op869_disjoint_interval_related sf.i h2 sf.P sf.C sl₂ sg ∧
              op869_prefix_invariant 2 sl₂ ∧ op869_one_sided_goal t j sl₂
          have hsecond : op869_sequential_goal_game secondGoal (op869_sequential_legal 2 m)
              (op869_sequential_valid t) op869_sequential_next b sf :=
            op869_play_one_sided_copy sf.i h2 sf.P sf.C t j hclear2 hbase2 hlocal
          have hsecond' := op869_game_maintains_prefix 2 m t secondGoal b sf hinvf hsecond
  17. The adversary connects a root vertex to the true side of the first copy, achieving t + (j+1)⌈(t+1)/2⌉ colors.

    The adversary identifies the true vertices S of the first copy and applies op869_one_sided_root_game to play a root connected to S. This amplifies the number of colors on the true side by ⌈(t+1)/2⌉, reaching the target for j+1.

    lines 280–338

    uses op869_one_sided_root_game, op869_game_goal_mono

          have hcont2 : ∀ sg : Op869SequentialState m,
              (op869_prefix_invariant 2 sg ∧ secondGoal sg) →
              op869_one_sided_goal t (j+1) sg ∨
                op869_sequential_goal_game (op869_one_sided_goal t (j+1))
                  (op869_sequential_legal 2 m) (op869_sequential_valid t) op869_sequential_next 1 sg := by
            intro sg hsg
            obtain ⟨hinvg, sl₂, hrel₂, hinvl₂, hgl₂⟩ := hsg
            obtain ⟨localSide,hlocalSide,hlocalBound⟩ := hgl₂
            rcases hrel₂ with ⟨hidx,hP,hC⟩
            have hroot : sf.i+sl₂.i < m := by
              have hli := hinvl₂.1
              omega
            let S := Finset.univ.filter (fun x : Fin m => x.val < sf.i ∧ baseSide x = true)
            have hSbefore : ∀ x ∈ S, x.val < sf.i := by
              intro x hx
              exact (Finset.mem_filter.mp hx).2.1
            have hSside : ∀ x ∈ S, baseSide x = true := by
              intro x hx
              exact (Finset.mem_filter.mp hx).2.2
            have hpalette : S.biUnion (op869_splice_colors sf.i h2 sf.C sl₂.C) = S.biUnion sf.C := by
              apply Finset.biUnion_congr rfl
              intro x hx
              have hx' := hSbefore x hx
              simp [op869_splice_colors, not_le_of_gt hx']
            have hfirstBound : t+j*((t+1)/2) ≤
                (S.biUnion (op869_splice_colors sf.i h2 sf.C sl₂.C)).card := by
              rw [hpalette]
              exact hbaseBound
            have hsecondBound : t+j*((t+1)/2) ≤
                (((Finset.univ.filter (fun x : Fin b => x.val < sl₂.i ∧ localSide x = true)).map
                  (op869_offset_emb sf.i h2)).biUnion (op869_splice_colors sf.i h2 sf.C sl₂.C)).card := by
              rw [op869_spliced_colors_biUnion]
              exact hlocalBound
            have hrootGame := op869_one_sided_root_game sf.i h2 sf.P sf.C sl₂.P sl₂.C baseSide localSide
              sl₂.i (t+j*((t+1)/2)) t hinvl₂.1 hroot
              (fun x hx => (hclear2 x hx).1) (fun x hx => (hinvl₂.2.2 x hx).1)
              hbaseSide hlocalSide S hSbefore hSside hfirstBound hsecondBound
            have hrootGoal : ∀ s : Op869SequentialState m,
                (∃ side : Fin m → Bool,
                  (∀ x y, (op869_graph_from_predecessors s.P).Adj x y → side x ≠ side y) ∧
                  (t+j*((t+1)/2))+(t+1)/2 ≤
                    ((Finset.univ.filter (fun x : Fin m => x.val < s.i ∧ side x = true)).biUnion s.C).card) →
                op869_one_sided_goal t (j+1) s := by
              intro s hs
              rcases hs with ⟨side,hp,hc⟩
              refine ⟨side,hp,?_⟩
              have heq : t+(j+1)*((t+1)/2) = (t+j*((t+1)/2))+(t+1)/2 := by ring
              rw [heq]
              exact hc
            have hrootGame' := op869_game_goal_mono _ _ (op869_sequential_legal 2 m)
              (op869_sequential_valid t) op869_sequential_next hrootGoal 1 _ hrootGame
            right
            cases sg with
            | mk idx PP CC =>
              simp only [Op869SequentialState.i, Op869SequentialState.P, Op869SequentialState.C] at hidx hP hC
              subst idx
              subst PP
              subst CC
              exact hrootGame'
  18. Chaining the three phases yields a winning strategy within m vertices.

    Using op869_game_early_bind to compose the second copy with the root game, and then the first copy with the remainder, produces a strategy requiring b + (b + 1) steps. Fuel monotonicity via op869_sequential_fuel_mono_internal extends this to m steps.

    lines 339–350

    uses op869_game_early_bind, op869_sequential_fuel_mono_internal

          right
          exact op869_game_early_bind (op869_one_sided_goal t (j+1))
            (fun sg => op869_prefix_invariant 2 sg ∧ secondGoal sg)
            (op869_sequential_legal 2 m) (op869_sequential_valid t) op869_sequential_next
            b 1 sf hsecond' hcont2
        have hcombined := op869_game_early_bind (op869_one_sided_goal t (j+1))
          (fun sf => op869_prefix_invariant 2 sf ∧ firstGoal sf)
          (op869_sequential_legal 2 m) (op869_sequential_valid t) op869_sequential_next
          b (b+1) ⟨0,E,F⟩ hfirst' hcont
        exact op869_sequential_fuel_mono_internal (op869_one_sided_goal t (j+1))
          (op869_sequential_legal 2 m) (op869_sequential_valid t) op869_sequential_next
          (b+(b+1)) m ⟨0,E,F⟩ hbudget hcombined
  19. The one-sided bipartite color amplification gadget holds for all parameters.

    Introducing the parameters t, j, and n, the result follows immediately from op869_one_sided_bipartite_gadget_proof.

    lines 362–363

    uses op869_one_sided_bipartite_gadget_proof

      intro t j n ht hn
      exact op869_one_sided_bipartite_gadget_proof t ht j n hn
op869_game_maintains_prefix
A winning game strategy can be strengthened to also maintain the prefix invariant (valid vertex indices, 2-colorability, and cleared future vertices) at each round.
op869_empty_prefix_invariant
The empty graph configuration on n vertices satisfies the prefix invariant for 2-colorings.
op869_disjoint_interval_game_lift
A winning strategy on an n-vertex local subgame can be lifted to play on a disjoint interval [offset, offset + n) in an m-vertex ambient game.
op869_disjoint_interval_start
The empty local game state and the offset ambient game state are related on the disjoint interval at round zero.
op869_disjoint_splice_bipartition
Two 2-colorings on disjoint vertex intervals can be spliced together into a valid 2-coloring of the spliced graph.
op869_offset_emb
The canonical embedding of Fin n into Fin m by adding an offset.
op869_spliced_colors_biUnion
The union of colors on an embedded subset equals the union of colors in the local state.
le_trans
Transitivity of inequality: if a ≤ b and b ≤ c, then a ≤ c.
op869_one_sided_gadget_base
A single isolated vertex can always be played legally and colored to give at least t colors on one side.
op869_spliced_future_predecessors_empty
Vertices after the active prefix have empty predecessor sets in the spliced predecessor function.
op869_add_root_to_bipartition
A new root vertex connected only to vertices on one side of a 2-coloring can be added while preserving 2-colorability, by assigning it the opposite side.
op869_bool_bipartition_colorable
A graph with a valid 2-partition is 2-colorable.
op869_board_two_copies_amplify
Connecting a root vertex to the true side of the first copy forces the adversary to yield at least ⌈(t+1)/2⌉ new colors on one side of the bipartition.
op869_game_goal_mono
Weakening the winning condition preserves the existence of a winning strategy in a sequential game.
op869_play_one_sided_copy
Playing a copy of the one-sided gadget on a disjoint interval [offset, offset + n) produces a valid local state and preserves the prefix invariant.
op869_one_sided_goal_disjoint_lift
A one-sided goal achieved on a disjoint interval lifts to the ambient board.
op869_one_sided_root_game
Adding a root vertex connected to the first copy achieves the amplified color bound in one move.
op869_game_early_bind
Sequencing two game strategies by chaining an intermediate goal into a continuation strategy.
op869_sequential_fuel_mono_internal
A winning strategy requiring n steps remains valid when allocated n' ≥ n steps of fuel.
op869_one_sided_bipartite_gadget_proof
Inductive construction showing that the adversary can force t + j ⌈t/2⌉ colors on one side in at most 2^(j+1)-1 vertices.

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_one_sided_goal {n : ℕ} (t j : ℕ) (s : Op869SequentialState n) : Prop :=  ∃ side : Fin n → Bool,    (∀ x y, (op869_graph_from_predecessors s.P).Adj x y → side x ≠ side y) ∧    t+j*((t+1)/2) ≤      ((Finset.univ.filter (fun x : Fin n => x.val < s.i ∧ side x = true)).biUnion s.C).cardtheorem op869_play_one_sided_copy {n m : ℕ} (offset : ℕ) (h : offset+n ≤ m)    (baseP : Fin m → Finset (Fin m)) (baseC : Fin m → Finset ℕ) (t j : ℕ)    (hclear : ∀ x, offset ≤ x.val → baseP x = ∅ ∧ baseC x = ∅)    (hbase : (op869_graph_from_predecessors baseP).Colorable 2)    (hgame : op869_sequential_goal_game (op869_one_sided_goal t j) (op869_sequential_legal 2 n)      (op869_sequential_valid t) op869_sequential_next n      ⟨0, (fun _ : Fin n => ∅), (fun _ : Fin n => ∅)⟩) :    op869_sequential_goal_game      (fun sg : Op869SequentialState m => ∃ sl : Op869SequentialState n,        op869_disjoint_interval_related offset h baseP baseC sl sg ∧        op869_prefix_invariant 2 sl ∧ op869_one_sided_goal t j sl)      (op869_sequential_legal 2 m) (op869_sequential_valid t) op869_sequential_next n      ⟨offset, baseP, baseC⟩ := by  have hsource := op869_game_maintains_prefix 2 n t (op869_one_sided_goal t j) n    ⟨0, (fun _ => ∅), (fun _ => ∅)⟩ (op869_empty_prefix_invariant n 2 (by omega)) hgame  apply op869_disjoint_interval_game_lift offset h baseP baseC 2 n t    (fun x hx => (hclear x hx).1) hbase    (fun sl => op869_prefix_invariant 2 sl ∧ op869_one_sided_goal t j sl)    (fun sg => ∃ sl : Op869SequentialState n,      op869_disjoint_interval_related offset h baseP baseC sl sg ∧      op869_prefix_invariant 2 sl ∧ op869_one_sided_goal t j sl)  · intro sl sg hr hg    exact ⟨sl,hr,hg⟩  · exact op869_disjoint_interval_start offset h baseP baseC hclear  · exact hsourcetheorem op869_one_sided_goal_disjoint_lift {n m : ℕ} (offset : ℕ) (h : offset+n ≤ m)    (baseP : Fin m → Finset (Fin m)) (baseC : Fin m → Finset ℕ)    (baseSide : Fin m → Bool) (t j : ℕ)    (hclear : ∀ x, offset ≤ x.val → baseP x = ∅)    (hbaseSide : ∀ x y, (op869_graph_from_predecessors baseP).Adj x y → baseSide x ≠ baseSide y)    (sl : Op869SequentialState n) (sg : Op869SequentialState m)    (hrel : op869_disjoint_interval_related offset h baseP baseC sl sg)    (hgoal : op869_one_sided_goal t j sl) :    op869_one_sided_goal t j sg := by  classical  rcases hrel with ⟨hindex,hP,hC⟩  obtain ⟨localSide,hlocalSide,hbound⟩ := hgoal  obtain ⟨side,houtside,hinside,hproper⟩ :=    op869_disjoint_splice_bipartition offset h baseP sl.P baseSide localSide hclear hbaseSide hlocalSide  refine ⟨side, ?_, ?_⟩  · simpa [hP] using hproper  · let A := Finset.univ.filter (fun x : Fin n => x.val < sl.i ∧ localSide x = true)    let B := Finset.univ.filter (fun x : Fin m => x.val < sg.i ∧ side x = true)    have hsub : A.map (op869_offset_emb offset h) ⊆ B := by      intro x hx      obtain ⟨a,ha,rfl⟩ := Finset.mem_map.mp hx      have ha' : a.val < sl.i ∧ localSide a = true := (Finset.mem_filter.mp ha).2      simp only [B, Finset.mem_filter, Finset.mem_univ, true_and]      constructor      · change offset+a.val < sg.i        omega      · rw [hinside a]        exact ha'.2    have hc := Finset.card_le_card (Finset.biUnion_subset_biUnion_of_subset_left sg.C hsub)    have heq : ((A.map (op869_offset_emb offset h)).biUnion sg.C).card =        (A.biUnion sl.C).card := by      rw [hC, op869_spliced_colors_biUnion]    rw [heq] at hc    exact le_trans hbound hctheorem op869_one_sided_gadget_base (t n : ℕ) (hn : 1 ≤ n) :    op869_sequential_goal_game      (fun s : Op869SequentialState n => ∃ side : Fin n → Bool,        (∀ x y, (op869_graph_from_predecessors s.P).Adj x y → side x ≠ side y) ∧        t ≤ ((Finset.univ.filter (fun x : Fin n => x.val < s.i ∧ side x = true)).biUnion s.C).card)      (op869_sequential_legal 2 n) (op869_sequential_valid t) op869_sequential_next n      ⟨0, (fun _ => ∅), (fun _ => ∅)⟩ := by  classical  cases n with  | zero => omega  | succ n =>    have hi : 0 < n+1 := by omega    let v : Fin (n+1) := ⟨0,hi⟩    let P : Fin (n+1) → Finset (Fin (n+1)) := fun _ => ∅    let C : Fin (n+1) → Finset ℕ := fun _ => ∅    have hP : Function.update P v ∅ = P := by      funext a      by_cases ha : a = v <;> simp [P,ha]    have hgraph : (op869_graph_from_predecessors P).Colorable 2 := by      have he := op869_empty_prefix_invariant (n+1) 2 (by omega)      exact he.2.1    change op869_sequential_goal_game _ (op869_sequential_legal 2 (n+1))      (op869_sequential_valid t) op869_sequential_next (n+1) ⟨0,P,C⟩    simp only [op869_sequential_goal_game]    refine ⟨∅, ?_, ?_⟩    · refine ⟨hi, ?_, ?_, ?_⟩      · simp      · change (op869_graph_from_predecessors (Function.update P v ∅)).Colorable 2        rw [hP]        exact hgraph      · change ∀ a, op869_predecessor_postdegree (Function.update P v ∅) a ≤ n+1        rw [hP]        intro a        unfold op869_predecessor_postdegree        simp [P]    · intro colors hvalid      left      simp only [op869_sequential_next, dif_pos hi]      refine ⟨fun _ => true, ?_, ?_⟩      · intro a b hadj        change (op869_graph_from_predecessors (Function.update P v ∅)).Adj a b at hadj        rw [hP] at hadj        change (a < b ∧ a ∈ P b) ∨ (b < a ∧ b ∈ P a) at hadj        simp [P] at hadj      · have hsubset : colors ⊆          ((Finset.univ.filter (fun x : Fin (n+1) => x.val < 1 ∧ true = true)).biUnion            (Function.update C v colors)) := by          intro c hc          refine Finset.mem_biUnion.mpr ⟨v, ?_, ?_⟩          · simp [v]          · simpa using hc        have hcard := Finset.card_le_card hsubset        have hct : colors.card = t := hvalid.1        change t ≤ ((Finset.univ.filter (fun x : Fin (n+1) => x.val < 1 ∧ true = true)).biUnion          (Function.update C v colors)).card        omegatheorem op869_one_sided_root_game {n m : ℕ} (offset : ℕ) (h : offset+n ≤ m)    (baseP : Fin m → Finset (Fin m)) (baseC : Fin m → Finset ℕ)    (P : Fin n → Finset (Fin n)) (C : Fin n → Finset ℕ)    (baseSide : Fin m → Bool) (localSide : Fin n → Bool)    (i a t : ℕ) (hi : i ≤ n) (hr : offset+i < m)    (hbaseClear : ∀ x, offset ≤ x.val → baseP x = ∅)    (hlocalClear : ∀ x, i ≤ x.val → P x = ∅)    (hbaseSide : ∀ x y, (op869_graph_from_predecessors baseP).Adj x y → baseSide x ≠ baseSide y)    (hlocalSide : ∀ x y, (op869_graph_from_predecessors P).Adj x y → localSide x ≠ localSide y)    (S : Finset (Fin m)) (hSbefore : ∀ x ∈ S, x.val < offset)    (hSside : ∀ x ∈ S, baseSide x = true)    (hfirst : a ≤ (S.biUnion (op869_splice_colors offset h baseC C)).card)    (hsecond : a ≤ (((Finset.univ.filter (fun x : Fin n => x.val < i ∧ localSide x = true)).map      (op869_offset_emb offset h)).biUnion (op869_splice_colors offset h baseC C)).card) :    op869_sequential_goal_game      (fun s : Op869SequentialState m => ∃ side : Fin m → Bool,        (∀ x y, (op869_graph_from_predecessors s.P).Adj x y → side x ≠ side y) ∧        a+(t+1)/2 ≤ ((Finset.univ.filter (fun x : Fin m => x.val < s.i ∧ side x = true)).biUnion s.C).card)      (op869_sequential_legal 2 m) (op869_sequential_valid t) op869_sequential_next 1      ⟨offset+i, op869_splice_preds offset h baseP (fun _ => ∅) P,        op869_splice_colors offset h baseC C⟩ := by  classical  let root : Fin m := ⟨offset+i, hr⟩  let P₀ := op869_splice_preds offset h baseP (fun _ => ∅) P  let C₀ := op869_splice_colors offset h baseC C  have hSroot : ∀ x ∈ S, x < root := by    intro x hx    have hb := hSbefore x hx    change x.val < offset+i    omega  have hclear : ∀ x, root.val ≤ x.val → P₀ x = ∅ := by    intro x hx    apply op869_spliced_future_predecessors_empty offset h baseP P i hbaseClear hlocalClear    exact hx  obtain ⟨same, hsameOutside, hsameInside, hsameProper⟩ :=    op869_disjoint_splice_bipartition offset h baseP P baseSide localSide hbaseClear hbaseSide hlocalSide  have hsameS : ∀ x ∈ S, same x = true := by    intro x hx    rw [hsameOutside x (by have := hSbefore x hx; omega)]    exact hSside x hx  obtain ⟨side, hkeep, hroot, hproper⟩ :=    op869_add_root_to_bipartition P₀ root S same hclear hSroot hsameProper hsameS  simp only [op869_sequential_goal_game]  refine ⟨S, ?_, ?_⟩  · refine ⟨hr, ?_, ?_, ?_⟩    · intro x hx      exact hSroot x hx    · change (op869_graph_from_predecessors (Function.update P₀ root S)).Colorable 2      exact op869_bool_bipartition_colorable _ side hproper    · change ∀ x, op869_predecessor_postdegree (Function.update P₀ root S) x ≤ m      intro x      unfold op869_predecessor_postdegree      simpa using Finset.card_le_univ (Finset.univ.filter        (fun y : Fin m => x < y ∧ x ∈ Function.update P₀ root S y))  · intro X hvalid    left    simp only [op869_sequential_next, dif_pos hr]    have hamp := op869_board_two_copies_amplify offset h baseP baseC P C baseSide localSide      i a t hi hr hbaseClear hlocalClear hbaseSide hlocalSide S hSbefore hSside X hvalid.1 hvalid.2 hfirst hsecond    obtain ⟨side',hproper',hbound⟩ := hamp    refine ⟨side',hproper',?_⟩    change a+(t+1)/2 ≤ ((Finset.univ.filter (fun x : Fin m =>      x.val < offset+i+1 ∧ side' x = true)).biUnion (Function.update C₀ root X)).card    simpa only [Nat.lt_succ_iff] using hboundtheorem op869_game_goal_mono {S M R : Type} (g₁ g₂ : S → Prop)    (legal : S → M → Prop) (valid : S → M → R → Prop) (next : S → M → R → S)    (hgoal : ∀ s, g₁ s → g₂ s) (fuel : ℕ) (s : S)    (hgame : op869_sequential_goal_game g₁ legal valid next fuel s) :    op869_sequential_goal_game g₂ legal valid next fuel s := by  induction fuel generalizing s with  | zero => simp [op869_sequential_goal_game] at hgame  | succ fuel ih =>    simp only [op869_sequential_goal_game] at hgame ⊢    obtain ⟨a,ha,hnext⟩ := hgame    refine ⟨a,ha,?_⟩    intro r hr    rcases hnext r hr with hgoal₁ | hrest    · exact Or.inl (hgoal _ hgoal₁)    · exact Or.inr (ih _ hrest)theorem op869_one_sided_bipartite_gadget_proof (t : ℕ) (ht : 1 ≤ t) (j : ℕ) :    ∀ m : ℕ, 2^(j+1)-1 ≤ m →      op869_sequential_goal_game (op869_one_sided_goal t j)        (op869_sequential_legal 2 m) (op869_sequential_valid t) op869_sequential_next m        ⟨0, (fun _ : Fin m => ∅), (fun _ : Fin m => ∅)⟩ := by  induction j with  | zero =>    intro m hm    have hm' : 1 ≤ m := by norm_num at hm; omega    apply op869_game_goal_mono _ (op869_one_sided_goal t 0)      (op869_sequential_legal 2 m) (op869_sequential_valid t) op869_sequential_next      ?_ m _ (op869_one_sided_gadget_base t m hm')    intro s hs    simpa [op869_one_sided_goal] using hs  | succ j ih =>    intro m hm    let b := 2^(j+1)-1    have hpow : 2 ≤ 2^(j+1) := by      have hp := Nat.pow_le_pow_right (by omega : 0 < 2) (by omega : 1 ≤ j+1)      simpa using hp    have hpows : 2^((j+1)+1) = 2^(j+1)*2 := by rw [pow_succ]    have hb : 1 ≤ b := by dsimp [b]; omega    have hbudget : b+(b+1) ≤ m := by dsimp [b]; omega    have h0 : 0+b ≤ m := by omega    let E : Fin m → Finset (Fin m) := fun _ => ∅    let F : Fin m → Finset ℕ := fun _ => ∅    have hclear0 : ∀ x : Fin m, 0 ≤ x.val → E x = ∅ ∧ F x = ∅ := by simp [E,F]    have hbase0 : (op869_graph_from_predecessors E).Colorable 2 := by      have h := op869_empty_prefix_invariant m 2 (by omega)      exact h.2.1    have hbaseSide0 : ∀ x y, (op869_graph_from_predecessors E).Adj x y →        (fun _ : Fin m => false) x ≠ (fun _ : Fin m => false) y := by      intro x y hxy      change (x < y ∧ x ∈ E y) ∨ (y < x ∧ y ∈ E x) at hxy      simp [E] at hxy    have hlocal := ih b (by dsimp [b]; rfl)    let firstGoal : Op869SequentialState m → Prop := fun sg =>      ∃ sl : Op869SequentialState b, op869_disjoint_interval_related 0 h0 E F sl sg ∧        op869_prefix_invariant 2 sl ∧ op869_one_sided_goal t j sl    have hfirst : op869_sequential_goal_game firstGoal (op869_sequential_legal 2 m)        (op869_sequential_valid t) op869_sequential_next b ⟨0,E,F⟩ :=      op869_play_one_sided_copy 0 h0 E F t j hclear0 hbase0 hlocal    have hfirst' := op869_game_maintains_prefix 2 m t firstGoal b ⟨0,E,F⟩      (op869_empty_prefix_invariant m 2 (by omega)) hfirst    have hcont : ∀ sf : Op869SequentialState m,        (op869_prefix_invariant 2 sf ∧ firstGoal sf) →        op869_one_sided_goal t (j+1) sf ∨          op869_sequential_goal_game (op869_one_sided_goal t (j+1))            (op869_sequential_legal 2 m) (op869_sequential_valid t) op869_sequential_next (b+1) sf := by      intro sf hsf      obtain ⟨hinvf, sl, hrel, hinvl, hgl⟩ := hsf      have hfi : sf.i ≤ b := by        have hidx := hrel.1        have hli := hinvl.1        omega      have hfirstGlobal : op869_one_sided_goal t j sf :=        op869_one_sided_goal_disjoint_lift 0 h0 E F (fun _ => false) t j          (fun x hx => rfl) hbaseSide0 sl sf hrel hgl      obtain ⟨baseSide,hbaseSide,hbaseBound⟩ := hfirstGlobal      have h2 : sf.i+b ≤ m := by omega      have hclear2 : ∀ x : Fin m, sf.i ≤ x.val → sf.P x = ∅ ∧ sf.C x = ∅ := hinvf.2.2      have hbase2 : (op869_graph_from_predecessors sf.P).Colorable 2 := hinvf.2.1      let secondGoal : Op869SequentialState m → Prop := fun sg =>        ∃ sl₂ : Op869SequentialState b, op869_disjoint_interval_related sf.i h2 sf.P sf.C sl₂ sg ∧          op869_prefix_invariant 2 sl₂ ∧ op869_one_sided_goal t j sl₂      have hsecond : op869_sequential_goal_game secondGoal (op869_sequential_legal 2 m)          (op869_sequential_valid t) op869_sequential_next b sf :=        op869_play_one_sided_copy sf.i h2 sf.P sf.C t j hclear2 hbase2 hlocal      have hsecond' := op869_game_maintains_prefix 2 m t secondGoal b sf hinvf hsecond      have hcont2 : ∀ sg : Op869SequentialState m,          (op869_prefix_invariant 2 sg ∧ secondGoal sg) →          op869_one_sided_goal t (j+1) sg ∨            op869_sequential_goal_game (op869_one_sided_goal t (j+1))              (op869_sequential_legal 2 m) (op869_sequential_valid t) op869_sequential_next 1 sg := by        intro sg hsg        obtain ⟨hinvg, sl₂, hrel₂, hinvl₂, hgl₂⟩ := hsg        obtain ⟨localSide,hlocalSide,hlocalBound⟩ := hgl₂        rcases hrel₂ with ⟨hidx,hP,hC⟩        have hroot : sf.i+sl₂.i < m := by          have hli := hinvl₂.1          omega        let S := Finset.univ.filter (fun x : Fin m => x.val < sf.i ∧ baseSide x = true)        have hSbefore : ∀ x ∈ S, x.val < sf.i := by          intro x hx          exact (Finset.mem_filter.mp hx).2.1        have hSside : ∀ x ∈ S, baseSide x = true := by          intro x hx          exact (Finset.mem_filter.mp hx).2.2        have hpalette : S.biUnion (op869_splice_colors sf.i h2 sf.C sl₂.C) = S.biUnion sf.C := by          apply Finset.biUnion_congr rfl          intro x hx          have hx' := hSbefore x hx          simp [op869_splice_colors, not_le_of_gt hx']        have hfirstBound : t+j*((t+1)/2) ≤            (S.biUnion (op869_splice_colors sf.i h2 sf.C sl₂.C)).card := by          rw [hpalette]          exact hbaseBound        have hsecondBound : t+j*((t+1)/2) ≤            (((Finset.univ.filter (fun x : Fin b => x.val < sl₂.i ∧ localSide x = true)).map              (op869_offset_emb sf.i h2)).biUnion (op869_splice_colors sf.i h2 sf.C sl₂.C)).card := by          rw [op869_spliced_colors_biUnion]          exact hlocalBound        have hrootGame := op869_one_sided_root_game sf.i h2 sf.P sf.C sl₂.P sl₂.C baseSide localSide          sl₂.i (t+j*((t+1)/2)) t hinvl₂.1 hroot          (fun x hx => (hclear2 x hx).1) (fun x hx => (hinvl₂.2.2 x hx).1)          hbaseSide hlocalSide S hSbefore hSside hfirstBound hsecondBound        have hrootGoal : ∀ s : Op869SequentialState m,            (∃ side : Fin m → Bool,              (∀ x y, (op869_graph_from_predecessors s.P).Adj x y → side x ≠ side y) ∧              (t+j*((t+1)/2))+(t+1)/2 ≤                ((Finset.univ.filter (fun x : Fin m => x.val < s.i ∧ side x = true)).biUnion s.C).card) →            op869_one_sided_goal t (j+1) s := by          intro s hs          rcases hs with ⟨side,hp,hc⟩          refine ⟨side,hp,?_⟩          have heq : t+(j+1)*((t+1)/2) = (t+j*((t+1)/2))+(t+1)/2 := by ring          rw [heq]          exact hc        have hrootGame' := op869_game_goal_mono _ _ (op869_sequential_legal 2 m)          (op869_sequential_valid t) op869_sequential_next hrootGoal 1 _ hrootGame        right        cases sg with        | mk idx PP CC =>          simp only [Op869SequentialState.i, Op869SequentialState.P, Op869SequentialState.C] at hidx hP hC          subst idx          subst PP          subst CC          exact hrootGame'      right      exact op869_game_early_bind (op869_one_sided_goal t (j+1))        (fun sg => op869_prefix_invariant 2 sg ∧ secondGoal sg)        (op869_sequential_legal 2 m) (op869_sequential_valid t) op869_sequential_next        b 1 sf hsecond' hcont2    have hcombined := op869_game_early_bind (op869_one_sided_goal t (j+1))      (fun sf => op869_prefix_invariant 2 sf ∧ firstGoal sf)      (op869_sequential_legal 2 m) (op869_sequential_valid t) op869_sequential_next      b (b+1) ⟨0,E,F⟩ hfirst' hcont    exact op869_sequential_fuel_mono_internal (op869_one_sided_goal t (j+1))      (op869_sequential_legal 2 m) (op869_sequential_valid t) op869_sequential_next      (b+(b+1)) m ⟨0,E,F⟩ hbudget hcombined/-- The one-sided adaptive bipartite color-amplification gadget. -/theorem op869_one_sided_bipartite_gadget :  ∀ t j n : ℕ, 1 ≤ t → 2^(j+1)-1 ≤ n →    op869_sequential_goal_game      (fun s : Op869SequentialState n => ∃ side : Fin n → Bool,        (∀ x y, (op869_graph_from_predecessors s.P).Adj x y → side x ≠ side y) ∧        t+j*((t+1)/2) ≤          ((Finset.univ.filter (fun x : Fin n => x.val < s.i ∧ side x = true)).biUnion s.C).card)      (op869_sequential_legal 2 n) (op869_sequential_valid t) op869_sequential_next n      ⟨0, (fun _ => ∅), (fun _ => ∅)⟩ := by  intro t j n ht hn  exact op869_one_sided_bipartite_gadget_proof t ht j n hn
See it in the graphDiscuss this resultChallenge it