Documentation

CslibFrontier.Computability.Complexity.Classes.US

Unique-solution polynomial time #

US tests whether a polynomial-time verifier has exactly one accepting witness Blass and Gurevich. Unlike UP, a no-instance may have multiple witnesses. This uses the existing verifier-based #P; no counting-machine characterization is asserted. The containments and closure below are elementary count identities; for US ⊆ DP, a count is one exactly when it is positive and has no two-element subsets.

Main definitions #

Main results #

References #

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

Exactly one accepting witness, with no ambiguity restriction on no-instances Blass and Gurevich.

theorem Cslib.Complexity.mem_US {α : Type} {enc : α ↪ List Bool} {A : Set α} :
A ∈ US enc ↔ ∃ f ∈ SharpP enc, ∀ (a : α), a ∈ A ↔ f a = 1
theorem Cslib.Complexity.UP_subset_US {α : Type} {enc : α ↪ List Bool} :
UP enc ⊆ US enc

Globally unambiguous verifiers are special cases of unique-solution verifiers.

theorem Cslib.Complexity.coNP_subset_US {α : Type} {enc : α ↪ List Bool} :
coNP enc ⊆ US enc

Adding one to the accepting count of the complement recognizes a coNP language.

theorem Cslib.Complexity.US_subset_DP {α : Type} {enc : α ↪ List Bool} :
US enc ⊆ DP enc

US ⊆ DP Blass and Gurevich, Section 1, p. 81, where US is defined by one polynomially bounded witness and DP (their DIFᴾ) as an NP set intersected with a coNP set. The proof here is via counts: an accepting count is one exactly when it is positive, an NP condition, and its number of two-element subsets C(f a, 2) is zero, a coNP condition (SharpP.choose_mem).

theorem Cslib.Complexity.US_subset_CeqP {α : Type} {enc : α ↪ List Bool} :
US enc ⊆ CeqP enc

Subtracting one from the count gives a GapP zero test.

theorem Cslib.Complexity.inter_mem_US {α : Type} {enc : α ↪ List Bool} {A B : Set α} (hA : A ∈ US enc) (hB : B ∈ US enc) :
A ∩ B ∈ US enc

A product of natural counts is one precisely when both factors are one.

theorem Cslib.Complexity.PolyTimeReducible.mem_US {α : Type} {enc : α ↪ List Bool} {A : Set α} {β : Type} {encB : β ↪ List Bool} {B : Set β} (h : PolyTimeReducible enc encB A B) (hB : B ∈ US encB) :
A ∈ US enc

Exact-count precomposition preserves US membership.