Post's correspondence problem #
A domino is a pair of words over an alphabet α, its top and its bottom. An instance of
Post's correspondence problem (PCP) is a finite list P of dominoes. It is solvable when some
nonempty sequence of dominoes of P, repetitions allowed, has equal top and bottom concatenations
[Pos46]; [Sipser2013, §5.2]. The modified correspondence problem (MPCP) of [Sipser2013, §5.2]
additionally fixes the first domino of the match. Here an MPCP instance is a start domino and a
list of dominoes that may follow it, so the start domino may recur only if it is also in the list;
Sipser's MPCP, where the start domino belongs to the instance, is the case where it is.
Instances are encoded through Primcodable instances, so the two decision problems are predicates
for Mathlib's ComputablePred and many-one reducibility ≤₀. Their undecidability is proved in
CslibFrontier.Computability.PostCorrespondence.Undecidable.
Main definitions #
Cslib.PostCorrespondence.Domino: a pair of words.Cslib.PostCorrespondence.tops,Cslib.PostCorrespondence.bottoms: the concatenations of the top and the bottom words of a sequence of dominoes.Cslib.PostCorrespondence.Solvable: solvability of a PCP instance.Cslib.PostCorrespondence.MInstance,Cslib.PostCorrespondence.MInstance.Solvable: MPCP instances, a start domino and a list of dominoes, and their solvability.
Main results #
Cslib.PostCorrespondence.solvable_iff_exists_indices: solvability in the index formt_{i₁} ⋯ t_{iₖ} = b_{i₁} ⋯ b_{iₖ}of the textbooks.Cslib.PostCorrespondence.not_solvable_of_length_lt: an instance whose every domino has a shorter bottom than top is not solvable.
References #
Dominoes and instances #
Solvability in the index form of the textbooks: a nonempty sequence of indices i₁, …, iₖ
with t_{i₁} ⋯ t_{iₖ} = b_{i₁} ⋯ b_{iₖ}.