The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V30. Combinatorics

Mathlib.Combinatorics.SimpleGraph.CycleGraph

29 declarations and 2 deprecated aliases. Mathlib docs · Source

theorem SimpleGraph.cycleGraph.match_1.congr_eq_3 E1 #

∀ (motive : ℕ → Sort u_1) (x : ℕ) (h_1 : Unit → motive 0) (h_2 : Unit → motive 1) (h_3 : (n : ℕ) → motive n.succ.succ)
  (n : ℕ),
  x = n.succ.succ →
    (match x with
      | 0 => h_1 ()
      | 1 => h_2 ()
      | n.succ.succ => h_3 n) ≍
      h_3 n

theorem SimpleGraph.cycleGraph.match_1.congr_eq_1 E1 #

∀ (motive : ℕ → Sort u_1) (x : ℕ) (h_1 : Unit → motive 0) (h_2 : Unit → motive 1) (h_3 : (n : ℕ) → motive n.succ.succ),
  x = 0 →
    (match x with
      | 0 => h_1 ()
      | 1 => h_2 ()
      | n.succ.succ => h_3 n) ≍
      h_1 ()

theorem SimpleGraph.cycleGraph.match_1.congr_eq_2 E1 #

∀ (motive : ℕ → Sort u_1) (x : ℕ) (h_1 : Unit → motive 0) (h_2 : Unit → motive 1) (h_3 : (n : ℕ) → motive n.succ.succ),
  x = 1 →
    (match x with
      | 0 => h_1 ()
      | 1 => h_2 ()
      | n.succ.succ => h_3 n) ≍
      h_2 ()

def SimpleGraph.cycleGraph E1 #

(n : ℕ) → SimpleGraph (Fin n)

Cycle graph over Fin n

instance SimpleGraph.instDecidableRelFinAdjCycleGraph E0 #

(n : ℕ) → DecidableRel (SimpleGraph.cycleGraph n).Adj

theorem SimpleGraph.cycleGraph_zero_adj E1 #

∀ {u v : Fin 0}, ¬(SimpleGraph.cycleGraph 0).Adj u v

theorem SimpleGraph.cycleGraph_zero_eq_bot E1 #

SimpleGraph.cycleGraph 0 = ⊥

theorem SimpleGraph.cycleGraph_one_eq_bot E1 #

SimpleGraph.cycleGraph 1 = ⊥

theorem SimpleGraph.cycleGraph_zero_eq_top E1 #

SimpleGraph.cycleGraph 0 = ⊤

theorem SimpleGraph.cycleGraph_one_eq_top E1 #

SimpleGraph.cycleGraph 1 = ⊤

theorem SimpleGraph.cycleGraph_one_adj E1 #

∀ {u v : Fin 1}, ¬(SimpleGraph.cycleGraph 1).Adj u v

theorem SimpleGraph.cycleGraph_adj E1 #

∀ {n : ℕ} {u v : Fin (n + 2)}, (SimpleGraph.cycleGraph (n + 2)).Adj u v ↔ u - v = 1 ∨ v - u = 1

theorem SimpleGraph.cycleGraph_adj' E1 #

∀ {n : ℕ} {u v : Fin n}, (SimpleGraph.cycleGraph n).Adj u v ↔ ↑(u - v) = 1 ∨ ↑(v - u) = 1

theorem SimpleGraph.cycleGraph_eq_top_iff E0 #

∀ {n : ℕ}, SimpleGraph.cycleGraph n = ⊤ ↔ n ≤ 3

theorem SimpleGraph.cycleGraph_two_eq_top E1 #

SimpleGraph.cycleGraph 2 = ⊤

theorem SimpleGraph.cycleGraph_three_eq_top E1 #

SimpleGraph.cycleGraph 3 = ⊤

theorem SimpleGraph.cycleGraph_neighborSet E1 #

∀ {n : ℕ} {v : Fin (n + 2)}, (SimpleGraph.cycleGraph (n + 2)).neighborSet v = {v - 1, v + 1}

theorem SimpleGraph.cycleGraph_neighborFinset E1 #

∀ {n : ℕ} {v : Fin (n + 2)}, (SimpleGraph.cycleGraph (n + 2)).neighborFinset v = {v - 1, v + 1}

theorem SimpleGraph.cycleGraph_degree_two_le E1 #

∀ {n : ℕ} {v : Fin (n + 2)}, (SimpleGraph.cycleGraph (n + 2)).degree v = {v - 1, v + 1}.card

theorem SimpleGraph.cycleGraph_degree_three_le E1 #

∀ {n : ℕ} {v : Fin (n + 3)}, (SimpleGraph.cycleGraph (n + 3)).degree v = 2

def SimpleGraph.cycleGraph.cycle E1 #

(n : ℕ) → (SimpleGraph.cycleGraph (n + 3)).Walk 0 0

The Eulerian cycle of cycleGraph (n + 3)

theorem SimpleGraph.cycleGraph.length_cycle E0 #

∀ {n : ℕ}, (SimpleGraph.cycleGraph.cycle n).length = n + 3

theorem SimpleGraph.cycleGraph.getVert_cycle E1 #

∀ {n m : ℕ}, m ≤ n + 3 → (SimpleGraph.cycleGraph.cycle n).getVert m = ⟨(n + 3 - m) % (n + 3), ⋯⟩

theorem SimpleGraph.cycleGraph.isPath_tail_cycle E1 #

∀ {n : ℕ}, (SimpleGraph.cycleGraph.cycle n).tail.IsPath

theorem SimpleGraph.cycleGraph.isCycle_cycle E1 #

∀ {n : ℕ}, (SimpleGraph.cycleGraph.cycle n).IsCycle

theorem SimpleGraph.cycleGraph.mem_support_cycle E0 #

∀ {n : ℕ} (u : Fin (n + 3)), u ∈ (SimpleGraph.cycleGraph.cycle n).support

theorem SimpleGraph.preconnected_cycleGraph E1 #

∀ {n : ℕ}, (SimpleGraph.cycleGraph n).Preconnected

theorem SimpleGraph.connected_cycleGraph_add_one E1 #

∀ {n : ℕ}, (SimpleGraph.cycleGraph (n + 1)).Connected

theorem SimpleGraph.cycleGraph_isContained_iff E0 #

∀ {V : Type u_1} {G : SimpleGraph V} {n : ℕ},
  2 < n → ((SimpleGraph.cycleGraph n).IsContained G ↔ ∃ v p, p.IsCycle ∧ p.length = n)

Deprecated aliases

NameNew nameSince
SimpleGraph.cycleGraph_connectedSimpleGraph.connected_cycleGraph_add_one2026-10-01
SimpleGraph.cycleGraph_preconnectedSimpleGraph.preconnected_cycleGraph2026-10-01