Documentation

CslibFrontier.Computability.Complexity.Classes.SharpP.WeightedReplay

GapP weights for finite oracle replay #

An instruction-indexed transcript supplies a Boolean reply at each machine instruction. Query instructions use a GapP numerator, while local instructions assign zero weight to true. Each pair of branch weights sums to a per-instance GapP denominator D a. Summing the accepting transcript products gives an ordinary GapP function by uniform indexed products and uniform Boolean sums. AWPP lowness uses the dyadic denominator D a = 2 ^ R a; the exact SPP and LWPP simulations use D a = 1 and a length-dependent product of targets.

Main definitions #

Main results #

References #

def Cslib.Complexity.weightedReplay {α : Type} {k : ℕ} {Control Operation : Type} [DecidableEq Operation] (machine : Turing.MultiTapePTM k Bool Control Operation) (input : α → List Bool) (T : α → ℕ) (D : α → ℤ) (H : α × List Bool → ℤ) (a : α) :

Total accepting weight of the instruction-indexed replay tree with per-instance integer denominator D a. Query instructions use the request numerator H (a, w), while local instructions assign zero weight to true and weight D a to the canonical padding bit false.

theorem Cslib.Complexity.GapP.weightedReplay_mem {α : Type} {enc : α ↪ List Bool} {k : ℕ} {Control Operation : Type} [DecidableEq Operation] [Finite Control] [Finite Operation] (machine : Turing.MultiTapePTM k Bool Control Operation) {input : α → List Bool} {T : α → ℕ} {D : α → ℤ} {H : α × List Bool → ℤ} (hinput : Turing.MultiTapeTM.ComputableInPolyTime input enc Turing.MultiTapeTM.encBits) (hT : Turing.MultiTapeTM.ComputableInPolyTime T enc Turing.MultiTapeTM.encUnary) (hD : D ∈ GapP enc) (hH : H ∈ GapP (Turing.MultiTapeTM.encPair enc Turing.MultiTapeTM.encBits)) :
weightedReplay machine input T D H ∈ GapP enc

A finite oracle computation with a GapP denominator and GapP request numerators has an ordinary GapP accepting weight. The clock is computed in unary; no oracle closure axiom or positivity assumption on the numerators is needed.