PermutationReplace
Apply a permutation by VALUE rather than by position: a point becomes , wherever it shows up. On a plain point or a list this renames entries in place; on Cycles it conjugates — — since conjugating a cycle is exactly relabelling the points it names.
PermutationReplace✓PermutationReplace(i, perm), or itself past perm's own supportPermutationReplace(list, perm)list with every entry replaced by PermutationReplace(Cycles(...), perm)the cycles conjugated by perm — each point renamed, same cycle structureTyped signatures
| Type | Package | Applies |
|---|---|---|
(expression<Cycles> | integer | list<integer>, expression<Cycles> | list<integer>) -> expression<Cycles> | integer | list<integer> | groupalgebra | always |
Details
- Permute moves items by POSITION;
PermutationReplacerenames them by VALUE —Permute(List(a, b, c), perm)andPermutationReplace(List(1, 2, 3), perm)answer different questions permin either notation — Cycles or a one-line word- A point beyond
perm's own support is fixed and passes through unchanged - A conjugated Cycles prints in ITS canonical form — smallest point first, singletons dropped, cycles ordered by that first point — not whatever rotation the per-point relabelling produced; this is the same presentation PermutationCycles and
GroupElementsuse
Examples
Basic #
each VALUE is replaced, not the position it sits in — 4 is past the cycle's support, so it is fixed
live ↗on Cycles, PermutationReplace conjugates: every point the cycle names is relabelled by the second permutation
live ↗Scope #
Properties #
the result prints the way Cycles always does when it's computed rather than typed: smallest point first, singletons dropped — not whatever rotation the per-point relabelling happened to produce
live ↗conjugating by then by is conjugating by their composite: two steps land where one big permutation would
live ↗About
| Examples | 12 |
|---|---|
| Checked against | Wolfram Language 12 agree |
| Crosswalk | Wolfram Language |
See also: Permute, Cycles, PermutationList, InversePermutation