Documentation

CslibFrontier.Foundations.GroupTheory.Perm.ListColorPath

Corner colors along listed cycles #

Directed cycle equations give literal chains of entry/exit colors. Identity-colored seams can be removed when concatenating chains, including chains with no interior entries. These facts use arbitrary colors and have no graph or nonemptiness premise on a block.

theorem List.isChain_colorPairs_of_formPerm {α : Type u_1} {β : Type u_2} [DecidableEq α] (word : List α) (hn : word.Nodup) (P Q : α → β) (h : ∀ a ∈ word, P (word.formPerm a) = Q a) :
IsChain (fun (p q : β × β) => p.2 = q.1) (map (fun (a : α) => (P a, Q a)) word)

The forward equations of a listed cycle give every consecutive corner equation.

theorem List.isChain_colorPairs_cut_formPerm {α : Type u_1} {β : Type u_2} [DecidableEq α] (a : α) (tail : List α) (hn : (a :: tail).Nodup) (P Q : α → β) (h : ∀ b ∈ a :: tail, P ((a :: tail).formPerm b) = Q b) :
IsChain (fun (p q : β × β) => p.2 = q.1) ((Q a, Q a) :: map (fun (b : α) => (P b, Q b)) tail ++ [(P a, P a)])

Cutting a listed cycle after its marked entry gives a path from that entry's exit color back to its entry color. An empty tail forces the two colors to be equal.

theorem List.isChain_colorPairs_cycle_formPerm {α : Type u_1} {β : Type u_2} [DecidableEq α] (a : α) (tail : List α) (hn : (a :: tail).Nodup) (P Q : α → β) (h : ∀ b ∈ a :: tail, P ((a :: tail).formPerm b) = Q b) :
IsChain (fun (p q : β × β) => p.2 = q.1) ((P a, P a) :: map (fun (b : α) => (P b, Q b)) (a :: tail) ++ [(P a, P a)])

A complete directed cycle is a closed entry/exit color path, anchored at its actual first entry. No nonempty condition on subsequently substituted blocks is needed.

theorem List.formPerm_colorPairs_of_isChain {α : Type u_1} {β : Type u_2} [DecidableEq α] (word : List α) (hn : word.Nodup) (P Q : α → β) (c : β) (h : IsChain (fun (p q : β × β) => p.2 = q.1) ((c, c) :: map (fun (a : α) => (P a, Q a)) word ++ [(c, c)])) (a : α) :
a ∈ word → P (word.formPerm a) = Q a

A closed path of entry/exit colors supplies the exact forward cycle equations of the original duplicate-free word. Empty words are allowed and have no equations to check.