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

36 declarations and 2 deprecated aliases. Mathlib docs · Source

def SimpleGraph.egirth E1 #

{α : Type u_1} → SimpleGraph α → ℕ∞

The extended girth of a simple graph is the length of its smallest cycle, or ∞ if the graph is acyclic.

theorem SimpleGraph.le_egirth E0 #

∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ∞}, n ≤ G.egirth ↔ ∀ (a : α) (w : G.Walk a a), w.IsCycle → n ≤ ↑w.length

theorem SimpleGraph.Walk.IsCycle.egirth_le_length E1 #

∀ {α : Type u_1} {G : SimpleGraph α} {a : α} {w : G.Walk a a}, w.IsCycle → G.egirth ≤ ↑w.length

theorem SimpleGraph.Walk.IsCircuit.egirth_le_length E1 #

∀ {α : Type u_1} {G : SimpleGraph α} {a : α} {w : G.Walk a a}, w.IsCircuit → G.egirth ≤ ↑w.length

theorem SimpleGraph.egirth_eq_top E0 #

∀ {α : Type u_1} {G : SimpleGraph α}, G.egirth = ⊤ ↔ G.IsAcyclic

theorem SimpleGraph.IsAcyclic.egirth_eq_top E1 #

∀ {α : Type u_1} {G : SimpleGraph α}, G.IsAcyclic → G.egirth = ⊤

Alias of the reverse direction of SimpleGraph.egirth_eq_top.

theorem SimpleGraph.egirth_anti E1 #

∀ {α : Type u_1}, Antitone SimpleGraph.egirth

theorem SimpleGraph.exists_egirth_eq_length E1 #

∀ {α : Type u_1} {G : SimpleGraph α}, (∃ a w, w.IsCycle ∧ G.egirth = ↑w.length) ↔ ¬G.IsAcyclic

theorem SimpleGraph.three_le_egirth E1 #

∀ {α : Type u_1} {G : SimpleGraph α}, 3 ≤ G.egirth

theorem SimpleGraph.egirth_bot E0 #

∀ {α : Type u_1}, ⊥.egirth = ⊤

theorem SimpleGraph.egirth_top E1 #

∀ {α : Type u_1}, 3 ≤ ENat.card α → ⊤.egirth = 3

theorem SimpleGraph.egirth_le_two_mul_ediam_add_one E1 #

∀ {α : Type u_1} {G : SimpleGraph α}, ¬G.IsAcyclic → G.egirth ≤ 2 * G.ediam + 1

theorem SimpleGraph.IsContained.egirth_le E1 #

∀ {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} {G' : SimpleGraph β}, G.IsContained G' → G'.egirth ≤ G.egirth

theorem SimpleGraph.Iso.egirth_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} {G' : SimpleGraph β} (f : G ≃g G'), G.egirth = G'.egirth

def SimpleGraph.girth E1 #

{α : Type u_1} → SimpleGraph α → ℕ

The girth of a simple graph is the length of its smallest cycle, or junk value 0 if the graph is acyclic.

theorem SimpleGraph.girth_eq_toNat_egirth E1 #

∀ {α : Type u_1} (G : SimpleGraph α), G.girth = G.egirth.toNat

theorem SimpleGraph.natCast_girth_le_egirth E1 #

∀ {α : Type u_1} {G : SimpleGraph α}, ↑G.girth ≤ G.egirth

theorem SimpleGraph.natCast_girth_eq_egirth_iff E0 #

∀ {α : Type u_1} {G : SimpleGraph α}, ↑G.girth = G.egirth ↔ ¬G.IsAcyclic

theorem SimpleGraph.girth_eq_iff_egirth_eq E0 #

∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ}, G.girth = n ↔ G.egirth = ↑n ∨ n = 0 ∧ G.IsAcyclic

theorem SimpleGraph.girth_eq_iff_egirth_eq_of_ne_zero E1 #

∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ}, n ≠ 0 → (G.girth = n ↔ G.egirth = ↑n)

theorem SimpleGraph.girth_eq_iff_of_not_isAcyclic E1 #

∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ}, ¬G.IsAcyclic → (G.girth = n ↔ G.egirth = ↑n)

theorem SimpleGraph.le_girth_iff_natCast_le_egirth E0 #

∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ}, n ≤ G.girth ↔ ↑n ≤ G.egirth ∧ (n = 0 ∨ ¬G.IsAcyclic)

theorem SimpleGraph.le_girth E1 #

∀ {α : Type u_1} {G : SimpleGraph α} {n : ℕ},
  n ≤ G.girth ↔ (n = 0 ∨ ¬G.IsAcyclic) ∧ ∀ (a : α) (w : G.Walk a a), w.IsCycle → n ≤ w.length

theorem SimpleGraph.Walk.IsCycle.girth_le_length E1 #

∀ {α : Type u_1} {G : SimpleGraph α} {a : α} {w : G.Walk a a}, w.IsCycle → G.girth ≤ w.length

theorem SimpleGraph.three_le_girth E1 #

∀ {α : Type u_1} {G : SimpleGraph α}, ¬G.IsAcyclic → 3 ≤ G.girth

theorem SimpleGraph.girth_eq_zero E1 #

∀ {α : Type u_1} {G : SimpleGraph α}, G.girth = 0 ↔ G.IsAcyclic

theorem SimpleGraph.IsAcyclic.girth_eq_zero E1 #

∀ {α : Type u_1} {G : SimpleGraph α}, G.IsAcyclic → G.girth = 0

Alias of the reverse direction of SimpleGraph.girth_eq_zero.

theorem SimpleGraph.girth_anti E1 #

∀ {α : Type u_1} {G G' : SimpleGraph α}, G ≤ G' → ¬G.IsAcyclic → G'.girth ≤ G.girth

theorem SimpleGraph.Walk.IsCircuit.girth_le_length E1 #

∀ {α : Type u_1} {G : SimpleGraph α} {a : α} {w : G.Walk a a}, w.IsCircuit → G.girth ≤ w.length

theorem SimpleGraph.exists_girth_eq_length E1 #

∀ {α : Type u_1} {G : SimpleGraph α}, (∃ a w, w.IsCycle ∧ G.girth = w.length) ↔ ¬G.IsAcyclic

theorem SimpleGraph.girth_le_two_mul_ediam_add_one E1 #

∀ {α : Type u_1} {G : SimpleGraph α}, ↑G.girth ≤ 2 * G.ediam + 1

theorem SimpleGraph.girth_le_two_mul_diam_add_one E1 #

∀ {α : Type u_1} {G : SimpleGraph α}, G.ediam ≠ ⊤ → G.girth ≤ 2 * G.diam + 1

theorem SimpleGraph.girth_bot E0 #

∀ {α : Type u_1}, ⊥.girth = 0

theorem SimpleGraph.girth_top E1 #

∀ {α : Type u_1}, 3 ≤ ENat.card α → ⊤.girth = 3

theorem SimpleGraph.IsContained.girth_le E1 #

∀ {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} {G' : SimpleGraph β},
  G.IsContained G' → ¬G.IsAcyclic → G'.girth ≤ G.girth

theorem SimpleGraph.Iso.girth_eq E0 #

∀ {α : Type u_1} {β : Type u_2} {G : SimpleGraph α} {G' : SimpleGraph β} (f : G ≃g G'), G.girth = G'.girth

Deprecated aliases

NameNew nameSince
SimpleGraph.egirth_le_lengthSimpleGraph.Walk.IsCycle.egirth_le_length2026-07-05
SimpleGraph.girth_le_lengthSimpleGraph.Walk.IsCycle.girth_le_length2026-07-05