Degeneracy
Lax825442.Degeneracy · concepts/Lax825442/Degeneracy.lean · lax-825442
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
Degeneracy is the least k such that every nonempty induced subgraph has a vertex of degree at most k.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Combinatorics.SimpleGraph.Acyclic |
| 2 | import Mathlib.Combinatorics.SimpleGraph.Finite |
| 3 | import Mathlib.Order.Lattice.Nat |
| 4 | |
| 5 | /-! |
| 6 | --- |
| 7 | title: Degeneracy |
| 8 | type: definition |
| 9 | --- |
| 10 | Degeneracy is the least k such that every nonempty induced subgraph has a |
| 11 | vertex of degree at most k. |
| 12 | -/ |
| 13 | |
| 14 | namespace Lax825442.Degeneracy |
| 15 | |
| 16 | /-- Every nonempty induced subgraph has a vertex of degree at most `k`. -/ |
| 17 | def HasDegeneracyAtMost {V : Type} [Fintype V] [DecidableEq V] |
| 18 | (G : SimpleGraph V) (k : ℕ) : Prop := |
| 19 | ∀ S : Finset V, S.Nonempty → |
| 20 | (∃ v : V, v ∈ S ∧ |
| 21 | ({u : V | u ∈ S ∧ G.Adj v u}.ncard ≤ k)) |
| 22 | |
| 23 | /-- The least degeneracy bound. -/ |
| 24 | noncomputable def degeneracy {V : Type} [Fintype V] [DecidableEq V] |
| 25 | (G : SimpleGraph V) : ℕ := |
| 26 | sInf {k | HasDegeneracyAtMost G k} |
| 27 | |
| 28 | end Lax825442.Degeneracy |
| 29 |
Builds on
none
Used by
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments