Twin-width of a dual multigraph

Lax919488.MultigraphTwinWidth · concepts/Lax919488/MultigraphTwinWidth.lean · lax-919488

proven

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

    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
    3 concepts; 2 descendants hidden
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A
    Evidence

    Each proof establishes this claim relative to its assumptions.

    In the paper

    • page 3 of this submission's paper

    Lean source view on GitHub

    1import Lax919488.FacePairings
    2import Lax228581.TwinWidth
    3
    4/-!
    5---
    6title: Twin-width of a dual multigraph
    7type: lemma
    8---
    9The initial black multiplicity between two cells counts the face gluings
    10joining them, including loops. When two parts merge, each surviving part
    11has a black edge to the new part if it had a black edge to both old parts.
    12It has no edge if it had no edge to either. Every other case gives one red
    13edge. Edges between surviving parts keep their multiplicities. The width is
    14the maximum red degree, counting red edges with multiplicity.
    15
    16A contraction sequence for the simple adjacency graph lifts to a sequence
    17of the same width for the dual multigraph.
    18-/
    19
    20namespace Lax919488.MultigraphTwinWidth
    21
    22open FacePairings Lax228581.TwinWidth
    23
    24noncomputable section
    25
    26def 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
    31structure Entry where
    32 black : ℕ
    33 red : ℕ
    34 deriving DecidableEq
    35
    36def 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
    40structure 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
    57def WidthAtMost {d : ℕ} {V E : Type} [Fintype V] [Fintype E] [DecidableEq V]
    58 (T : Diagram d V E) (k : ℕ) : Prop := Nonempty (ContractionSequence T k)
    59
    60axiom 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
    63end
    64end Lax919488.MultigraphTwinWidth
    65
    Show Proof

    Discussion

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

    Loading discussion…