AFTD Auto-Formalizing Theoretical Domains

op1957_one_defect_pool_numeric_bounds

theoremverified

Under the displayed four-block degree and anticomplete-group hypotheses, each of the three listed inequalities follows when the pool meets A, C or D respectively.

Statement

theorem op1957_one_defect_pool_numeric_bounds
    {I : Type*} [DecidableEq I] (k c : ℕ) (hc : 5 ≤ c) (hkc : c ≤ k)
    (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]
    (A B C D X Y : Finset (Fin (4*k)))
    (hAB : Disjoint A B) (hAC : Disjoint A C) (hAD : Disjoint A D)
    (hBC : Disjoint B C) (hBD : Disjoint B D) (hCD : Disjoint C D)
    (hcover : A ∪ B ∪ C ∪ D = Finset.univ)
    (hA : A.card=5) (hB : B.card=2*k-5) (hC : C.card=c) (hD : D.card=2*k-c)
    (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b)
    (hnoCD : ∀ a ∈ C, ∀ b ∈ D, ¬ G.Adj a b)
    (hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card)
    (K : Finset I) (T : I → Finset (Fin (4*k)))
    (hodd : ∀ i ∈ K, Odd (T i).card)
    (hTT : ∀ i ∈ K, ∀ j ∈ K, i ≠ j → Disjoint (T i) (T j))
    (hXY : Disjoint X Y) (hXT : ∀ i ∈ K, Disjoint X (T i)) (hYT : ∀ i ∈ K, Disjoint Y (T i))
    (hantiXT : ∀ i ∈ K, ∀ u ∈ X, ∀ v ∈ T i, ¬ G.Adj u v)
    (hantiYT : ∀ i ∈ K, ∀ u ∈ Y, ∀ v ∈ T i, ¬ G.Adj u v)
    (hantiTT : ∀ i ∈ K, ∀ j ∈ K, i ≠ j → ∀ u ∈ T i, ∀ v ∈ T j, ¬ G.Adj u v) :
    let U := K.biUnion T
    ((U ∩ A).Nonempty → (X ∩ A).card+(X ∩ C).card+(X ∩ D).card+
      (Y ∩ A).card+(Y ∩ C).card+(Y ∩ D).card ≤ 2) ∧
    ((U ∩ C).Nonempty → (X ∩ A).card+(X ∩ B).card+(X ∩ C).card+
      (Y ∩ A).card+(Y ∩ B).card+(Y ∩ C).card+K.card+2 ≤ c+(U ∩ D).card) ∧
    ((U ∩ D).Nonempty → (X ∩ A).card+(X ∩ B).card+(X ∩ D).card+
      (Y ∩ A).card+(Y ∩ B).card+(Y ∩ D).card+K.card+c+2 ≤ 2*k+(U ∩ C).card)
Source
OP-1957: five-by-odd boundary reduction, arXiv:2611.22690
Verified
29 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
Used by 1

The proof, explained

