The auxiliary tree of a 2-sequence
Lax528502.AuxiliaryTree · concepts/Lax528502/AuxiliaryTree.lean · lax-528502
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
Move each fringe of a red edge to the neighboring part, then group the parts in the red components left after deleting the selected edges. The resulting partitions refine one another. Suppressing repetitions gives a rooted tree. Its internal nodes have between 2 and 5 children. Every cut below a node is covered by at most 4 chain subgraphs (Lemmas 3.5, 3.7, 3.9, and 3.10).
In the prefix encoding, an original fork has tag and a fork added to write a node with more than 2 children has tag . A leaf with vertex number is written as . Contracting the added forks recovers the auxiliary tree.
Concept map
Evidence
Each proof establishes this claim relative to its assumptions.
In the paper
- page 11 of this submission's paper
Lean source view on GitHub
| 1 | import Lax528502.ChainCuts |
| 2 | import Lax759944.RamPolytime |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: The auxiliary tree of a 2-sequence |
| 7 | type: lemma |
| 8 | --- |
| 9 | Move each fringe of a red edge to the neighboring part, then group the parts |
| 10 | in the red components left after deleting the selected edges. The resulting |
| 11 | partitions refine one another. Suppressing repetitions gives a rooted tree. |
| 12 | Its internal nodes have between 2 and 5 children. Every cut below a node is |
| 13 | covered by at most 4 chain subgraphs (Lemmas 3.5, 3.7, 3.9, and 3.10). |
| 14 | |
| 15 | In the prefix encoding, an original fork has tag and a fork added to |
| 16 | write a node with more than 2 children has tag . A leaf with vertex |
| 17 | number is written as . Contracting the added forks recovers the |
| 18 | auxiliary tree. |
| 19 | -/ |
| 20 | |
| 21 | namespace Lax528502.AuxiliaryTree |
| 22 | |
| 23 | open Lax183560 Lax228581.TwinWidth Lax759944.RamPolytime |
| 24 | |
| 25 | inductive Tree (V : Type) |
| 26 | | leaf (v : V) |
| 27 | | two (a b : Tree V) |
| 28 | | three (a b c : Tree V) |
| 29 | | four (a b c d : Tree V) |
| 30 | | five (a b c d e : Tree V) |
| 31 | |
| 32 | variable {V : Type} |
| 33 | |
| 34 | open BranchDecompositions.BinaryTree in |
| 35 | /-- Resolve every node into binary forks. At a node with 5 children, the |
| 36 | parent edge and the first child form one of the 3 pairs of incident edges. -/ |
| 37 | def Tree.refine : Tree V → BranchDecompositions.BinaryTree V |
| 38 | | .leaf v => .leaf v |
| 39 | | .two a b => fork a.refine b.refine |
| 40 | | .three a b c => fork a.refine (fork b.refine c.refine) |
| 41 | | .four a b c d => fork (fork a.refine b.refine) (fork c.refine d.refine) |
| 42 | | .five a b c d e => fork a.refine (fork (fork b.refine c.refine) (fork d.refine e.refine)) |
| 43 | |
| 44 | /-- The vertices below the root of this subtree. -/ |
| 45 | def Tree.support [DecidableEq V] (h : Tree V) : Finset V := h.refine.leaves.toFinset |
| 46 | |
| 47 | /-- A predicate holds below every node, including the root. -/ |
| 48 | def Tree.All (P : Tree V → Prop) : Tree V → Prop |
| 49 | | h@(.leaf _) => P h |
| 50 | | h@(.two a b) => P h ∧ a.All P ∧ b.All P |
| 51 | | h@(.three a b c) => P h ∧ a.All P ∧ b.All P ∧ c.All P |
| 52 | | h@(.four a b c d) => P h ∧ a.All P ∧ b.All P ∧ c.All P ∧ d.All P |
| 53 | | h@(.five a b c d e) => P h ∧ a.All P ∧ b.All P ∧ c.All P ∧ d.All P ∧ e.All P |
| 54 | |
| 55 | /-- A hierarchy of the vertex set together with the 4-chain property at each cut. -/ |
| 56 | def Certified [Fintype V] [DecidableEq V] (G : SimpleGraph V) : Option (Tree V) → Prop |
| 57 | | none => IsEmpty V |
| 58 | | some h => h.refine.Valid Finset.univ ∧ h.All fun s => Nonempty (ChainCuts.Cover G s.support 4) |
| 59 | |
| 60 | def Tree.word {n : ℕ} (order : Fin n ≃ V) : Tree V → List ℕ |
| 61 | | .leaf v => [(order.symm v).val + 2] |
| 62 | | .two a b => 0 :: a.word order ++ b.word order |
| 63 | | .three a b c => 0 :: a.word order ++ [1] ++ b.word order ++ c.word order |
| 64 | | .four a b c d => [0, 1] ++ a.word order ++ b.word order ++ [1] ++ c.word order ++ d.word order |
| 65 | | .five a b c d e => |
| 66 | 0 :: a.word order ++ [1, 1] ++ b.word order ++ c.word order ++ [1] ++ d.word order ++ e.word order |
| 67 | |
| 68 | def encode {n : ℕ} (order : Fin n ≃ V) (h : Option (Tree V)) : List ℕ := |
| 69 | h.elim [] (Tree.word order) |
| 70 | |
| 71 | /-- Construct the auxiliary tree in polynomial time from the 2-sequence. -/ |
| 72 | axiom construct : |
| 73 | ∃ build : List ℕ → List ℕ, RamPolytime build ∧ |
| 74 | ∀ {V : Type} [Fintype V] [DecidableEq V] {n : ℕ} (order : Fin n ≃ V) |
| 75 | (G : SimpleGraph V) (S : PartitionSequence G 2), |
| 76 | ∃ h, Certified G h ∧ build (ContractionInput.encode order G S) = encode order h |
| 77 | |
| 78 | end Lax528502.AuxiliaryTree |
| 79 |
From Mathlib
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments