Metamath Proof Explorer


Theorem elneeldif

Description: The elements of a set difference and the minuend are not equal. (Contributed by AV, 21-Oct-2023)

Ref Expression
Assertion elneeldif ⊢ X ∈ A ∧ Y ∈ B ∖ A → X ≠ Y

Proof

Step Hyp Ref Expression
1 eldif ⊢ Y ∈ B ∖ A ↔ Y ∈ B ∧ ¬ Y ∈ A
2 nelne2 ⊢ X ∈ A ∧ ¬ Y ∈ A → X ≠ Y
3 2 ex ⊢ X ∈ A → ¬ Y ∈ A → X ≠ Y
4 3 adantld ⊢ X ∈ A → Y ∈ B ∧ ¬ Y ∈ A → X ≠ Y
5 1 4 biimtrid ⊢ X ∈ A → Y ∈ B ∖ A → X ≠ Y
6 5 imp ⊢ X ∈ A ∧ Y ∈ B ∖ A → X ≠ Y