AFTD Auto-Formalizing Theoretical Domains

op869_color_set_amplification

theoremverified

If P and Q each have at least a elements and X has t elements disjoint from P, then P union Q or Q union X has at least a plus ceil(t/2) elements.

Statement

theorem op869_color_set_amplification {α : Type} [DecidableEq α] (P Q X : Finset α) (a t : ℕ) :
    a ≤ P.card → a ≤ Q.card → X.card = t → Disjoint X P →
    a + (t + 1) / 2 ≤ (P ∪ Q).card ∨ a + (t + 1) / 2 ≤ (Q ∪ X).card
Source
arXiv:2610.41516, Lemma 2.1; a combinatorial step toward the three-colorable adversary construction.
Verified
18 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
  • op869_union_side_choiceFor finite sets P, Q, X with |P|, |Q| at least a, |X| = t and X disjoint from P, one of P ∪ Q and Q ∪ X has at least a + ⌈t/2⌉ elements.
Used by 2
  • op869_bipartite_gadget_growthWhen two disjoint bipartite graphs are joined by a new vertex adjacent to a designated side of one, the combined graph has a bipartition…
  • 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…

The proof, explained

The proof uses the auxiliary lemma op869_union_side_choice to establish that a + (t + 1) / 2 is at most the maximum of |P ∪ Q| and |Q ∪ X|. By totality of the ordering on natural numbers, either |P ∪ Q| ≤ |Q ∪ X| or |Q ∪ X| ≤ |P ∪ Q|; in each case, simplifying the maximum directly yields the corresponding disjunct.

  1. Assume the hypotheses and deduce that a + (t + 1) / 2 ≤ max |P ∪ Q| |Q ∪ X|.

    We introduce the hypotheses that a ≤ |P|, a ≤ |Q|, |X| = t, and that X is disjoint from P. Applying op869_union_side_choice to these hypotheses provides the bound that a + (t + 1) / 2 is at most the maximum of |P ∪ Q| and |Q ∪ X|.

    lines 4–5

    uses op869_union_side_choice

      intro hP hQ hX hd
      have h := op869_union_side_choice P Q X a t hP hQ hX hd
  2. Either |P ∪ Q| ≤ |Q ∪ X| or |Q ∪ X| ≤ |P ∪ Q|.

    By the totality of the order on natural numbers (le_total), we perform a case split comparing the cardinalities |P ∪ Q| and |Q ∪ X|.

    line 6

    uses le_total

      rcases le_total (P ∪ Q).card (Q ∪ X).card with hle | hle
  3. If |P ∪ Q| ≤ |Q ∪ X|, then a + (t + 1) / 2 ≤ |Q ∪ X|.

    We choose the right disjunct. Because |P ∪ Q| ≤ |Q ∪ X|, max_eq_right rewrites the maximum to |Q ∪ X|, and our bound from h immediately proves the claim.

    lines 7–8

    uses max_eq_right

      · right
        simpa [max_eq_right hle] using h
  4. If |Q ∪ X| ≤ |P ∪ Q|, then a + (t + 1) / 2 ≤ |P ∪ Q|.

    We choose the left disjunct. Because |Q ∪ X| ≤ |P ∪ Q|, max_eq_left rewrites the maximum to |P ∪ Q|, and our bound from h immediately proves the claim.

    lines 9–10

    uses max_eq_left

      · left
        simpa [max_eq_left hle] using h
op869_union_side_choice
If P and Q have size at least a, X has size t, and X is disjoint from P, then a + (t + 1) / 2 ≤ max |P ∪ Q| |Q ∪ X|.
le_total
In any linear order, for any two elements a and b, either a ≤ b or b ≤ a.
max_eq_right
If a ≤ b, then max a b = b.
max_eq_left
If b ≤ a, then max a b = a.

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

theorem op869_color_set_amplification {α : Type} [DecidableEq α] (P Q X : Finset α) (a t : ℕ) :    a ≤ P.card → a ≤ Q.card → X.card = t → Disjoint X P →    a + (t + 1) / 2 ≤ (P ∪ Q).card ∨ a + (t + 1) / 2 ≤ (Q ∪ X).card := by  intro hP hQ hX hd  have h := op869_union_side_choice P Q X a t hP hQ hX hd  rcases le_total (P ∪ Q).card (Q ∪ X).card with hle | hle  · right    simpa [max_eq_right hle] using h  · left    simpa [max_eq_left hle] using h
See it in the graphDiscuss this resultChallenge it