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

Block graphs

Lax560391.BlockGraphs · concepts/Lax560391/BlockGraphs.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 block graph is a graph with no induced cycle of length at least four and no induced diamond (a complete four-vertex graph minus one edge). Equivalently, every block is a clique. Empty and disconnected graphs are allowed.

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

    Lean source view on GitHub

    1import Lax560391.ChordalGraphs
    2
    3/-!
    4---
    5title: Block graphs
    6type: definition
    7---
    8A block graph is a graph with no induced cycle of length at least four
    9and no induced diamond (a complete four-vertex graph minus one edge).
    10Equivalently, every block is a clique. Empty and disconnected graphs are allowed.
    11-/
    12
    13namespace Lax560391.BlockGraphs
    14
    15open Lax560391.ChordalGraphs
    16
    17/-- The four vertices induce a diamond, `K₄` with edge `cd` removed. -/
    18def IsInducedDiamond {V : Type} (G : SimpleGraph V) (a b c d : V) : Prop :=
    19 ([a, b, c, d] : List V).Nodup ∧
    20 G.Adj a b ∧ G.Adj a c ∧ G.Adj a d ∧
    21 G.Adj b c ∧ G.Adj b d ∧ ¬ G.Adj c d
    22
    23/-- Block graphs are the chordal, diamond-free graphs. -/
    24def IsBlock {V : Type} (G : SimpleGraph V) : Prop :=
    25 IsChordal G ∧ ¬ ∃ a b c d : V, IsInducedDiamond G a b c d
    26
    27end Lax560391.BlockGraphs
    28
    Builds on
    Used by
    From Mathlib

    none

    Discussion

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

    Loading discussion…