Documentation

CslibFrontier.Computability.Complexity.Classes.P.Slices

Languages given by their slices, in P #

A Boolean family f : ∀ n, BitString n → Bool determines the language Language.ofSlices f of bit lists x with f x.length x = true. Reading x through BitString.ofList, the language is in Cslib.Complexity.P encBits exactly when its list evaluator fun x => f x.length (BitString.ofList x.length x) is computable in polynomial time.

Main results #

Membership of a bit list x in Language.ofSlices f in terms of BitString.ofList.

For any Boolean family f : ∀ N, BitString N → Bool, Language.ofSlices f as a set of bit lists is {x | f x.length (BitString.ofList x.length x) = true}.

If fun x => f x.length (BitString.ofList x.length x) is computable in polynomial time, then Language.ofSlices f belongs to P encBits.

Language.ofSlices f is in P if and only if its list evaluator fun x => f x.length (BitString.ofList x.length x) is computable in polynomial time.