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

Theorem elpr2elpr 4832
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 4701 . . . . . . . 8 ((𝐴 = 𝑋 ∧ 𝑏 = 𝑌) → {𝐴, 𝑏} = {𝑋, 𝑌})
32eqcomd 2775 . . . . . . 7 ((𝐴 = 𝑋 ∧ 𝑏 = 𝑌) → {𝑋, 𝑌} = {𝐴, 𝑏})
43adantlr 728 . . . . . 6 (((𝐴 = 𝑋 ∧ (𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉)) ∧ 𝑏 = 𝑌) → {𝑋, 𝑌} = {𝐴, 𝑏})
51, 4rspcedeqvd 3589 . . . . 5 ((𝐴 = 𝑋 ∧ (𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉)) → ∃𝑏 ∈ 𝑉 {𝑋, 𝑌} = {𝐴, 𝑏})
65ex 418 . . . 4 (𝐴 = 𝑋 → ((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) → ∃𝑏 ∈ 𝑉 {𝑋, 𝑌} = {𝐴, 𝑏}))
7 simprl 783 . . . . . 6 ((𝐴 = 𝑌 ∧ (𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉)) → 𝑋 ∈ 𝑉)
8 preq12 4701 . . . . . . . 8 ((𝐴 = 𝑌 ∧ 𝑏 = 𝑋) → {𝐴, 𝑏} = {𝑌, 𝑋})
9 prcom 4698 . . . . . . . 8 {𝑌, 𝑋} = {𝑋, 𝑌}
108, 9eqtr2di 2821 . . . . . . 7 ((𝐴 = 𝑌 ∧ 𝑏 = 𝑋) → {𝑋, 𝑌} = {𝐴, 𝑏})
1110adantlr 728 . . . . . 6 (((𝐴 = 𝑌 ∧ (𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉)) ∧ 𝑏 = 𝑋) → {𝑋, 𝑌} = {𝐴, 𝑏})
127, 11rspcedeqvd 3589 . . . . 5 ((𝐴 = 𝑌 ∧ (𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉)) → ∃𝑏 ∈ 𝑉 {𝑋, 𝑌} = {𝐴, 𝑏})
1312ex 418 . . . 4 (𝐴 = 𝑌 → ((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) → ∃𝑏 ∈ 𝑉 {𝑋, 𝑌} = {𝐴, 𝑏}))
146, 13jaoi 871 . . 3 ((𝐴 = 𝑋 ∨ 𝐴 = 𝑌) → ((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) → ∃𝑏 ∈ 𝑉 {𝑋, 𝑌} = {𝐴, 𝑏}))
15 elpri 4610 . . 3 (𝐴 ∈ {𝑋, 𝑌} → (𝐴 = 𝑋 ∨ 𝐴 = 𝑌))
1614, 15syl11 34 . 2 ((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) → (𝐴 ∈ {𝑋, 𝑌} → ∃𝑏 ∈ 𝑉 {𝑋, 𝑌} = {𝐴, 𝑏}))
17163impia 1136 1 ((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉 ∧ 𝐴 ∈ {𝑋, 𝑌}) → ∃𝑏 ∈ 𝑉 {𝑋, 𝑌} = {𝐴, 𝑏})
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   ∨ wo 861   ∧ w3a 1104   = wceq 1572   ∈ wcel 2151  ∃wrex 3096  {cpr 4592
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-ext 2741
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-ex 1815  df-sb 2105  df-clab 2748  df-cleq 2761  df-clel 2845  df-ral 3087  df-rex 3097  df-v 3458  df-un 4156  df-sn 4591  df-pr 4593
This theorem is used by:  upgredg2vtx  29789
  Copyright terms: Public domain W3C validator