Neighborhood set system
Lax683916.NeighborhoodSetSystems · concepts/Lax683916/NeighborhoodSetSystems.lean · lax-683916
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
A neighborhood set system on assigns a subset of to every vertex. Membership is symmetric, and no vertex belongs to its own neighborhood.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Data.Set.Basic |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Neighborhood set system |
| 6 | type: definition |
| 7 | --- |
| 8 | A neighborhood set system on `V` assigns a subset of `V` to every vertex. |
| 9 | Membership is symmetric, and no vertex belongs to its own neighborhood. |
| 10 | |
| 11 | # Formalization notes |
| 12 | |
| 13 | The family is indexed by `V`, rather than represented only by its range as a |
| 14 | `Set (Set V)`. Keeping the index records which vertex owns each neighborhood |
| 15 | and permits distinct vertices to have equal neighborhoods. The two laws are |
| 16 | exactly symmetry and irreflexivity of the associated membership relation. |
| 17 | -/ |
| 18 | |
| 19 | namespace Lax683916.NeighborhoodSetSystems |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | /-- A vertex-indexed family of open neighborhoods. -/ |
| 24 | structure NeighborhoodSetSystem (V : Type u) where |
| 25 | /-- The open neighborhood assigned to each vertex. -/ |
| 26 | neighborhood : V → Set V |
| 27 | /-- Neighborhood membership is symmetric. -/ |
| 28 | symmetric : ∀ u v : V, v ∈ neighborhood u ↔ u ∈ neighborhood v |
| 29 | /-- A vertex does not belong to its own open neighborhood. -/ |
| 30 | loopless : ∀ u : V, u ∉ neighborhood u |
| 31 | |
| 32 | end Lax683916.NeighborhoodSetSystems |
| 33 |
Formalization notes
The family is indexed by , rather than represented only by its range as a . Keeping the index records which vertex owns each neighborhood and permits distinct vertices to have equal neighborhoods. The two laws are exactly symmetry and irreflexivity of the associated membership relation.
Builds on
none
From Mathlib
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments