The successor of a tuple of bounded weight in polynomial time #
Cslib.BudgetTuples.budgetNext walks the tuples of weight below a budget, the mode exponents of
the Boolean tensor contraction proof of [OAI26k] (§D.4.5, p. 63). This file certifies that
one step is polynomial-time, with the weights, the budget and the tuple in binary
(computableInPolyTime_budgetNext), through its left scan budgetNextScan. So the enumeration
has polynomial delay.
Main definitions #
Cslib.BudgetTuples.encScanState,Cslib.BudgetTuples.encBudgetInput: encodings of the scan state and of the inputs.
Main results #
Cslib.BudgetTuples.computableInPolyTime_scanStep: one step of the scan.Cslib.BudgetTuples.computableInPolyTime_budgetNext: the successor.
References #
- OpenAI, The Exponential Time Hypothesis is False, §D.4.5, the enumeration after (D.15), p. 63.
@[reducible, inline]
The state of the scan: the remaining budget in binary, the number of remaining weights in unary, the coordinates read and the successor found so far in binary.
One step of the scan is polynomial-time.
theorem Cslib.BudgetTuples.computableInPolyTime_budgetNext :
Turing.MultiTapeTM.ComputableInPolyTime (fun (x : List ℕ × ℕ × List ℕ) => budgetNext x.1 x.2.1 x.2.2) encBudgetInput
(Turing.MultiTapeTM.encOption (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encNat))
The successor is polynomial-time, with the weights, the budget and the tuple in binary: the enumeration of the tuples of bounded weight has polynomial delay.