A Boolean TM2 writes the rational code of in linear time
ProvedBinaryTM2.encode_two_pow_lengthbin-packingcomputational-complexityfixed-parameter-tractabilityinteger-programming
There is a single finite Boolean multi-stack Turing machine which, on every input word of length , outputs the canonical self-delimiting rational encoding of in at most TM2 steps. The encoding uses a sign bit and self-delimiting binary numerator and denominator. This construction depends only on the length and also handles the empty word.
Preamble
import Mathlib import Definitions.Def_ExponomialAssortment_FPTAS_Machine import Definitions.Def_HMBinPacking_OutputsWithin open HMBinPacking (OutputsWithin) open ExponomialAssortment.FPTAS (encodeRat)
Formal statement
namespace BinaryTM2
theorem encode_two_pow_length :
∃ M : Turing.TM2ComputableAux Bool Bool, ∀ input : List Bool,
OutputsWithin M input (encodeRat (2 ^ input.length : ℚ)) (2 * input.length + 3) := by sorry
end BinaryTM2Source
Binary input preprocessing for the integer-feasibility radius in Koana and Kumabe, High-Multiplicity Bin Packing is FPT, application of Lemma 5 in the proof of Theorem 1. Standalone construction using the ExponomialAssortment.FPTAS encoding.