The theorem establishes three numeric defect bounds depending on whether the pool U = ⋃_{i ∈ K} T i meets block A, C, or D of the partition A ∪ B ∪ C ∪ D of a 4k-vertex graph with minimum degree at least 2k + 2. In each case, a representative vertex q is picked from an odd component T j intersecting the specified block, and the anticompleteness between blocks (A with B, and C with D) guarantees that q has no neighbors in the opposite block. Applying general non-neighbor and barrier representative bounds with the minimum degree hypothesis limits the size of the set differences of X and Y with that opposite block, which expand into the sums of block intersections appearing in the theorem statement.

  1. Each component T i for i ∈ K is non-empty.

    We enable classical logic and define U as the union of the components T i over i ∈ K. Since each T i is assumed to have an odd cardinality, |T i| = 2n + 1 for some n, which is strictly greater than 0. By Finset.card_pos.mp, a set with positive cardinality is non-empty.

    lines 26–32

    uses Finset.card_pos.mp

      classical
      let U := K.biUnion T
      have hne : ∀ i ∈ K, (T i).Nonempty := by
        intro i hi
        apply Finset.card_pos.mp
        obtain ⟨n,hn⟩ := hodd i hi
        omega
  2. Subtracting any block B, C, or D from a set P leaves the sum of the cardinalities of its intersections with the other three blocks.

    Because A, B, C, D partition the universe Fin(4k), the lemma finset_card_eq_sum_four_block_inter gives |P| = |P ∩ A| + |P ∩ B| + |P ∩ C| + |P ∩ D| for any set P. Combining this with the standard decomposition |P| = |P ∩ S| + |P \ S| from Finset.card_inter_add_card_sdiff for S ∈ {B, C, D}, linear arithmetic shows |P \ B| = |P ∩ A| + |P ∩ C| + |P ∩ D|, and analogously for differences with C and D.

    lines 33–39

    uses finset_card_eq_sum_four_block_inter, Finset.card_inter_add_card_sdiff

      have hparts (P : Finset (Fin (4*k))) := finset_card_eq_sum_four_block_inter A B C D P hAB hAC hAD hBC hBD hCD hcover
      have hdiffB (P : Finset (Fin (4*k))) : (P \ B).card = (P ∩ A).card+(P ∩ C).card+(P ∩ D).card := by
        have hs := hparts P; have hd := Finset.card_inter_add_card_sdiff P B; omega
      have hdiffC (P : Finset (Fin (4*k))) : (P \ C).card = (P ∩ A).card+(P ∩ B).card+(P ∩ D).card := by
        have hs := hparts P; have hd := Finset.card_inter_add_card_sdiff P C; omega
      have hdiffD (P : Finset (Fin (4*k))) : (P \ D).card = (P ∩ A).card+(P ∩ B).card+(P ∩ C).card := by
        have hs := hparts P; have hd := Finset.card_inter_add_card_sdiff P D; omega
  3. If the pool U intersects a set Q, there exist an index j ∈ K and a vertex q ∈ T j ∩ Q.

    Given a witness vertex q ∈ U ∩ Q, unpacking membership in U = ⋃_{i ∈ K} T i using Finset.mem_biUnion.mp yields an index j ∈ K such that q ∈ T j, and Finset.mem_inter.mp provides q ∈ Q.

    lines 40–43

    uses Finset.mem_biUnion.mp, Finset.mem_inter.mp

      have hfind (Q : Finset (Fin (4*k))) (h : (U ∩ Q).Nonempty) : ∃ j ∈ K, ∃ q ∈ T j, q ∈ Q := by
        obtain ⟨q,hq⟩ := h
        obtain ⟨j,hj,hqj⟩ := Finset.mem_biUnion.mp (Finset.mem_inter.mp hq).1
        exact ⟨j,hj,q,hqj,(Finset.mem_inter.mp hq).2⟩
  4. A specialized counting lemma hrep applies the barrier representative bound to any candidate set Q.

    We specialize op1957_barrier_representative_count_bound into a local lemma hrep. Given a vertex q ∈ T j with q ∉ Q that is anticomplete to Q, along with parameters d and r satisfying 4k = |Q| + d + 1 and d ≤ deg(q) + r, it supplies the assumed anticompleteness of q to X, Y, and other T i (i ≠ j) to deduce |X \ Q| + |Y \ Q| + |K| ≤ r + 1 + |U ∩ Q|.

    lines 44–52

    uses op1957_barrier_representative_count_bound

      have hrep (Q : Finset (Fin (4*k))) (j : I) (hj : j ∈ K) (q : Fin (4*k)) (hq : q ∈ T j)
          (hqQ : q ∉ Q) (hQ : ∀ z ∈ Q, ¬ G.Adj q z)
          (d r : ℕ) (hsize : Fintype.card (Fin (4*k)) = Q.card+d+1)
          (hdeg : d ≤ (G.neighborFinset q).card+r) :=
        op1957_barrier_representative_count_bound G Q X Y K T j hj hne hTT hXY hXT hYT q hq hqQ hQ
          (fun z hz h => hantiXT j hj z hz q hq h.symm)
          (fun z hz h => hantiYT j hj z hz q hq h.symm)
          (fun i hi hij z hz => hantiTT j hj i hi hij.symm q hq z hz)
          d r hsize hdeg
  5. The goal splits into three separate implications for blocks A, C, and D.

    We split the conjunction of three implications into three independent subgoals, corresponding to when U meets A, C, or D respectively.

    line 53

      refine ⟨?_,?_,?_⟩
  6. If U ∩ A is non-empty, then |X ∩ A| + |X ∩ C| + |X ∩ D| + |Y ∩ A| + |Y ∩ C| + |Y ∩ D| ≤ 2.

    Assume U ∩ A is non-empty and obtain a representative q ∈ T j ∩ A. Since A and B are disjoint, q ∉ B by Finset.disjoint_left.mp. The disjointness and anticompleteness hypotheses between T j and X, Y imply that no vertex in X or Y equals q or is adjacent to q. Moreover, no vertex in A is adjacent to any vertex in B, so q is anticomplete to B. We apply anticomplete_vertex_four_disjoint_nonneighbor_sets_bound with Q = B, vertex q, sets X, Y, ∅, ∅, and parameters d = 2k + 4 and r = 2. The total vertex count check (2k - 5) + (2k + 4) + 1 = 4k uses Fintype.card_fin, and the degree condition 2k + 4 ≤ deg(q) + 2 holds because deg(q) ≥ 2k + 2. Simplifying the empty sets using Finset.empty_sdiff, Finset.card_empty, and add_zero yields |X \ B| + |Y \ B| ≤ 2. Rewriting via the decomposition for P \ B gives the desired inequality.

    lines 54–70

    uses Finset.disjoint_left.mp, anticomplete_vertex_four_disjoint_nonneighbor_sets_bound, Fintype.card_fin, Finset.empty_sdiff, Finset.card_empty, add_zero

      · intro hUA
        obtain ⟨j,hj,q,hq,hqA⟩ := hfind A hUA
        have hqB : q ∉ B := fun h => Finset.disjoint_left.mp hAB hqA h
        have hqX : q ∉ X := fun h => Finset.disjoint_left.mp (hXT j hj) h hq
        have hqY : q ∉ Y := fun h => Finset.disjoint_left.mp (hYT j hj) h hq
        have hs : ∀ z, (z ∈ X ∨ z ∈ Y ∨ z ∈ (∅ : Finset (Fin (4*k))) ∨ z ∈ (∅ : Finset (Fin (4*k)))) → z ≠ q ∧ ¬ G.Adj q z := by
          intro z hz
          rcases hz with hz | hz | hz | hz
          · exact ⟨fun he => hqX (he ▸ hz),fun h => hantiXT j hj z hz q hq h.symm⟩
          · exact ⟨fun he => hqY (he ▸ hz),fun h => hantiYT j hj z hz q hq h.symm⟩
          · simp at hz
          · simp at hz
        have hh := anticomplete_vertex_four_disjoint_nonneighbor_sets_bound G B q hqB (hnoAB q hqA) (2*k+4) 2
          (by simp only [Fintype.card_fin]; omega) (by have := hdegree q; omega)
          X Y ∅ ∅ hs hXY (by simp) (by simp) (by simp) (by simp) (by simp)
        simp only [Finset.empty_sdiff,Finset.card_empty,add_zero,hdiffB] at hh
        omega
  7. If U ∩ C is non-empty, then |X ∩ A| + |X ∩ B| + |X ∩ C| + |Y ∩ A| + |Y ∩ B| + |Y ∩ C| + |K| + 2 ≤ c + |U ∩ D|.

    Assume U ∩ C is non-empty and pick q ∈ T j ∩ C. By disjointness of C and D, q ∉ D (Finset.disjoint_left.mp). Since C is anticomplete to D, q has no neighbors in D. We apply hrep with Q = D, d = 2k + c - 1, and r = c - 3. The vertex count (2k - c) + (2k + c - 1) + 1 = 4k holds by Fintype.card_fin, and the degree requirement 2k + c - 1 ≤ deg(q) + c - 3 holds because deg(q) ≥ 2k + 2. This produces |X \ D| + |Y \ D| + |K| ≤ (c - 3) + 1 + |U ∩ D|. Rewriting |X \ D| and |Y \ D| into sums of intersections with A, B, C and rearranging with linear arithmetic establishes the claim.

    lines 71–77

    uses Finset.disjoint_left.mp, Fintype.card_fin

      · intro hUC
        obtain ⟨j,hj,q,hq,hqC⟩ := hfind C hUC
        have hqD : q ∉ D := fun h => Finset.disjoint_left.mp hCD hqC h
        have hh := hrep D j hj q hq hqD (hnoCD q hqC) (2*k+c-1) (c-3)
          (by simp only [Fintype.card_fin]; omega) (by have := hdegree q; omega)
        rw [hdiffD X,hdiffD Y] at hh
        omega
  8. If U ∩ D is non-empty, then |X ∩ A| + |X ∩ B| + |X ∩ D| + |Y ∩ A| + |Y ∩ B| + |Y ∩ D| + |K| + c + 2 ≤ 2k + |U ∩ C|.

    Assume U ∩ D is non-empty and pick q ∈ T j ∩ D. By disjointness of C and D, q ∉ C (Finset.disjoint_left.mp). By symmetry of non-adjacency between C and D, q has no neighbors in C. We apply hrep with Q = C, d = 4k - c - 1, and r = 2k - c - 3. The vertex count c + (4k - c - 1) + 1 = 4k holds by Fintype.card_fin, and the degree requirement 4k - c - 1 ≤ deg(q) + 2k - c - 3 holds because deg(q) ≥ 2k + 2. This produces |X \ C| + |Y \ C| + |K| ≤ (2k - c - 3) + 1 + |U ∩ C|. Rewriting |X \ C| and |Y \ C| into sums of intersections with A, B, D and rearranging by linear arithmetic finishes the proof.

    lines 78–85

    uses Finset.disjoint_left.mp, Fintype.card_fin

      · intro hUD
        obtain ⟨j,hj,q,hq,hqD⟩ := hfind D hUD
        have hqC : q ∉ C := fun h => Finset.disjoint_left.mp hCD h hqD
        have hQ : ∀ z ∈ C, ¬ G.Adj q z := fun z hz h => hnoCD z hz q hqD h.symm
        have hh := hrep C j hj q hq hqC hQ (4*k-c-1) (2*k-c-3)
          (by simp only [Fintype.card_fin]; omega) (by have := hdegree q; omega)
        rw [hdiffC X,hdiffC Y] at hh
        omega
