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

Theorem elpr2elpr 4827
Description: For an element 𝐴 of an unordered pair which is a subset of a given set 𝑉, there is another (maybe the same) element 𝑏 of the given set 𝑉 being an element of the unordered pair. (Contributed by AV, 5-Dec-2020.)
Assertion
Ref Expression
elpr2elpr ((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉 ∧ 𝐴 ∈ {𝑋, 𝑌}) → ∃𝑏 ∈ 𝑉 {𝑋, 𝑌} = {𝐴, 𝑏})
Distinct variable groups:   𝐴,𝑏   𝑉,𝑏   𝑋,𝑏   𝑌,𝑏

Proof of Theorem elpr2elpr
StepHypRef Expression
1 simprr 785 . . . . . 6 ((𝐴 = 𝑋 ∧ (𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉)) → 𝑌 ∈ 𝑉)
2 preq12 4696 . . . . . . . 8 ((𝐴 = 𝑋 ∧ 𝑏 = 𝑌) → {𝐴, 𝑏} = {𝑋, 𝑌})
32eqcomd 2769 . . . . . . 7 ((𝐴 = 𝑋 ∧ 𝑏 = 𝑌) → {𝑋, 𝑌} = {𝐴, 𝑏})
43adantlr 728 . . . . . 6 (((𝐴 = 𝑋 ∧ (𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉)) ∧ 𝑏 = 𝑌) → {𝑋, 𝑌} = {𝐴, 𝑏})
51, 4rspcedeqvd 3587 . . . . 5 ((𝐴 = 𝑋 ∧ (𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉)) → ∃𝑏 ∈ 𝑉 {𝑋, 𝑌} = {𝐴, 𝑏})
65ex 418 . . . 4 (𝐴 = 𝑋 → ((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) → ∃𝑏 ∈ 𝑉 {𝑋, 𝑌} = {𝐴, 𝑏}))
7 simprl 783 . . . . . 6 ((𝐴 = 𝑌 ∧ (𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉)) → 𝑋 ∈ 𝑉)
8 preq12 4696 . . . . . . . 8 ((𝐴 = 𝑌 ∧ 𝑏 = 𝑋) → {𝐴, 𝑏} = {𝑌, 𝑋})
9 prcom 4693 . . . . . . . 8 {𝑌, 𝑋} = {𝑋, 𝑌}
108, 9eqtr2di 2815 . . . . . . 7 ((𝐴 = 𝑌 ∧ 𝑏 = 𝑋) → {𝑋, 𝑌} = {𝐴, 𝑏})
1110adantlr 728 . . . . . 6 (((𝐴 = 𝑌 ∧ (𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉)) ∧ 𝑏 = 𝑋) → {𝑋, 𝑌} = {𝐴, 𝑏})
127, 11rspcedeqvd 3587 . . . . 5 ((𝐴 = 𝑌 ∧ (𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉)) → ∃𝑏 ∈ 𝑉 {𝑋, 𝑌} = {𝐴, 𝑏})
1312ex 418 . . . 4 (𝐴 = 𝑌 → ((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) → ∃𝑏 ∈ 𝑉 {𝑋, 𝑌} = {𝐴, 𝑏}))
146, 13jaoi 871 . . 3 ((𝐴 = 𝑋 ∨ 𝐴 = 𝑌) → ((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) → ∃𝑏 ∈ 𝑉 {𝑋, 𝑌} = {𝐴, 𝑏}))
15 elpri 4608 . . 3 (𝐴 ∈ {𝑋, 𝑌} → (𝐴 = 𝑋 ∨ 𝐴 = 𝑌))
1614, 15syl11 34 . 2 ((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) → (𝐴 ∈ {𝑋, 𝑌} → ∃𝑏 ∈ 𝑉 {𝑋, 𝑌} = {𝐴, 𝑏}))
17163impia 1135 1 ((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉 ∧ 𝐴 ∈ {𝑋, 𝑌}) → ∃𝑏 ∈ 𝑉 {𝑋, 𝑌} = {𝐴, 𝑏})
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   ∨ wo 861   ∧ w3a 1103   = wceq 1570   ∈ wcel 2147  ∃wrex 3090  {cpr 4590
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-ext 2735
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-ex 1813  df-sb 2102  df-clab 2742  df-cleq 2755  df-clel 2839  df-ral 3081  df-rex 3091  df-v 3456  df-un 4154  df-sn 4589  df-pr 4591
This theorem is used by:  upgredg2vtx  29749
  Copyright terms: Public domain W3C validator