Independent additive resource certificates #
The same semantic implementation admits multiple resource interpretations. Additive measures of native evidence compose exactly; this does not model peak live space or cache replacement. Module potentials may depend on hidden intermediate representations, which are retained as existential witnesses rather than silently exposed to the client.
Main definitions #
total: additive interpretation of a native trace.Bound: a per-operation resource certificate, separate from semantic implementation.
Main results #
total_eq_sum_map,total_flatten:totalagrees with(ts.map weight).sumand distributes over flattened trace chunks.Bound.demonic,Bound.exists_demonic: relational resource bounds and existence along a demonically admissible adaptive client.Bound.client,Bound.exists_executes,Bound.client_const,Bound.exists_executes_const: deterministic specializations for[D.HasStepFn f].Module.bound_demonic,Module.bound: transport worst-case bounds through a semantic module.Module.amortized_demonic,Module.amortized_client: telescope hidden-state potential through adaptive client executions.
References #
A resource certificate is separate from the implementation and can be supplied more than once.
Instances For
Under a resource certificate, every native execution of a demonically admissible client
realizes a valid ClientRun transcript whose total charge bounds total weight traces.
Under a resource certificate, every demonically admissible client admits a native execution
meeting the total charge bound along its ClientRun transcript.
Under a resource certificate on a deterministic specification ([D.HasStepFn f]), every native
execution of a client whose history is admissible has total weight at most the total charge of the
specified history.
Existence and semantic correctness are inherited independently from the implementation.
Uniform constant per-operation bounds scale by the history length.
Existence, correctness, and total cost for a uniform constant per-operation bound.
Transport a worst-case resource bound through a relational semantic module.
A resource interpretation is transported afterwards on deterministic lower specifications.
Hidden representation credit telescopes along an arbitrary demonically admissible upper client. The intermediate abstract state remains existentially hidden in the conclusion.
Hidden representation credit telescopes along an arbitrary adaptive upper client on deterministic specifications.