AFTD Auto-Formalizing Theoretical Domains

boundary_five_blocks_strong_shore_separator_bound

theoremverified

In the displayed four-block partition with the separator property, if Q and W are disjoint and anticomplete and D intersects Q, then the total number of Q vertices in D and W vertices in B or D is at most the size 2k−5 of D.

Statement

theorem boundary_five_blocks_strong_shore_separator_bound
    (k : ℕ) (hk : 5 ≤ k) (G : SimpleGraph (Fin (4*k)))
    (A B C D : 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) (hC : C.card=5)
    (hsizeAB : A.card+B.card=2*k) (hsizeCD : C.card+D.card=2*k)
    (hnoCD : ∀ c ∈ C, ∀ d ∈ D, ¬ G.Adj c d)
    (hsep : ∀ X U V : Finset (Fin (4*k)), U.Nonempty → V.Nonempty →
      Disjoint X U → Disjoint X V → Disjoint U V → X ∪ U ∪ V = Finset.univ →
      (∀ u ∈ U, ∀ v ∈ V, ¬ G.Adj u v) → 2*k ≤ X.card)
    (Q W : Finset (Fin (4*k))) (hQW : Disjoint Q W)
    (hcross : ∀ q ∈ Q, ∀ w ∈ W, ¬ G.Adj q w)
    (hQD : (D ∩ Q).Nonempty) :
    (D ∩ Q).card + (B ∩ W).card + (D ∩ W).card ≤ 2*k-5
Source
OP-1957: strengthened separator for nonclique bridge shores.
Verified
25 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
Used by 2

The proof, explained

