AFTD Auto-Formalizing Theoretical Domains

op1957_two_defects_force_one_outside_group

theoremverified

If a vertex outside B is anticomplete to B and has at most two nonneighbors outside B, and it misses two distinct specified outside vertices, then every other anticomplete group avoiding those two vertices lies in B.

Statement

theorem op1957_two_defects_force_one_outside_group
    {V I : Type*} [Fintype V] [DecidableEq V] [DecidableEq I]
    (G : SimpleGraph V) [DecidableRel G.Adj] (B : Finset V)
    (d : ℕ) (hsize : Fintype.card V = B.card + d + 1)
    (K : Finset I) (T : I → Finset V) (i : I) (hi : i ∈ K)
    (hanti : ∀ i ∈ K, ∀ j ∈ K, i ≠ j → ∀ w ∈ T i, ∀ z ∈ T j, ¬ G.Adj w z)
    (w x y : V) (hw : w ∈ T i) (hwB : w ∉ B)
    (hB : ∀ b ∈ B, ¬ G.Adj w b)
    (hdegree : d ≤ (G.neighborFinset w).card + 2)
    (hxB : x ∉ B) (hyB : y ∉ B)
    (hwx : x ≠ w) (hwy : y ≠ w) (hxy : x ≠ y)
    (hnx : ¬ G.Adj w x) (hny : ¬ G.Adj w y)
    (hxT : ∀ j ∈ K, x ∉ T j) (hyT : ∀ j ∈ K, y ∉ T j)
    (hdis : ∀ i ∈ K, ∀ j ∈ K, i ≠ j → Disjoint (T i) (T j)) :
    ∀ j ∈ K, i ≠ j → T j ⊆ B
Source
OP-1957: boundary minimum-degree reduction, arXiv:2611.22690
Verified
29 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
Used by 1

The proof, explained

The proof proceeds by contradiction. Since vertex w ∉ B is anticomplete to B and misses at most two vertices outside B ∪ {w}, the set of outside nonneighbors of w has size at most 2. If some other anticomplete group T j (j ≠ i) contains a vertex z ∉ B, then z is distinct from w, x, and y, and nonadjacent to w. This produces three distinct nonneighbors {x, y, z} of w outside B ∪ {w}, contradicting the upper bound of 2.

  1. The set of vertices outside B ∪ {w} that are nonadjacent to w has cardinality at most 2.

    We apply anticomplete_neighbor_defect_bound to w with defect parameter r = 2. Since w ∉ B is anticomplete to B, the total number of vertices is |B| + d + 1, and d ≤ deg(w) + 2, the number of nonneighbors of w in (V \ B) \ {w} is at most 2.

    lines 16–17

    uses anticomplete_neighbor_defect_bound

      classical
      have hbound := anticomplete_neighbor_defect_bound G B w hwB hB d 2 hsize hdegree
  2. It suffices to show that no other group T j (j ≠ i) contains a vertex outside B; assume for contradiction that some z ∈ T j satisfies z ∉ B.

    We introduce an index j ∈ K distinct from i and an element z ∈ T j. To prove T j ⊆ B, we assume for contradiction that z ∉ B.

    lines 18–19

      intro j hj hij z hz
      by_contra hzB
  3. The vertex z is distinct from w, x, and y, and is nonadjacent to w.

    Because w ∈ T i and z ∈ T j with i ≠ j, disjointness of the groups via Finset.disjoint_left.mp implies z ≠ w. Since x and y do not belong to any T k, z cannot equal x or y. Finally, because T i and T j are anticomplete, w and z are not adjacent.

    lines 20–26

    uses Finset.disjoint_left.mp

      have hzw : z ≠ w := by
        intro he
        subst z
        exact Finset.disjoint_left.mp (hdis i hi j hj hij) hw hz
      have hzx : z ≠ x := by intro he; subst z; exact hxT j hj hz
      have hzy : z ≠ y := by intro he; subst z; exact hyT j hj hz
      have hnz := hanti i hi j hj hij w hw z hz
  4. The three-element set {x, y, z} is a subset of the nonneighbors of w outside B ∪ {w}.

    For each element a ∈ {x, y, z}, we check that a ∉ B, a ≠ w, and a is not adjacent to w. This holds for x and y by the given hypotheses, and for z by the contradiction assumption z ∉ B together with z ≠ w and ¬Adj w z established in the previous step.

    lines 27–33

    uses Finset.mem_insert, Finset.mem_singleton

      have hsub : ({x,y,z} : Finset V) ⊆ (((Finset.univ \ B).erase w) \ G.neighborFinset w) := by
        intro a ha
        simp only [Finset.mem_insert,Finset.mem_singleton] at ha
        rcases ha with rfl | rfl | rfl
        · simp [hwx,hxB,hnx]
        · simp [hwy,hyB,hny]
        · simp [hzw,hzB,hnz]
  5. A contradiction arises because the three-element subset has size 3 while the containing set has size at most 2.

    By Finset.card_le_card, the inclusion implies |{x, y, z}| ≤ |((V \ B) \ {w}) \ N(w)|. Because x, y, and z are pairwise distinct, |{x, y, z}| = 3. Since the containing set has size at most 2 from the defect bound, this yields 3 ≤ 2, which omega recognizes as a contradiction.

    lines 34–36

    uses Finset.card_le_card

      have hc := Finset.card_le_card hsub
      have hcard : ({x,y,z} : Finset V).card = 3 := by simp [hxy,hzx,hzy,hxy.symm,hzx.symm,hzy.symm]
      omega
