Lax195003.WelzlOrdersNeighborhoodSetSystem
Neighborhood set systems of graphs
concepts/Lax195003/WelzlOrdersNeighborhoodSetSystem.lean · lax-195003
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
Definition
For a graph and a radius k, its neighborhood set system consists of the open k-neighborhood of every vertex. The open k-neighborhood of a vertex contains every other vertex reachable from it by a walk of length at most k.
Lean source view on GitHub
| 1 | import Lax195003.WelzlOrders |
| 2 | import Mathlib.Combinatorics.SimpleGraph.Walk.Basic |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Neighborhood set systems of graphs |
| 7 | type: definition |
| 8 | --- |
| 9 | For a graph and a radius *k*, its neighborhood set system consists of the |
| 10 | open *k*-neighborhood of every vertex. The open *k*-neighborhood of a vertex |
| 11 | contains every other vertex reachable from it by a walk of length at most |
| 12 | *k*. |
| 13 | |
| 14 | # Formalization notes |
| 15 | |
| 16 | The center vertex is excluded explicitly, so the radius-one instance is the |
| 17 | ordinary open neighborhood set system of a simple graph. |
| 18 | -/ |
| 19 | |
| 20 | namespace Lax195003.WelzlOrdersNeighborhoodSetSystem |
| 21 | |
| 22 | open Lax195003.WelzlOrders |
| 23 | |
| 24 | /-- The neighborhood set system of a graph at radius `k`: the open |
| 25 | `k`-neighborhood of every vertex. -/ |
| 26 | def neighborhoodSetSystem {n : ℕ} (G : SimpleGraph (Fin n)) (k : ℕ) : |
| 27 | SetSystem (Fin n) := |
| 28 | {X | ∃ v : Fin n, X = |
| 29 | {u : Fin n | u ≠ v ∧ ∃ w : G.Walk v u, w.length ≤ k}} |
| 30 | |
| 31 | end Lax195003.WelzlOrdersNeighborhoodSetSystem |
| 32 |
Formalization notes
The center vertex is excluded explicitly, so the radius-one instance is the ordinary open neighborhood set system of a simple graph.
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