cycleGraph_three_no_cooperative_coloring
Two copies of the 3-cycle graph on three vertices admit no cooperative coloring.
Statement
theorem cycleGraph_three_no_cooperative_coloring :
¬ has_cooperative_coloring_pair (SimpleGraph.cycleGraph 3) (SimpleGraph.cycleGraph 3)- Formalizes
- arXiv:2611.34299 Lemma 3.4
- Verified
- 27 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- three_token_odd_cycle_matching_bound_negationIt is not the case that for all integers k ≥ 2, the independence number of the 3-token graph of the odd cycle C_{2k+1} is equal to ((2 * k…
- has_cooperative_coloring_pairTwo simple graphs on a common vertex set admit a cooperative coloring if there exist independent sets in each graph whose union covers the…
- Used by 1
- exists_cycle_factors_no_cooperative_coloringFor every integer ℓ ≥ 3, there exist two C_ℓ-factors on a common finite vertex set that admit no cooperative coloring.
Read back from the Lean
There do not exist two subsets $I_1$ and $I_2$ of the vertex set of the 3-cycle graph SimpleGraph.cycleGraph 3 such that $I_1$ is an independent set in SimpleGraph.cycleGraph 3, $I_2$ is an independent set in SimpleGraph.cycleGraph 3, and the union $I_1 \cup I_2$ is the universal set of vertices. In other words, the 3-cycle graph cannot have its vertices covered by two independent sets.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
The theorem is proved by contradiction. A cooperative coloring of two copies of the 3-cycle requires partitioning the three vertices into two sets $I_1$ and $I_2$, each independent in the 3-cycle. However, the 3-cycle on three vertices is isomorphic to the complete graph $K_3$, meaning every independent set can contain at most one vertex; by case analysis on vertex membership, two such independent sets cannot cover all three vertices.
Assume for contradiction that there exists a cooperative coloring pair $(I_1, I_2)$ for two copies of the 3-cycle.
We introduce the negation of the goal, assuming there exist sets $I_1, I_2 \subseteq \operatorname{Fin} 3$ such that each is an independent set in the 3-cycle and their union $I_1 \cup I_2$ equals the entire vertex set.
rintro ⟨I₁, I₂, h₁, h₂, hunion⟩
Any two distinct vertices in the 3-cycle are adjacent. automation
The 3-cycle on three vertices is the complete graph $K_3$, so every pair of distinct vertices forms an edge. Lean checks all pairs exhaustively via `decide`.
have adj_all : ∀ a b : Fin 3, a ≠ b → (SimpleGraph.cycleGraph 3).Adj a b := by decide
An independent set in the 3-cycle cannot contain two distinct vertices.
If an independent set $I$ contained two distinct vertices $a \neq b$, they would have to be non-adjacent by definition of an independent set, directly contradicting the previous step.
have hnot : ∀ (I : Set (Fin 3)), (SimpleGraph.cycleGraph 3).IsIndepSet I → ∀ a b : Fin 3, a ∈ I → b ∈ I → a ≠ b → False := by intro I hI a b ha hb hab exact (hI ha hb hab) (adj_all a b hab)
Every vertex in $\operatorname{Fin} 3$ belongs to $I_1 \cup I_2$.
Since $I_1 \cup I_2$ is assumed to be the universal set, every vertex $x \in \{0, 1, 2\}$ is an element of $I_1 \cup I_2$ by `Set.mem_univ`.
uses
Set.mem_univhave hmem : ∀ x : Fin 3, x ∈ I₁ ∪ I₂ := fun x => by rw [hunion]; exact Set.mem_univ x
Vertex 0 cannot belong to $I_1$.
By `Set.mem_union`, vertex 0 must belong to $I_1$ or $I_2$. In the first branch, suppose $0 \in I_1$. Since $I_1$ cannot contain two distinct vertices, neither 1 nor 2 can be in $I_1$. Because every vertex is covered by $I_1 \cup I_2$, this forces both 1 and 2 to belong to $I_2$. But 1 and 2 are distinct, so they cannot both belong to the independent set $I_2$, a contradiction.
uses
Set.mem_unionrcases (Set.mem_union _ _ _).mp (hmem 0) with h0 | h0 · have h1 : (1 : Fin 3) ∉ I₁ := fun h => hnot I₁ h₁ 0 1 h0 h (by decide) have h2 : (2 : Fin 3) ∉ I₁ := fun h => hnot I₁ h₁ 0 2 h0 h (by decide) rcases (Set.mem_union _ _ _).mp (hmem 1) with h | h · exact h1 h rcases (Set.mem_union _ _ _).mp (hmem 2) with h' | h' · exact h2 h' · exact hnot I₂ h₂ 1 2 h h' (by decide)
Vertex 0 cannot belong to $I_2$, completing the contradiction.
In the second branch, suppose $0 \in I_2$. By symmetric reasoning, neither 1 nor 2 can be in $I_2$, which forces both 1 and 2 into $I_1$. Since 1 and 2 are distinct, this contradicts the independence of $I_1$. Since vertex 0 can belong to neither $I_1$ nor $I_2$, no such covering pair can exist.
uses
Set.mem_union· have h1 : (1 : Fin 3) ∉ I₂ := fun h => hnot I₂ h₂ 0 1 h0 h (by decide) have h2 : (2 : Fin 3) ∉ I₂ := fun h => hnot I₂ h₂ 0 2 h0 h (by decide) rcases (Set.mem_union _ _ _).mp (hmem 1) with h | h · rcases (Set.mem_union _ _ _).mp (hmem 2) with h' | h' · exact hnot I₁ h₁ 1 2 h h' (by decide) · exact h2 h' · exact h1 h
Set.mem_union- An element belongs to the union of two sets if and only if it belongs to the first set or the second set.
Set.mem_univ- Every element of a type belongs to the universal set of that type.
- The fact that every pair of distinct vertices in the 3-cycle is adjacent, as well as the inequalities between distinct indices (0 ≠ 1, 0 ≠ 2, 1 ≠ 2), are checked by Lean's computational evaluator `decide`.
- Rather than invoking the pigeonhole principle on set cardinalities, the formal proof proceeds by an explicit case analysis on which independent set contains each vertex.
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.
/-- Two copies of the 3-cycle on 3 vertices admit no cooperative coloring. -/theorem cycleGraph_three_no_cooperative_coloring : ¬ has_cooperative_coloring_pair (SimpleGraph.cycleGraph 3) (SimpleGraph.cycleGraph 3) := by rintro ⟨I₁, I₂, h₁, h₂, hunion⟩ have adj_all : ∀ a b : Fin 3, a ≠ b → (SimpleGraph.cycleGraph 3).Adj a b := by decide have hnot : ∀ (I : Set (Fin 3)), (SimpleGraph.cycleGraph 3).IsIndepSet I → ∀ a b : Fin 3, a ∈ I → b ∈ I → a ≠ b → False := by intro I hI a b ha hb hab exact (hI ha hb hab) (adj_all a b hab) have hmem : ∀ x : Fin 3, x ∈ I₁ ∪ I₂ := fun x => by rw [hunion]; exact Set.mem_univ x rcases (Set.mem_union _ _ _).mp (hmem 0) with h0 | h0 · have h1 : (1 : Fin 3) ∉ I₁ := fun h => hnot I₁ h₁ 0 1 h0 h (by decide) have h2 : (2 : Fin 3) ∉ I₁ := fun h => hnot I₁ h₁ 0 2 h0 h (by decide) rcases (Set.mem_union _ _ _).mp (hmem 1) with h | h · exact h1 h rcases (Set.mem_union _ _ _).mp (hmem 2) with h' | h' · exact h2 h' · exact hnot I₂ h₂ 1 2 h h' (by decide) · have h1 : (1 : Fin 3) ∉ I₂ := fun h => hnot I₂ h₂ 0 1 h0 h (by decide) have h2 : (2 : Fin 3) ∉ I₂ := fun h => hnot I₂ h₂ 0 2 h0 h (by decide) rcases (Set.mem_union _ _ _).mp (hmem 1) with h | h · rcases (Set.mem_union _ _ _).mp (hmem 2) with h' | h' · exact hnot I₁ h₁ 1 2 h h' (by decide) · exact h2 h' · exact h1 h