Sorting original metadata through the actual CROSS executor #
CrossInsertion.sortBoundaryMetadata first checks alignment, computes a stable trace of
ORIGINAL metadata keys, and executes those exact requests. Actual State names are never
comparison keys. Equal keys retain distinct occurrences and may carry different values;
the later group-fusion compiler phase of #3091
is not performed here.
The full checker, exact arity, universal old-name extension, direct one-output recovery, and component recurrences follow from the public schedule contracts and the computed trace. Native runtime is a fixed composition of two all-raw plain certificates, each with its own internally proved growth bound. No sorting, routing or growth oracle is supplied.
Guard metadata alignment BEFORE generation. Aligned input executes the actual stable trace in order; mismatch preserves the entire raw State without tagging or normalization.
Mismatched metadata is an exact raw identity, including malformed surplus tables.
Sorted keys make no requests, so even a malformed State remains ENTIRELY unchanged. This includes all-equal, empty and singleton metadata; no raw cycle is canceled.
Full target checker preservation is derived internally from the actual executed trace.
Exact arity is preserved on EVERY raw input, including mismatch and malformed scopes.
Exact rows, occurrences, port count and relation-symbol word after the computed trace.
T is the actual emitted length (at most choose P 2), and every request is valid.
The computed sorted metadata word has exactly the surviving boundary length on aligned input. This relates the actual computed keys to the actual sorted State, for run consumers.
ONE satisfying output recovers source truth and the entire original-index-permuted
value word. Every original name, including unused names, is read at 2^T*z. No checker,
arity, distinctness or semantic alignment premise besides the actual key/port length is
assumed. The index word is the literal computed replay, not a chosen permutation.
Source truth iff a satisfying output extends EVERY old name and has the precise stable value permutation. Distinct ports with equal metadata may keep different values. Zero requests use the identity lift; mismatch instead has its separate whole-State identity.
The length-guarded generator/executor composition is plain polynomial time on EVERY raw State and binary metadata list, for any encoded target alphabet. The generator proves its own prefix bound; the executor proves actual CROSS growth, including initial huge malformed table entries and fixed template symbol payload.