Clique-width
Lax825442.CliqueWidth · concepts/Lax825442/CliqueWidth.lean · lax-825442
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
Clique-width is the least number of labels in a valid expression that builds the graph from vertex creation, disjoint union, joining two label classes, and relabelling. The expression language is imported from the registered Lax concept . A finite vertex type is transported to because that expression language uses canonically numbered vertices.
Concept map
Lean source view on GitHub
| 1 | import Lax271696.CliqueExpr |
| 2 | import Mathlib.Combinatorics.SimpleGraph.Maps |
| 3 | import Mathlib.Data.Fintype.EquivFin |
| 4 | import Mathlib.Order.Lattice.Nat |
| 5 | |
| 6 | /-! |
| 7 | --- |
| 8 | title: Clique-width |
| 9 | type: definition |
| 10 | --- |
| 11 | Clique-width is the least number of labels in a valid expression that builds |
| 12 | the graph from vertex creation, disjoint union, joining two label classes, |
| 13 | and relabelling. The expression language is imported from the registered |
| 14 | Lax concept `Lax271696.CliqueExpr`. A finite vertex type is transported to |
| 15 | `Fin n` because that expression language uses canonically numbered vertices. |
| 16 | -/ |
| 17 | |
| 18 | namespace Lax825442.CliqueWidth |
| 19 | |
| 20 | open Lax271696.CliqueExpr |
| 21 | |
| 22 | /-- A valid `k`-expression builds a numbered copy of `G`. -/ |
| 23 | def HasCliqueWidthAtMost {V : Type} [Fintype V] [DecidableEq V] |
| 24 | (G : SimpleGraph V) (k : ℕ) : Prop := |
| 25 | Fintype.card V = 0 ∨ |
| 26 | ∃ e : Expr (Fintype.card V) k, |
| 27 | ValidFor e (G.comap (Fintype.equivFin V).symm) |
| 28 | |
| 29 | /-- The minimum number of labels in a valid expression for `G`. -/ |
| 30 | noncomputable def cliqueWidth {V : Type} [Fintype V] [DecidableEq V] |
| 31 | (G : SimpleGraph V) : ℕ := |
| 32 | sInf {k | HasCliqueWidthAtMost G k} |
| 33 | |
| 34 | end Lax825442.CliqueWidth |
| 35 | |
| 36 |
Builds on
Used by
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments