論理の話で、次のようなことは成り立ちますか?

If P,Q=If not Q,not P
=Only if Q,P=Only if not P,not Q
=Unless P, not Q=Unless not Q, P

If x=1,x^2=1
If x^2≠1,x≠1

Only if x^2=1,x=1
Only if x≠1,x^2≠1

Unless x=1,x^2≠1
Unless x^2≠1,x=1

私は成り立つと思うのですが、あってるでしょうか?
よろしくお願いします