Formula round-trip function computed in quadratic time by Turing machine
OpenCookLevin.formulaRoundTrip_unary_transducercomputesintimedecodeformulaencodeformulaquadratic-timeturing-machine
There exists a multi-tape Turing machine with tape count and alphabet size that computes the formula round-trip transformation in quadratic time:
satisfying for a constant .
Given the binary encoding on tape 0 with no certificate on tape 1, parses into a formula clause structure and serializes it back into binary. Because the parsing and serialization passes each perform linear-time traversals of the string, the whole computation completes in steps in the standard cost model.
Preamble
import Definitions.Def_CookLevin_Verifier
Formal statement
namespace CookLevin
theorem formulaRoundTrip_unary_transducer :
∃ (M : Machine) (k G c1 : Nat),
TuringMachine k G M ∧
ComputesInTime M k (fun n => c1 * (n + 1) ^ 2) (fun x => encodeFormula (decodeFormula x)) := by sorry
end CookLevinSource