anticomplete_neighbor_defect_bound
For a vertex w outside B that is anticomplete to B, if |V| = |B| + d + 1 and d ≤ deg(w) + r, then the number of nonneighbors of w outside B ∪ {w} is at most r.
Finset.disjoint_left.mp
If two finite sets are disjoint, any element belonging to the first set does not belong to the second set.
Finset.mem_insert
An element a belongs to insert b s if and only if a = b or a ∈ s.
Finset.mem_singleton
An element b belongs to the singleton set {a} if and only if b = a.
Finset.card_le_card
If s ⊆ t for finite sets s and t, then |s| ≤ |t|.

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_two_defects_force_one_outside_group    {V I : Type*} [Fintype V] [DecidableEq V] [DecidableEq I]    (G : SimpleGraph V) [DecidableRel G.Adj] (B : Finset V)    (d : ℕ) (hsize : Fintype.card V = B.card + d + 1)    (K : Finset I) (T : I → Finset V) (i : I) (hi : i ∈ K)    (hanti : ∀ i ∈ K, ∀ j ∈ K, i ≠ j → ∀ w ∈ T i, ∀ z ∈ T j, ¬ G.Adj w z)    (w x y : V) (hw : w ∈ T i) (hwB : w ∉ B)    (hB : ∀ b ∈ B, ¬ G.Adj w b)    (hdegree : d ≤ (G.neighborFinset w).card + 2)    (hxB : x ∉ B) (hyB : y ∉ B)    (hwx : x ≠ w) (hwy : y ≠ w) (hxy : x ≠ y)    (hnx : ¬ G.Adj w x) (hny : ¬ G.Adj w y)    (hxT : ∀ j ∈ K, x ∉ T j) (hyT : ∀ j ∈ K, y ∉ T j)    (hdis : ∀ i ∈ K, ∀ j ∈ K, i ≠ j → Disjoint (T i) (T j)) :    ∀ j ∈ K, i ≠ j → T j ⊆ B := by  classical  have hbound := anticomplete_neighbor_defect_bound G B w hwB hB d 2 hsize hdegree  intro j hj hij z hz  by_contra hzB  have hzw : z ≠ w := by    intro he    subst z    exact Finset.disjoint_left.mp (hdis i hi j hj hij) hw hz  have hzx : z ≠ x := by intro he; subst z; exact hxT j hj hz  have hzy : z ≠ y := by intro he; subst z; exact hyT j hj hz  have hnz := hanti i hi j hj hij w hw z hz  have hsub : ({x,y,z} : Finset V) ⊆ (((Finset.univ \ B).erase w) \ G.neighborFinset w) := by    intro a ha    simp only [Finset.mem_insert,Finset.mem_singleton] at ha    rcases ha with rfl | rfl | rfl    · simp [hwx,hxB,hnx]    · simp [hwy,hyB,hny]    · simp [hzw,hzB,hnz]  have hc := Finset.card_le_card hsub  have hcard : ({x,y,z} : Finset V).card = 3 := by simp [hxy,hzx,hzy,hxy.symm,hzx.symm,hzy.symm]  omega
See it in the graphDiscuss this resultChallenge it