Transporting list rotations #
This file records how list rotations act on their finite index types and interact with filtering, and how the permutation formed by a list interacts with mapping by an equivalence.
These lemmas transport a cyclic order, and the successor permutation it induces, across a
renaming of indices. They are needed when comparing a combinatorial construction built from a
list with the same construction built from a cyclic rotation of that list: filtering both lists
by the same predicate gives cyclically rotated sublists, which therefore form the same
permutation, and renaming the entries by an equivalence conjugates that permutation. For
example, TauCeti.KnotTheory.BraidWord.Cyclic uses them to identify the closures of cyclically
rotated braid words.
Main results #
List.rotateIndexEquiv: identify the entries before and after rotating a list.List.formPerm_map_equiv: mapping a list by an equivalence conjugates its formed permutation.List.formPerm_map_apply: mapping a list by an injective function intertwines the formed permutations on the image.List.formPerm_append_apply_of_mem_rightandList.formPerm_append_apply_getLast_left: the permutation formed byT ++ Von the entries ofV, and on the last entry ofT.List.IsRotated.filter: filtering preserves cyclic rotation of lists.
The equivalence which sends the index of an entry in l.rotate k to its original index in
l. It is the cast along preservation of length followed by addition of k modulo the list
length.
Instances For
Mapping a list by an equivalence conjugates the permutation formed by the list.
Mapping a list by an injective function intertwines the permutations formed by the two lists:
on the image of f, the permutation formed by l.map f is l.formPerm transported along f.
On an entry x of V, the permutation formed by T ++ V agrees with the one formed by V,
except that the last entry of V, which V.formPerm sends back to the head of V, is sent to
the head of T ++ V instead.
Filtering cyclically rotated lists by the same Boolean predicate preserves their cyclic rotation.