definition
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
Definition
For a finite simple graph, a vertex has degree at most when its neighbourhood has at most vertices. A graph has maximum degree at most when this holds at every vertex.
The definition is phrased through a finite set representing the neighbourhood. It therefore does not require choosing a decidable adjacency relation.
Lean source view on GitHub
| 1 | import Mathlib.Combinatorics.SimpleGraph.Finite |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Degree bounds |
| 6 | type: definition |
| 7 | --- |
| 8 | For a finite simple graph, a vertex has degree at most \(d\) when its |
| 9 | neighbourhood has at most \(d\) vertices. A graph has maximum degree at most |
| 10 | \(d\) when this holds at every vertex. |
| 11 | |
| 12 | The definition is phrased through a finite set representing the neighbourhood. |
| 13 | It therefore does not require choosing a decidable adjacency relation. |
| 14 | -/ |
| 15 | |
| 16 | namespace Lax17.Degree |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | /-- `N` is the neighbourhood of `v` in `G`. -/ |
| 21 | def IsNeighbourhood {V : Type u} (G : SimpleGraph V) (v : V) |
| 22 | (N : Finset V) : Prop := |
| 23 | ∀ w : V, w ∈ N ↔ G.Adj v w |
| 24 | |
| 25 | /-- The degree of `v` in `G` is at most `d`. -/ |
| 26 | def AtMost {V : Type u} (G : SimpleGraph V) (v : V) (d : ℕ) : Prop := |
| 27 | ∃ N : Finset V, IsNeighbourhood G v N ∧ N.card ≤ d |
| 28 | |
| 29 | /-- The degree of `v` in `G` is exactly `d`. -/ |
| 30 | def Exactly {V : Type u} (G : SimpleGraph V) (v : V) (d : ℕ) : Prop := |
| 31 | ∃ N : Finset V, IsNeighbourhood G v N ∧ N.card = d |
| 32 | |
| 33 | /-- Every vertex of `G` has degree at most `d`. -/ |
| 34 | def MaximumAtMost {V : Type u} (G : SimpleGraph V) (d : ℕ) : Prop := |
| 35 | ∀ v : V, AtMost G v d |
| 36 | |
| 37 | end Lax17.Degree |
| 38 |
Builds on
none
Used by
From Mathlib
Community review
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above; your ORCID profile must share a public name.
0 comments