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

Treedepth

Lax183560.TreeDepth · concepts/Lax183560/TreeDepth.lean · lax-183560

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

    The treedepth of a graph is the minimum height of a rooted forest on its vertex set whose closure contains the graph. The closure joins every vertex to each of its ancestors, and height counts the vertices on a longest root-to-leaf path. The empty graph has treedepth zero.

    Concept map
    2 concepts
    100%
    DefinitionThis conceptRelated conceptA → B: B builds on A

    Lean source view on GitHub

    1import Lax183560.AncestorForest
    2import Mathlib.Order.Lattice.Nat
    3
    4/-!
    5---
    6title: Treedepth
    7type: definition
    8---
    9The treedepth of a graph is the minimum height of a rooted forest on its
    10vertex set whose closure contains the graph. The closure joins every vertex
    11to each of its ancestors, and height counts the vertices on a longest
    12root-to-leaf path. The empty graph has treedepth zero.
    13-/
    14
    15namespace Lax183560.TreeDepth
    16
    17open Lax183560.AncestorForest
    18
    19/-- `G` lies in the closure of a forest of vertex height at most `k`. -/
    20def HasTreedepthAtMost {V : Type} (G : SimpleGraph V) (k : ℕ) : Prop :=
    21 ∃ F : AncestorForest V,
    22 (∀ ⦃u v : V⦄, G.Adj u v → (F.ancestor u v ∨ F.ancestor v u)) ∧
    23 ∃ rank : V → Fin k,
    24 ∀ ⦃u v : V⦄, F.ancestor u v → rank u < rank v
    25
    26/-- The minimum height of a rooted forest whose closure contains `G`. -/
    27noncomputable def treedepth {V : Type} [Fintype V] [DecidableEq V]
    28 (G : SimpleGraph V) : ℕ :=
    29 sInf {k | HasTreedepthAtMost G k}
    30
    31end Lax183560.TreeDepth
    32
    Builds on
    Used by

    none

    From Mathlib

    Discussion

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

    Loading discussion…