Filtering an interleaving recovers its two disjoint orders
ProvedMarkovScattering.filters_of_ordersmarkov-scattering
Let and be disjoint finite sets in a type with decidable equality, and let and list each element of and once, respectively. If is an order-preserving interleaving of and , keeping the elements of in gives and keeping the complementary elements gives .
Preamble
import Mathlib.Algebra.BigOperators.Group.Finset.Basic
import Mathlib.Algebra.BigOperators.Group.Finset.Sigma
import Mathlib.Algebra.BigOperators.Ring.Finset
import Mathlib.Algebra.Field.Defs
import Mathlib.Data.Finset.Dedup
import Mathlib.Data.Finset.Lattice.Lemmas
import Mathlib.Data.Finset.Union
import Mathlib.Data.List.Nodup
import Mathlib.Data.List.Permutation
import Definitions.Def_MarkovScatteringPlanar_Interleavings
import Definitions.Def_MarkovScatteringPlanar_Orderings
set_option autoImplicit false
open MarkovScattering
open scoped BigOperators
open MarkovScattering
variable {V K : Type*} [DecidableEq V]
Formal statement
theorem MarkovScattering.filters_of_orders (A B : Finset V) (hAB : Disjoint A B)
{u v l : List V} (hu : u ∈ orders A) (hv : v ∈ orders B) (hl : l ∈ shuffles u v) :
l.filter (fun x => decide (x ∈ A)) = u ∧ l.filter (fun x => !decide (x ∈ A)) = v := by sorry
Source