Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Complexity.PolyTime.Extension

Extending polynomial-time Boolean functions to all bit words #

A Boolean function computable in polynomial time on an explicit encoding enc : α ↪ List Bool extends to a Boolean function computable in polynomial time on raw bit words encBits that agrees with it on every codeword enc a (Turing.MultiTapeTM.ComputableInPolyTime.exists_bool_extension), with no decoder hypothesis on enc. The extension runs the underlying machine for its polynomial step bound via Turing.MultiTapeTM.trackedRun and accepts when the tracked output is [true].

Main results #

theorem Turing.MultiTapeTM.ComputableInPolyTime.exists_bool_extension {α : Type} {enc : α ↪ List Bool} {f : α → Bool} (hf : ComputableInPolyTime f enc encBool) :
∃ (g : List Bool → Bool), ComputableInPolyTime g encBits encBool ∧ ∀ (a : α), g (enc a) = f a

Extension of a polynomial-time Boolean function to all words. A Boolean function computable in polynomial time on enc extends to a Boolean function computable in polynomial time on encBits that agrees with it on every codeword enc a.

Extension of a pair verifier to raw bit words. A Boolean function computable in polynomial time on encPair enc encBits extends to one computable in polynomial time on encPair encBits encBits that agrees with it on (enc a, w).