MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  nelaneq Structured version   Visualization version   GIF version

Theorem nelaneq 9518
Description: A class is not an element of and equal to a class at the same time. Variant of elneq 9517 analogously to elnotel 9531 and en2lp 9527. (Proposed by BJ, 18-Jun-2022.) (Contributed by AV, 18-Jun-2022.) (Proof shortened by TM, 31-Dec-2025.)
Assertion
Ref Expression
nelaneq ¬ (𝐴𝐵𝐴 = 𝐵)

Proof of Theorem nelaneq
StepHypRef Expression
1 elirr 9516 . . . 4 ¬ 𝐴𝐴
2 eleq2 2826 . . . 4 (𝐴 = 𝐵 → (𝐴𝐴𝐴𝐵))
31, 2mtbii 326 . . 3 (𝐴 = 𝐵 → ¬ 𝐴𝐵)
43con2i 139 . 2 (𝐴𝐵 → ¬ 𝐴 = 𝐵)
5 imnan 399 . 2 ((𝐴𝐵 → ¬ 𝐴 = 𝐵) ↔ ¬ (𝐴𝐵𝐴 = 𝐵))
64, 5mpbi 230 1 ¬ (𝐴𝐵𝐴 = 𝐵)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 395   = wceq 1542  wcel 2114
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1912  ax-6 1969  ax-7 2010  ax-8 2116  ax-9 2124  ax-ext 2709  ax-sep 5243  ax-pr 5379  ax-reg 9509
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 849  df-tru 1545  df-ex 1782  df-sb 2069  df-clab 2716  df-cleq 2729  df-clel 2812
This theorem is referenced by:  epinid0  9520
  Copyright terms: Public domain W3C validator