While this submission is a draft, it cannot be used by other submissions.

Interval representations

Lax560391.IntervalRepresentation · concepts/Lax560391/IntervalRepresentation.lean · lax-560391

definition

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Natural 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
    1 concept; 2 descendants hidden
    100%
    DefinitionThis conceptRelated conceptA → B: B builds on A

    Lean source view on GitHub

    1import Mathlib.Combinatorics.SimpleGraph.Basic
    2import Mathlib.Data.Real.Basic
    3
    4/-!
    5---
    6title: Interval representations
    7type: definition
    8---
    9An interval representation assigns a nonempty closed real interval to each
    10vertex, with adjacency exactly when two distinct vertices have intersecting
    11intervals. Point intervals and repeated intervals are allowed.
    12-/
    13
    14namespace Lax560391.IntervalRepresentation
    15
    16structure 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
    23end Lax560391.IntervalRepresentation
    24

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…