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

Theorem elpr2elpr 4804
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 769 . . . . . 6 ((𝐴 = 𝑋 ∧ (𝑋𝑉𝑌𝑉)) → 𝑌𝑉)
2 preq2 4675 . . . . . . . 8 (𝑏 = 𝑌 → {𝐴, 𝑏} = {𝐴, 𝑌})
32eqeq2d 2750 . . . . . . 7 (𝑏 = 𝑌 → ({𝑋, 𝑌} = {𝐴, 𝑏} ↔ {𝑋, 𝑌} = {𝐴, 𝑌}))
43adantl 481 . . . . . 6 (((𝐴 = 𝑋 ∧ (𝑋𝑉𝑌𝑉)) ∧ 𝑏 = 𝑌) → ({𝑋, 𝑌} = {𝐴, 𝑏} ↔ {𝑋, 𝑌} = {𝐴, 𝑌}))
5 preq1 4674 . . . . . . . 8 (𝑋 = 𝐴 → {𝑋, 𝑌} = {𝐴, 𝑌})
65eqcoms 2747 . . . . . . 7 (𝐴 = 𝑋 → {𝑋, 𝑌} = {𝐴, 𝑌})
76adantr 480 . . . . . 6 ((𝐴 = 𝑋 ∧ (𝑋𝑉𝑌𝑉)) → {𝑋, 𝑌} = {𝐴, 𝑌})
81, 4, 7rspcedvd 3563 . . . . 5 ((𝐴 = 𝑋 ∧ (𝑋𝑉𝑌𝑉)) → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏})
98ex 412 . . . 4 (𝐴 = 𝑋 → ((𝑋𝑉𝑌𝑉) → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏}))
10 simprl 767 . . . . . 6 ((𝐴 = 𝑌 ∧ (𝑋𝑉𝑌𝑉)) → 𝑋𝑉)
11 preq2 4675 . . . . . . . 8 (𝑏 = 𝑋 → {𝐴, 𝑏} = {𝐴, 𝑋})
1211eqeq2d 2750 . . . . . . 7 (𝑏 = 𝑋 → ({𝑋, 𝑌} = {𝐴, 𝑏} ↔ {𝑋, 𝑌} = {𝐴, 𝑋}))
1312adantl 481 . . . . . 6 (((𝐴 = 𝑌 ∧ (𝑋𝑉𝑌𝑉)) ∧ 𝑏 = 𝑋) → ({𝑋, 𝑌} = {𝐴, 𝑏} ↔ {𝑋, 𝑌} = {𝐴, 𝑋}))
14 preq2 4675 . . . . . . . . 9 (𝑌 = 𝐴 → {𝑋, 𝑌} = {𝑋, 𝐴})
1514eqcoms 2747 . . . . . . . 8 (𝐴 = 𝑌 → {𝑋, 𝑌} = {𝑋, 𝐴})
16 prcom 4673 . . . . . . . 8 {𝑋, 𝐴} = {𝐴, 𝑋}
1715, 16eqtrdi 2795 . . . . . . 7 (𝐴 = 𝑌 → {𝑋, 𝑌} = {𝐴, 𝑋})
1817adantr 480 . . . . . 6 ((𝐴 = 𝑌 ∧ (𝑋𝑉𝑌𝑉)) → {𝑋, 𝑌} = {𝐴, 𝑋})
1910, 13, 18rspcedvd 3563 . . . . 5 ((𝐴 = 𝑌 ∧ (𝑋𝑉𝑌𝑉)) → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏})
2019ex 412 . . . 4 (𝐴 = 𝑌 → ((𝑋𝑉𝑌𝑉) → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏}))
219, 20jaoi 853 . . 3 ((𝐴 = 𝑋𝐴 = 𝑌) → ((𝑋𝑉𝑌𝑉) → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏}))
22 elpri 4588 . . 3 (𝐴 ∈ {𝑋, 𝑌} → (𝐴 = 𝑋𝐴 = 𝑌))
2321, 22syl11 33 . 2 ((𝑋𝑉𝑌𝑉) → (𝐴 ∈ {𝑋, 𝑌} → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏}))
24233impia 1115 1 ((𝑋𝑉𝑌𝑉𝐴 ∈ {𝑋, 𝑌}) → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  wo 843  w3a 1085   = wceq 1541  wcel 2109  wrex 3066  {cpr 4568
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-ext 2710
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1544  df-ex 1786  df-sb 2071  df-clab 2717  df-cleq 2731  df-clel 2817  df-ral 3070  df-rex 3071  df-v 3432  df-un 3896  df-sn 4567  df-pr 4569
This theorem is referenced by:  upgredg2vtx  27492
  Copyright terms: Public domain W3C validator