Documentation

CslibFrontier.Computability.Complexity.Classes.Space.Unambiguous

Unambiguous space classes #

Cslib.Complexity.USPACE enc s consists of the problems decided unambiguously within space O(s n): one finite-state binary counting machine has exactly one accepting branch on members and none on nonmembers, on instances whose encoding under enc has length n. As for Cslib.Complexity.NSPACE, the bound c₁ * s n + c₂ holds along every computation prefix, including rejecting branches, every branch halts, the input tape is read-only and the output tape write-only. Branches are transition-occurrence traces of the counting machine, so two equal transitions at one configuration count twice.

Forgetting transition multiplicity gives USPACE(s) ⊆ NSPACE(s) for every bound s. The logarithmic case is Cslib.Complexity.UL, by Cslib.Complexity.UL_eq_USPACE.

Main definitions #

Main results #

def Cslib.Complexity.USPACE {α : Type} (enc : α ↪ List Bool) (s : ℕ → ℕ) :
Set (Set α)

The problems decided unambiguously within space O(s n), that is c₁ * s n + c₂: one finite-state binary counting machine, along every computation prefix and with every branch halting, has one accepting branch on members and none on nonmembers, on instances whose encoding under enc has length n.

theorem Cslib.Complexity.USPACE_subset_NSPACE {α : Type} {enc : α ↪ List Bool} {s : ℕ → ℕ} :
USPACE enc s ⊆ NSPACE enc s

Unambiguous space is within nondeterministic space, for every space bound: forgetting transition multiplicity turns the counting machine into a nondeterministic decider within the same space.