Metamath Proof Explorer


Theorem necon3ai

Description: Contrapositive inference for inequality. (Contributed by NM, 23-May-2007) (Proof shortened by Andrew Salmon, 25-May-2011) (Proof shortened by Wolf Lammen, 28-Oct-2024)

Ref Expression
Hypothesis necon3ai.1 ( 𝜑𝐴 = 𝐵 )
Assertion necon3ai ( 𝐴𝐵 → ¬ 𝜑 )

Proof

Step Hyp Ref Expression
1 necon3ai.1 ( 𝜑𝐴 = 𝐵 )
2 neneq ( 𝐴𝐵 → ¬ 𝐴 = 𝐵 )
3 2 1 nsyl ( 𝐴𝐵 → ¬ 𝜑 )