Complete native Chan–He traversal from a supplied root #
The finite 128-register program initializes its actual stack and constants, pushes the supplied
seven-word root and executes the complete bounded traversal. Every emitted array is the existing
finite node's oneArray, in preorder. The protected frontend prefix survives for later roots.
Main definitions #
RootInput: concrete native array, metadata and disjoint-memory obligations of a root call.
Main results #
root_exec: complete actual native execution with exact output and a charged bound.
These native composition proofs are original. The initialized-input forest and global logarithmic-width/subquadratic-cost composition remain separate obligations.
Concrete caller obligations before the complete native root program initializes its stack.
- bounded : WordRAM.Data.Bounded (w + 2) x
Initial actual words fit.
- controls : a.Controls x
Persistent caller metadata.
- loaded : e.Loaded x
Exact root register metadata.
Exact root data readback.
Duplicate-free existing three-set admissibility.
The actual prime bitmap is ready.
Original arrays avoid the complete reserved stack and output-table gap.
All root arrays end below the fresh allocation.
The supplied fuel agrees with the fixed stack reservation.
The initial fresh allocation lies above the reserved gap.
The full tree's transitions reserve sufficient fresh memory.
Actual accumulated output count.
The full tree's transitions reserve sufficient output-pointer cells.
- output : StoredNodes a.U a.N a.table ns x.mem
Existing output retains its exact native readback.
Existing packed arrays lie above the gap and below the fresh allocation.
The entire frontend prefix is available.
Instances For
Execute the fixed complete native root program. There are no supplied kernel executions:
all calls are proved from the actual arrays, bitmap, finite bounds and one signed envelope.
The caller chooses m, Λ and fuel. Setting m = mPar n U, Λ = labelBits U and
e.fuel = fuel n makes e.task.output (Nat.primesLE a.m) a.Λ the existing Chan–He
reduction n U of the root sets; the initialized-input bridge is in PreprocessingEntries.