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

Theorem nelaneq 9047
Description: A class is not an element of and equal to a class at the same time. Variant of elneq 9046 analogously to elnotel 9057 and en2lp 9053. (Proposed by BJ, 18-Jun-2022.) (Contributed by AV, 18-Jun-2022.)
Assertion
Ref Expression
nelaneq ¬ (𝐴𝐵𝐴 = 𝐵)

Proof of Theorem nelaneq
StepHypRef Expression
1 elneq 9046 . . 3 (𝐴𝐵𝐴𝐵)
2 orc 864 . . . 4 𝐴𝐵 → (¬ 𝐴𝐵 ∨ ¬ 𝐴 = 𝐵))
3 neneq 2993 . . . . 5 (𝐴𝐵 → ¬ 𝐴 = 𝐵)
43olcd 871 . . . 4 (𝐴𝐵 → (¬ 𝐴𝐵 ∨ ¬ 𝐴 = 𝐵))
52, 4ja 189 . . 3 ((𝐴𝐵𝐴𝐵) → (¬ 𝐴𝐵 ∨ ¬ 𝐴 = 𝐵))
61, 5ax-mp 5 . 2 𝐴𝐵 ∨ ¬ 𝐴 = 𝐵)
7 ianor 979 . 2 (¬ (𝐴𝐵𝐴 = 𝐵) ↔ (¬ 𝐴𝐵 ∨ ¬ 𝐴 = 𝐵))
86, 7mpbir 234 1 ¬ (𝐴𝐵𝐴 = 𝐵)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 399  wo 844   = wceq 1538  wcel 2111  wne 2987
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 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-12 2175  ax-ext 2770  ax-sep 5167  ax-nul 5174  ax-pr 5295  ax-reg 9040
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-clab 2777  df-cleq 2791  df-clel 2870  df-ne 2988  df-ral 3111  df-rex 3112  df-v 3443  df-dif 3884  df-un 3886  df-nul 4244  df-sn 4526  df-pr 4528
This theorem is referenced by:  epinid0  9048
  Copyright terms: Public domain W3C validator