Maximum induced matching width

Lax528502.MimWidth · concepts/Lax528502/MimWidth.lean · lax-528502

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

    For a vertex set XX, keep only the edges crossing from XX to its complement. The cut value is the maximum size of an induced matching in this bipartite graph. Adjacencies between two endpoints on the same side play no role.

    Rooting a subcubic branch decomposition at an edge gives a binary tree whose leaves are the vertices of the graph. Its width is the largest cut value below a node. The mim-width of the graph is the minimum of these widths. The empty graph has width 00.

    Concept map
    2 concepts
    100%
    DefinitionThis conceptRelated conceptA → B: B builds on ADescendants are omitted for concepts with more than 10 descendants.

    In the paper

    • page 3 of this submission's paper

    Lean source view on GitHub

    1import Lax183560.BranchDecompositions
    2import Mathlib.Data.Finset.Lattice.Fold
    3import Mathlib.Data.Finset.Prod
    4import Mathlib.Data.Fintype.Powerset
    5
    6/-!
    7---
    8title: Maximum induced matching width
    9type: definition
    10---
    11For a vertex set XX, keep only the edges crossing from XX to its complement.
    12The cut value is the maximum size of an induced matching in this bipartite
    13graph. Adjacencies between two endpoints on the same side play no role.
    14
    15Rooting a subcubic branch decomposition at an edge gives a binary tree whose
    16leaves are the vertices of the graph. Its width is the largest cut value below
    17a node. The mim-width of the graph is the minimum of these widths. The empty
    18graph has width 00.
    19-/
    20
    21namespace Lax528502.MimWidth
    22
    23open Lax183560
    24
    25variable {V : Type} [Fintype V] [DecidableEq V]
    26
    27/-- Pairs are oriented from the cut side to its complement. Between the two
    28endpoint sets, the only edges are the matching pairs themselves. -/
    29structure InducedMatching (G : SimpleGraph V) (X : Finset V) (M : Finset (V × V)) : Prop where
    30 sides : ∀ e ∈ M, e.1 ∈ X ∧ e.2 ∉ X
    31 induced : ∀ e ∈ M, ∀ f ∈ M, G.Adj e.1 f.2 ↔ e = f
    32
    33/-- The largest induced matching across a cut. -/
    34noncomputable def cutMim (G : SimpleGraph V) (X : Finset V) : ℕ := by
    35 classical
    36 exact (Finset.univ.filter (InducedMatching G X)).sup Finset.card
    37
    38/-- A branch decomposition of width at most the specified bound. The empty
    39tree is available precisely when the vertex type is empty. -/
    40def Decomposes (G : SimpleGraph V) (k : ℕ) : Option (BranchDecompositions.BinaryTree V) → Prop
    41 | none => IsEmpty V
    42 | some T => T.Valid Finset.univ ∧ T.cutWidth (cutMim G) ≤ k
    43
    44/-- The leaves of the branch tree are the vertices of G and every cut has
    45mim-width at most the stated bound. The empty graph has an empty tree. -/
    46abbrev IsBranchDecompositionOfWidthAtMost (G : SimpleGraph V) (T : Option (BranchDecompositions.BinaryTree V))
    47 (widthAtMost : ℕ) : Prop := Decomposes G widthAtMost T
    48
    49/-- The minimum width of a branch decomposition. -/
    50noncomputable def mimWidth (G : SimpleGraph V) : ℕ :=
    51 sInf {k | ∃ T, Decomposes G k T}
    52
    53/-- Prefix notation for a branch tree. A fork is 0 and a leaf is its
    54vertex number plus 1. -/
    55def treeWord {n : ℕ} (order : Fin n ≃ V) : BranchDecompositions.BinaryTree V → List ℕ
    56 | .leaf v => [(order.symm v).val + 1]
    57 | .fork l r => 0 :: treeWord order l ++ treeWord order r
    58
    59/-- The empty list represents the empty decomposition. -/
    60def encode {n : ℕ} (order : Fin n ≃ V) (T : Option (BranchDecompositions.BinaryTree V)) : List ℕ :=
    61 T.elim [] (treeWord order)
    62
    63end Lax528502.MimWidth
    64

    Discussion

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

    Loading discussion…