Native subdivision adjacency from a weight function and a read-only edge callee #
The request carries binary vertex labels and chain offsets, together with caller context such as dimensions and a seed. A fixed caller invokes the original graph's same-input edge callee, then combines its returned bit with the source vertex's weight. The adapter adds no copy of the original input; retained query/context storage is charged explicitly. Native certificates are relative to the supplied weight routine and original-edge callee; constructing Hoza's weight routine remains in #6747.
Applying the interface #
Import this module and use Turing.QueryMachine.Subdivision. Supply a fixed original-edge
QueryMachine, a compact-query-to-callee-state request function, a source-weight routine,
and a decoder for the callee's returned state. callback_runFrom composes the actual
same-input execution. edgeQuery_agrees supplies graph agreement from the original-edge
answer and source weight. The request/context carries only what the caller chooses to retain;
query_length_le_log charges that context explicitly and bounds polynomial coordinates by
logarithmic storage.
callback_parts_inSpace consumes native linear-workspace certificates for the weight,
request and answer functions and the base callee's query/next/halted components. Callee
emissions and final words are discarded. callback_states_le separately bounds every
persistent encoded state through return by 2*C+D+6 when the pending query has at most C
bits and each base-callee state has at most D. It includes the suspended caller and framing.
Native component workspace is charged by the component certificates, not by this state bound.
The checked client combines Hoza's generated weights with the unweighted transcript
contract, exercises auxiliary and unused slots and a tied diamond, and composes an actual
input-reading callee with graph agreement and the native certificate. Run
scripts/build.sh CslibFrontierTests.WeightedSubdivision --wfail --iofail.
Main results #
edgeQuery_agrees: the returned Boolean is the subdivision adjacency test.callback_runFrom: actual same-input call/return semantics.callback_parts_inSpace: native workspace certificates for all five components.callback_states_leandquery_length_le_log: explicit state and query-size accounting.
Coordinates of a subdivision edge, together with its dimensions/seed context.
The Boolean kernel agrees with the mathematical subdivision, including unused offsets.
The native adjacency callback, with actual original-input reads delegated to N.
Decoding the returned Boolean uses linear native workspace in the callback state.
Running the supplied read-only callee returns the subdivision answer after its own first-halting time plus call entry and return. No answer bit is assumed in the initial query.
The pending subdivision caller first halts two steps after its callee's first halt.
All five components of the same-input subdivision callback use linear compact-state workspace, relative to the native weight routine and original-edge callee. The callee's emissions and finish routine are discarded by the state-returning call and need no bounds.
If the request has at most C bits and the base edge callee has at most D bits
through its first halt, the whole call has at most 2*C+D+6 bits through its return.
Thus logarithmic query and callee-state bounds compose, with retained context included in C.
Polynomially bounded labels and offsets add only logarithmic storage to the explicitly charged context. In particular, a logarithmic seed/dimensions context stays logarithmic.