Run an adaptive binary TM2 algorithm with a promise subroutine
ProvedBinaryTM2.run_dialogue_with_partial_subroutinebin-packingcomputational-complexityfixed-parameter-tractabilityinteger-programming
A single ordinary Boolean-stack TM2 executes a controller and a subroutine. It suffices to bound the subroutine on the actual queries of the proposed finite transcript. The running time accounts for every controller step, query, saved state, response, and ordinary subroutine execution.
Preamble
import Mathlib import Definitions.Def_HMBinPacking_OutputsWithin
Formal statement
namespace BinaryTM2
theorem run_dialogue_with_partial_subroutine (C S : Turing.TM2ComputableAux Bool Bool) :
let frame := fun (x y : List Bool) => x.flatMap (fun b => [true,b]) ++ false::y
∃ (M : Turing.TM2ComputableAux Bool Bool) (a : ℕ),
∀ (O : List Bool → List Bool) (inp out : List Bool) (R T Q L N : ℕ)
(σ q st : ℕ → List Bool), σ 0 = false::inp →
(∀ i < R, HMBinPacking.OutputsWithin C (σ i) (false::frame (q i) (st i)) T ∧
(q i).length ≤ Q ∧ (st i).length ≤ L ∧ (O (q i)).length ≤ L ∧
HMBinPacking.OutputsWithin S (q i) (O (q i)) N ∧ σ (i+1) = frame (st i) (O (q i))) →
HMBinPacking.OutputsWithin C (σ R) (true::out) T →
HMBinPacking.OutputsWithin M inp out (a*((R+1)*(T+3*Q+4*L+12)+2)*(N+Q+1)) := by sorry
end BinaryTM2Source
Adaptive Boolean-stack TM2 composition for promise algorithms. The statement uses the TM2 output convention of High-Multiplicity Bin Packing is FPT.