op309_closed_host_rows_force_five_core
A nonempty closed family of path classes whose two three-class host rows intersect only in the given class, with at most one class per path in each row, forces a five-core and hence is not four-degenerate.
Statement
theorem op309_closed_host_rows_force_five_core {P H A : Type*} [Fintype P] [DecidableEq P] [DecidableEq H] [DecidableEq A] [Nonempty P] (Q : SimpleGraph A) (q : P × Fin 2 → A) (hq : Function.Injective q) (rows : H → Finset (P × Fin 2)) (host : (P × Fin 2) → Fin 2 → H) (hcard : ∀ h, (rows h).card = 3) (hmem : ∀ x j, x ∈ rows (host x j)) (hpath : ∀ h x y, x ∈ rows h → y ∈ rows h → x.1 = y.1 → x = y) (hinter : ∀ x y, y ∈ rows (host x 0) → y ∈ rows (host x 1) → y = x) (hclique : ∀ h x y, x ∈ rows h → y ∈ rows h → x ≠ y → Q.Adj (q x) (q y)) (hpartner : ∀ p i, Q.Adj (q (p,i)) (q (p,1-i))) : ¬ op309_graph_four_degenerate Q
- Source
- Pairing-independent pure-host five-core argument for OP-309, experiments 42690, 42839 and 42840.
- Verified
- 29 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- op309_graph_four_degenerateEvery nonempty finite induced subgraph has a vertex with at most four neighbors in that subgraph.
The proof, explained
The proof proceeds by contradiction, assuming that the graph Q is 4-degenerate. We consider the induced subgraph on the image of q and select a vertex q(x) whose neighbourhood in this subgraph is covered by a set T of at most 4 vertices. We then construct five explicit, pairwise distinct neighbours of q(x) in the subgraph: the two remaining vertices in each of the two 3-class host rows containing x, and the partner class of x on the same path. Because these five vertices form a 5-element subset of T, we obtain the contradiction 5 ≤ |T| ≤ 4.
Assuming Q is 4-degenerate, there exists a vertex q(x) in the image of q whose neighbours in that image are covered by a set T of size at most 4.
We assume for contradiction that Q is 4-degenerate (hdeg). Let S be the image of q over the entire domain P × Fin 2. Since P is nonempty, S is nonempty, so 4-degeneracy guarantees a vertex v ∈ S and a set T of size at most 4 containing all neighbours of v in S. Since v ∈ S, we can write v = q(x) for some class x.
uses
Finset.mem_image.mpr,Finset.mem_univ,Finset.mem_image.mpclassical intro hdeg let S : Finset A := Finset.univ.image q obtain ⟨p⟩ := ‹Nonempty P› have hS : S.Nonempty := ⟨q (p,0), Finset.mem_image.mpr ⟨(p,0), Finset.mem_univ _, rfl⟩⟩ obtain ⟨v,hv,T,hT,hcover⟩ := hdeg S hS obtain ⟨x,_,rfl⟩ := Finset.mem_image.mp hv
The two punctured host rows A0 and A1 each have size 2, and the partner class other = (x.1, 1 - x.2) is distinct from x.
We define A0 and A1 as the two host rows of x with x removed, and other as the partner class on the same path x.1 with the flipped index 1 - x.2. Since each host row has 3 elements (hcard) and contains x (hmem), removing x leaves sets of size 2. Evaluating both cases for the index x.2 ∈ {0, 1} shows other ≠ x.
let A0 := (rows (host x 0)).erase x let A1 := (rows (host x 1)).erase x let other : P × Fin 2 := (x.1, 1-x.2) have hother : other ≠ x := by rcases x with ⟨p,i⟩ fin_cases i <;> simp [other] have hc0 : A0.card = 2 := by simp [A0, hmem, hcard] have hc1 : A1.card = 2 := by simp [A1, hmem, hcard]
The sets A0 and A1 are disjoint, and neither contains other.
If y belonged to both A0 and A1, it would belong to both host rows of x, so hinter would force y = x, contradicting y ∈ A0. Similarly, if other belonged to A0 (or A1), then other and x would be in the same host row while sharing the same path component other.1 = x.1; by hpath, this would force other = x, contradicting other ≠ x.
uses
Finset.disjoint_left.mpr,Finset.mem_erase,Finset.mem_erase.mphave hd : Disjoint A0 A1 := by apply Finset.disjoint_left.mpr intro y hy0 hy1 simp only [A0, Finset.mem_erase] at hy0 simp only [A1, Finset.mem_erase] at hy1 exact hy0.1 (hinter x y hy0.2 hy1.2) have hn0 : other ∉ A0 := by intro ho have hr : other ∈ rows (host x 0) := (Finset.mem_erase.mp ho).2 exact hother (hpath _ other x hr (hmem x 0) rfl) have hn1 : other ∉ A1 := by intro ho have hr : other ∈ rows (host x 1) := (Finset.mem_erase.mp ho).2 exact hother (hpath _ other x hr (hmem x 1) rfl)
The set N = {other} ∪ A0 ∪ A1 has cardinality 5.
Since other does not belong to A0 ∪ A1, N is the disjoint union of {other} and A0 ∪ A1. Since A0 and A1 are disjoint sets each of size 2, their union has size 4, making |N| = 1 + 4 = 5.
uses
Finset.card_union_of_disjointlet N : Finset (P × Fin 2) := insert other (A0 ∪ A1) have hNcard : N.card = 5 := by have hn : other ∉ A0 ∪ A1 := by simp [hn0,hn1] simp [N, hn, Finset.card_union_of_disjoint hd, hc0, hc1]
For every y ∈ N, the vertex q(y) is adjacent to q(x) in Q.
We check the three possibilities for y ∈ N: if y = other, adjacency follows from the partner hypothesis hpartner; if y ∈ A0, then x ≠ y and both lie in the host row host(x, 0), so adjacency follows from the clique hypothesis hclique; and if y ∈ A1, adjacency follows analogously from host(x, 1).
uses
Finset.mem_insert,Finset.mem_union,Finset.mem_erase.mp,Ne.symmhave hNadj : ∀ y ∈ N, Q.Adj (q x) (q y) := by intro y hy simp only [N, Finset.mem_insert, Finset.mem_union] at hy rcases hy with rfl | hy | hy · rcases x with ⟨p,i⟩ exact hpartner p i · have hh := Finset.mem_erase.mp hy exact hclique _ x y (hmem x 0) hh.2 (Ne.symm hh.1) · have hh := Finset.mem_erase.mp hy exact hclique _ x y (hmem x 1) hh.2 (Ne.symm hh.1)
The image q(N) is a subset of T with cardinality 5, which contradicts |T| ≤ 4. automation
For each y ∈ N, q(y) is an element of S that is adjacent to q(x), so the covering property of T ensures q(y) ∈ T. Thus q(N) ⊆ T, so |q(N)| ≤ |T|. Because q is injective, |q(N)| = |N| = 5. Combined with |T| ≤ 4, this gives 5 ≤ 4, an impossible inequality that concludes the proof by contradiction.
uses
Finset.mem_image.mp,Finset.mem_image.mpr,Finset.mem_univ,Finset.card_le_card,Finset.card_image_iff.mprhave hsub : N.image q ⊆ T := by intro z hz obtain ⟨y,hy,rfl⟩ := Finset.mem_image.mp hz apply hcover (q y) · exact Finset.mem_image.mpr ⟨y,Finset.mem_univ _,rfl⟩ · exact hNadj y hy have hle := Finset.card_le_card hsub have himage : (N.image q).card = N.card := Finset.card_image_iff.mpr (fun _ _ _ _ h => hq h) omega
Finset.mem_image.mpr- If an element is the image of some element in a finite set s under f, then it belongs to the image of s under f.
Finset.mem_image.mp- If an element belongs to the image of a finite set s under f, then it equals f(a) for some a in s.
Finset.mem_univ- Every element of a finite type belongs to the universal finite set univ.
Finset.disjoint_left.mpr- Two finite sets are disjoint if no element of the first set belongs to the second set.
Finset.mem_erase- An element belongs to s with b removed if and only if it is distinct from b and belongs to s.
Finset.mem_erase.mp- If an element belongs to s with b removed, then it is distinct from b and belongs to s.
Finset.card_union_of_disjoint- The cardinality of the union of two disjoint finite sets is the sum of their cardinalities.
Finset.mem_insert- An element belongs to the insertion of b into s if and only if it equals b or belongs to s.
Finset.mem_union- An element belongs to the union of two finite sets if and only if it belongs to at least one of them.
Ne.symm- Inequality is symmetric: if a ≠ b, then b ≠ a.
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.
Finset.card_image_iff.mpr- If a function is injective on a finite set s, then the image of s has the same cardinality as s.
- The property op309_graph_four_degenerate Q formally states that every non-empty finite vertex set S contains a vertex v whose neighbours in S are covered by a finite set T of cardinality at most 4; this is equivalent to saying that the induced subgraph on S has minimum degree at most 4.
- In line 63, the automated tactic omega derives the final contradiction from the linear integer constraints |N| = 5, |q(N)| = |N|, |q(N)| ≤ |T|, and |T| ≤ 4.
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 op309_closed_host_rows_force_five_core {P H A : Type*} [Fintype P] [DecidableEq P] [DecidableEq H] [DecidableEq A] [Nonempty P] (Q : SimpleGraph A) (q : P × Fin 2 → A) (hq : Function.Injective q) (rows : H → Finset (P × Fin 2)) (host : (P × Fin 2) → Fin 2 → H) (hcard : ∀ h, (rows h).card = 3) (hmem : ∀ x j, x ∈ rows (host x j)) (hpath : ∀ h x y, x ∈ rows h → y ∈ rows h → x.1 = y.1 → x = y) (hinter : ∀ x y, y ∈ rows (host x 0) → y ∈ rows (host x 1) → y = x) (hclique : ∀ h x y, x ∈ rows h → y ∈ rows h → x ≠ y → Q.Adj (q x) (q y)) (hpartner : ∀ p i, Q.Adj (q (p,i)) (q (p,1-i))) : ¬ op309_graph_four_degenerate Q := by classical intro hdeg let S : Finset A := Finset.univ.image q obtain ⟨p⟩ := ‹Nonempty P› have hS : S.Nonempty := ⟨q (p,0), Finset.mem_image.mpr ⟨(p,0), Finset.mem_univ _, rfl⟩⟩ obtain ⟨v,hv,T,hT,hcover⟩ := hdeg S hS obtain ⟨x,_,rfl⟩ := Finset.mem_image.mp hv let A0 := (rows (host x 0)).erase x let A1 := (rows (host x 1)).erase x let other : P × Fin 2 := (x.1, 1-x.2) have hother : other ≠ x := by rcases x with ⟨p,i⟩ fin_cases i <;> simp [other] have hc0 : A0.card = 2 := by simp [A0, hmem, hcard] have hc1 : A1.card = 2 := by simp [A1, hmem, hcard] have hd : Disjoint A0 A1 := by apply Finset.disjoint_left.mpr intro y hy0 hy1 simp only [A0, Finset.mem_erase] at hy0 simp only [A1, Finset.mem_erase] at hy1 exact hy0.1 (hinter x y hy0.2 hy1.2) have hn0 : other ∉ A0 := by intro ho have hr : other ∈ rows (host x 0) := (Finset.mem_erase.mp ho).2 exact hother (hpath _ other x hr (hmem x 0) rfl) have hn1 : other ∉ A1 := by intro ho have hr : other ∈ rows (host x 1) := (Finset.mem_erase.mp ho).2 exact hother (hpath _ other x hr (hmem x 1) rfl) let N : Finset (P × Fin 2) := insert other (A0 ∪ A1) have hNcard : N.card = 5 := by have hn : other ∉ A0 ∪ A1 := by simp [hn0,hn1] simp [N, hn, Finset.card_union_of_disjoint hd, hc0, hc1] have hNadj : ∀ y ∈ N, Q.Adj (q x) (q y) := by intro y hy simp only [N, Finset.mem_insert, Finset.mem_union] at hy rcases hy with rfl | hy | hy · rcases x with ⟨p,i⟩ exact hpartner p i · have hh := Finset.mem_erase.mp hy exact hclique _ x y (hmem x 0) hh.2 (Ne.symm hh.1) · have hh := Finset.mem_erase.mp hy exact hclique _ x y (hmem x 1) hh.2 (Ne.symm hh.1) have hsub : N.image q ⊆ T := by intro z hz obtain ⟨y,hy,rfl⟩ := Finset.mem_image.mp hz apply hcover (q y) · exact Finset.mem_image.mpr ⟨y,Finset.mem_univ _,rfl⟩ · exact hNadj y hy have hle := Finset.card_le_card hsub have himage : (N.image q).card = N.card := Finset.card_image_iff.mpr (fun _ _ _ _ h => hq h) omega