crossing_shore_overlap_at_least_three_from_degree
In a finite graph of maximum degree d, under the displayed cross-adjacency, twin-neighbor and crossing-cardinality assumptions, two intersecting W shores share at least three vertices.
Statement
theorem crossing_shore_overlap_at_least_three_from_degree {V : Type*} [Fintype V] [DecidableEq V] (H : SimpleGraph V) [DecidableRel H.Adj] (d : ℕ) (W₁ W₂ Q₁ Q₂ : Finset V) (x y : V) (hWi : (W₁ ∩ W₂).Nonempty) (hxy : x ≠ y) (hxQ : x ∉ Q₁ ∪ Q₂) (hyQ : y ∉ Q₁ ∪ Q₂) (hsize₁ : W₁.card + Q₁.card = d + 1) (hsize₂ : W₂.card + Q₂.card = d + 1) (heq : (W₁ ∪ W₂).card + (Q₁ ∩ Q₂).card = d + 1) (hcross₁ : ∀ w ∈ W₁, ∀ q ∈ Q₁, H.Adj w q) (hcross₂ : ∀ w ∈ W₂, ∀ q ∈ Q₂, H.Adj w q) (htwins : ∀ w ∈ W₁ ∩ W₂, H.Adj w x ∧ H.Adj w y) (hdegree : ∀ w, (H.neighborFinset w).card ≤ d) : 3 ≤ (W₁ ∩ W₂).card
- Source
- Local-degree constraint in the OP-1957 crossing-cut route.
- Verified
- 20 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext
The proof, explained
The proof picks a vertex w in the intersection W₁ ∩ W₂, which is nonempty by hypothesis. Using the twin-neighbor and cross-adjacency assumptions, all vertices in {x, y} and in Q₁ ∪ Q₂ are neighbors of w; because {x, y} has size two and is disjoint from Q₁ ∪ Q₂, this gives the degree bound 2 + |Q₁ ∪ Q₂| ≤ d. Finally, combining this inequality with the two inclusion-exclusion formulas and the three given cardinality equalities, linear integer arithmetic deduces that |W₁ ∩ W₂| ≥ 3.
There exists a vertex w in W₁ ∩ W₂, which therefore belongs to both W₁ and W₂.
Under classical logic, because W₁ ∩ W₂ is nonempty by assumption hWi, we can choose an element w ∈ W₁ ∩ W₂. By the definition of intersection (Finset.mem_inter.mp), w belongs to W₁ and to W₂.
uses
Finset.mem_inter.mpclassical obtain ⟨w, hw⟩ := hWi have hw₁ := (Finset.mem_inter.mp hw).1 have hw₂ := (Finset.mem_inter.mp hw).2
The pair {x, y} is disjoint from Q₁ ∪ Q₂.
To prove disjointness (Finset.disjoint_left.mpr), suppose some vertex z ∈ {x, y} is also in Q₁ ∪ Q₂. The condition z ∈ {x, y} means z = x or z = y (Finset.mem_insert, Finset.mem_singleton), which contradicts the hypotheses hxQ (x ∉ Q₁ ∪ Q₂) and hyQ (y ∉ Q₁ ∪ Q₂).
uses
Finset.disjoint_left.mpr,Finset.mem_insert,Finset.mem_singletonhave hxyQ : Disjoint ({x,y} : Finset V) (Q₁ ∪ Q₂) := by apply Finset.disjoint_left.mpr intro z hz hq simp only [Finset.mem_insert, Finset.mem_singleton] at hz rcases hz with rfl | rfl · exact hxQ hq · exact hyQ hq
The union {x, y} ∪ (Q₁ ∪ Q₂) is a subset of the neighbor set of w.
A vertex z is in the neighbor set of w if and only if w and z are adjacent (SimpleGraph.mem_neighborFinset). For any z in {x, y} ∪ (Q₁ ∪ Q₂) (Finset.mem_union.mp), if z ∈ {x, y}, then z = x or z = y (Finset.mem_insert, Finset.mem_singleton), and w is adjacent to both x and y by assumption htwins since w ∈ W₁ ∩ W₂. If instead z ∈ Q₁ ∪ Q₂, then either z ∈ Q₁, in which case w is adjacent to z by the cross-adjacency between W₁ and Q₁ (hcross₁), or z ∈ Q₂, in which case w is adjacent to z by the cross-adjacency between W₂ and Q₂ (hcross₂).
uses
SimpleGraph.mem_neighborFinset,Finset.mem_union.mp,Finset.mem_insert,Finset.mem_singletonhave hsub : ({x,y} : Finset V) ∪ (Q₁ ∪ Q₂) ⊆ H.neighborFinset w := by intro z hz rw [SimpleGraph.mem_neighborFinset] rcases Finset.mem_union.mp hz with hxy' | hq · simp only [Finset.mem_insert, Finset.mem_singleton] at hxy' rcases hxy' with rfl | rfl · exact (htwins w hw).1 · exact (htwins w hw).2 · rcases Finset.mem_union.mp hq with hq₁ | hq₂ · exact hcross₁ w hw₁ z hq₁ · exact hcross₂ w hw₂ z hq₂
The cardinality of Q₁ ∪ Q₂ satisfies 2 + |Q₁ ∪ Q₂| ≤ d.
Because {x, y} ∪ (Q₁ ∪ Q₂) is a subset of the neighbor set of w, its cardinality is at most the degree of w (Finset.card_le_card), which is at most d by hdegree. Since {x, y} and Q₁ ∪ Q₂ are disjoint, the cardinality of the union is the sum of the cardinalities (Finset.card_union_of_disjoint). Finally, because x ≠ y (hxy), the pair {x, y} has cardinality 2 (Finset.card_pair), yielding 2 + |Q₁ ∪ Q₂| ≤ d.
uses
Finset.card_le_card,Finset.card_union_of_disjoint,Finset.card_pairhave hbudget := (Finset.card_le_card hsub).trans (hdegree w) rw [Finset.card_union_of_disjoint hxyQ, Finset.card_pair hxy] at hbudget
Inclusion-exclusion holds for W₁, W₂ and for Q₁, Q₂: |W₁ ∪ W₂| + |W₁ ∩ W₂| = |W₁| + |W₂| and |Q₁ ∪ Q₂| + |Q₁ ∩ Q₂| = |Q₁| + |Q₂|.
These are instances of the standard principle of inclusion-exclusion for finite sets (Finset.card_union_add_card_inter) applied to W₁, W₂ and Q₁, Q₂.
uses
Finset.card_union_add_card_interhave hW := Finset.card_union_add_card_inter W₁ W₂ have hQ := Finset.card_union_add_card_inter Q₁ Q₂
The overlap |W₁ ∩ W₂| is at least 3.
Linear integer arithmetic (omega) finishes the proof by combining the degree bound 2 + |Q₁ ∪ Q₂| ≤ d, the two inclusion-exclusion formulas, and the three given size hypotheses |W₁| + |Q₁| = d + 1, |W₂| + |Q₂| = d + 1, and |W₁ ∪ W₂| + |Q₁ ∩ Q₂| = d + 1 to deduce |W₁ ∩ W₂| ≥ 3.
omega
Finset.mem_inter.mp- An element in the intersection of two finite sets belongs to both sets.
Finset.disjoint_left.mpr- Two finite sets are disjoint if no element of the first belongs to the second.
Finset.mem_insert- An element belongs to the insertion of b into a finite set s if and only if it equals b or belongs to s.
Finset.mem_singleton- An element belongs to a singleton set {a} if and only if it equals a.
SimpleGraph.mem_neighborFinset- A vertex w is in the neighbor finset of v if and only if v and w are adjacent in the graph.
Finset.mem_union.mp- An element in the union of two finite sets belongs to the first set or to the second set.
Finset.card_le_card- If one finite set is a subset of another, its cardinality is less than or equal to the cardinality of the other.
Finset.card_union_of_disjoint- The cardinality of the union of two disjoint finite sets is the sum of their cardinalities.
Finset.card_pair- A set consisting of two distinct elements has cardinality 2.
Finset.card_union_add_card_inter- For any two finite sets, the sum of the cardinalities of their union and intersection equals the sum of their individual cardinalities.
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem crossing_shore_overlap_at_least_three_from_degree {V : Type*} [Fintype V] [DecidableEq V] (H : SimpleGraph V) [DecidableRel H.Adj] (d : ℕ) (W₁ W₂ Q₁ Q₂ : Finset V) (x y : V) (hWi : (W₁ ∩ W₂).Nonempty) (hxy : x ≠ y) (hxQ : x ∉ Q₁ ∪ Q₂) (hyQ : y ∉ Q₁ ∪ Q₂) (hsize₁ : W₁.card + Q₁.card = d + 1) (hsize₂ : W₂.card + Q₂.card = d + 1) (heq : (W₁ ∪ W₂).card + (Q₁ ∩ Q₂).card = d + 1) (hcross₁ : ∀ w ∈ W₁, ∀ q ∈ Q₁, H.Adj w q) (hcross₂ : ∀ w ∈ W₂, ∀ q ∈ Q₂, H.Adj w q) (htwins : ∀ w ∈ W₁ ∩ W₂, H.Adj w x ∧ H.Adj w y) (hdegree : ∀ w, (H.neighborFinset w).card ≤ d) : 3 ≤ (W₁ ∩ W₂).card := by classical obtain ⟨w, hw⟩ := hWi have hw₁ := (Finset.mem_inter.mp hw).1 have hw₂ := (Finset.mem_inter.mp hw).2 have hxyQ : Disjoint ({x,y} : Finset V) (Q₁ ∪ Q₂) := by apply Finset.disjoint_left.mpr intro z hz hq simp only [Finset.mem_insert, Finset.mem_singleton] at hz rcases hz with rfl | rfl · exact hxQ hq · exact hyQ hq have hsub : ({x,y} : Finset V) ∪ (Q₁ ∪ Q₂) ⊆ H.neighborFinset w := by intro z hz rw [SimpleGraph.mem_neighborFinset] rcases Finset.mem_union.mp hz with hxy' | hq · simp only [Finset.mem_insert, Finset.mem_singleton] at hxy' rcases hxy' with rfl | rfl · exact (htwins w hw).1 · exact (htwins w hw).2 · rcases Finset.mem_union.mp hq with hq₁ | hq₂ · exact hcross₁ w hw₁ z hq₁ · exact hcross₂ w hw₂ z hq₂ have hbudget := (Finset.card_le_card hsub).trans (hdegree w) rw [Finset.card_union_of_disjoint hxyQ, Finset.card_pair hxy] at hbudget have hW := Finset.card_union_add_card_inter W₁ W₂ have hQ := Finset.card_union_add_card_inter Q₁ Q₂ omega