The proof applies the graph separator property to a custom tri-partition (X, U, V) of the vertex set. Setting V := D ∩ Q and U := C ∪ (B ∩ W) ∪ (D ∩ W), the remaining vertices form the cut set X := A ∪ (B \ W) ∪ (D \ (Q ∪ W)). After checking that U and V are nonempty, pairwise disjoint with X, and anticomplete in G, the separator property bounds |X| from below by 2k; comparing this with the sum of cardinalities of the components of X yields the upper bound on the target intersections.

  1. Define candidate separator and shore sets X, U, and V.

    We define the cut set X := A ∪ (B \ W) ∪ (D \ (Q ∪ W)) and the two sides U := C ∪ (B ∩ W) ∪ (D ∩ W) and V := D ∩ Q.

    lines 17–20

      classical
      let X := A ∪ (B \ W) ∪ (D \ (Q ∪ W))
      let U := C ∪ (B ∩ W) ∪ (D ∩ W)
      let V := D ∩ Q
  2. U and V are nonempty.

    Because |C| = 5 > 0, C contains at least one vertex c, which also belongs to U, showing U is nonempty. The set V = D ∩ Q is nonempty directly by hypothesis hQD.

    lines 21–25

    uses Finset.card_pos.mp

      have hUne : U.Nonempty := by
        have : C.Nonempty := Finset.card_pos.mp (by omega)
        obtain ⟨c,hc⟩ := this
        exact ⟨c, by simp [U,hc]⟩
      have hVne : V.Nonempty := hQD
  3. X and U are disjoint.

    An element belonging to both X and U must belong to one of the three components of X and one of the three components of U. Since A, B, C, and D are pairwise disjoint, and within B and D the elements of X are disjoint from W while those of U belong to W, all nine intersections are empty.

    lines 26–39

    uses Finset.disjoint_left.mpr, Finset.disjoint_left.mp

      have hXU : Disjoint X U := by
        apply Finset.disjoint_left.mpr
        intro v hv hu
        simp only [X, U, Finset.mem_union, Finset.mem_sdiff, Finset.mem_inter] at hv hu
        rcases hv with (hv | hv) | hv <;> rcases hu with (hu | hu) | hu
        · exact Finset.disjoint_left.mp hAC hv hu
        · exact Finset.disjoint_left.mp hAB hv hu.1
        · exact Finset.disjoint_left.mp hAD hv hu.1
        · exact Finset.disjoint_left.mp hBC hv.1 hu
        · exact hv.2 hu.2
        · exact Finset.disjoint_left.mp hBD hv.1 hu.1
        · exact Finset.disjoint_left.mp hCD hu hv.1
        · exact Finset.disjoint_left.mp hBD hu.1 hv.1
        · exact hv.2 (Or.inr hu.2)
  4. X and V are disjoint.

    Any element in V = D ∩ Q belongs to D and to Q. However, elements of X belong to A, B, or D \ (Q ∪ W). A and B are disjoint from D, and D \ (Q ∪ W) excludes Q, so X and V share no elements.

    lines 40–47

    uses Finset.disjoint_left.mpr, Finset.disjoint_left.mp

      have hXV : Disjoint X V := by
        apply Finset.disjoint_left.mpr
        intro v hv hu
        simp only [X, V, Finset.mem_union, Finset.mem_sdiff, Finset.mem_inter] at hv hu
        rcases hv with (hv | hv) | hv
        · exact Finset.disjoint_left.mp hAD hv hu.1
        · exact Finset.disjoint_left.mp hBD hv.1 hu.1
        · exact hv.2 (Or.inl hu.2)
  5. U and V are disjoint.

    An element in V = D ∩ Q cannot belong to C or B because D is disjoint from C and B. It also cannot belong to D ∩ W because Q and W are disjoint by hypothesis hQW.

    lines 48–55

    uses Finset.disjoint_left.mpr, Finset.disjoint_left.mp

      have hUV : Disjoint U V := by
        apply Finset.disjoint_left.mpr
        intro v hv hu
        simp only [U, V, Finset.mem_union, Finset.mem_inter] at hv hu
        rcases hv with (hv | hv) | hv
        · exact Finset.disjoint_left.mp hCD hv hu.1
        · exact Finset.disjoint_left.mp hBD hv.1 hu.1
        · exact Finset.disjoint_left.mp hQW hu.2 hv.2
  6. X, U, and V cover all vertices.

    Every vertex belongs to A, B, C, or D since their union is the entire vertex set. A vertex in A is in X; in B, it is placed in U (if in W) or in X (if not in W); in C, it is in U; and in D, it is in V (if in Q), in U (if not in Q but in W), or in X (if in neither Q nor W).

    lines 56–68

    uses Finset.eq_univ_iff_forall.mpr, Finset.mem_univ

      have hXUV : X ∪ U ∪ V = Finset.univ := by
        apply Finset.eq_univ_iff_forall.mpr
        intro v
        have hall : v ∈ A ∨ v ∈ B ∨ v ∈ C ∨ v ∈ D := by
          have h : v ∈ A ∪ B ∪ C ∪ D := by rw [hcover]; exact Finset.mem_univ v
          simpa only [Finset.mem_union, or_assoc] using h
        rcases hall with ha | hb | hc | hd
        · simp [X,ha]
        · by_cases hw : v ∈ W <;> simp [X,U,hb,hw]
        · simp [U,hc]
        · by_cases hq : v ∈ Q
          · simp [V,hd,hq]
          · by_cases hw : v ∈ W <;> simp [X,U,hd,hq,hw]
  7. There are no edges between U and V.

    Vertices in V belong to D and Q. For any vertex u in U: if u ∈ C, there are no edges between C and D by hypothesis hnoCD; if u ∈ B ∩ W or u ∈ D ∩ W, then u ∈ W and v ∈ Q, so there are no edges between u and v by the anticompleteness hypothesis hcross.

    lines 69–75

      have hanti : ∀ u ∈ U, ∀ v ∈ V, ¬ G.Adj u v := by
        intro u hu v hv huv
        simp only [U,V,Finset.mem_union,Finset.mem_inter] at hu hv
        rcases hu with (hu | hu) | hu
        · exact hnoCD u hu v hv.1 huv
        · exact hcross v hv.2 u hu.2 huv.symm
        · exact hcross v hv.2 u hu.2 huv.symm
  8. |D ∩ Q| + |B ∩ W| + |D ∩ W| ≤ 2*k - 5.

    By the separator property hsep applied to (X, U, V), we have 2k ≤ |X|. Subadditivity gives |X| ≤ |A| + |B \ W| + |D \ (Q ∪ W)|. Writing |B \ W| as |B| - |B ∩ W| and |D \ (Q ∪ W)| as |D| - |D ∩ Q| - |D ∩ W| (using the disjointness of Q and W), and substituting |A| = 5, |B| = 2k - 5, and |D| = 2k - 5, linear integer arithmetic deduces the desired inequality.

    lines 76–87

    uses Finset.card_union_le, Nat.add_le_add_right, Finset.card_sdiff_add_card_inter, Finset.inter_union_distrib_left, Finset.disjoint_of_subset_left, Finset.disjoint_of_subset_right, Finset.inter_subset_right, Finset.card_union_of_disjoint

      have hcut := hsep X U V hUne hVne hXU hXV hUV hXUV hanti
      have hXcard : X.card ≤ A.card + (B \ W).card + (D \ (Q ∪ W)).card :=
        (Finset.card_union_le _ _).trans (Nat.add_le_add_right (Finset.card_union_le _ _) _)
      have hBcard := Finset.card_sdiff_add_card_inter B W
      have hDcard := Finset.card_sdiff_add_card_inter D (Q ∪ W)
      have hDinter : D ∩ (Q ∪ W) = (D ∩ Q) ∪ (D ∩ W) := by
        exact Finset.inter_union_distrib_left D Q W
      have hDdis : Disjoint (D ∩ Q) (D ∩ W) := by
        exact Finset.disjoint_of_subset_left Finset.inter_subset_right
          (Finset.disjoint_of_subset_right Finset.inter_subset_right hQW)
      rw [hDinter, Finset.card_union_of_disjoint hDdis] at hDcard
      omega
