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

Theorem eqoreldif 4615
Description: An element of a set is either equal to another element of the set or a member of the difference of the set and the singleton containing the other element. (Contributed by AV, 25-Aug-2020.) (Proof shortened by JJ, 23-Jul-2021.)
Assertion
Ref Expression
eqoreldif (𝐵𝐶 → (𝐴𝐶 ↔ (𝐴 = 𝐵𝐴 ∈ (𝐶 ∖ {𝐵}))))

Proof of Theorem eqoreldif
StepHypRef Expression
1 simpl 485 . . . . 5 ((𝐴𝐶 ∧ ¬ 𝐴 = 𝐵) → 𝐴𝐶)
2 elsni 4577 . . . . . . 7 (𝐴 ∈ {𝐵} → 𝐴 = 𝐵)
32con3i 157 . . . . . 6 𝐴 = 𝐵 → ¬ 𝐴 ∈ {𝐵})
43adantl 484 . . . . 5 ((𝐴𝐶 ∧ ¬ 𝐴 = 𝐵) → ¬ 𝐴 ∈ {𝐵})
51, 4eldifd 3946 . . . 4 ((𝐴𝐶 ∧ ¬ 𝐴 = 𝐵) → 𝐴 ∈ (𝐶 ∖ {𝐵}))
65ex 415 . . 3 (𝐴𝐶 → (¬ 𝐴 = 𝐵𝐴 ∈ (𝐶 ∖ {𝐵})))
76orrd 859 . 2 (𝐴𝐶 → (𝐴 = 𝐵𝐴 ∈ (𝐶 ∖ {𝐵})))
8 eleq1a 2908 . . 3 (𝐵𝐶 → (𝐴 = 𝐵𝐴𝐶))
9 eldifi 4102 . . . 4 (𝐴 ∈ (𝐶 ∖ {𝐵}) → 𝐴𝐶)
109a1i 11 . . 3 (𝐵𝐶 → (𝐴 ∈ (𝐶 ∖ {𝐵}) → 𝐴𝐶))
118, 10jaod 855 . 2 (𝐵𝐶 → ((𝐴 = 𝐵𝐴 ∈ (𝐶 ∖ {𝐵})) → 𝐴𝐶))
127, 11impbid2 228 1 (𝐵𝐶 → (𝐴𝐶 ↔ (𝐴 = 𝐵𝐴 ∈ (𝐶 ∖ {𝐵}))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208  wa 398  wo 843   = wceq 1533  wcel 2110  cdif 3932  {csn 4560
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-v 3496  df-dif 3938  df-sn 4561
This theorem is referenced by:  lcmfunsnlem2  15978
  Copyright terms: Public domain W3C validator