Query budgets through a handler with several kinds of calls #
A program can have separate budgets for signing calls and direct hash queries, for example.
If implementing a source call uses at most its weighted sum of source charges on target
channel j, then the same weighted sum of program budgets bounds the entire implementation
on j. Successive handlers act on the resulting budgets in turn.
These laws specialize vector charges to the pathwise natural-number bounds of
Cslib.OracleComp.IsCostBounded.
Main results #
Cslib.OracleComp.IsCostBounded.sum_mulcombines a finite set of weighted bounds.Cslib.OracleComp.IsCostBounded.interpret_demandtransfers channel budgets across one handler.Cslib.OracleComp.IsCostBounded.interpret_interpret_demandcomposes two handlers' demand matrices in execution order.
References #
Bas Spitters's vector-charge demand laws in PolyFun.
A finite weighted sum of budgets bounds the corresponding weighted sum of charges.
Substitution transfers a family of source budgets to each target channel according to the per-call demand. Only the family of source charges needs to be finite.
With two handlers, demands compose by matrix multiplication. The inner sum ranges over the intermediate channels and the outer sum weights each source budget exactly once.