AFTD Auto-Formalizing Theoretical Domains

cycleGraph_three_no_cooperative_coloring

theoremverifiedformalization

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
Used by 1

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.

  1. 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.

    line 4

      rintro ⟨I₁, I₂, h₁, h₂, hunion⟩
  2. 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`.

    line 5

      have adj_all : ∀ a b : Fin 3, a ≠ b → (SimpleGraph.cycleGraph 3).Adj a b := by decide
  3. 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.

    lines 6–9

      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)
  4. 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`.

    lines 10–11

    uses Set.mem_univ

      have hmem : ∀ x : Fin 3, x ∈ I₁ ∪ I₂ := fun x => by
        rw [hunion]; exact Set.mem_univ x
  5. 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.

    lines 12–19

    uses Set.mem_union

      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)
  6. 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.

    lines 20–26

    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.

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

/-- 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
See it in the graphDiscuss this resultChallenge it