The hierarchy of auxiliary parts
Lax528502.PartitionHierarchy · concepts/Lax528502/PartitionHierarchy.lean · lax-528502
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
Every part of the next auxiliary partition is a union of at most 5 parts of the current partition. Keep a node when its part persists, and give every new part the nodes of its constituent parts as children. Starting with the singletons gives the rooted tree of Lemma 3.10. All its nodes are auxiliary parts and it can be constructed in polynomial time.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax528502.Fringes |
| 2 | import Lax528502.AuxiliaryTree |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: The hierarchy of auxiliary parts |
| 7 | type: lemma |
| 8 | --- |
| 9 | Every part of the next auxiliary partition is a union of at most 5 parts of |
| 10 | the current partition. Keep a node when its part persists, and give every |
| 11 | new part the nodes of its constituent parts as children. Starting with the |
| 12 | singletons gives the rooted tree of Lemma 3.10. All its nodes are auxiliary |
| 13 | parts and it can be constructed in polynomial time. |
| 14 | -/ |
| 15 | |
| 16 | namespace Lax528502.PartitionHierarchy |
| 17 | |
| 18 | open Lax228581.TwinWidth Lax759944.RamPolytime AuxiliaryTree |
| 19 | |
| 20 | variable {V : Type} [Fintype V] [DecidableEq V] |
| 21 | |
| 22 | /-- The old auxiliary blocks contained in the specified new block. -/ |
| 23 | noncomputable def constituents (G : SimpleGraph V) (S : PartitionSequence G 2) (i : ℕ) |
| 24 | (Y : Finset V) : Finset (Finset V) := by |
| 25 | classical |
| 26 | exact (Fringes.auxiliary G S i).filter (· ⊆ Y) |
| 27 | |
| 28 | /-- The auxiliary partitions are nested under each contraction. -/ |
| 29 | axiom refines (G : SimpleGraph V) (S : PartitionSequence G 2) (i : ℕ) (hi : i < S.stepCount) |
| 30 | (X : Finset V) (hx : X ∈ Fringes.auxiliary G S i) : |
| 31 | ∃ Y ∈ Fringes.auxiliary G S (i+1), X ⊆ Y |
| 32 | |
| 33 | /-- Each new block is the union of at most 5 old blocks. -/ |
| 34 | axiom child_bound (G : SimpleGraph V) (S : PartitionSequence G 2) (i : ℕ) (hi : i < S.stepCount) |
| 35 | (Y : Finset V) (hy : Y ∈ Fringes.auxiliary G S (i+1)) : |
| 36 | (constituents G S i Y).card ≤ 5 ∧ (constituents G S i Y).biUnion id = Y |
| 37 | |
| 38 | /-- Leaves are the vertices, and each node records a part at a valid stage. -/ |
| 39 | def FromPartitions {V : Type} [Fintype V] [DecidableEq V] (G : SimpleGraph V) |
| 40 | (S : PartitionSequence G 2) : Option (AuxiliaryTree.Tree V) → Prop |
| 41 | | none => IsEmpty V |
| 42 | | some h => h.refine.Valid Finset.univ ∧ h.All fun s => |
| 43 | ∃ i ≤ S.stepCount, s.support ∈ Fringes.auxiliary G S i |
| 44 | |
| 45 | /-- The structural hierarchy, with all of its nodes witnessed by auxiliary parts. -/ |
| 46 | axiom exists_tree (G : SimpleGraph V) (S : PartitionSequence G 2) : ∃ h, FromPartitions G S h |
| 47 | |
| 48 | /-- The order, the number of stages, and the auxiliary equivalence matrices in stage order. -/ |
| 49 | noncomputable def tables {n : ℕ} (order : Fin n ≃ V) (G : SimpleGraph V) (S : PartitionSequence G 2) : |
| 50 | List ℕ := |
| 51 | n :: (S.stepCount+1) :: (List.range (S.stepCount+1)).flatMap fun i => |
| 52 | ContractionInput.matrix n n fun a b => ∃ X ∈ Fringes.auxiliary G S i, order a ∈ X ∧ order b ∈ X |
| 53 | |
| 54 | /-- A single polynomial-time RAM computes every auxiliary equivalence matrix. -/ |
| 55 | axiom compute_partitions : |
| 56 | ∃ build : List ℕ → List ℕ, RamPolytime build ∧ |
| 57 | ∀ {V : Type} [Fintype V] [DecidableEq V] {n : ℕ} (order : Fin n ≃ V) |
| 58 | (G : SimpleGraph V) (S : PartitionSequence G 2), build (ContractionInput.encode order G S) = tables order G S |
| 59 | |
| 60 | axiom construct : |
| 61 | ∃ build : List ℕ → List ℕ, RamPolytime build ∧ |
| 62 | ∀ {V : Type} [Fintype V] [DecidableEq V] {n : ℕ} (order : Fin n ≃ V) |
| 63 | (G : SimpleGraph V) (S : PartitionSequence G 2), ∃ h, FromPartitions G S h ∧ |
| 64 | build (ContractionInput.encode order G S) = AuxiliaryTree.encode order h |
| 65 | |
| 66 | end Lax528502.PartitionHierarchy |
| 67 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments