degree_nine_four_bridge_groups_bound
Suppose a finite graph has maximum degree nine. An indexed family has vertex sets Q(i) of size at most six, with every two distinct sets meeting in four vertices, and distinct endpoints z(i), each adjacent to all of Q(i). For each pair i,j, all vertices of Q(i)∩Q(j) are adjacent to a six-vertex set containing no endpoint. Then there are at most four indices.
Statement
theorem degree_nine_four_bridge_groups_bound {I V : Type*} [Fintype V] [DecidableEq V] [DecidableEq I] (H : SimpleGraph V) [DecidableRel H.Adj] (F : Finset I) (Q : I → Finset V) (z : I → V) (K : I → I → Finset V) (hsize : ∀ i ∈ F, (Q i).card ≤ 6) (hpair : ∀ i ∈ F, ∀ j ∈ F, i ≠ j → (Q i ∩ Q j).card = 4) (hinj : ∀ i ∈ F, ∀ j ∈ F, z i = z j → i = j) (hK : ∀ i ∈ F, ∀ j ∈ F, i ≠ j → (K i j).card = 6 ∧ (∀ l ∈ F, z l ∉ K i j) ∧ (∀ q ∈ Q i ∩ Q j, ∀ w ∈ K i j, H.Adj q w)) (hz : ∀ i ∈ F, ∀ q ∈ Q i, H.Adj q (z i)) (hdegree : ∀ q, (H.neighborFinset q).card ≤ 9) : F.card ≤ 4
- Source
- The d=9 pair-intersection degree contradiction in the OP-1957 crossing-cut route.
- Verified
- 20 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext
The proof, explained
The theorem bounds the index set to |F| ≤ 4 by reducing to a standalone combinatorial lemma (in1076_four_groups). That lemma shows that any family of sets of size at most six pairwise intersecting in four elements has at most four sets, provided no vertex in an intersection belongs to more than one other set (proved by double counting pairs between the intersection elements and the remaining sets). To apply this lemma, we show by contradiction that no intersection vertex can belong to two additional sets: if it did, the vertex would be adjacent to four distinct endpoints and all six vertices of the disjoint set K(i, j), giving it at least ten neighbors and violating the maximum degree bound of nine.
The theorem in1076_four_groups holds when |F| ≤ 1.
If |F| ≤ 1, then |F| ≤ 4 follows immediately by integer arithmetic.
classical by_cases hsmall : F.card ≤ 1 · omega
When |F| > 1, there exist distinct indices i, j ∈ F such that R = Q(i) ∩ Q(j) has size 4 and the remaining index set T = (F \ {i}) \ {j} satisfies |T| + 2 = |F|.
Since |F| > 1, by Finset.one_lt_card.mp there exist distinct indices i, j ∈ F. By hypothesis hpair, |R| = 4. Erasing i and j from F successively decrements the cardinality by 1 using Finset.mem_erase.mpr and Finset.card_erase_of_mem, giving |T| + 2 = |F|.
uses
Finset.one_lt_card.mp,Finset.mem_erase.mpr,Finset.card_erase_of_memobtain ⟨i, hi, j, hj, hij⟩ := Finset.one_lt_card.mp (by omega : 1 < F.card) let R := Q i ∩ Q j let T := (F.erase i).erase j have hR : R.card = 4 := hpair i hi j hj hij have hj' : j ∈ F.erase i := Finset.mem_erase.mpr ⟨hij.symm, hj⟩ have hT : T.card + 2 = F.card := by dsimp [T] rw [Finset.card_erase_of_mem hj', Finset.card_erase_of_mem hi] omega
Every index l ∈ T belongs to F and differs from both i and j.
Unfolding the definition of T = (F \ {i}) \ {j} via Finset.mem_erase shows that l ∈ T implies l ∈ F, l ≠ i, and l ≠ j.
uses
Finset.mem_erasehave hother : ∀ l ∈ T, l ∈ F ∧ l ≠ i ∧ l ≠ j := by intro l hl simp only [T, Finset.mem_erase] at hl exact ⟨hl.2.2, hl.2.1, hl.1⟩
For every l ∈ T, the intersection R ∩ Q(l) contains at least 2 elements.
By inclusion-exclusion (Finset.card_inter_add_card_union), the sum of the sizes of the intersection and union of Q(i) ∩ Q(j) and Q(i) ∩ Q(l) is 4 + 4 = 8. Their intersection is R ∩ Q(l), and their union is a subset of Q(i) (checked with Finset.mem_union.mp and Finset.mem_inter.mp). By Finset.card_le_card and the size bound |Q(i)| ≤ 6, the union has size at most 6, which forces |R ∩ Q(l)| ≥ 8 - 6 = 2.
uses
Finset.card_inter_add_card_union,Finset.card_le_card,Finset.mem_union.mp,Finset.mem_inter.mphave htwo : ∀ l ∈ T, 2 ≤ (R ∩ Q l).card := by intro l hl obtain ⟨hlF, hli, hlj⟩ := hother l hl have hil : i ≠ l := hli.symm have hcard := Finset.card_inter_add_card_union (Q i ∩ Q j) (Q i ∩ Q l) have hunion : ((Q i ∩ Q j) ∪ (Q i ∩ Q l)).card ≤ (Q i).card := by apply Finset.card_le_card intro x hx rcases Finset.mem_union.mp hx with hx | hx · exact (Finset.mem_inter.mp hx).1 · exact (Finset.mem_inter.mp hx).1 have heq : (Q i ∩ Q j) ∩ (Q i ∩ Q l) = R ∩ Q l := by ext x simp [R] <;> tauto rw [heq, hpair i hi j hj hij, hpair i hi l hlF hil] at hcard have hqi := hsize i hi omega
The sum ∑_{l ∈ T} |R ∩ Q(l)| equals ∑_{q ∈ R} |{l ∈ T : q ∈ Q(l)}|.
Rewriting the set sizes as sums of indicator functions via Finset.card_filter and Finset.sum_congr, we swap the order of summation using Finset.sum_comm and rewrite the inner sum back as the cardinality of the filtered index set.
uses
Finset.sum_congr,Finset.card_filter,Finset.sum_commhave hswap : (∑ l ∈ T, (R ∩ Q l).card) = ∑ q ∈ R, (T.filter (fun l => q ∈ Q l)).card := by calc (∑ l ∈ T, (R ∩ Q l).card) = ∑ l ∈ T, ∑ q ∈ R, if q ∈ Q l then 1 else 0 := by apply Finset.sum_congr rfl intro l hl rw [← Finset.card_filter] congr 1 _ = ∑ q ∈ R, ∑ l ∈ T, if q ∈ Q l then 1 else 0 := Finset.sum_comm _ = ∑ q ∈ R, (T.filter (fun l => q ∈ Q l)).card := by apply Finset.sum_congr rfl intro q hq rw [Finset.card_filter]
|F| ≤ 4.
Summing |R ∩ Q(l)| ≥ 2 over l ∈ T via Finset.sum_le_sum gives 2|T| ≤ ∑_{l ∈ T} |R ∩ Q(l)|. By the double-counting identity and the load condition hload, each q ∈ R belongs to at most one Q(l) for l ∈ T, so the sum is at most ∑_{q ∈ R} 1 = |R| = 4. Hence 2|T| ≤ 4, yielding |T| ≤ 2 and |F| = |T| + 2 ≤ 4.
uses
Finset.sum_le_sumhave hlower := Finset.sum_le_sum htwo have hconstant : (∑ l ∈ T, (2 : ℕ)) = T.card * 2 := by simp rw [hconstant, hswap] at hlower have hupper : (∑ q ∈ R, (T.filter (fun l => q ∈ Q l)).card) ≤ ∑ q ∈ R, (1 : ℕ) := by apply Finset.sum_le_sum intro q hq exact hload i hi j hj hij q hq have hconstant' : (∑ q ∈ R, (1 : ℕ)) = R.card := by simp rw [hconstant', hR] at hupper omega
To prove |F| ≤ 4 for the graph H, it suffices to verify that for any distinct i, j ∈ F and any q ∈ Q(i) ∩ Q(j), at most one other index l ∈ F \ {i, j} contains q.
We invoke the combinatorial lemma in1076_four_groups with the hypotheses hsize and hpair. This reduces the bound |F| ≤ 4 to proving the load condition for an arbitrary pair of distinct indices i, j and vertex q ∈ Q(i) ∩ Q(j).
uses
in1076_four_groupsclassical apply in1076_four_groups F Q hsize hpair intro i hi j hj hij q hq
If the load condition fails at q ∈ Q(i) ∩ Q(j), there exist two distinct indices a, b ∈ F \ {i, j} with q ∈ Q(a) and q ∈ Q(b).
Assuming for contradiction that the count of such indices is not at most 1, it must be strictly greater than 1. By Finset.one_lt_card.mp, we obtain two distinct indices a, b in the filtered set, which by Finset.mem_filter and Finset.mem_erase are in F, distinct from i and j, and satisfy q ∈ Q(a) and q ∈ Q(b).
uses
Finset.one_lt_card.mp,Finset.mem_filter,Finset.mem_eraselet T := (((F.erase i).erase j).filter (fun l => q ∈ Q l)) by_contra hn change ¬ T.card ≤ 1 at hn have hT : 1 < T.card := by omega obtain ⟨a, ha, b, hb, hab⟩ := Finset.one_lt_card.mp hT have ha' : a ∈ F ∧ a ≠ i ∧ a ≠ j ∧ q ∈ Q a := by simp only [T, Finset.mem_filter, Finset.mem_erase] at ha exact ⟨ha.1.2.2, ha.1.2.1, ha.1.1, ha.2⟩ have hb' : b ∈ F ∧ b ≠ i ∧ b ≠ j ∧ q ∈ Q b := by simp only [T, Finset.mem_filter, Finset.mem_erase] at hb exact ⟨hb.1.2.2, hb.1.2.1, hb.1.1, hb.2⟩
The set Z = {z(i), z(j), z(a), z(b)} consists of four distinct endpoints.
Since i, j, a, b are pairwise distinct and z is injective on F by hypothesis hinj, their images under z are four pairwise distinct vertices, making |Z| = 4.
have hzij : z i ≠ z j := by intro he; exact hij (hinj i hi j hj he) have hzia : z i ≠ z a := by intro he; exact ha'.2.1 (hinj i hi a ha'.1 he).symm have hzib : z i ≠ z b := by intro he; exact hb'.2.1 (hinj i hi b hb'.1 he).symm have hzja : z j ≠ z a := by intro he; exact ha'.2.2.1 (hinj j hj a ha'.1 he).symm have hzjb : z j ≠ z b := by intro he; exact hb'.2.2.1 (hinj j hj b hb'.1 he).symm have hzab : z a ≠ z b := by intro he; exact hab (hinj a ha'.1 b hb'.1 he) let Z : Finset V := {z i, z j, z a, z b} have hZ : Z.card = 4 := by simp [Z, hzij, hzia, hzib, hzja, hzjb, hzab]
The sets K(i, j) and Z are disjoint.
Using Finset.disjoint_left.mpr, we check that no vertex of K(i, j) lies in Z. Any element of Z is one of z(i), z(j), z(a), z(b) (via Finset.mem_insert and Finset.mem_singleton), none of which belong to K(i, j) by hypothesis hK.
uses
Finset.disjoint_left.mpr,Finset.mem_insert,Finset.mem_singletonhave hKZ : Disjoint (K i j) Z := by apply Finset.disjoint_left.mpr intro x hxK hxZ simp only [Z, Finset.mem_insert, Finset.mem_singleton] at hxZ rcases hxZ with rfl | rfl | rfl | rfl · exact (hK i hi j hj hij).2.1 i hi hxK · exact (hK i hi j hj hij).2.1 j hj hxK · exact (hK i hi j hj hij).2.1 a ha'.1 hxK · exact (hK i hi j hj hij).2.1 b hb'.1 hxK
Every vertex in K(i, j) ∪ Z is adjacent to q in H.
By SimpleGraph.mem_neighborFinset and Finset.mem_union.mp, an element in the union is either in K(i, j) or in Z. If in K(i, j), it is adjacent to q because q ∈ Q(i) ∩ Q(j) and hypothesis hK guarantees that all of K(i, j) is adjacent to Q(i) ∩ Q(j). If in Z, by Finset.mem_insert and Finset.mem_singleton it is one of z(i), z(j), z(a), z(b); since q belongs to each of Q(i), Q(j), Q(a), Q(b) (using Finset.mem_inter.mp for i and j), hypothesis hz ensures that q is adjacent to each of these endpoints.
uses
SimpleGraph.mem_neighborFinset,Finset.mem_union.mp,Finset.mem_insert,Finset.mem_singleton,Finset.mem_inter.mphave hsub : K i j ∪ Z ⊆ H.neighborFinset q := by intro x hx rw [SimpleGraph.mem_neighborFinset] rcases Finset.mem_union.mp hx with hxK | hxZ · exact (hK i hi j hj hij).2.2 q hq x hxK · simp only [Z, Finset.mem_insert, Finset.mem_singleton] at hxZ rcases hxZ with rfl | rfl | rfl | rfl · exact hz i hi q (Finset.mem_inter.mp hq).1 · exact hz j hj q (Finset.mem_inter.mp hq).2 · exact hz a ha'.1 q ha'.2.2.2 · exact hz b hb'.1 q hb'.2.2.2
The vertex q would have at least 10 neighbors, contradicting the maximum degree bound of 9.
Since K(i, j) ∪ Z is a subset of the neighbors of q, by Finset.card_le_card its size is at most the degree of q. Because K(i, j) and Z are disjoint, by Finset.card_union_of_disjoint their union has size |K(i, j)| + |Z| = 6 + 4 = 10. But by hypothesis hdegree, q has at most 9 neighbors, a contradiction.
uses
Finset.card_le_card,Finset.card_union_of_disjointhave hc := (Finset.card_le_card hsub).trans (hdegree q) rw [Finset.card_union_of_disjoint hKZ, (hK i hi j hj hij).1, hZ] at hc omega
Finset.one_lt_card.mp- A finite set has cardinality strictly greater than 1 if and only if it contains at least two distinct elements.
Finset.mem_erase.mpr- An element belongs to s \ {a} if it belongs to s and is not equal to a.
Finset.card_erase_of_mem- Removing an element that belongs to a finite set decreases its cardinality by 1.
Finset.mem_erase- An element belongs to s \ {a} if and only if it belongs to s and is not equal to a.
Finset.card_inter_add_card_union- The sum of the sizes of the intersection and union of two finite sets equals the sum of their individual sizes.
Finset.card_le_card- If one finite set is a subset of another, its cardinality is at most that of the larger set.
Finset.mem_union.mp- If an element belongs to the union of two sets, it belongs to at least one of the sets.
Finset.mem_inter.mp- If an element belongs to the intersection of two sets, it belongs to both sets.
Finset.sum_congr- If two index sets are equal and two summands agree on every element, their sums are equal.
Finset.card_filter- The cardinality of a filtered subset of a finite set equals the sum over the set of the indicator of the condition.
Finset.sum_comm- The order of summation in a double sum over two finite sets can be exchanged.
Finset.sum_le_sum- A sum of terms over a finite set is bounded above by the sum of termwise upper bounds.
in1076_four_groups- In a family of sets of size at most 6 pairwise intersecting in 4 elements, if each element in any pairwise intersection belongs to at most one other set, then the family contains at most 4 sets.
Finset.mem_filter- An element is in the filtered subset of a finite set if and only if it is in the set and satisfies the predicate.
Finset.disjoint_left.mpr- Two sets are disjoint if no element of the first set belongs to the second set.
Finset.mem_insert- An element is in {a} ∪ s if and only if it equals a or belongs to s.
Finset.mem_singleton- An element is in the singleton set {a} if and only if it equals a.
SimpleGraph.mem_neighborFinset- A vertex belongs to the neighbor finset of v if and only if it is adjacent to v.
Finset.card_union_of_disjoint- The cardinality of the union of two disjoint finite sets is the sum of their cardinalities.
- The proof first establishes a standalone combinatorial lemma (in1076_four_groups) via double counting, independent of graph theory, and then reduces the main graph-theoretic result to this lemma by deriving a degree contradiction.
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 in1076_four_groups {I V : Type*} [DecidableEq I] [DecidableEq V] (F : Finset I) (Q : I → Finset V) (hsize : ∀ i ∈ F, (Q i).card ≤ 6) (hpair : ∀ i ∈ F, ∀ j ∈ F, i ≠ j → (Q i ∩ Q j).card = 4) (hload : ∀ i ∈ F, ∀ j ∈ F, i ≠ j → ∀ q ∈ Q i ∩ Q j, (((F.erase i).erase j).filter (fun l => q ∈ Q l)).card ≤ 1) : F.card ≤ 4 := by classical by_cases hsmall : F.card ≤ 1 · omega obtain ⟨i, hi, j, hj, hij⟩ := Finset.one_lt_card.mp (by omega : 1 < F.card) let R := Q i ∩ Q j let T := (F.erase i).erase j have hR : R.card = 4 := hpair i hi j hj hij have hj' : j ∈ F.erase i := Finset.mem_erase.mpr ⟨hij.symm, hj⟩ have hT : T.card + 2 = F.card := by dsimp [T] rw [Finset.card_erase_of_mem hj', Finset.card_erase_of_mem hi] omega have hother : ∀ l ∈ T, l ∈ F ∧ l ≠ i ∧ l ≠ j := by intro l hl simp only [T, Finset.mem_erase] at hl exact ⟨hl.2.2, hl.2.1, hl.1⟩ have htwo : ∀ l ∈ T, 2 ≤ (R ∩ Q l).card := by intro l hl obtain ⟨hlF, hli, hlj⟩ := hother l hl have hil : i ≠ l := hli.symm have hcard := Finset.card_inter_add_card_union (Q i ∩ Q j) (Q i ∩ Q l) have hunion : ((Q i ∩ Q j) ∪ (Q i ∩ Q l)).card ≤ (Q i).card := by apply Finset.card_le_card intro x hx rcases Finset.mem_union.mp hx with hx | hx · exact (Finset.mem_inter.mp hx).1 · exact (Finset.mem_inter.mp hx).1 have heq : (Q i ∩ Q j) ∩ (Q i ∩ Q l) = R ∩ Q l := by ext x simp [R] <;> tauto rw [heq, hpair i hi j hj hij, hpair i hi l hlF hil] at hcard have hqi := hsize i hi omega have hswap : (∑ l ∈ T, (R ∩ Q l).card) = ∑ q ∈ R, (T.filter (fun l => q ∈ Q l)).card := by calc (∑ l ∈ T, (R ∩ Q l).card) = ∑ l ∈ T, ∑ q ∈ R, if q ∈ Q l then 1 else 0 := by apply Finset.sum_congr rfl intro l hl rw [← Finset.card_filter] congr 1 _ = ∑ q ∈ R, ∑ l ∈ T, if q ∈ Q l then 1 else 0 := Finset.sum_comm _ = ∑ q ∈ R, (T.filter (fun l => q ∈ Q l)).card := by apply Finset.sum_congr rfl intro q hq rw [Finset.card_filter] have hlower := Finset.sum_le_sum htwo have hconstant : (∑ l ∈ T, (2 : ℕ)) = T.card * 2 := by simp rw [hconstant, hswap] at hlower have hupper : (∑ q ∈ R, (T.filter (fun l => q ∈ Q l)).card) ≤ ∑ q ∈ R, (1 : ℕ) := by apply Finset.sum_le_sum intro q hq exact hload i hi j hj hij q hq have hconstant' : (∑ q ∈ R, (1 : ℕ)) = R.card := by simp rw [hconstant', hR] at hupper omegatheorem degree_nine_four_bridge_groups_bound {I V : Type*} [Fintype V] [DecidableEq V] [DecidableEq I] (H : SimpleGraph V) [DecidableRel H.Adj] (F : Finset I) (Q : I → Finset V) (z : I → V) (K : I → I → Finset V) (hsize : ∀ i ∈ F, (Q i).card ≤ 6) (hpair : ∀ i ∈ F, ∀ j ∈ F, i ≠ j → (Q i ∩ Q j).card = 4) (hinj : ∀ i ∈ F, ∀ j ∈ F, z i = z j → i = j) (hK : ∀ i ∈ F, ∀ j ∈ F, i ≠ j → (K i j).card = 6 ∧ (∀ l ∈ F, z l ∉ K i j) ∧ (∀ q ∈ Q i ∩ Q j, ∀ w ∈ K i j, H.Adj q w)) (hz : ∀ i ∈ F, ∀ q ∈ Q i, H.Adj q (z i)) (hdegree : ∀ q, (H.neighborFinset q).card ≤ 9) : F.card ≤ 4 := by classical apply in1076_four_groups F Q hsize hpair intro i hi j hj hij q hq let T := (((F.erase i).erase j).filter (fun l => q ∈ Q l)) by_contra hn change ¬ T.card ≤ 1 at hn have hT : 1 < T.card := by omega obtain ⟨a, ha, b, hb, hab⟩ := Finset.one_lt_card.mp hT have ha' : a ∈ F ∧ a ≠ i ∧ a ≠ j ∧ q ∈ Q a := by simp only [T, Finset.mem_filter, Finset.mem_erase] at ha exact ⟨ha.1.2.2, ha.1.2.1, ha.1.1, ha.2⟩ have hb' : b ∈ F ∧ b ≠ i ∧ b ≠ j ∧ q ∈ Q b := by simp only [T, Finset.mem_filter, Finset.mem_erase] at hb exact ⟨hb.1.2.2, hb.1.2.1, hb.1.1, hb.2⟩ have hzij : z i ≠ z j := by intro he; exact hij (hinj i hi j hj he) have hzia : z i ≠ z a := by intro he; exact ha'.2.1 (hinj i hi a ha'.1 he).symm have hzib : z i ≠ z b := by intro he; exact hb'.2.1 (hinj i hi b hb'.1 he).symm have hzja : z j ≠ z a := by intro he; exact ha'.2.2.1 (hinj j hj a ha'.1 he).symm have hzjb : z j ≠ z b := by intro he; exact hb'.2.2.1 (hinj j hj b hb'.1 he).symm have hzab : z a ≠ z b := by intro he; exact hab (hinj a ha'.1 b hb'.1 he) let Z : Finset V := {z i, z j, z a, z b} have hZ : Z.card = 4 := by simp [Z, hzij, hzia, hzib, hzja, hzjb, hzab] have hKZ : Disjoint (K i j) Z := by apply Finset.disjoint_left.mpr intro x hxK hxZ simp only [Z, Finset.mem_insert, Finset.mem_singleton] at hxZ rcases hxZ with rfl | rfl | rfl | rfl · exact (hK i hi j hj hij).2.1 i hi hxK · exact (hK i hi j hj hij).2.1 j hj hxK · exact (hK i hi j hj hij).2.1 a ha'.1 hxK · exact (hK i hi j hj hij).2.1 b hb'.1 hxK have hsub : K i j ∪ Z ⊆ H.neighborFinset q := by intro x hx rw [SimpleGraph.mem_neighborFinset] rcases Finset.mem_union.mp hx with hxK | hxZ · exact (hK i hi j hj hij).2.2 q hq x hxK · simp only [Z, Finset.mem_insert, Finset.mem_singleton] at hxZ rcases hxZ with rfl | rfl | rfl | rfl · exact hz i hi q (Finset.mem_inter.mp hq).1 · exact hz j hj q (Finset.mem_inter.mp hq).2 · exact hz a ha'.1 q ha'.2.2.2 · exact hz b hb'.1 q hb'.2.2.2 have hc := (Finset.card_le_card hsub).trans (hdegree q) rw [Finset.card_union_of_disjoint hKZ, (hK i hi j hj hij).1, hZ] at hc omega