Documentation

Complexitylib.Models.RandomAccessMachine.Simulation.RegisterStore.Machine.EntryMissCopy

Sparse-entry miss copy #

This module exposes the update-scan branch that appends one unmatched entry to the new store and restores the exact invariant needed to inspect the next one.

theorem Complexity.RAM.RegisterStore.Machine.entryMissCopyTM_hoareTime_frame {n : } (tapes : EntryMatchTapes n) (entry : Entry) (rest queryBits emitted : List Bool) (initialWork matchedWork : Fin nTape) (inp₀ out₀ : Tape) (hmatch : ReadableEntryMatch tapes entry rest queryBits initialWork matchedWork) (hinput : TM.Parked inp₀) (houtput : out₀.HasBinaryPrefix emitted) :
(entryMissCopyTM tapes).HoareTime (fun (inp : Tape) (work : Fin nTape) (out : Tape) => inp = inp₀ work = matchedWork out = out₀) (fun (inp : Tape) (work : Fin nTape) (out : Tape) => inp = inp₀ EntryScanReady tapes rest queryBits initialWork work out.HasBinaryPrefix (emitted ++ entry.encode)) (entryMissCopyTime tapes entry queryBits initialWork matchedWork)

Copy one decoded unmatched entry to the output stream and restore the ordinary next-entry scan invariant, with an explicit intermediate work frame.

Miss-copy is append-only on the output tape.

theorem Complexity.RAM.RegisterStore.Machine.entryMissCopyTM_prefix_withinAuxSpace {n : } (tapes : EntryMatchTapes n) (entry : Entry) (queryBits : List Bool) (initialWork matchedWork : Fin nTape) (inputLength initialSpace time : ) (start current : Complexity.Cfg n (entryMissCopyTM tapes).Q) (hinitial : start.WithinAuxSpace inputLength initialSpace) (hreach : (entryMissCopyTM tapes).reachesIn time start current) (htime : time entryMissCopyTime tapes entry queryBits initialWork matchedWork) :
current.WithinAuxSpace inputLength (initialSpace + entryMissCopyTime tapes entry queryBits initialWork matchedWork)

Coarse all-prefix auxiliary-space envelope for one miss-copy branch.