A raw permutation array preserves the ordered initial colours.
Equations
Instances For
theorem
Hex.GraphIso.Nauty.ColorMap.scatter
{n k : Nat}
{G : Colored n k}
{γ ref cur : Array Nat}
(hn : 0 < n)
(hrefSize : ref.size = n)
(href : CellsReach G ref)
(hcur : CellsReach G cur)
(hmap : ∀ (i : Nat), i < n → γ[ref[i]!]! = cur[i]!)
:
ColorMap G γ
Scattering between reached labellings preserves colours because the colour at each position is fixed by the initial ordered partition.