Documentation

CslibFrontier.Computability.PostCorrespondence.Modified

From the modified correspondence problem to PCP #

Sipser's reduction [Sipser2013, proof of Theorem 5.15] turns an MPCP instance into a PCP instance over the alphabet α extended by markers. Writing ⋆u for ⋆u₁⋆u₂⋯⋆uₙ and u⋆ for u₁⋆u₂⋆⋯uₙ⋆, the domino t / b becomes ⋆t / b⋆, the start domino t / b becomes ⋆t / ⋆b⋆, and the end domino ⋆◇ / ◇ is added. A match must then begin with the start domino, whose top and bottom alone begin with the same letter.

As stated, the construction can be unsound when a domino of the instance has an empty bottom, since ⋆t / ε may then come first. For the start domino a / ba and the single domino b / ε, the MPCP instance has no match (its top begins with a and its bottom with b), but ⋆b / ε, ⋆a / ⋆b⋆a⋆, ⋆◇ / ◇ is a match of the PCP instance (checked in the test module CslibFrontierTests.PostCorrespondence). The reduction here therefore prefixes the start domino with a start marker ▷, which occurs in no other domino. A match then contains the start domino, the part before its first occurrence matches on its own, and the part after it gives an MPCP match. The domino ε / ε, which would be a PCP match by itself, is dropped.

Sipser's machine instances contain no domino with an empty bottom, so his proof is unaffected. The instances of CslibFrontier.Computability.PostCorrespondence.OfTM0 do: the rule OfTM0.Rule.finish erases the final word ⊢ halt ⊣. So Sipser's argument does not apply to them as written, while the marked reduction needs no instance-specific argument. Empty tops are harmless.

Main definitions #

Main results #

References #

inductive Cslib.PostCorrespondence.Marked (α : Type u_2) :
Type u_2

The alphabet of Sipser's reduction from MPCP to PCP: the letters of α and three markers.

  • letter {α : Type u_2} : α → Marked α

    A letter of the original alphabet.

  • sep {α : Type u_2} : Marked α

    The separator ⋆.

  • stop {α : Type u_2} : Marked α

    The end marker ◇.

  • start {α : Type u_2} : Marked α

    The start marker ▷, which forces every match to begin with the start domino.

Instances For
    def Cslib.PostCorrespondence.instDecidableEqMarked.decEq {α✝ : Type u_2} [DecidableEq α✝] (x✝ x✝¹ : Marked α✝) :
    Decidable (x✝ = x✝¹)
    @[instance_reducible]

    ⋆a₁⋆a₂⋯⋆aₙ: a separator before every letter.

    a₁⋆a₂⋆⋯aₙ⋆: a separator after every letter.

    ⋆ (a₁⋆⋯aₙ⋆) = (⋆a₁⋯⋆aₙ) ⋆.

    The start domino of the PCP instance: ▷⋆t₁⋯⋆tₖ over ▷⋆b₁⋆⋯bₗ⋆.

    The end domino of the PCP instance: ⋆◇ over ◇.

    The domino ⋆t₁⋯⋆tₖ over b₁⋆⋯bₗ⋆ of a domino t over b.

    Sipser's reduction from MPCP to PCP [Sipser2013, proof of Theorem 5.15], with a start marker ▷: the start domino, the end domino, and the marked dominoes of the instance other than the empty one.

    Sipser's reduction is correct. An MPCP instance is solvable exactly when the PCP instance toPCP I is.

    MPCP reduces to PCP by a computable many-one reduction.