Initialized flat programs with a fixed register layout #
Choose the frontier, input bank and fresh scratch bank once, before every runtime width and
argument. Clients supply the same encoded-input, fit, domain and memory-history premises as
Realizes.exists_init_program, without proving register-placement conditions themselves.
The real Data.init prefix, native body and trailing halt are all charged. Its positive
next-free address must fit even for an empty input; this is not a width-zero initialization.
Main definitions #
Realization.stripRand: replaces unreachable.randinstructions with no-op register copies so a deterministicProgram B rsatisfiesProgram.IsRandFree.
Main results #
Realization.isRandFree_stripRand,Realization.not_readsWidth_stripRand,Realization.step_stripRand_of_halt,Realization.runs_stripRand:stripRandproduces a rand-free program preserving¬ReadsWidth, halting steps, and deterministicRuns.Realizes.exists_standard_init_program_state_from_words: one flat program for independent raw memory and register arguments, related by their input prefix.Realizes.exists_standard_basis_init_program_state_from_words: standard-basis width-blind (Program .standard r,¬prog.ReadsWidth) translation of the same initialized flat program.Realizes.exists_standard_init_program_state: the argument-indexed specialization, retaining the exact whole-memory, frontier and all encoded result words at its fixed halting location.Realizes.exists_standard_init_program: the scalarExecutesprojection of that same run.
The observed coordinate is static, as in the existing scalar export. Zero-output Unit clients continue to use the separate charged Unit-observation API.
References #
This is original infrastructure over the existing realization certificate, charged input prefix
and native Code.program compiler. It introduces no execution model or client language.
stripRand p contains no .rand instructions.
stripRand preserves width-blindness (¬Program.ReadsWidth).
Halting steps of p transfer unchanged to stripRand p.
One statically laid-out flat program includes charged input installation and its halt. The witnessed native state is the actual final state of the flat run, retaining the entire source memory and frontier and every result coordinate. The raw input words vary independently of the register-encoded argument: only their input prefix must agree. All witnesses precede both kinds of runtime data.
One statically laid-out flat program includes charged input installation and its halt. The witnessed native state is the actual final state of the flat run, retaining the entire source memory and frontier and every result coordinate. All witnesses precede runtime data.
The canonical initialized export requires no caller-written register layout. Its bound includes the actual prefix, body and final halt, with code fixed before every width and input.
Standard-basis width-blind analogue of exists_standard_init_program_state_from_words:
translates the realized Basis.exact structured code along Basis.Simulates.exactStandard into
a Program .standard r satisfying ¬prog.ReadsWidth, preserving exact memory, frontier, result
coordinates, and step bounds on every admitted run.