Polynomial advice — definitions #
Advice is a length-indexed binary string. An advised machine receives the
self-delimiting encoding pair (advice n) x on its read-only input tape, while
time remains charged against the original input length n.
This file also defines the nonuniform circuit family obtained by fixing both the deterministic choice prefix and the length-dependent advice prefix of a bounded acceptance circuit.
A binary advice string for every original input length.
Equations
- Complexity.Advice = (ℕ → List Bool)
Instances For
Put the length-dependent advice before the ordinary input using the self-delimiting pairing encoding.
Equations
- Complexity.advisedInput a x = Complexity.pair (a x.length) x
Instances For
Advice has polynomial length when one natural-coefficient polynomial bounds every advice string.
Equations
- Complexity.PolynomialAdvice a = ∃ (p : Polynomial ℕ), ∀ (n : ℕ), (a n).length ≤ Polynomial.eval n p
Instances For
The fixed prefix preceding an ordinary n-bit input.
Equations
- a.fixedPrefix n = Complexity.pair (a n) []
Instances For
The full advised input as a fixed-length bit string, factored into its fixed prefix followed by the live ordinary input.
Equations
- a.inputBits x = Fin.append (a.fixedPrefix n).get x
Instances For
A DTM decides L with advice a in time T when it starts on
pair (a |x|) x, halts within T |x|, and writes the ordinary language verdict.
The resource bound is indexed by the original input length, not the paired
input length.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Exact fixed-horizon advised acceptance predicate on a fixed-length live input.
Equations
- tm.advisedBoundedAcceptanceBit a T x = Complexity.CircuitUnrolling.boundedAcceptanceBit tm.toNTM (T n) (a.inputBits x) fun (x : Fin (T n)) => false
Instances For
The nonuniform family obtained by hardwiring the advice for each length into the bounded deterministic acceptance circuit.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Languages decided in polynomial time with polynomial-length advice.
Equations
- One or more equations did not get rendered due to their size.