For my classes in theoretical computer science the following proof must be shown to be wrong. However, this is the first time I am attempting myself at this topic, so I would be thankful for some help:
Lemma:
If $L \in NP $, then $ \bar{L} \in NP $
Proof:
Let N be a non-deterministic Turing machine, which accepts L in polynomial time.
Swap all final states of $N$ with non-final states and vice-versa.
This new Turing machine $N'$ does now accept $\bar{L}$ in polynomial time.
Therefore $\bar{L} \in NP$
I have doubts that simply swapping non-final and final states within $N$ will produce a $N'$ with the proposed properties, but how can I show this?