theorem
Hex.GraphIso.Nauty.Sparse.CountSort.firstRun_congr
{y z : Array Nat}
{first last : Nat}
{lab : Array Nat}
(h : «Sort».Agree y z first last lab)
(hf : first < last)
:
The initial equal-count scan has the same stopping position under local key agreement, including exhaustion at the exclusive cell end.
theorem
Hex.GraphIso.Nauty.Sparse.CountSort.minima_congr
{y z : Array Nat}
{first last : Nat}
{lab : Array Nat}
{begin : Nat}
(h : «Sort».Agree y z first last lab)
(hb : first < begin ∧ begin ≤ last)
(cap : Nat)
:
The literal three-way insertion, including aliasing reads after the first write, observes only keys of vertices in the original cell. Its returned cuts, minima and complete label array agree.