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

Theorem elpr2elpr 4759
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 772 . . . . . 6 ((𝐴 = 𝑋 ∧ (𝑋𝑉𝑌𝑉)) → 𝑌𝑉)
2 preq2 4630 . . . . . . . 8 (𝑏 = 𝑌 → {𝐴, 𝑏} = {𝐴, 𝑌})
32eqeq2d 2809 . . . . . . 7 (𝑏 = 𝑌 → ({𝑋, 𝑌} = {𝐴, 𝑏} ↔ {𝑋, 𝑌} = {𝐴, 𝑌}))
43adantl 485 . . . . . 6 (((𝐴 = 𝑋 ∧ (𝑋𝑉𝑌𝑉)) ∧ 𝑏 = 𝑌) → ({𝑋, 𝑌} = {𝐴, 𝑏} ↔ {𝑋, 𝑌} = {𝐴, 𝑌}))
5 preq1 4629 . . . . . . . 8 (𝑋 = 𝐴 → {𝑋, 𝑌} = {𝐴, 𝑌})
65eqcoms 2806 . . . . . . 7 (𝐴 = 𝑋 → {𝑋, 𝑌} = {𝐴, 𝑌})
76adantr 484 . . . . . 6 ((𝐴 = 𝑋 ∧ (𝑋𝑉𝑌𝑉)) → {𝑋, 𝑌} = {𝐴, 𝑌})
81, 4, 7rspcedvd 3574 . . . . 5 ((𝐴 = 𝑋 ∧ (𝑋𝑉𝑌𝑉)) → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏})
98ex 416 . . . 4 (𝐴 = 𝑋 → ((𝑋𝑉𝑌𝑉) → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏}))
10 simprl 770 . . . . . 6 ((𝐴 = 𝑌 ∧ (𝑋𝑉𝑌𝑉)) → 𝑋𝑉)
11 preq2 4630 . . . . . . . 8 (𝑏 = 𝑋 → {𝐴, 𝑏} = {𝐴, 𝑋})
1211eqeq2d 2809 . . . . . . 7 (𝑏 = 𝑋 → ({𝑋, 𝑌} = {𝐴, 𝑏} ↔ {𝑋, 𝑌} = {𝐴, 𝑋}))
1312adantl 485 . . . . . 6 (((𝐴 = 𝑌 ∧ (𝑋𝑉𝑌𝑉)) ∧ 𝑏 = 𝑋) → ({𝑋, 𝑌} = {𝐴, 𝑏} ↔ {𝑋, 𝑌} = {𝐴, 𝑋}))
14 preq2 4630 . . . . . . . . 9 (𝑌 = 𝐴 → {𝑋, 𝑌} = {𝑋, 𝐴})
1514eqcoms 2806 . . . . . . . 8 (𝐴 = 𝑌 → {𝑋, 𝑌} = {𝑋, 𝐴})
16 prcom 4628 . . . . . . . 8 {𝑋, 𝐴} = {𝐴, 𝑋}
1715, 16eqtrdi 2849 . . . . . . 7 (𝐴 = 𝑌 → {𝑋, 𝑌} = {𝐴, 𝑋})
1817adantr 484 . . . . . 6 ((𝐴 = 𝑌 ∧ (𝑋𝑉𝑌𝑉)) → {𝑋, 𝑌} = {𝐴, 𝑋})
1910, 13, 18rspcedvd 3574 . . . . 5 ((𝐴 = 𝑌 ∧ (𝑋𝑉𝑌𝑉)) → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏})
2019ex 416 . . . 4 (𝐴 = 𝑌 → ((𝑋𝑉𝑌𝑉) → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏}))
219, 20jaoi 854 . . 3 ((𝐴 = 𝑋𝐴 = 𝑌) → ((𝑋𝑉𝑌𝑉) → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏}))
22 elpri 4547 . . 3 (𝐴 ∈ {𝑋, 𝑌} → (𝐴 = 𝑋𝐴 = 𝑌))
2321, 22syl11 33 . 2 ((𝑋𝑉𝑌𝑉) → (𝐴 ∈ {𝑋, 𝑌} → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏}))
24233impia 1114 1 ((𝑋𝑉𝑌𝑉𝐴 ∈ {𝑋, 𝑌}) → ∃𝑏𝑉 {𝑋, 𝑌} = {𝐴, 𝑏})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  wo 844  w3a 1084   = wceq 1538  wcel 2111  wrex 3107  {cpr 4527
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-ext 2770
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-sb 2070  df-clab 2777  df-cleq 2791  df-clel 2870  df-ral 3111  df-rex 3112  df-v 3443  df-un 3886  df-sn 4526  df-pr 4528
This theorem is referenced by:  upgredg2vtx  26934
  Copyright terms: Public domain W3C validator