Metamath Proof Explorer


Theorem nelaneq

Description: A class is not an element of and equal to a class at the same time. Variant of elneq analogously to elnotel and en2lp . (Proposed by BJ, 18-Jun-2022.) (Contributed by AV, 18-Jun-2022) (Proof shortened by TM, 31-Dec-2025) (Proof shortened by SN, 22-Apr-2026)

Ref Expression
Assertion nelaneq ¬ ( 𝐴 ∈ 𝐵 ∧ 𝐴 = 𝐵 )

Proof

Step Hyp Ref Expression
1 elirr ⊢ ¬ 𝐴 ∈ 𝐴
2 eleq2 ⊢ ( 𝐴 = 𝐵 → ( 𝐴 ∈ 𝐴 ↔ 𝐴 ∈ 𝐵 ) )
3 2 biimparc ⊢ ( ( 𝐴 ∈ 𝐵 ∧ 𝐴 = 𝐵 ) → 𝐴 ∈ 𝐴 )
4 1 3 mto ⊢ ¬ ( 𝐴 ∈ 𝐵 ∧ 𝐴 = 𝐵 )