AFTD Auto-Formalizing Theoretical Domains

bot_has_cooperative_coloring_pair

theoremverified

Two empty (edgeless) graphs on any vertex set admit a cooperative coloring.

Statement

theorem bot_has_cooperative_coloring_pair {V : Type*} :
    has_cooperative_coloring_pair (⊥ : SimpleGraph V) (⊥ : SimpleGraph V)
Source
folklore
Verified
27 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
  • 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…

Read back from the Lean

For any type V, the pair of empty graphs (⊥, ⊥) on vertex set V admits a cooperative coloring pair: there exist subsets I₁, I₂ : Set V such that I₁ is an independent set in ⊥ : SimpleGraph V, I₂ is an independent set in ⊥ : SimpleGraph V, and their union is the entire vertex set Set.univ.

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

To show that two empty graphs on any vertex set admit a cooperative coloring pair, we choose both independent sets to be the entire vertex set V. In an empty graph, no two vertices are connected by an edge, so the entire vertex set is vacuously independent in each graph. Their union V ∪ V is simply V, fulfilling all conditions of the definition.

  1. Choose both color classes to be the entire vertex set.

    A cooperative coloring pair for graphs G₁ and G₂ requires two subsets I₁, I₂ ⊆ V such that I₁ is independent in G₁, I₂ is independent in G₂, and I₁ ∪ I₂ = V. We instantiate both I₁ and I₂ with the universal set Set.univ, leaving three subgoals: independence in the first graph, independence in the second graph, and the covering condition.

    line 4

      refine ⟨Set.univ, Set.univ, ?_, ?_, ?_⟩
  2. The universal set is an independent set in the first empty graph.

    By definition of an independent set, no two distinct vertices in the set may be adjacent. Let x, y ∈ Set.univ be distinct vertices; by SimpleGraph.bot_adj, adjacency in the empty graph ⊥ implies False, so no edges exist and the condition holds vacuously.

    lines 5–6

    uses SimpleGraph.bot_adj

      · intro x _ y _ _
        exact (SimpleGraph.bot_adj x y).mp
  3. The universal set is an independent set in the second empty graph.

    Since the second graph is also the empty graph ⊥, the exact same reasoning applies: SimpleGraph.bot_adj shows that no two distinct vertices are adjacent.

    lines 7–8

    uses SimpleGraph.bot_adj

      · intro x _ y _ _
        exact (SimpleGraph.bot_adj x y).mp
  4. The union of the two sets covers the whole vertex set.

    We need to show Set.univ ∪ Set.univ = Set.univ. This holds immediately by the idempotence of set union, and the simplifier closes the goal.

    line 9

      · simp
SimpleGraph.bot_adj
In the empty graph (⊥), no two vertices are adjacent (adjacency is equivalent to False).

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 empty graphs on any vertex set admit a cooperative coloring. -/theorem bot_has_cooperative_coloring_pair {V : Type*} :    has_cooperative_coloring_pair (⊥ : SimpleGraph V) (⊥ : SimpleGraph V) := by  refine ⟨Set.univ, Set.univ, ?_, ?_, ?_⟩  · intro x _ y _ _    exact (SimpleGraph.bot_adj x y).mp  · intro x _ y _ _    exact (SimpleGraph.bot_adj x y).mp  · simp
See it in the graphDiscuss this resultChallenge it