pp. 367–368, proof of THEOREM 2 — the reduction map is computable in polynomial time on a word RAM
ProvedEdgeDomSets.NPC.Red.redMap_ram_polyThe reduction map of THEOREM 2 (the published definition EdgeDomSets_NPC_ReductionMap: formula code graph code of with threshold , all other strings the empty string) is computable in polynomial time: there is a word-RAM program in the multiplication model and constants such that on every input string the program, started with in memory under the standard bit input convention, halts within
steps with as its output bit string.
This is the "computable in polynomial time" half of the reduction in the proof of THEOREM 2 ("We construct a graph as follows", pp. 367–368): the graph has vertices and its adjacency matrix is written in steps. Together with the platform's word-RAM to Turing-machine simulation it gives a Cook–Levin polynomial-time reduction.
Formalization Note RAMPolyTimeComputable is the platform's word-RAM notion (WordRAM.Complexity): logarithmic word width fixed by the program's capacity polynomial, unit-cost instructions, output read from the memory block named by cells 2 and 3.
import Definitions.Def_EdgeDomSets_NPC_ReductionMap import Definitions.Def_WordRAM_Complexity_BitIO
namespace EdgeDomSets.NPC.Red
theorem redMap_ram_poly :
∃ A : WordRAM.Complexity.Algorithm .multiplication,
WordRAM.Complexity.RAMPolyTimeComputable A redMap := by sorry
end EdgeDomSets.NPC.Red