Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  elprneb Structured version   Visualization version   GIF version

Theorem elprneb 44410
Description: An element of a proper unordered pair is the first element iff it is not the second element. (Contributed by AV, 18-Jun-2020.)
Assertion
Ref Expression
elprneb ((𝐴 ∈ {𝐵, 𝐶} ∧ 𝐵𝐶) → (𝐴 = 𝐵𝐴𝐶))

Proof of Theorem elprneb
StepHypRef Expression
1 elpri 4580 . . 3 (𝐴 ∈ {𝐵, 𝐶} → (𝐴 = 𝐵𝐴 = 𝐶))
2 neeq1 3005 . . . . . 6 (𝐵 = 𝐴 → (𝐵𝐶𝐴𝐶))
32eqcoms 2746 . . . . 5 (𝐴 = 𝐵 → (𝐵𝐶𝐴𝐶))
4 pm5.1 820 . . . . . 6 ((𝐴 = 𝐵𝐴𝐶) → (𝐴 = 𝐵𝐴𝐶))
54ex 412 . . . . 5 (𝐴 = 𝐵 → (𝐴𝐶 → (𝐴 = 𝐵𝐴𝐶)))
63, 5sylbid 239 . . . 4 (𝐴 = 𝐵 → (𝐵𝐶 → (𝐴 = 𝐵𝐴𝐶)))
7 neeq2 3006 . . . . 5 (𝐴 = 𝐶 → (𝐵𝐴𝐵𝐶))
8 nesym 2999 . . . . . . . 8 (𝐵𝐴 ↔ ¬ 𝐴 = 𝐵)
9 pm5.1 820 . . . . . . . 8 ((𝐴 = 𝐶 ∧ ¬ 𝐴 = 𝐵) → (𝐴 = 𝐶 ↔ ¬ 𝐴 = 𝐵))
108, 9sylan2b 593 . . . . . . 7 ((𝐴 = 𝐶𝐵𝐴) → (𝐴 = 𝐶 ↔ ¬ 𝐴 = 𝐵))
1110necon2abid 2985 . . . . . 6 ((𝐴 = 𝐶𝐵𝐴) → (𝐴 = 𝐵𝐴𝐶))
1211ex 412 . . . . 5 (𝐴 = 𝐶 → (𝐵𝐴 → (𝐴 = 𝐵𝐴𝐶)))
137, 12sylbird 259 . . . 4 (𝐴 = 𝐶 → (𝐵𝐶 → (𝐴 = 𝐵𝐴𝐶)))
146, 13jaoi 853 . . 3 ((𝐴 = 𝐵𝐴 = 𝐶) → (𝐵𝐶 → (𝐴 = 𝐵𝐴𝐶)))
151, 14syl 17 . 2 (𝐴 ∈ {𝐵, 𝐶} → (𝐵𝐶 → (𝐴 = 𝐵𝐴𝐶)))
1615imp 406 1 ((𝐴 ∈ {𝐵, 𝐶} ∧ 𝐵𝐶) → (𝐴 = 𝐵𝐴𝐶))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843   = wceq 1539  wcel 2108  wne 2942  {cpr 4560
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-tru 1542  df-ex 1784  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-ne 2943  df-v 3424  df-un 3888  df-sn 4559  df-pr 4561
This theorem is referenced by:  dfodd5  45000
  Copyright terms: Public domain W3C validator