AFTD Auto-Formalizing Theoretical Domains

graph_two_balanced_bridge_complements_degree_obstruction

theoremverified

Two balanced bridge-complement configurations cannot coexist under the displayed maximum-degree, cross-adjacency and endpoint-avoidance conditions, for any j at least five.

Statement

theorem graph_two_balanced_bridge_complements_degree_obstruction
    (n j : ℕ) (hj : 5 ≤ j) (H : SimpleGraph (Fin n)) [DecidableRel H.Adj]
    (hmax : ∀ x, H.degree x ≤ j+1)
    (A B A' B' : Finset (Fin n))
    (hAB : Disjoint A B) (hAB' : Disjoint A' B')
    (hA : A.card = j) (hB : B.card = j) (hA' : A'.card = j) (hB' : B'.card = j)
    (u v a w : Fin n) (hu : u ∈ A) (hv : v ∈ B) (huv : ¬ H.Adj u v) (ha : a ∈ A) (hau : a ≠ u)
    (hwA : w ∉ A) (hwB : w ∉ B) (ha' : a ∈ A') (hw' : w ∈ B')
    (hcross : ∀ x ∈ A, ∀ y ∈ B, (x = u ∧ y = v) ∨ H.Adj x y)
    (hcross' : ∀ x ∈ A', ∀ y ∈ B', (x = a ∧ y = w) ∨ H.Adj x y)
    (havoid : ∀ x ∈ A, x ≠ u → ¬ H.Adj w x) : False
Source
OP-1957: finite-set counting core for the odd-parameter surplus bound; experiment 34680 tests j=5,...,9 without a second residual minimum-degree condition.
Verified
20 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

The proof, explained

The proof derives a contradiction by showing that the two bridge-complement configurations force a vertex to exceed the maximum degree bound j + 1 when j ≥ 5. First, the cross-adjacency conditions force the neighborhood of a to contain B ∪ (B' \ {w}), which implies B and B' \ {w} must intersect by inclusion-exclusion. Selecting a vertex y in this intersection, its neighborhood must contain (A \ {u}) ∪ A'. Because the endpoint-avoidance condition limits the overlap (A \ {u}) ∩ A' to at most the single vertex a, the union has size at least 2j - 2, forcing deg(y) ≥ 2j - 2, which contradicts deg(y) ≤ j + 1 for j ≥ 5.

  1. The neighborhood of vertex a contains B ∪ (B' \ {w}).

    Using classical logic, let y ∈ B ∪ (B' \ {w}). If y ∈ B, the cross-adjacency condition between A and B ensures that a is adjacent to y unless (a, y) = (u, v); since a ≠ u, a must be adjacent to y. If y ∈ B' \ {w}, then y ∈ B' with y ≠ w; the cross-adjacency condition between A' and B' ensures that a is adjacent to y unless (a, y) = (a, w), which is ruled out because y ≠ w. Thus every element of B ∪ (B' \ {w}) is a neighbor of a.

    lines 12–24

    uses SimpleGraph.mem_neighborFinset, Finset.mem_union.mp, Finset.mem_erase.mp

      classical
      -- the neighbourhood of a contains B and B' minus w
      have hNa : B ∪ B'.erase w ⊆ H.neighborFinset a := by
        intro y hy
        rw [SimpleGraph.mem_neighborFinset]
        rcases Finset.mem_union.mp hy with hyB | hyB'
        · rcases hcross a ha y hyB with ⟨h, -⟩ | h
          · exact absurd h hau
          · exact h
        · obtain ⟨hyw, hyB'⟩ := Finset.mem_erase.mp hyB'
          rcases hcross' a ha' y hyB' with ⟨-, h⟩ | h
          · exact absurd h hyw
          · exact h
  2. There exists a vertex y in B ∩ B' with y ≠ w.

    Since B ∪ (B' \ {w}) ⊆ N(a), its size is bounded by deg(a) ≤ j + 1. Because w ∈ B' and |B'| = j, removing w yields |B' \ {w}| = j - 1. By inclusion-exclusion, |B ∪ (B' \ {w})| + |B ∩ (B' \ {w})| = |B| + |B' \ {w}| = j + (j - 1) = 2j - 1. Therefore, |B ∩ (B' \ {w})| ≥ (2j - 1) - (j + 1) = j - 2. Since j ≥ 5, this cardinality is strictly positive, so the intersection contains some vertex y. In particular, y ∈ B, y ∈ B', and y ≠ w.

    lines 25–33

    uses Finset.card_le_card, SimpleGraph.card_neighborFinset_eq_degree, Finset.card_erase_of_mem, Finset.card_union_add_card_inter, Finset.card_pos.mp, Finset.mem_inter.mp, Finset.mem_erase.mp

      have hcardNa := Finset.card_le_card hNa
      rw [SimpleGraph.card_neighborFinset_eq_degree] at hcardNa
      have hdega := hmax a
      have hEr : (B'.erase w).card = j - 1 := by rw [Finset.card_erase_of_mem hw', hB']
      have hui := Finset.card_union_add_card_inter B (B'.erase w)
      have hinter : 0 < (B ∩ B'.erase w).card := by omega
      obtain ⟨y, hy⟩ := Finset.card_pos.mp hinter
      obtain ⟨hyB, hyB'e⟩ := Finset.mem_inter.mp hy
      obtain ⟨hyw, hyB'⟩ := Finset.mem_erase.mp hyB'e
  3. The neighborhood of y contains (A \ {u}) ∪ A'.

    Let x ∈ (A \ {u}) ∪ A'. If x ∈ A \ {u}, then x ∈ A with x ≠ u; since y ∈ B, the cross-adjacency condition between A and B implies x and y are adjacent unless (x, y) = (u, v), which is ruled out by x ≠ u. By graph symmetry, y is adjacent to x. If x ∈ A', then since y ∈ B' with y ≠ w, the cross-adjacency condition between A' and B' implies x and y are adjacent unless (x, y) = (a, w), which is ruled out by y ≠ w. By symmetry, y is adjacent to x. Hence (A \ {u}) ∪ A' ⊆ N(y).

    lines 34–45

    uses SimpleGraph.mem_neighborFinset, Finset.mem_union.mp, Finset.mem_erase.mp

      -- the neighbourhood of y contains A minus u and A'
      have hNy : A.erase u ∪ A' ⊆ H.neighborFinset y := by
        intro x hx
        rw [SimpleGraph.mem_neighborFinset]
        rcases Finset.mem_union.mp hx with hxA | hxA'
        · obtain ⟨hxu, hxA⟩ := Finset.mem_erase.mp hxA
          rcases hcross x hxA y hyB with ⟨h, -⟩ | h
          · exact absurd h hxu
          · exact h.symm
        · rcases hcross' x hxA' y hyB' with ⟨-, h⟩ | h
          · exact absurd h hyw
          · exact h.symm
  4. The intersection (A \ {u}) ∩ A' has cardinality at most 1.

    We show (A \ {u}) ∩ A' ⊆ {a}. Suppose x ∈ (A \ {u}) ∩ A' but x ≠ a. Since x ∈ A' and w ∈ B', the cross-adjacency condition between A' and B' implies that either (x, w) = (a, w) or x is adjacent to w. The first case contradicts x ≠ a. The second case contradicts the avoidance assumption that w is not adjacent to any vertex in A \ {u}. Hence x = a, proving the intersection is a subset of {a} and has cardinality at most 1.

    lines 46–56

    uses Finset.mem_inter.mp, Finset.mem_erase.mp, Finset.mem_singleton, Finset.card_le_card

      have hsmall : (A.erase u ∩ A').card ≤ 1 := by
        have hsub : A.erase u ∩ A' ⊆ {a} := by
          intro x hx
          obtain ⟨hxAe, hxA'⟩ := Finset.mem_inter.mp hx
          obtain ⟨hxu, hxA⟩ := Finset.mem_erase.mp hxAe
          rw [Finset.mem_singleton]
          by_contra hxa
          rcases hcross' x hxA' w hw' with ⟨h, -⟩ | h
          · exact hxa h
          · exact havoid x hxA hxu h.symm
        simpa using Finset.card_le_card hsub
  5. The degree bound on y contradicts j ≥ 5, concluding the proof.

    Because (A \ {u}) ∪ A' ⊆ N(y), its size is at most deg(y) ≤ j + 1. Since u ∈ A, |A \ {u}| = j - 1, and |A'| = j. By inclusion-exclusion, |(A \ {u}) ∪ A'| = |A \ {u}| + |A'| - |(A \ {u}) ∩ A'| ≥ (j - 1) + j - 1 = 2j - 2. Thus 2j - 2 ≤ j + 1, which implies j ≤ 3. This contradicts the hypothesis j ≥ 5, and linear integer arithmetic (omega) closes the goal.

    lines 57–62

    uses Finset.card_le_card, SimpleGraph.card_neighborFinset_eq_degree, Finset.card_erase_of_mem, Finset.card_union_add_card_inter

      have hcardNy := Finset.card_le_card hNy
      rw [SimpleGraph.card_neighborFinset_eq_degree] at hcardNy
      have hdegy := hmax y
      have hAe : (A.erase u).card = j - 1 := by rw [Finset.card_erase_of_mem hu, hA]
      have hui2 := Finset.card_union_add_card_inter (A.erase u) A'
      omega
SimpleGraph.mem_neighborFinset
A vertex w belongs to the neighbor finset of v if and only if v and w are adjacent in G.
Finset.mem_union.mp
If an element belongs to the union of two finite sets, it belongs to the first set or the second set.
Finset.mem_erase.mp
If an element belongs to the erasure of a from a finite set s, it is not equal to a and belongs to s.
Finset.card_le_card
If a finite set s is a subset of a finite set t, then the cardinality of s is at most the cardinality of t.
SimpleGraph.card_neighborFinset_eq_degree
The cardinality of the neighbor finset of a vertex v equals the degree of v.
Finset.card_erase_of_mem
Erasing an element from a finite set that contains it decreases the set's cardinality by one.
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 individual cardinalities.
Finset.card_pos.mp
If the cardinality of a finite set is strictly positive, the set is nonempty.
Finset.mem_inter.mp
If an element belongs to the intersection of two finite sets, it belongs to both sets.
Finset.mem_singleton
An element belongs to the singleton {a} if and only if it equals 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 graph_two_balanced_bridge_complements_degree_obstruction    (n j : ℕ) (hj : 5 ≤ j) (H : SimpleGraph (Fin n)) [DecidableRel H.Adj]    (hmax : ∀ x, H.degree x ≤ j+1)    (A B A' B' : Finset (Fin n))    (hAB : Disjoint A B) (hAB' : Disjoint A' B')    (hA : A.card = j) (hB : B.card = j) (hA' : A'.card = j) (hB' : B'.card = j)    (u v a w : Fin n) (hu : u ∈ A) (hv : v ∈ B) (huv : ¬ H.Adj u v) (ha : a ∈ A) (hau : a ≠ u)    (hwA : w ∉ A) (hwB : w ∉ B) (ha' : a ∈ A') (hw' : w ∈ B')    (hcross : ∀ x ∈ A, ∀ y ∈ B, (x = u ∧ y = v) ∨ H.Adj x y)    (hcross' : ∀ x ∈ A', ∀ y ∈ B', (x = a ∧ y = w) ∨ H.Adj x y)    (havoid : ∀ x ∈ A, x ≠ u → ¬ H.Adj w x) : False := by  classical  -- the neighbourhood of a contains B and B' minus w  have hNa : B ∪ B'.erase w ⊆ H.neighborFinset a := by    intro y hy    rw [SimpleGraph.mem_neighborFinset]    rcases Finset.mem_union.mp hy with hyB | hyB'    · rcases hcross a ha y hyB with ⟨h, -⟩ | h      · exact absurd h hau      · exact h    · obtain ⟨hyw, hyB'⟩ := Finset.mem_erase.mp hyB'      rcases hcross' a ha' y hyB' with ⟨-, h⟩ | h      · exact absurd h hyw      · exact h  have hcardNa := Finset.card_le_card hNa  rw [SimpleGraph.card_neighborFinset_eq_degree] at hcardNa  have hdega := hmax a  have hEr : (B'.erase w).card = j - 1 := by rw [Finset.card_erase_of_mem hw', hB']  have hui := Finset.card_union_add_card_inter B (B'.erase w)  have hinter : 0 < (B ∩ B'.erase w).card := by omega  obtain ⟨y, hy⟩ := Finset.card_pos.mp hinter  obtain ⟨hyB, hyB'e⟩ := Finset.mem_inter.mp hy  obtain ⟨hyw, hyB'⟩ := Finset.mem_erase.mp hyB'e  -- the neighbourhood of y contains A minus u and A'  have hNy : A.erase u ∪ A' ⊆ H.neighborFinset y := by    intro x hx    rw [SimpleGraph.mem_neighborFinset]    rcases Finset.mem_union.mp hx with hxA | hxA'    · obtain ⟨hxu, hxA⟩ := Finset.mem_erase.mp hxA      rcases hcross x hxA y hyB with ⟨h, -⟩ | h      · exact absurd h hxu      · exact h.symm    · rcases hcross' x hxA' y hyB' with ⟨-, h⟩ | h      · exact absurd h hyw      · exact h.symm  have hsmall : (A.erase u ∩ A').card ≤ 1 := by    have hsub : A.erase u ∩ A' ⊆ {a} := by      intro x hx      obtain ⟨hxAe, hxA'⟩ := Finset.mem_inter.mp hx      obtain ⟨hxu, hxA⟩ := Finset.mem_erase.mp hxAe      rw [Finset.mem_singleton]      by_contra hxa      rcases hcross' x hxA' w hw' with ⟨h, -⟩ | h      · exact hxa h      · exact havoid x hxA hxu h.symm    simpa using Finset.card_le_card hsub  have hcardNy := Finset.card_le_card hNy  rw [SimpleGraph.card_neighborFinset_eq_degree] at hcardNy  have hdegy := hmax y  have hAe : (A.erase u).card = j - 1 := by rw [Finset.card_erase_of_mem hu, hA]  have hui2 := Finset.card_union_add_card_inter (A.erase u) A'  omega
See it in the graphDiscuss this resultChallenge it