Physical footprints through current-input preparation #
The interface author fixes the preparation relation, with its actual counted execution, current arguments, returned memory and accumulated physical words. Concrete loaders must connect this relation to their real invocation traces; an arbitrary relation or footprint annotation alone certifies no loader.
The accumulated seed cannot be dropped by preparation. The callback starts at the loader's actual resulting heap and memory, and unions its actual accesses into the same footprint. Future inputs are not initializer data. This module adds proof observations, not a loader, runtime or environment evaluator.
Current-input preparation and callback share one retained memory and one accumulating physical footprint. Only actual preparation steps are added.
- nil {ι : Type u} {configuration request : List Complexity.Language.Ty} {response : Complexity.Language.Ty} {w heapLimit : ℕ} {session : Complexity.Language.Session configuration request response} {prepareSpace : ι → State w heapLimit → Complexity.Language.Env request → State w heapLimit → ℕ → Finset (Word w) → Finset (Word w) → Prop} (state : Complexity.Language.Value session.stateTy) (current : State w heapLimit) (seed : Finset (Word w)) : PreparedSpaceRun session prepareSpace state current [] [] state current 0 seed seed
- cons {ι : Type u} {configuration request : List Complexity.Language.Ty} {response : Complexity.Language.Ty} {w heapLimit : ℕ} {session : Complexity.Language.Session configuration request response} {prepareSpace : ι → State w heapLimit → Complexity.Language.Env request → State w heapLimit → ℕ → Finset (Word w) → Finset (Word w) → Prop} {state : Complexity.Language.Value session.stateTy} {current : State w heapLimit} {input : ι} {args : Complexity.Language.Env request} {prepared : State w heapLimit} {preparationSteps : ℕ} {reply : Complexity.Language.Value response} {next : Complexity.Language.Value session.stateTy} {inputs : List ι} {replies : List (Complexity.Language.Value response × Complexity.Language.Heap)} {finish : Complexity.Language.Value session.stateTy} {finalMemory : State w heapLimit} {steps depth : ℕ} {seed preparedFootprint footprint : Finset (Word w)} (loaded : prepareSpace input current args prepared preparationSteps seed preparedFootprint) (retained : seed ⊆ preparedFootprint) (fits : EnvFits w args) (outcome : FunctionArenaExecution session.program session.step depth heapLimit prepared.placement (session.stepArgs state args) prepared.heap prepared.entry) (returned : outcome.value = session.stepValue reply next) (rest : PreparedSpaceRun session prepareSpace next (State.ofExecution outcome) inputs replies finish finalMemory steps (preparedFootprint ∪ outcome.heapAccesses) footprint) : PreparedSpaceRun session prepareSpace state current (input :: inputs) ((reply, outcome.heap) :: replies) finish finalMemory (preparationSteps + outcome.result.steps + steps) seed footprint
Instances For
Initialization's real accesses seed the first preparation, including when the history is empty. Only configuration data initializes the source session.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Erase the same concrete loader's footprint evidence, preserving its actual steps, arguments and intermediate memory. This is not a new free preparation.
The initialized trace projects without changing any invocation or cost.
Preparation and callback cannot reset the retained physical-word history.
The original resident arena prefix remains counted after all preparations.
Prepared histories compose at their real intermediate heap and footprint, retaining reused storage rather than adding isolated per-call word counts.
The fixed concrete loader's source correspondence erases the same space trace to the independent source session, with all intermediate heaps intact.