Finset.card_pos.mp
If a finite set has strictly positive cardinality, it is non-empty.
finset_card_eq_sum_four_block_inter
For four pairwise disjoint sets A, B, C, D whose union is univ, the cardinality of any set P equals the sum of the cardinalities of its intersections with A, B, C, and D.
Finset.card_inter_add_card_sdiff
For any finite sets s and t, |s ∩ t| + |s \ t| = |s|.
Finset.mem_biUnion.mp
If an element belongs to a indexed union of finsets, then it belongs to the member finset for some index.
Finset.mem_inter.mp
If an element belongs to the intersection of two sets, it belongs to both sets.
op1957_barrier_representative_count_bound
In a graph where a vertex q in an odd component T j is anticomplete to Q, to disjoint sets X and Y, and to all other odd components T i (i ≠ j), if |V| = |Q| + d + 1 and d ≤ deg(q) + r, then |X \ Q| + |Y \ Q| + |K| ≤ r + 1 + |U ∩ Q|, where U is the union of all T i.
Finset.disjoint_left.mp
If two sets are disjoint, then no element of the first belongs to the second.
anticomplete_vertex_four_disjoint_nonneighbor_sets_bound
For a vertex v anticomplete to Q with |V| = |Q| + d + 1 and d ≤ deg(v) + r, any four mutually disjoint sets of non-neighbors of v distinct from v satisfy the sum bound ∑ |s_i \ Q| ≤ r.
Fintype.card_fin
The cardinality of Fin n is n.
Finset.empty_sdiff
The set difference ∅ \ s is the empty set.
Finset.card_empty
The empty finset has cardinality 0.
add_zero
Adding zero to any element leaves it unchanged (a + 0 = 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 op1957_one_defect_pool_numeric_bounds    {I : Type*} [DecidableEq I] (k c : ℕ) (hc : 5 ≤ c) (hkc : c ≤ k)    (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]    (A B C D X Y : Finset (Fin (4*k)))    (hAB : Disjoint A B) (hAC : Disjoint A C) (hAD : Disjoint A D)    (hBC : Disjoint B C) (hBD : Disjoint B D) (hCD : Disjoint C D)    (hcover : A ∪ B ∪ C ∪ D = Finset.univ)    (hA : A.card=5) (hB : B.card=2*k-5) (hC : C.card=c) (hD : D.card=2*k-c)    (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b)    (hnoCD : ∀ a ∈ C, ∀ b ∈ D, ¬ G.Adj a b)    (hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card)    (K : Finset I) (T : I → Finset (Fin (4*k)))    (hodd : ∀ i ∈ K, Odd (T i).card)    (hTT : ∀ i ∈ K, ∀ j ∈ K, i ≠ j → Disjoint (T i) (T j))    (hXY : Disjoint X Y) (hXT : ∀ i ∈ K, Disjoint X (T i)) (hYT : ∀ i ∈ K, Disjoint Y (T i))    (hantiXT : ∀ i ∈ K, ∀ u ∈ X, ∀ v ∈ T i, ¬ G.Adj u v)    (hantiYT : ∀ i ∈ K, ∀ u ∈ Y, ∀ v ∈ T i, ¬ G.Adj u v)    (hantiTT : ∀ i ∈ K, ∀ j ∈ K, i ≠ j → ∀ u ∈ T i, ∀ v ∈ T j, ¬ G.Adj u v) :    let U := K.biUnion T    ((U ∩ A).Nonempty → (X ∩ A).card+(X ∩ C).card+(X ∩ D).card+      (Y ∩ A).card+(Y ∩ C).card+(Y ∩ D).card ≤ 2) ∧    ((U ∩ C).Nonempty → (X ∩ A).card+(X ∩ B).card+(X ∩ C).card+      (Y ∩ A).card+(Y ∩ B).card+(Y ∩ C).card+K.card+2 ≤ c+(U ∩ D).card) ∧    ((U ∩ D).Nonempty → (X ∩ A).card+(X ∩ B).card+(X ∩ D).card+      (Y ∩ A).card+(Y ∩ B).card+(Y ∩ D).card+K.card+c+2 ≤ 2*k+(U ∩ C).card) := by  classical  let U := K.biUnion T  have hne : ∀ i ∈ K, (T i).Nonempty := by    intro i hi    apply Finset.card_pos.mp    obtain ⟨n,hn⟩ := hodd i hi    omega  have hparts (P : Finset (Fin (4*k))) := finset_card_eq_sum_four_block_inter A B C D P hAB hAC hAD hBC hBD hCD hcover  have hdiffB (P : Finset (Fin (4*k))) : (P \ B).card = (P ∩ A).card+(P ∩ C).card+(P ∩ D).card := by    have hs := hparts P; have hd := Finset.card_inter_add_card_sdiff P B; omega  have hdiffC (P : Finset (Fin (4*k))) : (P \ C).card = (P ∩ A).card+(P ∩ B).card+(P ∩ D).card := by    have hs := hparts P; have hd := Finset.card_inter_add_card_sdiff P C; omega  have hdiffD (P : Finset (Fin (4*k))) : (P \ D).card = (P ∩ A).card+(P ∩ B).card+(P ∩ C).card := by    have hs := hparts P; have hd := Finset.card_inter_add_card_sdiff P D; omega  have hfind (Q : Finset (Fin (4*k))) (h : (U ∩ Q).Nonempty) : ∃ j ∈ K, ∃ q ∈ T j, q ∈ Q := by    obtain ⟨q,hq⟩ := h    obtain ⟨j,hj,hqj⟩ := Finset.mem_biUnion.mp (Finset.mem_inter.mp hq).1    exact ⟨j,hj,q,hqj,(Finset.mem_inter.mp hq).2⟩  have hrep (Q : Finset (Fin (4*k))) (j : I) (hj : j ∈ K) (q : Fin (4*k)) (hq : q ∈ T j)      (hqQ : q ∉ Q) (hQ : ∀ z ∈ Q, ¬ G.Adj q z)      (d r : ℕ) (hsize : Fintype.card (Fin (4*k)) = Q.card+d+1)      (hdeg : d ≤ (G.neighborFinset q).card+r) :=    op1957_barrier_representative_count_bound G Q X Y K T j hj hne hTT hXY hXT hYT q hq hqQ hQ      (fun z hz h => hantiXT j hj z hz q hq h.symm)      (fun z hz h => hantiYT j hj z hz q hq h.symm)      (fun i hi hij z hz => hantiTT j hj i hi hij.symm q hq z hz)      d r hsize hdeg  refine ⟨?_,?_,?_⟩  · intro hUA    obtain ⟨j,hj,q,hq,hqA⟩ := hfind A hUA    have hqB : q ∉ B := fun h => Finset.disjoint_left.mp hAB hqA h    have hqX : q ∉ X := fun h => Finset.disjoint_left.mp (hXT j hj) h hq    have hqY : q ∉ Y := fun h => Finset.disjoint_left.mp (hYT j hj) h hq    have hs : ∀ z, (z ∈ X ∨ z ∈ Y ∨ z ∈ (∅ : Finset (Fin (4*k))) ∨ z ∈ (∅ : Finset (Fin (4*k)))) → z ≠ q ∧ ¬ G.Adj q z := by      intro z hz      rcases hz with hz | hz | hz | hz      · exact ⟨fun he => hqX (he ▸ hz),fun h => hantiXT j hj z hz q hq h.symm⟩      · exact ⟨fun he => hqY (he ▸ hz),fun h => hantiYT j hj z hz q hq h.symm⟩      · simp at hz      · simp at hz    have hh := anticomplete_vertex_four_disjoint_nonneighbor_sets_bound G B q hqB (hnoAB q hqA) (2*k+4) 2      (by simp only [Fintype.card_fin]; omega) (by have := hdegree q; omega)      X Y ∅ ∅ hs hXY (by simp) (by simp) (by simp) (by simp) (by simp)    simp only [Finset.empty_sdiff,Finset.card_empty,add_zero,hdiffB] at hh    omega  · intro hUC    obtain ⟨j,hj,q,hq,hqC⟩ := hfind C hUC    have hqD : q ∉ D := fun h => Finset.disjoint_left.mp hCD hqC h    have hh := hrep D j hj q hq hqD (hnoCD q hqC) (2*k+c-1) (c-3)      (by simp only [Fintype.card_fin]; omega) (by have := hdegree q; omega)    rw [hdiffD X,hdiffD Y] at hh    omega  · intro hUD    obtain ⟨j,hj,q,hq,hqD⟩ := hfind D hUD    have hqC : q ∉ C := fun h => Finset.disjoint_left.mp hCD h hqD    have hQ : ∀ z ∈ C, ¬ G.Adj q z := fun z hz h => hnoCD z hz q hqD h.symm    have hh := hrep C j hj q hq hqC hQ (4*k-c-1) (2*k-c-3)      (by simp only [Fintype.card_fin]; omega) (by have := hdegree q; omega)    rw [hdiffC X,hdiffC Y] at hh    omega
See it in the graphDiscuss this resultChallenge it