Maximum induced matching width
Lax528502.MimWidth · concepts/Lax528502/MimWidth.lean · lax-528502
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
For a vertex set , keep only the edges crossing from 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 .
Concept map
In the paper
- page 3 of this submission's paper
Lean source view on GitHub
| 1 | import Lax183560.BranchDecompositions |
| 2 | import Mathlib.Data.Finset.Lattice.Fold |
| 3 | import Mathlib.Data.Finset.Prod |
| 4 | import Mathlib.Data.Fintype.Powerset |
| 5 | |
| 6 | /-! |
| 7 | --- |
| 8 | title: Maximum induced matching width |
| 9 | type: definition |
| 10 | --- |
| 11 | For a vertex set , keep only the edges crossing from to its complement. |
| 12 | The cut value is the maximum size of an induced matching in this bipartite |
| 13 | graph. Adjacencies between two endpoints on the same side play no role. |
| 14 | |
| 15 | Rooting a subcubic branch decomposition at an edge gives a binary tree whose |
| 16 | leaves are the vertices of the graph. Its width is the largest cut value below |
| 17 | a node. The mim-width of the graph is the minimum of these widths. The empty |
| 18 | graph has width . |
| 19 | -/ |
| 20 | |
| 21 | namespace Lax528502.MimWidth |
| 22 | |
| 23 | open Lax183560 |
| 24 | |
| 25 | variable {V : Type} [Fintype V] [DecidableEq V] |
| 26 | |
| 27 | /-- Pairs are oriented from the cut side to its complement. Between the two |
| 28 | endpoint sets, the only edges are the matching pairs themselves. -/ |
| 29 | structure 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. -/ |
| 34 | noncomputable 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 |
| 39 | tree is available precisely when the vertex type is empty. -/ |
| 40 | def 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 |
| 45 | mim-width at most the stated bound. The empty graph has an empty tree. -/ |
| 46 | abbrev 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. -/ |
| 50 | noncomputable 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 |
| 54 | vertex number plus 1. -/ |
| 55 | def 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. -/ |
| 60 | def encode {n : ℕ} (order : Fin n ≃ V) (T : Option (BranchDecompositions.BinaryTree V)) : List ℕ := |
| 61 | T.elim [] (treeWord order) |
| 62 | |
| 63 | end Lax528502.MimWidth |
| 64 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments