Documentation

CslibFrontier.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxTable.Index

Exact canonical-box indexing of the native directory #

Valid directory slots and the existing finite boxes are in bijection. The computed compact count is therefore the actual box cardinality, not a supplied catalogue size. The digit-update identity also gives the real child encoding-array index directly.

Canonical cube represented by the slot's star count and completed leaf.

Recover the unique raw directory slot of a canonical box.

An eligible slot denotes a box with the original finite box predicate.

Eligibility ensures that starring does not saturate before its supplied star count.

@[simp]

Completing a slot cube recovers its original completed leaf.

Recovering an eligible slot's key returns that exact slot.

Every finite box has a raw slot in the allocated directory.

A box's recovered slot satisfies both actual digit-loop eligibility tests.

The computed compact count is exactly the existing finite box-set cardinality.

Every eligible slot below the directory bound has compact rank below (boxes L m t).card.

The native subtraction computes a replacement leaf's existing decimal index exactly.