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

Theorem elpreqpr 4334
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 4145 . 2 (𝐴 ∈ {𝐵, 𝐶} → (𝐴 = 𝐵𝐴 = 𝐶))
2 elex 3185 . 2 (𝐴 ∈ {𝐵, 𝐶} → 𝐴 ∈ V)
3 elpreqprlem 4333 . . . . 5 (𝐵 ∈ V → ∃𝑥{𝐵, 𝐶} = {𝐵, 𝑥})
4 eleq1 2676 . . . . . 6 (𝐴 = 𝐵 → (𝐴 ∈ V ↔ 𝐵 ∈ V))
5 preq1 4212 . . . . . . . 8 (𝐴 = 𝐵 → {𝐴, 𝑥} = {𝐵, 𝑥})
65eqeq2d 2620 . . . . . . 7 (𝐴 = 𝐵 → ({𝐵, 𝐶} = {𝐴, 𝑥} ↔ {𝐵, 𝐶} = {𝐵, 𝑥}))
76exbidv 1837 . . . . . 6 (𝐴 = 𝐵 → (∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥} ↔ ∃𝑥{𝐵, 𝐶} = {𝐵, 𝑥}))
84, 7imbi12d 333 . . . . 5 (𝐴 = 𝐵 → ((𝐴 ∈ V → ∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥}) ↔ (𝐵 ∈ V → ∃𝑥{𝐵, 𝐶} = {𝐵, 𝑥})))
93, 8mpbiri 247 . . . 4 (𝐴 = 𝐵 → (𝐴 ∈ V → ∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥}))
109imp 444 . . 3 ((𝐴 = 𝐵𝐴 ∈ V) → ∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥})
11 elpreqprlem 4333 . . . . . 6 (𝐶 ∈ V → ∃𝑥{𝐶, 𝐵} = {𝐶, 𝑥})
12 prcom 4211 . . . . . . . 8 {𝐶, 𝐵} = {𝐵, 𝐶}
1312eqeq1i 2615 . . . . . . 7 ({𝐶, 𝐵} = {𝐶, 𝑥} ↔ {𝐵, 𝐶} = {𝐶, 𝑥})
1413exbii 1764 . . . . . 6 (∃𝑥{𝐶, 𝐵} = {𝐶, 𝑥} ↔ ∃𝑥{𝐵, 𝐶} = {𝐶, 𝑥})
1511, 14sylib 207 . . . . 5 (𝐶 ∈ V → ∃𝑥{𝐵, 𝐶} = {𝐶, 𝑥})
16 eleq1 2676 . . . . . 6 (𝐴 = 𝐶 → (𝐴 ∈ V ↔ 𝐶 ∈ V))
17 preq1 4212 . . . . . . . 8 (𝐴 = 𝐶 → {𝐴, 𝑥} = {𝐶, 𝑥})
1817eqeq2d 2620 . . . . . . 7 (𝐴 = 𝐶 → ({𝐵, 𝐶} = {𝐴, 𝑥} ↔ {𝐵, 𝐶} = {𝐶, 𝑥}))
1918exbidv 1837 . . . . . 6 (𝐴 = 𝐶 → (∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥} ↔ ∃𝑥{𝐵, 𝐶} = {𝐶, 𝑥}))
2016, 19imbi12d 333 . . . . 5 (𝐴 = 𝐶 → ((𝐴 ∈ V → ∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥}) ↔ (𝐶 ∈ V → ∃𝑥{𝐵, 𝐶} = {𝐶, 𝑥})))
2115, 20mpbiri 247 . . . 4 (𝐴 = 𝐶 → (𝐴 ∈ V → ∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥}))
2221imp 444 . . 3 ((𝐴 = 𝐶𝐴 ∈ V) → ∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥})
2310, 22jaoian 820 . 2 (((𝐴 = 𝐵𝐴 = 𝐶) ∧ 𝐴 ∈ V) → ∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥})
241, 2, 23syl2anc 691 1 (𝐴 ∈ {𝐵, 𝐶} → ∃𝑥{𝐵, 𝐶} = {𝐴, 𝑥})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wo 382   = wceq 1475  wex 1695  wcel 1977  Vcvv 3173  {cpr 4127
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-v 3175  df-dif 3543  df-un 3545  df-nul 3875  df-sn 4126  df-pr 4128
This theorem is referenced by:  elpreqprb  4335
  Copyright terms: Public domain W3C validator