Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Complexity.BigO.Decode

Decoding finite configurations within quadratic time #

The decoders of CslibFrontier.Computability.Machines.Turing.MultiTape.Complexity.Space.Decode run within quadratic time. The cells of a stack tape are read by a finite transducer in linear time, and folded into the tape by Turing.MultiTapeTM.stackStep, each step taking time linear in the encoded state, which grows by at most four bits per step; the other fields are read off the frames of the encoding in linear time, and clamping a count into range is quadratic.

Main results #

Stack tapes #

Decoding a stack tape within quadratic time and linear space.

Decoding a two-sided tape within quadratic time and linear space.

Decoding a fixed finite family of tapes within quadratic time and linear space.

Configurations #

Decoding a finite configuration within quadratic time and space.

A decoded configuration has a linear encoding.

theorem Turing.MultiTapeTM.ComputableInO.decodeView {k : ℕ} {State : Type} [Finite State] :
ComputableInO MultiTapeNTM.decodeView encBits (encOption encFiniteCfg) (fun (code : List Bool) => (code.length + 1) ^ 2) fun (code : List Bool) => (code.length + 1) ^ 2

Reading the view of a code within quadratic time and space.

The view read from a code has a linear encoding.