Documentation

Complexitylib.Classes.L.PolynomialTime

Log-space transducers run in polynomial time #

The finite reduced-configuration theorem for one-way-output deterministic transducers makes a logarithmic auxiliary-space bound into a polynomial time bound. Consequently L ⊆ P and FL ⊆ FP.

Main results #

theorem Complexity.TM.transducerConfigBound_bigO_polynomial {k : } (tm : TM k) {S : } (hS : BigO S fun (n : ) => Nat.log 2 n) :
∃ (c : ), BigO (fun (n : ) => tm.transducerConfigBound n (S n)) fun (x : ) => x ^ (1 + (2 * c + 1) * k)

The reduced-configuration count of a deterministic transducer using O(log n) auxiliary space is polynomial in the input length.

L ⊆ P: every language decided by a deterministic log-space transducer is decidable in polynomial time.

FL ⊆ FP: every deterministic log-space transducer function is computable in polynomial time.