low_codegree_excludes_cross_complete_shore
If W has at least two neighbors of x and every vertex of Q is adjacent to all of W, then a vertex z with at most one common neighbor with x cannot belong to Q.
Statement
theorem low_codegree_excludes_cross_complete_shore {V : Type*} [Fintype V] [DecidableEq V] (H : SimpleGraph V) [DecidableRel H.Adj] (x z : V) (W Q : Finset V) (hW : W ⊆ H.neighborFinset x) (hsize : 2 ≤ W.card) (hcodeg : ((H.neighborFinset x).filter (fun w => H.Adj z w)).card ≤ 1) (hcross : ∀ q ∈ Q, ∀ w ∈ W, H.Adj q w) : z ∉ Q
- Source
- Bridge-to-crossing-set verification for the OP-1957 campaign.
- Verified
- 20 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext
The proof, explained
The theorem is proved by contradiction: suppose z ∈ Q. Because every vertex of Q is adjacent to every vertex of W, and W consists of neighbors of x, W is a subset of the common neighbors of x and z. Consequently, the cardinality of W cannot exceed the number of common neighbors of x and z, which is at most 1. This contradicts the assumption that W contains at least two vertices.
Assume for contradiction that z ∈ Q.
To establish z ∉ Q, we assume for contradiction that z ∈ Q (introduced as hz).
intro hzW is a subset of the common neighbors of x and z.
Take any vertex w ∈ W. By hypothesis hW, w is a neighbor of x. Furthermore, since z ∈ Q and every vertex in Q is adjacent to all vertices in W (hypothesis hcross), z is adjacent to w. By Finset.mem_filter.mpr, w satisfies both conditions, so W is contained in the filtered set {w ∈ H.neighborFinset x | H.Adj z w} of common neighbors of x and z.
uses
Finset.mem_filter.mprhave hsub : W ⊆ (H.neighborFinset x).filter (fun w => H.Adj z w) := by intro w hw exact Finset.mem_filter.mpr ⟨hW hw, hcross z hz w hw⟩
The cardinality bounds on W lead to a contradiction.
Applying Finset.card_le_card to the inclusion gives |W| ≤ |{w ∈ H.neighborFinset x | H.Adj z w}|. Together with the assumptions that |W| ≥ 2 (hsize) and the number of common neighbors is at most 1 (hcodeg), this yields 2 ≤ |W| ≤ 1. Linear integer arithmetic (omega) derives a contradiction from these inequalities.
uses
Finset.card_le_cardhave := Finset.card_le_card hsub omega
Finset.mem_filter.mpr- An element belongs to a filtered finset if it belongs to the base finset and satisfies the predicate.
Finset.card_le_card- If one finite set is a subset of another, its cardinality is less than or equal to that of the other.
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 low_codegree_excludes_cross_complete_shore {V : Type*} [Fintype V] [DecidableEq V] (H : SimpleGraph V) [DecidableRel H.Adj] (x z : V) (W Q : Finset V) (hW : W ⊆ H.neighborFinset x) (hsize : 2 ≤ W.card) (hcodeg : ((H.neighborFinset x).filter (fun w => H.Adj z w)).card ≤ 1) (hcross : ∀ q ∈ Q, ∀ w ∈ W, H.Adj q w) : z ∉ Q := by intro hz have hsub : W ⊆ (H.neighborFinset x).filter (fun w => H.Adj z w) := by intro w hw exact Finset.mem_filter.mpr ⟨hW hw, hcross z hz w hw⟩ have := Finset.card_le_card hsub omega