Bags of the auxiliary tree
Lax528502.TreeBags · concepts/Lax528502/TreeBags.lean · lax-528502
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
Put . For an internal node with leaf set and children with leaf sets , use the bag . Each leaf carries its own vertex. The labels 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 , enumerate subsets of neighbors of each outside vertex and test independence. The sets then follow by scanning adjacencies. This constructs the bags in time (Section 4).
Concept map
Evidence
In the paper
- page 13 of this submission's paper
Lean source view on GitHub
| 1 | import Lax528502.AuxiliaryTree |
| 2 | import Lax808846.Ram |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Bags of the auxiliary tree |
| 7 | type: lemma |
| 8 | --- |
| 9 | Put . For an internal node with leaf set and children with |
| 10 | leaf sets , use the bag . Each leaf carries its |
| 11 | own vertex. The labels on the parent edges cover the cuts. |
| 12 | For each graph vertex their occurrences form a connected subtree containing |
| 13 | its leaf. In particular every graph edge has its ends together in a bag. |
| 14 | |
| 15 | To compute , enumerate subsets of neighbors of each outside |
| 16 | vertex and test independence. The sets then follow by scanning |
| 17 | adjacencies. This constructs the bags in time (Section 4). |
| 18 | -/ |
| 19 | |
| 20 | namespace Lax528502.TreeBags |
| 21 | |
| 22 | open AuxiliaryTree Lax228581.Treewidth Lax228581.TwinWidth Lax759944.RamPolytime Lax808846.Ram |
| 23 | |
| 24 | variable {V : Type} |
| 25 | |
| 26 | /-- Children in the order used to serialize the auxiliary tree. -/ |
| 27 | def 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. -/ |
| 35 | def 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. -/ |
| 43 | def 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. -/ |
| 48 | def 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 | |
| 53 | variable [Fintype V] [DecidableEq V] |
| 54 | |
| 55 | /-- The union of the inside labels of the children. -/ |
| 56 | noncomputable 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 | |
| 60 | noncomputable 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. -/ |
| 66 | abbrev Position (h : Option (AuxiliaryTree.Tree V)) := Fin (nodes h).length |
| 67 | |
| 68 | /-- The concrete incidence matrices of the tree and its bags in preorder. -/ |
| 69 | noncomputable 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. -/ |
| 76 | axiom 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). -/ |
| 84 | axiom 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 |
| 91 | word RAM handles all values of the forbidden biclique size. -/ |
| 92 | axiom 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 | |
| 102 | end Lax528502.TreeBags |
| 103 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments