The five mset_child_* bodies for a config whose C is
MSetChild<G, M> — i.e. any config that stores AC
children as an id/multiplicity pair. Emitted rather than hand-written per config so the
checked increment in mset_child_merge cannot drift between configs: a duplicated
hand-written impl is where an unchecked + 1 can hide.
Survivor policy for class merges (--union-by). Rank leaves the choice
to the union-find’s rank heuristic (the historical default). The directed
criteria absorb the cheap side, reading the verified per-class counters:
Size compares member counts (bounds the semi-naive touched-log pushes to
amortized O(n log n) — a node is absorbed at most log n times), Uses
compares use-list lengths (bounds recanonization work the same way), and
Sum adds the two, bounding their aggregate movement. Survivor identity is
intended to be semantically irrelevant because class payloads are
merge-folded (design doc §9a), and finite differential tests compare the
policies. This is not an end-to-end equivalence theorem; budget-, goal-, or
order-sensitive runs may follow different operational paths.
An id type in bijection with a dense usize range [0, max). Used to index
arena vectors (list ids → heads, node ids → nodes). Modeled like
IndexLike (ghost as_nat + injective + bounded) plus exec as_usize /
from_usize.