Interval representations
Lax560391.IntervalRepresentation · concepts/Lax560391/IntervalRepresentation.lean · lax-560391
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
An interval representation assigns a nonempty closed real interval to each vertex, with adjacency exactly when two distinct vertices have intersecting intervals. Point intervals and repeated intervals are allowed.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Combinatorics.SimpleGraph.Basic |
| 2 | import Mathlib.Data.Real.Basic |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Interval representations |
| 7 | type: definition |
| 8 | --- |
| 9 | An interval representation assigns a nonempty closed real interval to each |
| 10 | vertex, with adjacency exactly when two distinct vertices have intersecting |
| 11 | intervals. Point intervals and repeated intervals are allowed. |
| 12 | -/ |
| 13 | |
| 14 | namespace Lax560391.IntervalRepresentation |
| 15 | |
| 16 | structure IntervalRepresentation {V : Type} (G : SimpleGraph V) where |
| 17 | lo : V → ℝ |
| 18 | hi : V → ℝ |
| 19 | nonempty : ∀ v, lo v ≤ hi v |
| 20 | represents : ∀ u v, u ≠ v → |
| 21 | (G.Adj u v ↔ lo u ≤ hi v ∧ lo v ≤ hi u) |
| 22 | |
| 23 | end Lax560391.IntervalRepresentation |
| 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