Metamath Proof Explorer


Theorem necon1bi

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

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

Proof

Step Hyp Ref Expression
1 necon1bi.1 ( 𝐴𝐵𝜑 )
2 df-ne ( 𝐴𝐵 ↔ ¬ 𝐴 = 𝐵 )
3 2 1 sylbir ( ¬ 𝐴 = 𝐵𝜑 )
4 3 con1i ( ¬ 𝜑𝐴 = 𝐵 )