Two-pass scatter and gather stages #
Both halves of the manuscript's four-pass router have the same shape. First
sort by (key, tag) and copy a matching predecessor's payload; then sort the
updated complete records by a caller-selected canonical output tuple. This
module composes the already verified circuits, records the exact semantics,
and gives the additive gate ledger. Instantiating it once for scatter and
once for gather accounts for all four sorting passes.
Gate count emitted by a match pass followed by a canonical-order pass.
Equations
- One or more equations did not get rendered due to their size.
Instances For
One complete two-pass stage of the router. outputOrder maps the virtual
canonical-order key and payload positions back to the physical record layout.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Pure semantics of one match-then-order stage.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The second pass establishes its selected canonical output order.
The canonical-order pass moves complete records and therefore preserves every payload produced by the matching pass.
Explicit cost of a two-pass stage: one (key,tag) sorter, one guarded
linear scan, and one caller-selected canonical-order sorter.
The combined gate cost of the scatter pair and gather pair. The resource evaluation circuits sit between these stages and are intentionally not part of this routing-only ledger.
Equations
- One or more equations did not get rendered due to their size.