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

Theorem elpreqpr 4789
Description: Equality and membership rule for pairs. (Contributed by Scott Fenton, 7-Dec-2020.)
Assertion
Ref Expression
elpreqpr (𝐴 ∈ {𝐵, 𝐶} → ∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥})
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑥,𝐶

Proof of Theorem elpreqpr
StepHypRef Expression
1 elpri 4579 . 2 (𝐴 ∈ {𝐵, 𝐶} → (𝐴 = 𝐵𝐴 = 𝐶))
2 elex 3510 . 2 (𝐴 ∈ {𝐵, 𝐶} → 𝐴 ∈ V)
3 elpreqprlem 4788 . . . . 5 (𝐵 ∈ V → ∃𝑥{𝐵, 𝐶} = {𝐵, 𝑥})
4 eleq1 2897 . . . . . 6 (𝐴 = 𝐵 → (𝐴 ∈ V ↔ 𝐵 ∈ V))
5 preq1 4661 . . . . . . . 8 (𝐴 = 𝐵 → {𝐴, 𝑥} = {𝐵, 𝑥})
65eqeq2d 2829 . . . . . . 7 (𝐴 = 𝐵 → ({𝐵, 𝐶} = {𝐴, 𝑥} ↔ {𝐵, 𝐶} = {𝐵, 𝑥}))
76exbidv 1913 . . . . . 6 (𝐴 = 𝐵 → (∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥} ↔ ∃𝑥{𝐵, 𝐶} = {𝐵, 𝑥}))
84, 7imbi12d 346 . . . . 5 (𝐴 = 𝐵 → ((𝐴 ∈ V → ∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥}) ↔ (𝐵 ∈ V → ∃𝑥{𝐵, 𝐶} = {𝐵, 𝑥})))
93, 8mpbiri 259 . . . 4 (𝐴 = 𝐵 → (𝐴 ∈ V → ∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥}))
109imp 407 . . 3 ((𝐴 = 𝐵𝐴 ∈ V) → ∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥})
11 elpreqprlem 4788 . . . . . 6 (𝐶 ∈ V → ∃𝑥{𝐶, 𝐵} = {𝐶, 𝑥})
12 prcom 4660 . . . . . . . 8 {𝐶, 𝐵} = {𝐵, 𝐶}
1312eqeq1i 2823 . . . . . . 7 ({𝐶, 𝐵} = {𝐶, 𝑥} ↔ {𝐵, 𝐶} = {𝐶, 𝑥})
1413exbii 1839 . . . . . 6 (∃𝑥{𝐶, 𝐵} = {𝐶, 𝑥} ↔ ∃𝑥{𝐵, 𝐶} = {𝐶, 𝑥})
1511, 14sylib 219 . . . . 5 (𝐶 ∈ V → ∃𝑥{𝐵, 𝐶} = {𝐶, 𝑥})
16 eleq1 2897 . . . . . 6 (𝐴 = 𝐶 → (𝐴 ∈ V ↔ 𝐶 ∈ V))
17 preq1 4661 . . . . . . . 8 (𝐴 = 𝐶 → {𝐴, 𝑥} = {𝐶, 𝑥})
1817eqeq2d 2829 . . . . . . 7 (𝐴 = 𝐶 → ({𝐵, 𝐶} = {𝐴, 𝑥} ↔ {𝐵, 𝐶} = {𝐶, 𝑥}))
1918exbidv 1913 . . . . . 6 (𝐴 = 𝐶 → (∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥} ↔ ∃𝑥{𝐵, 𝐶} = {𝐶, 𝑥}))
2016, 19imbi12d 346 . . . . 5 (𝐴 = 𝐶 → ((𝐴 ∈ V → ∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥}) ↔ (𝐶 ∈ V → ∃𝑥{𝐵, 𝐶} = {𝐶, 𝑥})))
2115, 20mpbiri 259 . . . 4 (𝐴 = 𝐶 → (𝐴 ∈ V → ∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥}))
2221imp 407 . . 3 ((𝐴 = 𝐶𝐴 ∈ V) → ∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥})
2310, 22jaoian 950 . 2 (((𝐴 = 𝐵𝐴 = 𝐶) ∧ 𝐴 ∈ V) → ∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥})
241, 2, 23syl2anc 584 1 (𝐴 ∈ {𝐵, 𝐶} → ∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wo 841   = wceq 1528  wex 1771  wcel 2105  Vcvv 3492  {cpr 4559
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1787  ax-4 1801  ax-5 1902  ax-6 1961  ax-7 2006  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2151  ax-12 2167  ax-ext 2790
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 842  df-tru 1531  df-ex 1772  df-nf 1776  df-sb 2061  df-clab 2797  df-cleq 2811  df-clel 2890  df-nfc 2960  df-v 3494  df-dif 3936  df-un 3938  df-nul 4289  df-sn 4558  df-pr 4560
This theorem is referenced by:  elpreqprb  4790
  Copyright terms: Public domain W3C validator