Numerical query codes for native pruned evaluation #
The output variables use the existing term numbering through their private terms: the nine outer outputs have digits zero through eight and the inner output has digit nine. The first coordinate is the least significant digit, exactly as for the encoded leaf arrays.
Main definitions #
PrunedQuery.queryIndex: the flat code of an output string.PrunedQuery.childCodes: the child request set, computed by digit tests and division.
Main results #
PrunedQuery.queryIndex_privateLeaf: agreement with the existing leaf-array indexing.PrunedQuery.queryIndex_cons: the numerical first-digit decomposition.
References #
The child-set definition is adapted from [AlmanWilliams2026, Section 2.4.2] and Anthropic's
formal source at revision 16a5ce41304fcdaea4e0be7c132e1c361dc26da5,
pinned source. These are finite coding identities, not native run claims.
Output digits follow their private terms in the existing encoder's numbering.
Instances For
The least-significant-first flat code of an output string.
Instances For
Decode a supplied finite query code with the existing executable digit enumeration.
Instances For
Encoding a decoded query returns the actual supplied code.
Decoding a query's code returns every output coordinate unchanged.
The requested output set is computed from the ordinary initialized list of query codes. Repeated list entries are allowed and will be reported in their original order.
Instances For
The request set's numerical image is precisely the set of supplied numerical codes.
A query's code is the leaf-array address of its private leaf.
Every flat code denotes exactly one output string.
Replacing output strings by their numerical codes preserves a request-set cardinality.
The first query digit is its output-variable digit; the suffix is shifted by one place.
Taking the first numerical digit recovers the first output variable.
Integer division discards the first output coordinate.
A term contributes to the inner digit or to its own outer digit.
Numerical child requests are selected by the actual digit tests, then shortened by division. The finite-set image removes repeated suffixes. Native code will implement that deduplication.
Instances For
The numerical child requests agree exactly with the existing finite pruning definition.
The whole native child-set specification is the numerical image of the existing child set.