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

Cochromatic number

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

    The cochromatic number is the least number of parts in a vertex partition where each part induces either a clique or an independent set. Parts need not be graph modules. The empty graph has cochromatic number zero.

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

    Lean source view on GitHub

    1import Lax560391.CochromaticPartition
    2import Mathlib.Order.Lattice.Nat
    3
    4/-!
    5---
    6title: Cochromatic number
    7type: definition
    8---
    9The cochromatic number is the least number of parts in a vertex partition
    10where each part induces either a clique or an independent set. Parts need not
    11be graph modules. The empty graph has cochromatic number zero.
    12-/
    13
    14namespace Lax560391.CochromaticNumber
    15
    16/-- A partition into at most `k` cliques or independent sets. Empty labels
    17are allowed and do not affect the minimum. -/
    18def HasCochromaticNumberAtMost {V : Type} (G : SimpleGraph V) (k : ℕ) : Prop :=
    19 Nonempty (Lax560391.CochromaticPartition.CochromaticPartition G k)
    20
    21noncomputable def cochromaticNumber {V : Type} [Fintype V] [DecidableEq V]
    22 (G : SimpleGraph V) : ℕ :=
    23 sInf {k | HasCochromaticNumberAtMost G k}
    24
    25end Lax560391.CochromaticNumber
    26

    Discussion

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

    Loading discussion…