Documentation

Complexitylib.Models.TuringMachine.Composition.PairWithInput

Pair a computed value with the original input #

This module exposes a generic deterministic fanout combinator. If tmF computes f, then pairWithInputTM tmF computes x ↦ pair (f x) x while retaining a concrete polynomial-preserving time bound.

Main result #

theorem Complexity.TM.pairWithInputTM_computesInTime {nf : } {tmF : TM nf} {f : List BoolList Bool} {T : } (hcomp : tmF.ComputesInTime f T) :

Pairing a computed string with the unchanged original input costs at most five source-time budgets, one linear input scan, and constant seam overhead.