Documentation

CslibFrontier.Computability.Complexity.Classes.A0PP

Vyalyi's counting class A₀PP #

Vyalyi, Definition 2, uses a GapP function and an input-dependent FP threshold. The integer inequality 2 * g x < T x expresses the strict half-threshold on nonmembers. Subtracting the threshold gives the inclusion in PP. Doubling the count of an SBP language and taking one less than twice its threshold gives the inclusion of SBP.

Main definitions #

Main results #

References #

def Cslib.Complexity.A0PP {α : Type} (enc : α ↪ List Bool) :
Set (Set α)

A₀PP Vyalyi, Definition 2. A GapP function exceeds a binary FP threshold on members. On nonmembers it is nonnegative and strictly below half that threshold.

theorem Cslib.Complexity.A0PP_subset_PP {α : Type} {enc : α ↪ List Bool} :
A0PP enc ⊆ PP enc

A₀PP ⊆ PP Vyalyi, following Definition 2. The difference of the gap function and its FP threshold is positive exactly on members.

theorem Cslib.Complexity.SBP_subset_A0PP {α : Type} {enc : α ↪ List Bool} :
SBP enc ⊆ A0PP enc

SBP ⊆ A₀PP. For an SBP count f with threshold k, the doubled count 2 f exceeds the threshold 2 k - 1 on members, where k ≤ f, and on nonmembers 2 f < k gives 2 * (2 f) < 2 k - 1. This direct argument is our own. The inclusion is also a consequence of SBQP = A₀PP Kuperberg, Proposition 2.13, as SBQP contains SBP.