A permutation from its literal image list, with identity as the fallback
for invalid input. Kernel.ofNatArray_permOfImages proves this fallback is
unreachable when Kernel.imagesOk accepts.
Equations
- Hex.Perm.ofImages n l = match Hex.Perm.ofNatArray? n l.toArray with | some p => p | none => Hex.Perm.id n