Imports
Fixed polynomial-time formatter for textbook TSP weight fields
noncomputable sectionnamespace CLRS.Chapter34.Turing.TSPReduction.WeightFieldsopen PolyBuilder
One fixed polynomial-time TM2 formats an arbitrary adjacency-answer
stream as canonical compact 1/2 TSP fields.
noncomputable def computableInPolyTime :
_root_.Turing.TM2ComputableInPolyTime id id stream := by
change _root_.Turing.TM2ComputableInPolyTime id id
(fun answers : List Bool => answers.flatMap body.emit)
exact boundedLoop_computableInPolyTime bodyend CLRS.Chapter34.Turing.TSPReduction.WeightFields