AFTD Auto-Formalizing Theoretical Domains

saturated_barrier_pool_common_nonneighbor_strict_deficit_bound

theoremverified

For the stated saturated four-shore data with a nonempty pool, the strict deficit bound forces m+4≤e+|E|+|F₀∩A|.

Statement

theorem saturated_barrier_pool_common_nonneighbor_strict_deficit_bound
    {I : Type*} [DecidableEq I]
    (k e : ℕ) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]
    (hext : is_k_extendable G k)
    (hdegree : ∀ v, 2*k+1 ≤ (G.neighborFinset v).card)
    (hind : ∀ I : Finset (Fin (4*k)),
      (∀ x ∈ I, ∀ y ∈ I, x ≠ y → ¬ G.Adj x y) → I.card ≤ k)
    (hsep : ∀ S P Q : Finset (Fin (4*k)), P.Nonempty → Q.Nonempty →
      Disjoint S P → Disjoint S Q → Disjoint P Q → S ∪ P ∪ Q = Finset.univ →
      (∀ u ∈ P, ∀ v ∈ Q, ¬ G.Adj u v) → 2*k ≤ S.card)
    (A B E : Finset (Fin (4*k))) (F : Fin 4 → Finset (Fin (4*k)))
    (J : Finset I) (Q : I → Finset (Fin (4*k)))
    (hA : A.card=5) (hAB : Disjoint A B) (hEB : E ⊆ B)
    (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b)
    (hFdis : ∀ i j, i ≠ j → Disjoint (F i) (F j))
    (hFzero : ∀ i : Fin 4, i ≠ 0 → Disjoint (F i) A)
    (hFE : ∀ i, Disjoint (F i) E)
    (hFanti : ∀ i, ∀ u ∈ F i, ∀ v ∈ E, ¬ G.Adj u v)
    (hQsub : ∀ i ∈ J, Q i ⊆ E) (hQne : ∀ i ∈ J, (Q i).Nonempty)
    (hQdis : ∀ i ∈ J, ∀ j ∈ J, i ≠ j → Disjoint (Q i) (Q j))
    (hQanti : ∀ i ∈ J, ∀ j ∈ J, i ≠ j → ∀ u ∈ Q i, ∀ v ∈ Q j, ¬ G.Adj u v)
    (htotal : (∑ i : Fin 4, (F i).card) + E.card + J.card + e = 2*k)
    (hm : J.card ≤ k)
    (hJ : J.Nonempty) :
    J.card+4 ≤ e+E.card+(F 0 ∩ A).card
Source
Positive-separator transfer for OP-1957; https://arxiv.org/abs/2611.22690.
Verified
27 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 2
Used by 1

The proof, explained

