case classFreeAbTerm[A](a: A, n: Int) extends Product with Serializable
case classPerm(map: Map[Int, Int]) extends Product with Serializable
Represents a permutation encoded as a map from preimages to images, including
only pairs that are moved by the permutation (so the identity is Map.empty).