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 #
Cslib.Complexity.mem_ofSlices_iff,Cslib.Complexity.ofSlices_eq_setOf_ofList: membership inLanguage.ofSlices fviaBitString.ofList.Cslib.Complexity.ofSlices_mem_P_iff:Language.ofSlices f ∈ P encBitsif and only if its list evaluator is computable in polynomial time.Cslib.Complexity.ofSlices_mem_P: the sufficient direction.
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.