A contraction pass across the sheets of an ordered cover
Lax956329.CoverPass · concepts/Lax956329/CoverPass.lean · lax-956329
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
Every fiber has a prefix part and singleton parts for all remaining sheets. Internal positions with identity matchings move first, transposition endpoints next and original vertices last. Throughout a pass every part has at most neighboring parts in the support.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax956329.PermutationCovers |
| 2 | import Lax956329.SheetPrefixes |
| 3 | import Lax956329.SupportSequence |
| 4 | |
| 5 | /-! |
| 6 | --- |
| 7 | title: A contraction pass across the sheets of an ordered cover |
| 8 | type: lemma |
| 9 | --- |
| 10 | Every fiber has a prefix part and singleton parts for all remaining sheets. |
| 11 | Internal positions with identity matchings move first, transposition endpoints |
| 12 | next and original vertices last. Throughout a pass every part has at most |
| 13 | neighboring parts in the support. |
| 14 | -/ |
| 15 | |
| 16 | namespace Lax956329.CoverPass |
| 17 | |
| 18 | open PermutationCovers SheetPrefixes Instances |
| 19 | |
| 20 | def label {V : Type} {r : ℕ} (p : V → ℕ) (x : V × Fin r) : V × ℕ := (x.1,part (p x.1) x.2.val) |
| 21 | |
| 22 | def visible {V : Type} {G : SimpleGraph V} {r : ℕ} (M : Matchings G (Fin r)) (p : V → ℕ) (a : V × ℕ) : |
| 23 | Set (V × ℕ) := {b | b ≠ a ∧ ∃ x y, label p x = a ∧ label p y = b ∧ (graph M).Adj x y} |
| 24 | |
| 25 | /-- The three possible neighborhoods along the subdivided base. The order is used |
| 26 | only on identity edges whose far prefix must be updated before the near one. -/ |
| 27 | def Ordered {V : Type} {G : SimpleGraph V} {r : ℕ} (M : Matchings G (Fin r)) (phase : V → ℕ) : Prop := |
| 28 | ∀ a, ((G.neighborSet a).ncard ≤ 4 ∧ ∀ b, G.Adj a b → M.move a b = Equiv.refl _ ∧ phase b < phase a) ∨ |
| 29 | ((G.neighborSet a).ncard ≤ 2 ∧ ∀ b, G.Adj a b → M.move a b = Equiv.refl _) ∨ |
| 30 | (∃ c d, (∀ b, G.Adj a b → b = c ∨ b = d) ∧ phase c < phase a ∧ M.move a c = Equiv.refl _ ∧ |
| 31 | (M.move a d = Equiv.refl _ ∨ ∃ i j, M.move a d = Equiv.swap i j)) |
| 32 | |
| 33 | axiom width {V : Type} [Fintype V] {G : SimpleGraph V} {r j : ℕ} |
| 34 | (M : Matchings G (Fin r)) (phase p : V → ℕ) (order : Ordered M phase) |
| 35 | (one : ∀ v, j ≤ p v ∧ p v ≤ j+1) (early : ∀ u v, phase u < phase v → p v ≤ p u) |
| 36 | (a : V × ℕ) : (visible M p a).ncard ≤ 4 |
| 37 | |
| 38 | /-- Collapse every sheet fiber in phase order, then follow the supplied base sequence. -/ |
| 39 | axiom lift {V : Type} [Fintype V] [DecidableEq V] {G : SimpleGraph V} {r : ℕ} |
| 40 | (M : Matchings G (Fin r)) (phase : V → ℕ) (order : Ordered M phase) |
| 41 | (base : SupportSequence.Bounded G 4) : SupportSequence.Bounded (graph M) 4 |
| 42 | |
| 43 | /-- A numbered matching presentation of the upper graph over a supplied lower sequence. -/ |
| 44 | structure Presentation where |
| 45 | upper : Graph |
| 46 | base : Instance |
| 47 | sheets : ℕ |
| 48 | positive : 0 < sheets |
| 49 | M : Matchings base.graph (Fin sheets) |
| 50 | phase : Fin base.n → ℕ |
| 51 | phaseBound : ∀ a, phase a ≤ 2 |
| 52 | ordered : Ordered M phase |
| 53 | lift : upper.graph →g PermutationCovers.graph M |
| 54 | inj : Function.Injective lift |
| 55 | small : ∀ i ≤ base.sequence.stepCount, ∀ A ∈ base.sequence.partition i, |
| 56 | SupportSequence.degree base.graph (base.sequence.partition i) A ≤ 4 |
| 57 | |
| 58 | /-- Upper adjacency, sheet count, and one unary array each for projection, |
| 59 | sheet rank and phase, followed by the numbered lower instance. -/ |
| 60 | noncomputable def Presentation.bits (D : Presentation) : Lax434930.PolynomialTime.Word := |
| 61 | D.upper.bits ++ (numeral D.sheets ++ |
| 62 | ((List.ofFn fun x => numeral (D.lift x).1.val).flatten ++ |
| 63 | ((List.ofFn fun x => numeral (D.lift x).2.val).flatten ++ |
| 64 | ((List.ofFn fun x => numeral (D.phase (D.lift x).1)).flatten ++ D.base.bits)))) |
| 65 | |
| 66 | axiom sequence : ∃ g : Lax434930.PolynomialTime.Word → Lax434930.PolynomialTime.Word, Poly g ∧ |
| 67 | ∀ D : Presentation, ∃ S : Lax228581.TwinWidth.PartitionSequence D.upper.graph 4, |
| 68 | (∀ j ≤ S.stepCount, ∀ A ∈ S.partition j, SupportSequence.degree D.upper.graph (S.partition j) A ≤ 4) ∧ |
| 69 | g D.bits = (⟨D.upper,S,D.base.k,D.base.positive⟩ : Instance).bits |
| 70 | |
| 71 | end Lax956329.CoverPass |
| 72 |
Used by
none
From Mathlib
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments