Metamath Proof Explorer


Theorem necon2ad

Description: Contrapositive inference for inequality. (Contributed by NM, 19-Apr-2007) (Proof shortened by Andrew Salmon, 25-May-2011) (Proof shortened by Wolf Lammen, 23-Nov-2019)

Ref Expression
Hypothesis necon2ad.1 ⊢ φ → A = B → ¬ ψ
Assertion necon2ad ⊢ φ → ψ → A ≠ B

Proof

Step Hyp Ref Expression
1 necon2ad.1 ⊢ φ → A = B → ¬ ψ
2 notnot ⊢ ψ → ¬ ¬ ψ
3 1 necon3bd ⊢ φ → ¬ ¬ ψ → A ≠ B
4 2 3 syl5 ⊢ φ → ψ → A ≠ B