Documentation

CslibFrontier.Computability.Complexity.Classes.SharpP.Power

Uniform powers of #P functions #

A polynomial-time unary repetition count permits a verifier to check an input-dependent number of certificate rows. The number of accepted tuples is the corresponding power, including exponent zero. Exact false-bit padding supplies a length-polynomial certificate.

Main definitions #

Main results #

References #

def Cslib.Complexity.SharpP.powerVerifier {α : Type} (r k : α → ℕ) (V : α × List Bool → Bool) (x : α × List Bool) :

Check every row of the repeated certificate, accepting the empty tuple.

theorem Cslib.Complexity.SharpP.acceptCount_powerVerifier {α : Type} (r k : α → ℕ) (V : α × List Bool → Bool) (a : α) :
acceptCount (powerVerifier r k V) a (r a * k a) = acceptCount V a (k a) ^ r a

The number of accepted row tuples is the power of the number of accepted rows.

theorem Cslib.Complexity.SharpP.pow_mem_polyTime {α : Type} {enc : α ↪ List Bool} {f r : α → ℕ} (hf : f ∈ SharpP enc) (hr : Turing.MultiTapeTM.ComputableInPolyTime r enc Turing.MultiTapeTM.encUnary) :
(fun (a : α) => f a ^ r a) ∈ SharpP enc

A #P function raised to an input-dependent polynomial-time unary exponent remains in #P.