Bags of the auxiliary tree

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

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

    Put K=4(t−1)K=4(t-1). For an internal node with leaf set XX and children with leaf sets YY, use the bag HX∪⋃YIYH_X\cup\bigcup_Y I_Y. Each leaf carries its own vertex. The labels HX∪IXH_X\cup I_X on the parent edges cover the cuts. For each graph vertex their occurrences form a connected subtree containing its leaf. In particular every graph edge has its ends together in a bag.

    To compute HXH_X, enumerate subsets of K+1K+1 neighbors of each outside vertex and test independence. The sets IXI_X then follow by scanning adjacencies. This constructs the bags in nO(t)n^{O(t)} time (Section 4).

    Concept map
    12 concepts
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A
    Evidence

    This concept declares 3 statements. Each proof establishes one of them relative to its assumptions.

    In the paper

    • page 13 of this submission's paper

    Lean source view on GitHub

    1import Lax528502.AuxiliaryTree
    2import Lax808846.Ram
    3
    4/-!
    5---
    6title: Bags of the auxiliary tree
    7type: lemma
    8---
    9Put K=4(t−1)K=4(t-1). For an internal node with leaf set XX and children with
    10leaf sets YY, use the bag HX∪⋃YIYH_X\cup\bigcup_Y I_Y. Each leaf carries its
    11own vertex. The labels HX∪IXH_X\cup I_X on the parent edges cover the cuts.
    12For each graph vertex their occurrences form a connected subtree containing
    13its leaf. In particular every graph edge has its ends together in a bag.
    14
    15To compute HXH_X, enumerate subsets of K+1K+1 neighbors of each outside
    16vertex and test independence. The sets IXI_X then follow by scanning
    17adjacencies. This constructs the bags in nO(t)n^{O(t)} time (Section 4).
    18-/
    19
    20namespace Lax528502.TreeBags
    21
    22open AuxiliaryTree Lax228581.Treewidth Lax228581.TwinWidth Lax759944.RamPolytime Lax808846.Ram
    23
    24variable {V : Type}
    25
    26/-- Children in the order used to serialize the auxiliary tree. -/
    27def children : AuxiliaryTree.Tree V → List (AuxiliaryTree.Tree V)
    28 | .leaf _ => []
    29 | .two a b => [a,b]
    30 | .three a b c => [a,b,c]
    31 | .four a b c d => [a,b,c,d]
    32 | .five a b c d e => [a,b,c,d,e]
    33
    34/-- Nodes in preorder. A valid leaf labeling distinguishes all subtrees. -/
    35def subtrees : AuxiliaryTree.Tree V → List (AuxiliaryTree.Tree V)
    36 | s@(.leaf _) => [s]
    37 | s@(.two a b) => s :: subtrees a ++ subtrees b
    38 | s@(.three a b c) => s :: subtrees a ++ subtrees b ++ subtrees c
    39 | s@(.four a b c d) => s :: subtrees a ++ subtrees b ++ subtrees c ++ subtrees d
    40 | s@(.five a b c d e) => s :: subtrees a ++ subtrees b ++ subtrees c ++ subtrees d ++ subtrees e
    41
    42/-- Use a single node with an empty bag for the empty graph. -/
    43def nodes : Option (AuxiliaryTree.Tree V) → List (Option (AuxiliaryTree.Tree V))
    44 | none => [none]
    45 | some s => (subtrees s).map some
    46
    47/-- Tree adjacency, expressed on node labels. -/
    48def adjacent (x y : Option (AuxiliaryTree.Tree V)) : Prop :=
    49 match x, y with
    50 | some a, some b => b ∈ children a ∨ a ∈ children b
    51 | _, _ => False
    52
    53variable [Fintype V] [DecidableEq V]
    54
    55/-- The union of the inside labels of the children. -/
    56noncomputable def childLabels (G : SimpleGraph V) (k : ℕ)
    57 (cs : List (AuxiliaryTree.Tree V)) : Finset V :=
    58 (cs.map fun c => ChainCuts.inside G c.support k).foldr (· ∪ ·) ∅
    59
    60noncomputable def bag (G : SimpleGraph V) (k : ℕ) : Option (AuxiliaryTree.Tree V) → Finset V
    61 | none => ∅
    62 | some (.leaf v) => {v}
    63 | some s => ChainCuts.heavy G s.support k ∪ childLabels G k (children s)
    64
    65/-- Node positions are the numbering used on the output tape. -/
    66abbrev Position (h : Option (AuxiliaryTree.Tree V)) := Fin (nodes h).length
    67
    68/-- The concrete incidence matrices of the tree and its bags in preorder. -/
    69noncomputable def word {n : ℕ} (order : Fin n ≃ V) (G : SimpleGraph V) (k : ℕ)
    70 (h : Option (AuxiliaryTree.Tree V)) : List ℕ :=
    71 let ns := nodes h
    72 ns.length :: ContractionInput.matrix ns.length ns.length (fun i j => adjacent (ns.get i) (ns.get j)) ++
    73 ContractionInput.matrix ns.length n (fun i j => order j ∈ bag G k (ns.get i))
    74
    75/-- The stated bags on the specified tree form a tree decomposition of G. -/
    76axiom decomposition (G : SimpleGraph V) (t : ℕ) (ht : 2 ≤ t)
    77 (hfree : TreeIndependence.InducedBicliqueFree G t)
    78 (h : Option (AuxiliaryTree.Tree V)) (hc : Certified G h) :
    79 ∃ (D : TreeDecomposition G) (number : Position h ≃ D.Node),
    80 (∀ i j, D.tree.Adj (number i) (number j) ↔ adjacent ((nodes h).get i) ((nodes h).get j)) ∧
    81 ∀ i, D.bag (number i) = bag G (4 * (t - 1)) ((nodes h).get i)
    82
    83/-- Each canonical bag has independence number at most 84(t-1). -/
    84axiom bag_bound (G : SimpleGraph V) (t : ℕ) (ht : 2 ≤ t)
    85 (hfree : TreeIndependence.InducedBicliqueFree G t)
    86 (h : Option (AuxiliaryTree.Tree V)) (hc : Certified G h) (i : Position h) :
    87 ∀ A ⊆ bag G (4 * (t - 1)) ((nodes h).get i), G.IsIndepSet (A : Set V) →
    88 A.card ≤ 84 * (t - 1)
    89
    90/-- Construct a certified auxiliary tree and write its bags. The same
    91word RAM handles all values of the forbidden biclique size. -/
    92axiom compute :
    93 ∃ (p : Program) (c : ℕ), 0 < c ∧
    94 ∀ {V : Type} [Fintype V] [DecidableEq V] {n : ℕ} (order : Fin n ≃ V)
    95 (G : SimpleGraph V) (S : PartitionSequence G 2) (t : ℕ), 2 ≤ t →
    96 ∃ h : Option (AuxiliaryTree.Tree V), Certified G h ∧
    97 ∀ w, (n+2) ^ (c*t) < 2^w →
    98 ∃ steps ≤ (n+2) ^ (c*t),
    99 RunsTo w p (ContractionInput.tape (t :: ContractionInput.encode order G S))
    100 (word order G (4 * (t-1)) h) steps
    101
    102end Lax528502.TreeBags
    103
    Show ProofShow ProofShow Proof
    Builds on
    Used by

    none

    From Mathlib

    none

    Discussion

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

    Loading discussion…