Motivated by this question, I'm trying to establish a logical proof to the fact that the following statement is false:
$2x+1$ is prime if and only if $x$ is prime.
There are several ways to prove it of course, but I'm trying to understand where have I gone wrong with the following logical proof, so any help pointing out the error would be highly appreciated.
Let $\mathbb{P}$ denote the set of prime numbers.
We need to prove the logical statement:
$\neg({2x+1}\in\mathbb{P}\iff{x}\in\mathbb{P})$
Or the equivalent logical statement:
$\neg[({2x+1}\in\mathbb{P}\implies{x}\in\mathbb{P})\wedge({x}\in\mathbb{P}\implies{2x+1}\in\mathbb{P})]$
Or the equivalent logical statement:
$\neg({2x+1}\in\mathbb{P}\implies{x}\in\mathbb{P})\vee\neg({x}\in\mathbb{P}\implies{2x+1}\in\mathbb{P})$
Or the equivalent logical statement:
$\neg[({2x+1}\not\in\mathbb{P})\vee({x}\in\mathbb{P})]\vee\neg[({x}\not\in\mathbb{P})\vee({2x+1}\in\mathbb{P})]$
Or the equivalent logical statement:
$[({2x+1}\in\mathbb{P})\wedge({x}\not\in\mathbb{P})]\vee[({x}\in\mathbb{P})\wedge({2x+1}\not\in\mathbb{P})]$
That last statement is obviously false, for example, with $x=2$.
But this very example yields false statements "all the way up that proof".
So I'm thinking that my initial interpretation of $\neg({A}\iff{B})$ is incorrect somehow.