Finset.card_pos.mp
If a finite set has strictly positive cardinality, then it is nonempty.
Finset.disjoint_left.mp
If s and t are disjoint finite sets, then no element of s belongs to t.
Finset.disjoint_left.mpr
If no element of s belongs to t, then the finite sets s and t are disjoint.
Finset.eq_univ_iff_forall.mpr
If every element belongs to a finite set s of a finite type, then s is the universal set.
Finset.mem_univ
Every element of a finite type belongs to its universal finset.
Finset.card_union_le
The cardinality of the union of two finite sets is at most the sum of their cardinalities.
Nat.add_le_add_right
Adding a constant to the right-hand sides of an inequality preserves the inequality.
Finset.card_sdiff_add_card_inter
For any two finite sets s and t, |s \ t| + |s ∩ t| = |s|.
Finset.inter_union_distrib_left
Intersection distributes over union: s ∩ (t ∪ u) = (s ∩ t) ∪ (s ∩ u).
Finset.disjoint_of_subset_left
If s ⊆ t and t is disjoint from u, then s is disjoint from u.
Finset.disjoint_of_subset_right
If t ⊆ u and s is disjoint from u, then s is disjoint from t.
Finset.inter_subset_right
The intersection of two sets is a subset of the second set.
Finset.card_union_of_disjoint
The cardinality of the union of two disjoint finite sets is the sum of their cardinalities.

Written by a model (gemini-3.8-flash) from the Lean source alone (no goal states were available). Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

