Documentation

HexGraphIso.Nauty.Sparse.TouchSort

Touched-cell sorting retains all recorded cells and their multiplicities.

The executed tiny-sort specialization shares this ascending order contract.

theorem Hex.GraphIso.Nauty.Sparse.Touched.sorted {n stamp : Nat} {before marks touched : Array Nat} {seen : List Nat} (h : Touched n stamp before marks touched seen) :
Touched n stamp before marks (sortCells touched) seen

Sorting preserves first-touch coverage and uniqueness.