Costs of straight-line programs in powers of one number #
The costs of Cslib.Circuits.Cost and Cslib.Circuits.CostP are counted here in powers of one
number Y, the base (Cslib.Circuits.StepBase D Y): 3 ≤ Y, and the alphabet Fin D holds
all numbers below Y ^ 4. Then a binary operation, a relation or a connective raises the
exponent of the cost by one; a sum, a count or a bounded quantifier over at most Y elements and
a choice raise it by two. A family of at most Y ^ e functions, each computed in Y ^ a steps
with a + e ≤ k, is added to a straight-line program in one stage of Y ^ k gates
(Cslib.Circuits.StepBase.stage). The functions and indicators that are computed already cost
nothing (Cslib.Circuits.Cost.of_mem, Cslib.Circuits.CostP.of_mem).
Main definitions #
Cslib.Circuits.StepBase: the base of the costs.
Main results #
Cslib.Circuits.Cost.of_mem,Cslib.Circuits.CostP.of_mem: the functions and the indicators that are computed already.Cslib.Circuits.StepBase.lt_of_le,StepBase.lt_of_le_two_mul_pow_three,StepBase.one_lt: the letters of the alphabet.Cslib.Circuits.StepBase.const,StepBase.op,StepBase.op1,StepBase.sum,StepBase.ite,StepBase.card_filter: the rules ofCostin powers of the base;StepBase.constP,StepBase.rel,StepBase.rel1,StepBase.and,StepBase.or,StepBase.not,StepBase.exists_mem,StepBase.forall_mem,StepBase.exists_univ,StepBase.forall_univ: those ofCostP.Cslib.Circuits.StepBase.stage: a family of functions takes one stage of a program.
References #
- Anthropic, VP ≠ VNP over every field, paper and Lean formalization,
Theorem H.2(d), p. 46, and its proof ("For (d)", p. 48); module
Nc.Tow.Slp0
Functions #
Properties #
Counting: the number of elements of a set of at most Y elements with a property.
Stages #
One stage. A family of at most Y ^ e functions, each computed in Y ^ a steps from the
functions of H with a + e ≤ k, is computed by Y ^ k more gates.