A native weight pass on a read-only Justesen seed #
Read the raw seed in index order, mask each bit using the prepared Justesen field context and the vertex column, and apply the layer scaling to the base-six sum. The implementation shares the seed-digit loop and replaces only its final output. The query state bound charges the prepared field context and seed length separately. With a fixed prepared context, the entire raw-seed computation has a native linear-workspace certificate.
The runtime entry loads a prepared context from the framed input prefix. Its offset executor agrees with the direct weight pass on the unchanged seed suffix. One native machine loads the header and executes this pass, using workspace linear in the encoded request and returning the binary weight. For canonical seeds and vertices, the compiled machine's workspace and output length are linear in the encoded binary dimensions. The input still contains the prepared field context.
The field data and vertex coordinates retained during a single weight query.
- field : Code.JustesenFamily.FieldContext
Prepared Justesen field for the graph dimensions.
- layer : ℕ
Layer of the weighted vertex.
- column : ℕ
Column used as the binary Justesen label.
The tuple of the fields of encContext.
Scan one raw seed and return the binary Justesen weight of the given vertex.
The actual Justesen query pass has native components linear in their encoded arguments.
With a fixed prepared field and vertex context, the entire raw-seed pass uses native workspace linear in the seed length, including its binary output.
Every clock charges only the retained context and the length of the read-only seed.
A raw seed in index order gives the existing generated weight at the prepared vertex.
For the seed in increasing index order, the pass first halts at the first absent bit and returns the existing generated weight, including the zero weight at layer zero.
For canonical seeds and vertices, a single bound in the encoded binary dimensions covers every state of the read-only pass and the binary weight it returns.
A framed binary offset and the complete encoded weight-pass state.
Start the weight pass at the first seed cell, with the context in its initial registers.
Native initialization charges the prepared header's length, independently of seed length.
The offset weight executor. Use the loaded state as the entry to its run.
All native components charge space linear in the encoded located state or state and reply.
The loaded executor halts at the end of the seed with the native pass's scaled weight.
Compile the weight pass with a native context-and-offset initializer. The seed suffix is read from the original input. Workspace and binary output length are linear in the input encoding when the initializer fits that budget.
One native machine loads the framed context and runs the weight pass on the original word. The binary result and workspace are both linear in the encoded prepared request.
One native machine computes the generated weight on each prepared canonical request. Both workspace and binary output length are linear in the encoded graph dimensions. The runtime bound is existential and indexed by the prepared request.