# Equivalence of Turing Machines

Consider the following two arguments

"For every non deterministic TM M1 there exists an equivalent deterministic machine M2 recognizing the same language."
"Equivalence of two Turing Machines is undecidable"

These two arguments seem a bit contradicting to me. What should I conclude from these two arguments?

• Not relevant, but... the first statement looks trivial. You probably want "non deterministic TM M1" there (?) – chi Jan 7 '16 at 16:43
• Not actually, my doubt was regarding the term "equivalence", based on the two theorems. So "deterministic TM M1" was supposed to be there. :) – Romy Jan 7 '16 at 16:50
• As I said, my comment is indeed not relevant to your question, but the first statement still looks trivial, since taking M2=M1 proves it. It's not a statement you will find in a computability book, for instance. – chi Jan 7 '16 at 16:55
• Omg I made a blunder here!M1 was supposed to be Non-deterministic.Thanks a lot for your concern. – Romy Jan 7 '16 at 17:11

However, there is a more basic difference between the two statements. The first says that for every TM $M_1$, there exists some equivalent machine $M_2$. The second statement is that deciding, given $M_1$ and $M_2$, whether these two specific machines are equivalent, is undecidable.
Just to emphasize the difference, consider the following problem: given a TM $M_1$, is there some TM $M_2$, that is different from $M_1$, which is equivalent to $M_1$? This problem is trivial - the answer is always "yes" (e.g. just add a redundant state to $M_1$).
"Equivalence is undecidable" means there is no algorithm (always halts after a finite time and correctly answers yes/no), "there is an equivalent" is just existence. I.e., given $M_1$ and $M_2$, no algorithm can tell if they are equivalent for all cases of $M_1$ and $M_2$ (some cases can be answered simply, but not all). The other is that for $M_1$ there is an equivalent $M_2$. It is even easy to construct some, just shuffle the states around, or add a completely useless state.