Postponing the named constants #
Interpreter.WF at (p, (d, t)) runs the interpreter on the program p at d with the budgets
t and accepts only if the budgets are used up exactly. Its runs are plain: they name no
constants. Their weights are those of the runs of p whose bill uses each name exactly as often
as t allows (Interpreter.ok). Constants are tries Interpreter.KT R of values in a ring R
over A. Summed over all budgets KT.budg J K with J digits, weighted by the products of the
powers of the constants, these plain sums give back the value of the program with the named
constants evaluated in K (Interpreter.val_eq_sum_budg).
From VP ≠ VNP over every field [Ant26], module NS1.Postpone.
Main definitions #
Interpreter.KT,Interpreter.KT.lookup,Interpreter.KT.budg.Interpreter.ok,Interpreter.wt,Interpreter.val,Interpreter.pval,Interpreter.WF.
Main results #
Interpreter.sum_budg: summing over the budgets picks out the bill of one run.Interpreter.WF_ev: the runs ofWFand their costs.Interpreter.val_eq_sum_budg.
A trie with constants of R at its leaves.
The number of nodes.
The height: a bound for the length of names.
Apply a program; then check that the budgets are used up. The argument is (program, (argument, budgets)).
Lemma 1, one bill: WF is plain; it has the runs whose bill is the budget.
Lemma 1 (postponing). The value of a list of runs is the sum, over all budgets, of the powers of the constants times the sums of the weights of the runs that use up the budgets.