cycleGraph_is_cycle_factor
For any integer ℓ ≥ 3, the cycle graph of length ℓ is a C_ℓ-factor on its vertex set.
Statement
theorem cycleGraph_is_cycle_factor (ℓ : ℕ) (hℓ : 3 ≤ ℓ) :
is_cycle_factor (SimpleGraph.cycleGraph ℓ) ℓ- Source
- folklore
- Verified
- 27 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- is_cycle_factorA simple graph is a uniform cycle factor of length ℓ (a C_ℓ-factor) if each of its connected components is isomorphic to the cycle graph…
- 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
For any natural number ℓ such that 3 ≤ ℓ, the cycle graph on ℓ vertices (SimpleGraph.cycleGraph ℓ) satisfies is_cycle_factor with parameter ℓ; that is, every connected component of SimpleGraph.cycleGraph ℓ induces a subgraph that is isomorphic to SimpleGraph.cycleGraph ℓ.
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 the cycle graph C_ℓ is a C_ℓ-factor, we must show that every connected component induces a subgraph isomorphic to C_ℓ. Since the cycle graph is preconnected, any connected component contains every vertex of the graph. The induced subgraph on the component is therefore the full cycle graph itself, which provides the desired isomorphism.
To show that the cycle graph C_ℓ is a C_ℓ-factor, it suffices to consider an arbitrary connected component c.
By definition, a graph is a C_ℓ-factor if the subgraph induced on each of its connected components is isomorphic to C_ℓ. We introduce an arbitrary connected component c of the cycle graph.
have _ := hℓ intro c
The cycle graph C_ℓ is preconnected.
Any two vertices in the cycle graph are reachable from one another, as stated by SimpleGraph.cycleGraph_preconnected.
uses
SimpleGraph.cycleGraph_preconnectedhave hprec : (SimpleGraph.cycleGraph ℓ).Preconnected := SimpleGraph.cycleGraph_preconnectedThe component c contains every vertex of the cycle graph.
Representing the component c by some vertex w via c.exists_rep, preconnectedness ensures that any vertex v is reachable from w. By SimpleGraph.ConnectedComponent.sound, v and w belong to the same component, meaning v is in the support of c. Thus, the support of c is the entire vertex set Set.univ.
uses
c.exists_rep,Set.mem_univ,iff_true,SimpleGraph.ConnectedComponent.soundhave hsupp : c.supp = (Set.univ : Set (Fin ℓ)) := by obtain ⟨w, rfl⟩ := c.exists_rep ext v simp only [Set.mem_univ, iff_true] exact SimpleGraph.ConnectedComponent.sound (hprec v w)
The induced subgraph on c is isomorphic to C_ℓ.
Because the support of c is the universal set, the subgraph induced by c is isomorphic to the subgraph induced on Set.univ. Composing this with the canonical isomorphism SimpleGraph.induceUnivIso between the universal induced subgraph and the full cycle graph yields the required isomorphism.
uses
SimpleGraph.induceUnivIsohave h1 : (SimpleGraph.cycleGraph ℓ).induce c.supp ≃g (SimpleGraph.cycleGraph ℓ).induce Set.univ := by rw [hsupp] exact ⟨h1.trans (SimpleGraph.induceUnivIso _)⟩
SimpleGraph.cycleGraph_preconnected- Any two vertices in a cycle graph are reachable from one another.
c.exists_rep- Every equivalence class in a quotient type has an underlying representative element.
Set.mem_univ- Every element of a type belongs to the universal set of that type.
iff_true- A proposition p is equivalent to True exactly when p is true.
SimpleGraph.ConnectedComponent.sound- If two vertices in a graph are reachable from each other, they belong to the same connected component.
SimpleGraph.induceUnivIso- The subgraph induced on the entire vertex set of a graph is canonically isomorphic to the graph itself.
- The hypothesis 3 ≤ ℓ is acknowledged on line 4 (`have _ := hℓ`) but never used: the cycle graph is preconnected and isomorphic to its universal induced subgraph for all natural numbers ℓ.
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.
/-- For any ℓ ≥ 3, the cycle graph of length ℓ is a C_ℓ-factor. -/theorem cycleGraph_is_cycle_factor (ℓ : ℕ) (hℓ : 3 ≤ ℓ) : is_cycle_factor (SimpleGraph.cycleGraph ℓ) ℓ := by have _ := hℓ intro c have hprec : (SimpleGraph.cycleGraph ℓ).Preconnected := SimpleGraph.cycleGraph_preconnected have hsupp : c.supp = (Set.univ : Set (Fin ℓ)) := by obtain ⟨w, rfl⟩ := c.exists_rep ext v simp only [Set.mem_univ, iff_true] exact SimpleGraph.ConnectedComponent.sound (hprec v w) have h1 : (SimpleGraph.cycleGraph ℓ).induce c.supp ≃g (SimpleGraph.cycleGraph ℓ).induce Set.univ := by rw [hsupp] exact ⟨h1.trans (SimpleGraph.induceUnivIso _)⟩