Documentation

CslibFrontier.Computability.PostCorrespondence.Substitution

Letter codings of correspondence problems #

A substitution c : α → List β acts on dominoes letter by letter. When it is injective on words, it preserves PCP and MPCP solvability in both directions. Two instances give the alphabet changes of PCP:

Main definitions #

Main results #

def Cslib.PostCorrespondence.Domino.subst {α : Type u_1} {β : Type u_2} (c : α → List β) (d : Domino α) :

Apply the substitution c, a map from letters to words, to both words of a domino.

def Cslib.PostCorrespondence.MInstance.subst {α : Type u_1} {β : Type u_2} (c : α → List β) (I : MInstance α) :

Apply the substitution c to every domino of an MPCP instance.

theorem Cslib.PostCorrespondence.tops_map_subst {α : Type u_1} {β : Type u_2} (c : α → List β) (ds : List (Domino α)) :
theorem Cslib.PostCorrespondence.bottoms_map_subst {α : Type u_1} {β : Type u_2} (c : α → List β) (ds : List (Domino α)) :
theorem Cslib.PostCorrespondence.solvable_map_subst_iff {α : Type u_1} {β : Type u_2} {c : α → List β} (hc : Function.Injective fun (w : List α) => List.flatMap c w) (P : List (Domino α)) :

A substitution that is injective on words preserves PCP solvability, in both directions.

theorem Cslib.PostCorrespondence.MInstance.solvable_subst_iff {α : Type u_1} {β : Type u_2} {c : α → List β} (hc : Function.Injective fun (w : List α) => List.flatMap c w) (I : MInstance α) :

A substitution that is injective on words preserves MPCP solvability, in both directions.

A binary code #

The binary code of a letter of an encodable alphabet: the unary code of its encoding.

theorem Cslib.PostCorrespondence.Domino.primrec_subst {α : Type u_1} {β : Type u_2} [Primcodable α] [Primcodable β] {c : α → List β} (hc : Primrec c) :
theorem Cslib.PostCorrespondence.primrec_map_subst {α : Type u_1} {β : Type u_2} [Primcodable α] [Primcodable β] {c : α → List β} (hc : Primrec c) :
Primrec fun (P : List (Domino α)) => List.map (Domino.subst c) P
theorem Cslib.PostCorrespondence.MInstance.primrec_subst {α : Type u_1} {β : Type u_2} [Primcodable α] [Primcodable β] {c : α → List β} (hc : Primrec c) :

Changing the alphabet #

PCP over any encodable alphabet reduces to PCP over Bool.

MPCP over any encodable alphabet reduces to MPCP over Bool.

PCP over Bool reduces to PCP over any alphabet with two distinct letters.

MPCP over Bool reduces to MPCP over any alphabet with two distinct letters.