A detailed verification of Neary's PCP(5) construction
Neary proved that the Post correspondence problem with five pairs (PCP(5)) over a binary alphabet is undecidable, using binary tag systems. A detailed check of both directions of this reduction, in particular that every PCP solution yields a halting tag computation, was lacking.
The paper first verifies undecidability of the restricted binary tag-system halting problem, starting from a Turing machine and going through clockwise Turing machines and cyclic tag systems. It modifies one doubling pass in the Neary–Woods simulation. It then builds five binary pairs, using Rote's longer closing pair, and proves both directions of the reduction by analyzing blocks of zeros and lower overhangs. A companion Lean development, built with Lean agents provided by AgentFormers, formalizes the end-to-end reduction.
Both directions of the five-pair reduction are proved, establishing undecidability of binary PCP(5). The Lean theorem Pcp5Lean.EndToEnd.source_halts_iff_pcp5 checks that the instance has exactly five pairs and admits a nonempty solution if and only if the source machine halts.
