minsky's theorem in automata