Bounded splittings of a list #
List.Splits P K w says that w is the concatenation of at most K factors satisfying P.
Restricted classes of runs of multistack pushdown automata are of this form: a sequence with at
most K contexts splits into at most K factors that each use at most one stack.
Main results #
List.Splits.trans: a splitting intoKfactors that each split intomfactors gives a splitting intoK * mfactors.List.Splits.of_isInfix: for an infix-closedP, an infix of a splittable list splits with the same bound.List.Splits.card_le: for an infix-closedP, a set of positions no two of which lie in a common factor satisfyingPhas at most as many elements as there are factors.
theorem List.Splits.card_le {β : Type u_1} {P : List β → Prop} {K : ℕ} {w : List β} (hP : ∀ (u v : List β), u <:+: v → P v → P u) (h : Splits P K w) (T : Finset ℕ) (hT : ∀ t ∈ T, t < w.length) (hTP : ∀ t ∈ T, ∀ t' ∈ T, t < t' → ¬P (w.extract t (t' + 1))) :
If w splits into at most K factors satisfying an infix-closed P, then every set T of
positions of w such that no two of them lie in a common factor satisfying P has at most K
elements.