The theorem is proved by constructing an independent set U and a non-neighboring set W to apply a strict deficit bound via the helper lemma in1214_pool_strict_of_common_nonneighbor_bound. We choose one representative from each nonempty pool set Q_i (for i ∈ J) to form an independent set U ⊆ E of size |J|, and set W = A ∪ ⋃_{i=0}^3 F_i. By the disjointness and anti-adjacency assumptions, U and W are disjoint with no edges between them, so the deficit bound 2|U| + |W| ≤ 2k + 1 applies. Combining this with inclusion-exclusion for |W| and the total vertex budget yields |J| + 4 ≤ e + |E| + |F₀ ∩ A|.

  1. For each index i ∈ J, there is a representative vertex p(i) ∈ Q_i, and the assignment p : J → Fin (4*k) is injective.

    Using the nonemptiness of each pool set Q_i (hQne), we choose a representative vertex p(i) ∈ Q_i. If p(i) = p(j) for i, j ∈ J, then p(i) lies in both Q_i and Q_j. Since distinct pool sets Q_i and Q_j are disjoint by assumption (hQdis), this implies i = j, showing p is injective.

    lines 21–31

    uses Subtype.ext, Finset.disjoint_left.mp

      set_option maxHeartbeats 4000000 in
        classical
        let p : J → Fin (4*k) := fun i => (hQne i.val i.property).choose
        have hp : ∀ i : J, p i ∈ Q i.val := fun i => (hQne i.val i.property).choose_spec
        have hpinj : Function.Injective p := by
          intro i j hij
          apply Subtype.ext
          by_contra hne
          have hi := hp i
          have hj : p i ∈ Q j.val := by simpa [hij] using hp j
          exact Finset.disjoint_left.mp (hQdis i.val i.property j.val j.property hne) hi hj
  2. The set U = p(J) satisfies |U| = |J| and is nonempty.

    Define U as the image of the universal set of indices in J under p. Because p is injective, |U| = |J| by Finset.card_image_of_injective. Since J is nonempty by assumption (hJ), U contains p(i) for some i ∈ J and is therefore nonempty.

    lines 32–40

    uses Finset.card_image_of_injective, Finset.mem_univ, Finset.mem_image.mpr

        let U : Finset (Fin (4*k)) := Finset.univ.image p
        have hUcard : U.card=J.card := by
          dsimp [U]
          rw [Finset.card_image_of_injective _ hpinj]
          simp
        have hUne : U.Nonempty := by
          obtain ⟨i,hi⟩ := hJ
          refine ⟨p ⟨i,hi⟩,?_⟩
          exact Finset.mem_image.mpr ⟨⟨i,hi⟩,Finset.mem_univ _,rfl⟩
  3. The set U is a subset of E and forms an independent set in G.

    Every vertex in U belongs to some Q_i ⊆ E, so U ⊆ E. For any two vertices u = p(i) and v = p(j) in U, if i = j, then u = v and cannot be adjacent because simple graphs have no self-loops. If i ≠ j, u ∈ Q_i and v ∈ Q_j are non-adjacent by the pool anti-adjacency assumption (hQanti). Hence no two vertices in U are adjacent.

    lines 41–53

    uses Finset.mem_image.mp, Subtype.ext

        have hUE : U ⊆ E := by
          intro x hx
          obtain ⟨i,_,rfl⟩ := Finset.mem_image.mp hx
          exact hQsub i.val i.property (hp i)
        have hUind : ∀ u ∈ U, ∀ v ∈ U, ¬ G.Adj u v := by
          intro u hu v hv huv
          obtain ⟨i,_,rfl⟩ := Finset.mem_image.mp hu
          obtain ⟨j,_,rfl⟩ := Finset.mem_image.mp hv
          by_cases hij : i.val=j.val
          · have hsub : i=j := Subtype.ext hij
            subst j
            exact (G.ne_of_adj huv) rfl
          · exact hQanti i.val i.property j.val j.property hij (p i) (hp i) (p j) (hp j) huv
  4. For V_{shore} = ⋃_{i=0}^3 F_i and W = A ∪ V_{shore}, the cardinality identity |W| + |F₀ ∩ A| = 5 + ∑_{i=0}^3 |F_i| holds.

    Since the four shores F_i are pairwise disjoint, |V_{shore}| = ∑_{i=0}^3 |F_i|. Because F_i is disjoint from A for all i ≠ 0 (hFzero), the intersection A ∩ V_{shore} simplifies to A ∩ F₀. Applying inclusion-exclusion (Finset.card_union_add_card_inter) to W = A ∪ V_{shore} with |A| = 5 yields |W| + |F₀ ∩ A| = 5 + ∑_{i=0}^3 |F_i|.

    lines 54–80

    uses Finset.card_biUnion, Finset.mem_inter.mp, Finset.mem_biUnion.mp, Finset.mem_inter.mpr, False.elim, Finset.disjoint_left.mp, Finset.mem_univ, Finset.mem_biUnion.mpr, Finset.card_union_add_card_inter, Finset.inter_comm

        let Vshore : Finset (Fin (4*k)) := Finset.univ.biUnion F
        let W : Finset (Fin (4*k)) := A ∪ Vshore
        have hpair : (↑(Finset.univ : Finset (Fin 4)) : Set (Fin 4)).PairwiseDisjoint F := by
          intro i hi j hj hij
          exact hFdis i j hij
        have hVcard : Vshore.card = ∑ i : Fin 4, (F i).card := by
          dsimp [Vshore]
          rw [Finset.card_biUnion hpair]
        have hinter : A ∩ Vshore = A ∩ F 0 := by
          ext x
          constructor
          · intro hx
            have hxA := (Finset.mem_inter.mp hx).1
            have hxV := (Finset.mem_inter.mp hx).2
            obtain ⟨i,_,hxi⟩ := Finset.mem_biUnion.mp hxV
            by_cases hi : i=0
            · subst i
              exact Finset.mem_inter.mpr ⟨hxA,hxi⟩
            · exact False.elim (Finset.disjoint_left.mp (hFzero i hi) hxi hxA)
          · intro hx
            have hxA := (Finset.mem_inter.mp hx).1
            have hx0 := (Finset.mem_inter.mp hx).2
            exact Finset.mem_inter.mpr ⟨hxA,Finset.mem_biUnion.mpr ⟨0,Finset.mem_univ _,hx0⟩⟩
        have hWcard : W.card+(F 0 ∩ A).card = 5+∑ i : Fin 4, (F i).card := by
          have hh := Finset.card_union_add_card_inter A Vshore
          rw [hinter,Finset.inter_comm A (F 0),hA,hVcard] at hh
          exact hh
  5. U and W are disjoint.

    Every vertex in U lies in E ⊆ B. Since A is disjoint from B (hAB), U is disjoint from A. In addition, E is disjoint from each shore F_i (hFE), so U is disjoint from V_{shore}. Therefore, U is disjoint from W = A ∪ V_{shore}.

    lines 81–88

    uses Finset.disjoint_left.mpr, Finset.mem_union.mp, Finset.disjoint_left.mp, Finset.mem_biUnion.mp

        have hUW : Disjoint U W := by
          apply Finset.disjoint_left.mpr
          intro x hxU hxW
          have hxE := hUE hxU
          rcases Finset.mem_union.mp hxW with hxA | hxV
          · exact Finset.disjoint_left.mp hAB hxA (hEB hxE)
          · obtain ⟨i,_,hxi⟩ := Finset.mem_biUnion.mp hxV
            exact Finset.disjoint_left.mp (hFE i) hxi hxE
  6. There are no edges in G between U and W.

    For any u ∈ U ⊆ E ⊆ B and w ∈ W = A ∪ V_{shore}, if w ∈ A, then u and w cannot be adjacent because there are no edges between A and B (hnoAB). If w ∈ V_{shore}, then w ∈ F_i for some i, and there are no edges between F_i and E (hFanti). Thus no vertex in U is adjacent to any vertex in W.

    lines 89–95

    uses Finset.mem_union.mp, Finset.mem_biUnion.mp

        have hanti : ∀ u ∈ U, ∀ w ∈ W, ¬ G.Adj u w := by
          intro u hu w hw huw
          have huE := hUE hu
          rcases Finset.mem_union.mp hw with hwA | hwV
          · exact hnoAB w hwA u (hEB huE) huw.symm
          · obtain ⟨i,_,hwi⟩ := Finset.mem_biUnion.mp hwV
            exact hFanti i w hwi u huE huw.symm
  7. The strict deficit inequality |J| + 4 ≤ e + |E| + |F₀ ∩ A| holds under the hypothesis hstrict. automation

    Applying the strict deficit hypothesis (hstrict) to the disjoint, non-adjacent pair (U, W) gives 2|U| + |W| ≤ 2k + 1. Substituting |U| = |J|, the cardinality identity for |W|, and the total vertex budget ∑ |F_i| + |E| + |J| + e = 2k, the linear integer arithmetic solver omega closes the goal.

    lines 96–98

        have hb := hstrict U W hUW hUne hUind hanti
        rw [hUcard] at hb
        omega
  8. The theorem holds for any k-extendable graph satisfying the degree and independence bounds.

    We invoke the helper lemma in1214_pool_strict_of_common_nonneighbor_bound, providing the strict deficit bound hstrict via extendible_independent_common_nonneighbor_deficit_le_one, which guarantees 2|U| + |W| ≤ 2k + 1 for any disjoint, non-adjacent pair with U nonempty and independent in a k-extendable graph.

    lines 125–130

    uses in1214_pool_strict_of_common_nonneighbor_bound, extendible_independent_common_nonneighbor_deficit_le_one

      set_option maxHeartbeats 4000000 in
        classical
        exact in1214_pool_strict_of_common_nonneighbor_bound k e G A B E F J Q hA hAB hEB hnoAB
          hFdis hFzero hFE hFanti hQsub hQne hQdis hQanti htotal hJ
          (fun U W hdis hUn hUind hanti =>
            extendible_independent_common_nonneighbor_deficit_le_one k G hext hdegree hind U W hdis hUn hUind hanti)
False.elim
from a false hypothesis, any conclusion follows
Finset.card_biUnion
the cardinality of a disjoint union of finite sets is the sum of their cardinalities
Finset.card_image_of_injective
an injective map preserves the cardinality of a finite set under its image
Finset.card_union_add_card_inter
the sum of the cardinalities of the union and intersection of two finite sets equals the sum of their cardinalities
Finset.disjoint_left.mp
if two sets are disjoint, an element belonging to the first cannot belong to the second
Finset.disjoint_left.mpr
two sets are disjoint if no element of the first belongs to the second
Finset.inter_comm
intersection of sets is commutative
Finset.mem_biUnion.mp
an element belongs to a union of families of sets if and only if it belongs to at least one set in the family
Finset.mem_biUnion.mpr
an element belonging to one set of an indexed family belongs to the union of that family
Finset.mem_image.mp
if an element belongs to the image of a set under a function, it is the image of some element in that set
Finset.mem_image.mpr
an element is in the image of a set under a function if it is the image of an element of that set
Finset.mem_inter.mp
an element in the intersection of two sets belongs to both sets
Finset.mem_inter.mpr
an element belonging to both sets belongs to their intersection
Finset.mem_union.mp
an element in the union of two sets belongs to at least one of the sets
Finset.mem_univ
every element of a finite type belongs to the universal finite set Finset.univ
Subtype.ext
if two elements of a subtype have equal underlying values, then they are equal
extendible_independent_common_nonneighbor_deficit_le_one
in a k-extendable graph with minimum degree at least 2k+1 and independence number at most k, any nonempty independent set U and disjoint set W with no edges between them satisfy 2|U| + |W| ≤ 2k + 1
in1214_pool_strict_of_common_nonneighbor_bound
under the saturated four-shore configuration with a nonempty pool, if the deficit bound holds for independent and non-neighboring sets, then |J| + 4 ≤ e + |E| + |F₀ ∩ 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

private theorem in1214_pool_strict_of_common_nonneighbor_bound    {I : Type*} [DecidableEq I]    (k e : ℕ) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]    (A B E : Finset (Fin (4*k))) (F : Fin 4 → Finset (Fin (4*k)))    (J : Finset I) (Q : I → Finset (Fin (4*k)))    (hA : A.card=5) (hAB : Disjoint A B) (hEB : E ⊆ B)    (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b)    (hFdis : ∀ i j, i ≠ j → Disjoint (F i) (F j))    (hFzero : ∀ i : Fin 4, i ≠ 0 → Disjoint (F i) A)    (hFE : ∀ i, Disjoint (F i) E)    (hFanti : ∀ i, ∀ u ∈ F i, ∀ v ∈ E, ¬ G.Adj u v)    (hQsub : ∀ i ∈ J, Q i ⊆ E) (hQne : ∀ i ∈ J, (Q i).Nonempty)    (hQdis : ∀ i ∈ J, ∀ j ∈ J, i ≠ j → Disjoint (Q i) (Q j))    (hQanti : ∀ i ∈ J, ∀ j ∈ J, i ≠ j → ∀ u ∈ Q i, ∀ v ∈ Q j, ¬ G.Adj u v)    (htotal : (∑ i : Fin 4, (F i).card) + E.card + J.card + e = 2*k)    (hJ : J.Nonempty)    (hstrict : ∀ U W : Finset (Fin (4*k)), Disjoint U W → U.Nonempty →      (∀ u ∈ U, ∀ v ∈ U, ¬ G.Adj u v) →      (∀ u ∈ U, ∀ w ∈ W, ¬ G.Adj u w) → 2*U.card+W.card ≤ 2*k+1) :    J.card+4 ≤ e+E.card+(F 0 ∩ A).card := by  set_option maxHeartbeats 4000000 in    classical    let p : J → Fin (4*k) := fun i => (hQne i.val i.property).choose    have hp : ∀ i : J, p i ∈ Q i.val := fun i => (hQne i.val i.property).choose_spec    have hpinj : Function.Injective p := by      intro i j hij      apply Subtype.ext      by_contra hne      have hi := hp i      have hj : p i ∈ Q j.val := by simpa [hij] using hp j      exact Finset.disjoint_left.mp (hQdis i.val i.property j.val j.property hne) hi hj    let U : Finset (Fin (4*k)) := Finset.univ.image p    have hUcard : U.card=J.card := by      dsimp [U]      rw [Finset.card_image_of_injective _ hpinj]      simp    have hUne : U.Nonempty := by      obtain ⟨i,hi⟩ := hJ      refine ⟨p ⟨i,hi⟩,?_⟩      exact Finset.mem_image.mpr ⟨⟨i,hi⟩,Finset.mem_univ _,rfl⟩    have hUE : U ⊆ E := by      intro x hx      obtain ⟨i,_,rfl⟩ := Finset.mem_image.mp hx      exact hQsub i.val i.property (hp i)    have hUind : ∀ u ∈ U, ∀ v ∈ U, ¬ G.Adj u v := by      intro u hu v hv huv      obtain ⟨i,_,rfl⟩ := Finset.mem_image.mp hu      obtain ⟨j,_,rfl⟩ := Finset.mem_image.mp hv      by_cases hij : i.val=j.val      · have hsub : i=j := Subtype.ext hij        subst j        exact (G.ne_of_adj huv) rfl      · exact hQanti i.val i.property j.val j.property hij (p i) (hp i) (p j) (hp j) huv    let Vshore : Finset (Fin (4*k)) := Finset.univ.biUnion F    let W : Finset (Fin (4*k)) := A ∪ Vshore    have hpair : (↑(Finset.univ : Finset (Fin 4)) : Set (Fin 4)).PairwiseDisjoint F := by      intro i hi j hj hij      exact hFdis i j hij    have hVcard : Vshore.card = ∑ i : Fin 4, (F i).card := by      dsimp [Vshore]      rw [Finset.card_biUnion hpair]    have hinter : A ∩ Vshore = A ∩ F 0 := by      ext x      constructor      · intro hx        have hxA := (Finset.mem_inter.mp hx).1        have hxV := (Finset.mem_inter.mp hx).2        obtain ⟨i,_,hxi⟩ := Finset.mem_biUnion.mp hxV        by_cases hi : i=0        · subst i          exact Finset.mem_inter.mpr ⟨hxA,hxi⟩        · exact False.elim (Finset.disjoint_left.mp (hFzero i hi) hxi hxA)      · intro hx        have hxA := (Finset.mem_inter.mp hx).1        have hx0 := (Finset.mem_inter.mp hx).2        exact Finset.mem_inter.mpr ⟨hxA,Finset.mem_biUnion.mpr ⟨0,Finset.mem_univ _,hx0⟩⟩    have hWcard : W.card+(F 0 ∩ A).card = 5+∑ i : Fin 4, (F i).card := by      have hh := Finset.card_union_add_card_inter A Vshore      rw [hinter,Finset.inter_comm A (F 0),hA,hVcard] at hh      exact hh    have hUW : Disjoint U W := by      apply Finset.disjoint_left.mpr      intro x hxU hxW      have hxE := hUE hxU      rcases Finset.mem_union.mp hxW with hxA | hxV      · exact Finset.disjoint_left.mp hAB hxA (hEB hxE)      · obtain ⟨i,_,hxi⟩ := Finset.mem_biUnion.mp hxV        exact Finset.disjoint_left.mp (hFE i) hxi hxE    have hanti : ∀ u ∈ U, ∀ w ∈ W, ¬ G.Adj u w := by      intro u hu w hw huw      have huE := hUE hu      rcases Finset.mem_union.mp hw with hwA | hwV      · exact hnoAB w hwA u (hEB huE) huw.symm      · obtain ⟨i,_,hwi⟩ := Finset.mem_biUnion.mp hwV        exact hFanti i w hwi u huE huw.symm    have hb := hstrict U W hUW hUne hUind hanti    rw [hUcard] at hb    omegatheorem saturated_barrier_pool_common_nonneighbor_strict_deficit_bound    {I : Type*} [DecidableEq I]    (k e : ℕ) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]    (hext : is_k_extendable G k)    (hdegree : ∀ v, 2*k+1 ≤ (G.neighborFinset v).card)    (hind : ∀ I : Finset (Fin (4*k)),      (∀ x ∈ I, ∀ y ∈ I, x ≠ y → ¬ G.Adj x y) → I.card ≤ k)    (hsep : ∀ S P Q : Finset (Fin (4*k)), P.Nonempty → Q.Nonempty →      Disjoint S P → Disjoint S Q → Disjoint P Q → S ∪ P ∪ Q = Finset.univ →      (∀ u ∈ P, ∀ v ∈ Q, ¬ G.Adj u v) → 2*k ≤ S.card)    (A B E : Finset (Fin (4*k))) (F : Fin 4 → Finset (Fin (4*k)))    (J : Finset I) (Q : I → Finset (Fin (4*k)))    (hA : A.card=5) (hAB : Disjoint A B) (hEB : E ⊆ B)    (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b)    (hFdis : ∀ i j, i ≠ j → Disjoint (F i) (F j))    (hFzero : ∀ i : Fin 4, i ≠ 0 → Disjoint (F i) A)    (hFE : ∀ i, Disjoint (F i) E)    (hFanti : ∀ i, ∀ u ∈ F i, ∀ v ∈ E, ¬ G.Adj u v)    (hQsub : ∀ i ∈ J, Q i ⊆ E) (hQne : ∀ i ∈ J, (Q i).Nonempty)    (hQdis : ∀ i ∈ J, ∀ j ∈ J, i ≠ j → Disjoint (Q i) (Q j))    (hQanti : ∀ i ∈ J, ∀ j ∈ J, i ≠ j → ∀ u ∈ Q i, ∀ v ∈ Q j, ¬ G.Adj u v)    (htotal : (∑ i : Fin 4, (F i).card) + E.card + J.card + e = 2*k)    (hm : J.card ≤ k)    (hJ : J.Nonempty) :    J.card+4 ≤ e+E.card+(F 0 ∩ A).card := by  set_option maxHeartbeats 4000000 in    classical    exact in1214_pool_strict_of_common_nonneighbor_bound k e G A B E F J Q hA hAB hEB hnoAB      hFdis hFzero hFE hFanti hQsub hQne hQdis hQanti htotal hJ      (fun U W hdis hUn hUind hanti =>        extendible_independent_common_nonneighbor_deficit_le_one k G hext hdegree hind U W hdis hUn hUind hanti)
See it in the graphDiscuss this resultChallenge it