theorem boundary_five_blocks_strong_shore_separator_bound    (k : ℕ) (hk : 5 ≤ k) (G : SimpleGraph (Fin (4*k)))    (A B C D : 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) (hC : C.card=5)    (hsizeAB : A.card+B.card=2*k) (hsizeCD : C.card+D.card=2*k)    (hnoCD : ∀ c ∈ C, ∀ d ∈ D, ¬ G.Adj c d)    (hsep : ∀ X U V : Finset (Fin (4*k)), U.Nonempty → V.Nonempty →      Disjoint X U → Disjoint X V → Disjoint U V → X ∪ U ∪ V = Finset.univ →      (∀ u ∈ U, ∀ v ∈ V, ¬ G.Adj u v) → 2*k ≤ X.card)    (Q W : Finset (Fin (4*k))) (hQW : Disjoint Q W)    (hcross : ∀ q ∈ Q, ∀ w ∈ W, ¬ G.Adj q w)    (hQD : (D ∩ Q).Nonempty) :    (D ∩ Q).card + (B ∩ W).card + (D ∩ W).card ≤ 2*k-5 := by  classical  let X := A ∪ (B \ W) ∪ (D \ (Q ∪ W))  let U := C ∪ (B ∩ W) ∪ (D ∩ W)  let V := D ∩ Q  have hUne : U.Nonempty := by    have : C.Nonempty := Finset.card_pos.mp (by omega)    obtain ⟨c,hc⟩ := this    exact ⟨c, by simp [U,hc]⟩  have hVne : V.Nonempty := hQD  have hXU : Disjoint X U := by    apply Finset.disjoint_left.mpr    intro v hv hu    simp only [X, U, Finset.mem_union, Finset.mem_sdiff, Finset.mem_inter] at hv hu    rcases hv with (hv | hv) | hv <;> rcases hu with (hu | hu) | hu    · exact Finset.disjoint_left.mp hAC hv hu    · exact Finset.disjoint_left.mp hAB hv hu.1    · exact Finset.disjoint_left.mp hAD hv hu.1    · exact Finset.disjoint_left.mp hBC hv.1 hu    · exact hv.2 hu.2    · exact Finset.disjoint_left.mp hBD hv.1 hu.1    · exact Finset.disjoint_left.mp hCD hu hv.1    · exact Finset.disjoint_left.mp hBD hu.1 hv.1    · exact hv.2 (Or.inr hu.2)  have hXV : Disjoint X V := by    apply Finset.disjoint_left.mpr    intro v hv hu    simp only [X, V, Finset.mem_union, Finset.mem_sdiff, Finset.mem_inter] at hv hu    rcases hv with (hv | hv) | hv    · exact Finset.disjoint_left.mp hAD hv hu.1    · exact Finset.disjoint_left.mp hBD hv.1 hu.1    · exact hv.2 (Or.inl hu.2)  have hUV : Disjoint U V := by    apply Finset.disjoint_left.mpr    intro v hv hu    simp only [U, V, Finset.mem_union, Finset.mem_inter] at hv hu    rcases hv with (hv | hv) | hv    · exact Finset.disjoint_left.mp hCD hv hu.1    · exact Finset.disjoint_left.mp hBD hv.1 hu.1    · exact Finset.disjoint_left.mp hQW hu.2 hv.2  have hXUV : X ∪ U ∪ V = Finset.univ := by    apply Finset.eq_univ_iff_forall.mpr    intro v    have hall : v ∈ A ∨ v ∈ B ∨ v ∈ C ∨ v ∈ D := by      have h : v ∈ A ∪ B ∪ C ∪ D := by rw [hcover]; exact Finset.mem_univ v      simpa only [Finset.mem_union, or_assoc] using h    rcases hall with ha | hb | hc | hd    · simp [X,ha]    · by_cases hw : v ∈ W <;> simp [X,U,hb,hw]    · simp [U,hc]    · by_cases hq : v ∈ Q      · simp [V,hd,hq]      · by_cases hw : v ∈ W <;> simp [X,U,hd,hq,hw]  have hanti : ∀ u ∈ U, ∀ v ∈ V, ¬ G.Adj u v := by    intro u hu v hv huv    simp only [U,V,Finset.mem_union,Finset.mem_inter] at hu hv    rcases hu with (hu | hu) | hu    · exact hnoCD u hu v hv.1 huv    · exact hcross v hv.2 u hu.2 huv.symm    · exact hcross v hv.2 u hu.2 huv.symm  have hcut := hsep X U V hUne hVne hXU hXV hUV hXUV hanti  have hXcard : X.card ≤ A.card + (B \ W).card + (D \ (Q ∪ W)).card :=    (Finset.card_union_le _ _).trans (Nat.add_le_add_right (Finset.card_union_le _ _) _)  have hBcard := Finset.card_sdiff_add_card_inter B W  have hDcard := Finset.card_sdiff_add_card_inter D (Q ∪ W)  have hDinter : D ∩ (Q ∪ W) = (D ∩ Q) ∪ (D ∩ W) := by    exact Finset.inter_union_distrib_left D Q W  have hDdis : Disjoint (D ∩ Q) (D ∩ W) := by    exact Finset.disjoint_of_subset_left Finset.inter_subset_right      (Finset.disjoint_of_subset_right Finset.inter_subset_right hQW)  rw [hDinter, Finset.card_union_of_disjoint hDdis] at hDcard  omega
See it in the graphDiscuss this resultChallenge it