The auxiliary tree of a 2-sequence

Lax528502.AuxiliaryTree · concepts/Lax528502/AuxiliaryTree.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

    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 00 and a fork added to write a node with more than 2 children has tag 11. A leaf with vertex number vv is written as v+2v+2. Contracting the added forks recovers the auxiliary tree.

    Concept map
    11 concepts; 3 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 11 of this submission's paper

    Lean source view on GitHub

    1import Lax528502.ChainCuts
    2import Lax759944.RamPolytime
    3
    4/-!
    5---
    6title: The auxiliary tree of a 2-sequence
    7type: lemma
    8---
    9Move each fringe of a red edge to the neighboring part, then group the parts
    10in the red components left after deleting the selected edges. The resulting
    11partitions refine one another. Suppressing repetitions gives a rooted tree.
    12Its internal nodes have between 2 and 5 children. Every cut below a node is
    13covered by at most 4 chain subgraphs (Lemmas 3.5, 3.7, 3.9, and 3.10).
    14
    15In the prefix encoding, an original fork has tag 00 and a fork added to
    16write a node with more than 2 children has tag 11. A leaf with vertex
    17number vv is written as v+2v+2. Contracting the added forks recovers the
    18auxiliary tree.
    19-/
    20
    21namespace Lax528502.AuxiliaryTree
    22
    23open Lax183560 Lax228581.TwinWidth Lax759944.RamPolytime
    24
    25inductive 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
    32variable {V : Type}
    33
    34open BranchDecompositions.BinaryTree in
    35/-- Resolve every node into binary forks. At a node with 5 children, the
    36parent edge and the first child form one of the 3 pairs of incident edges. -/
    37def 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. -/
    45def Tree.support [DecidableEq V] (h : Tree V) : Finset V := h.refine.leaves.toFinset
    46
    47/-- A predicate holds below every node, including the root. -/
    48def 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. -/
    56def 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
    60def 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
    68def 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. -/
    72axiom 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
    78end Lax528502.AuxiliaryTree
    79
    Show Proof

    Discussion

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

    Loading discussion…