Box representations
Lax560391.BoxRepresentation · concepts/Lax560391/BoxRepresentation.lean · lax-560391
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
A box representation assigns a nonempty closed axis-parallel real box to each vertex, with adjacency exactly when the boxes intersect. The dimension may be zero, in which case the represented graph is complete.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Combinatorics.SimpleGraph.Basic |
| 2 | import Mathlib.Data.Real.Basic |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Box representations |
| 7 | type: definition |
| 8 | --- |
| 9 | A box representation assigns a nonempty closed axis-parallel real box to |
| 10 | each vertex, with adjacency exactly when the boxes intersect. The dimension |
| 11 | may be zero, in which case the represented graph is complete. |
| 12 | -/ |
| 13 | |
| 14 | namespace Lax560391.BoxRepresentation |
| 15 | |
| 16 | structure BoxRepresentation {V : Type} (G : SimpleGraph V) (k : ℕ) where |
| 17 | lo : V → Fin k → ℝ |
| 18 | hi : V → Fin k → ℝ |
| 19 | nonempty : ∀ v i, lo v i ≤ hi v i |
| 20 | represents : ∀ u v, u ≠ v → |
| 21 | (G.Adj u v ↔ ∀ i, lo u i ≤ hi v i ∧ lo v i ≤ hi u i) |
| 22 | |
| 23 | end Lax560391.BoxRepresentation |
| 24 |
Builds on
none
Used by
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments