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

Theorem elpr2elpr 4802
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 771 . . . . . 6 ((𝐴 = 𝑋 ∧ (𝑋𝑉𝑌𝑉)) → 𝑌𝑉)
2 preq2 4673 . . . . . . . 8 (𝑏 = 𝑌 → {𝐴, 𝑏} = {𝐴, 𝑌})
32eqeq2d 2835 . . . . . . 7 (𝑏 = 𝑌 → ({𝑋, 𝑌} = {𝐴, 𝑏} ↔ {𝑋, 𝑌} = {𝐴, 𝑌}))
43adantl 484 . . . . . 6 (((𝐴 = 𝑋 ∧ (𝑋𝑉𝑌𝑉)) ∧ 𝑏 = 𝑌) → ({𝑋, 𝑌} = {𝐴, 𝑏} ↔ {𝑋, 𝑌} = {𝐴, 𝑌}))
5 preq1 4672 . . . . . . . 8 (𝑋 = 𝐴 → {𝑋, 𝑌} = {𝐴, 𝑌})
65eqcoms 2832 . . . . . . 7 (𝐴 = 𝑋 → {𝑋, 𝑌} = {𝐴, 𝑌})
76adantr 483 . . . . . 6 ((𝐴 = 𝑋 ∧ (𝑋𝑉𝑌𝑉)) → {𝑋, 𝑌} = {𝐴, 𝑌})
81, 4, 7rspcedvd 3629 . . . . 5 ((𝐴 = 𝑋 ∧ (𝑋𝑉𝑌𝑉)) → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏})
98ex 415 . . . 4 (𝐴 = 𝑋 → ((𝑋𝑉𝑌𝑉) → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏}))
10 simprl 769 . . . . . 6 ((𝐴 = 𝑌 ∧ (𝑋𝑉𝑌𝑉)) → 𝑋𝑉)
11 preq2 4673 . . . . . . . 8 (𝑏 = 𝑋 → {𝐴, 𝑏} = {𝐴, 𝑋})
1211eqeq2d 2835 . . . . . . 7 (𝑏 = 𝑋 → ({𝑋, 𝑌} = {𝐴, 𝑏} ↔ {𝑋, 𝑌} = {𝐴, 𝑋}))
1312adantl 484 . . . . . 6 (((𝐴 = 𝑌 ∧ (𝑋𝑉𝑌𝑉)) ∧ 𝑏 = 𝑋) → ({𝑋, 𝑌} = {𝐴, 𝑏} ↔ {𝑋, 𝑌} = {𝐴, 𝑋}))
14 preq2 4673 . . . . . . . . 9 (𝑌 = 𝐴 → {𝑋, 𝑌} = {𝑋, 𝐴})
1514eqcoms 2832 . . . . . . . 8 (𝐴 = 𝑌 → {𝑋, 𝑌} = {𝑋, 𝐴})
16 prcom 4671 . . . . . . . 8 {𝑋, 𝐴} = {𝐴, 𝑋}
1715, 16syl6eq 2875 . . . . . . 7 (𝐴 = 𝑌 → {𝑋, 𝑌} = {𝐴, 𝑋})
1817adantr 483 . . . . . 6 ((𝐴 = 𝑌 ∧ (𝑋𝑉𝑌𝑉)) → {𝑋, 𝑌} = {𝐴, 𝑋})
1910, 13, 18rspcedvd 3629 . . . . 5 ((𝐴 = 𝑌 ∧ (𝑋𝑉𝑌𝑉)) → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏})
2019ex 415 . . . 4 (𝐴 = 𝑌 → ((𝑋𝑉𝑌𝑉) → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏}))
219, 20jaoi 853 . . 3 ((𝐴 = 𝑋𝐴 = 𝑌) → ((𝑋𝑉𝑌𝑉) → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏}))
22 elpri 4592 . . 3 (𝐴 ∈ {𝑋, 𝑌} → (𝐴 = 𝑋𝐴 = 𝑌))
2321, 22syl11 33 . 2 ((𝑋𝑉𝑌𝑉) → (𝐴 ∈ {𝑋, 𝑌} → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏}))
24233impia 1113 1 ((𝑋𝑉𝑌𝑉𝐴 ∈ {𝑋, 𝑌}) → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398  wo 843  w3a 1083   = wceq 1536  wcel 2113  wrex 3142  {cpr 4572
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1969  ax-7 2014  ax-8 2115  ax-9 2123  ax-10 2144  ax-11 2160  ax-12 2176  ax-ext 2796
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1539  df-ex 1780  df-nf 1784  df-sb 2069  df-clab 2803  df-cleq 2817  df-clel 2896  df-nfc 2966  df-ral 3146  df-rex 3147  df-v 3499  df-un 3944  df-sn 4571  df-pr 4573
This theorem is referenced by:  upgredg2vtx  26929
  Copyright terms: Public domain W3C validator