Twin-width of a dual multigraph
Lax919488.MultigraphTwinWidth · concepts/Lax919488/MultigraphTwinWidth.lean · lax-919488
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
The initial black multiplicity between two cells counts the face gluings joining them, including loops. When two parts merge, each surviving part has a black edge to the new part if it had a black edge to both old parts. It has no edge if it had no edge to either. Every other case gives one red edge. Edges between surviving parts keep their multiplicities. The width is the maximum red degree, counting red edges with multiplicity.
A contraction sequence for the simple adjacency graph lifts to a sequence of the same width for the dual multigraph.
Concept map
In the paper
- page 3 of this submission's paper
Lean source view on GitHub
| 1 | import Lax919488.FacePairings |
| 2 | import Lax228581.TwinWidth |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Twin-width of a dual multigraph |
| 7 | type: lemma |
| 8 | --- |
| 9 | The initial black multiplicity between two cells counts the face gluings |
| 10 | joining them, including loops. When two parts merge, each surviving part |
| 11 | has a black edge to the new part if it had a black edge to both old parts. |
| 12 | It has no edge if it had no edge to either. Every other case gives one red |
| 13 | edge. Edges between surviving parts keep their multiplicities. The width is |
| 14 | the maximum red degree, counting red edges with multiplicity. |
| 15 | |
| 16 | A contraction sequence for the simple adjacency graph lifts to a sequence |
| 17 | of the same width for the dual multigraph. |
| 18 | -/ |
| 19 | |
| 20 | namespace Lax919488.MultigraphTwinWidth |
| 21 | |
| 22 | open FacePairings Lax228581.TwinWidth |
| 23 | |
| 24 | noncomputable section |
| 25 | |
| 26 | def edgeMultiplicity {d : ℕ} {V E : Type} [Fintype E] (T : Diagram d V E) (u v : V) : ℕ := by |
| 27 | classical |
| 28 | exact (Finset.univ.filter fun e => |
| 29 | ∃ b, (T.side e b).cell = u ∧ (T.side e (!b)).cell = v).card |
| 30 | |
| 31 | structure Entry where |
| 32 | black : ℕ |
| 33 | red : ℕ |
| 34 | deriving DecidableEq |
| 35 | |
| 36 | def combine (a b : Entry) : Entry := |
| 37 | if 0 < a.black ∧ 0 < b.black then ⟨1,0⟩ |
| 38 | else if a = ⟨0,0⟩ ∧ b = ⟨0,0⟩ then ⟨0,0⟩ else ⟨0,1⟩ |
| 39 | |
| 40 | structure ContractionSequence {d : ℕ} {V E : Type} [Fintype V] [Fintype E] [DecidableEq V] |
| 41 | (T : Diagram d V E) (k : ℕ) where |
| 42 | steps : ℕ |
| 43 | parts : ℕ → Finset (Finset V) |
| 44 | edges : ℕ → Finset V → Finset V → Entry |
| 45 | symmetric : ∀ i A B, edges i A B = edges i B A |
| 46 | initial : parts 0 = singletonPartition V |
| 47 | initialEdges : ∀ u v, edges 0 {u} {v} = ⟨edgeMultiplicity T u v,0⟩ |
| 48 | final : (parts steps).card ≤ 1 |
| 49 | merge : ∀ i < steps, ∃ A ∈ parts i, ∃ B ∈ parts i, A ≠ B ∧ |
| 50 | let rest := ((parts i).erase A).erase B |
| 51 | let C := A ∪ B |
| 52 | parts (i+1) = insert C rest ∧ edges (i+1) C C = ⟨0,0⟩ ∧ |
| 53 | (∀ D ∈ rest, edges (i+1) C D = combine (edges i A D) (edges i B D)) ∧ |
| 54 | ∀ D ∈ rest, ∀ F ∈ rest, edges (i+1) D F = edges i D F |
| 55 | width : ∀ i ≤ steps, ∀ A ∈ parts i, ∑ B ∈ parts i, (edges i A B).red ≤ k |
| 56 | |
| 57 | def WidthAtMost {d : ℕ} {V E : Type} [Fintype V] [Fintype E] [DecidableEq V] |
| 58 | (T : Diagram d V E) (k : ℕ) : Prop := Nonempty (ContractionSequence T k) |
| 59 | |
| 60 | axiom lift_sequence {d : ℕ} {V E : Type} [Fintype V] [Fintype E] [DecidableEq V] |
| 61 | (T : Diagram d V E) {k : ℕ} (h : HasTwinWidthAtMost T.dual k) : WidthAtMost T k |
| 62 | |
| 63 | end |
| 64 | end Lax919488.MultigraphTwinWidth |
| 65 |
From Mathlib
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments