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

Distance-hereditary graphs

Lax560391.DistanceHereditaryGraphs · concepts/Lax560391/DistanceHereditaryGraphs.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

    A graph is distance-hereditary if every connected induced subgraph preserves the distances between its vertices. Extended shortest-path distance is used to distinguish disconnected pairs. Empty and disconnected graphs are allowed.

    Concept map
    1 concept; 1 descendant hidden
    100%
    DefinitionThis conceptRelated conceptA → B: B builds on A

    Lean source view on GitHub

    1import Mathlib.Combinatorics.SimpleGraph.Metric
    2
    3/-!
    4---
    5title: Distance-hereditary graphs
    6type: definition
    7---
    8A graph is distance-hereditary if every connected induced subgraph preserves
    9the distances between its vertices. Extended shortest-path distance is used
    10to distinguish disconnected pairs. Empty and disconnected graphs are allowed.
    11-/
    12
    13namespace Lax560391.DistanceHereditaryGraphs
    14
    15/-- Every connected induced subgraph retains the distances of `G`.
    16Extended distance avoids identifying disconnected pairs with distance zero. -/
    17def IsDistanceHereditary {V : Type} (G : SimpleGraph V) : Prop :=
    18 ∀ S : Set V, (G.induce S).Connected →
    19 ∀ u v : S, (G.induce S).edist u v = G.edist u.1 v.1
    20
    21end Lax560391.DistanceHereditaryGraphs
    22

    Discussion

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

    Loading discussion…