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:
- the unary code
boolCode a = 1^{encode a} 0reduces PCP over anyPrimcodablealphabet to PCP overBool; - the letter map
true ↦ a,false ↦ bwitha ≠ breduces PCP overBoolto PCP over anyPrimcodablealphabet with two distinct letters.
Main definitions #
Cslib.PostCorrespondence.Domino.subst,Cslib.PostCorrespondence.MInstance.subst: a substitution applied to a domino and to an MPCP instance.Cslib.PostCorrespondence.boolCode: the binary code of a letter.
Main results #
Cslib.PostCorrespondence.solvable_map_subst_iff,Cslib.PostCorrespondence.MInstance.solvable_subst_iff: substitutions injective on words preserve solvability.Cslib.PostCorrespondence.solvable_manyOneReducible_bool,Cslib.PostCorrespondence.solvable_bool_manyOneReducible: PCP overBooland PCP over any alphabet with two distinct letters are many-one equivalent.Cslib.PostCorrespondence.mSolvable_manyOneReducible_bool,Cslib.PostCorrespondence.mSolvable_bool_manyOneReducible: the same for MPCP.
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 #
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) :
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.
theorem Cslib.PostCorrespondence.solvable_bool_manyOneReducible {α : Type u_1} [Primcodable α] {a b : α} (hab : a ≠ b) :
PCP over Bool reduces to PCP over any alphabet with two distinct letters.
theorem Cslib.PostCorrespondence.mSolvable_bool_manyOneReducible {α : Type u_1} [Primcodable α] {a b : α} (hab : a ≠ b) :
MPCP over Bool reduces to MPCP over any alphabet with two distinct letters.