Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  elsprel Structured version   Visualization version   GIF version

Theorem elsprel 41725
Description: An unordered pair is an element of all unordered pairs. At least one of the two elements of the unordered pair must be a set. Otherwise, the unordered pair would be the empty set, see prprc 4302, which is not an element of all unordered pairs, see spr0nelg 41726. (Contributed by AV, 21-Nov-2021.)
Assertion
Ref Expression
elsprel ((𝐴𝑉𝐵𝑊) → {𝐴, 𝐵} ∈ {𝑝 ∣ ∃𝑎𝑏 𝑝 = {𝑎, 𝑏}})
Distinct variable groups:   𝐴,𝑎,𝑏,𝑝   𝐵,𝑎,𝑏,𝑝
Allowed substitution hints:   𝑉(𝑝,𝑎,𝑏)   𝑊(𝑝,𝑎,𝑏)

Proof of Theorem elsprel
StepHypRef Expression
1 elex 3212 . . . 4 (𝐴𝑉𝐴 ∈ V)
2 elex 3212 . . . 4 (𝐵𝑊𝐵 ∈ V)
31, 2orim12i 538 . . 3 ((𝐴𝑉𝐵𝑊) → (𝐴 ∈ V ∨ 𝐵 ∈ V))
4 elisset 3215 . . . . . . 7 (𝐴 ∈ V → ∃𝑎 𝑎 = 𝐴)
5 elisset 3215 . . . . . . 7 (𝐵 ∈ V → ∃𝑏 𝑏 = 𝐵)
6 eeanv 2182 . . . . . . . 8 (∃𝑎𝑏(𝑎 = 𝐴𝑏 = 𝐵) ↔ (∃𝑎 𝑎 = 𝐴 ∧ ∃𝑏 𝑏 = 𝐵))
7 preq12 4270 . . . . . . . . . 10 ((𝑎 = 𝐴𝑏 = 𝐵) → {𝑎, 𝑏} = {𝐴, 𝐵})
87eqcomd 2628 . . . . . . . . 9 ((𝑎 = 𝐴𝑏 = 𝐵) → {𝐴, 𝐵} = {𝑎, 𝑏})
982eximi 1763 . . . . . . . 8 (∃𝑎𝑏(𝑎 = 𝐴𝑏 = 𝐵) → ∃𝑎𝑏{𝐴, 𝐵} = {𝑎, 𝑏})
106, 9sylbir 225 . . . . . . 7 ((∃𝑎 𝑎 = 𝐴 ∧ ∃𝑏 𝑏 = 𝐵) → ∃𝑎𝑏{𝐴, 𝐵} = {𝑎, 𝑏})
114, 5, 10syl2an 494 . . . . . 6 ((𝐴 ∈ V ∧ 𝐵 ∈ V) → ∃𝑎𝑏{𝐴, 𝐵} = {𝑎, 𝑏})
1211expcom 451 . . . . 5 (𝐵 ∈ V → (𝐴 ∈ V → ∃𝑎𝑏{𝐴, 𝐵} = {𝑎, 𝑏}))
13 preq2 4269 . . . . . . . . . . . . . 14 (𝑏 = 𝑎 → {𝑎, 𝑏} = {𝑎, 𝑎})
1413adantr 481 . . . . . . . . . . . . 13 ((𝑏 = 𝑎𝑎 = 𝐴) → {𝑎, 𝑏} = {𝑎, 𝑎})
15 dfsn2 4190 . . . . . . . . . . . . . 14 {𝑎} = {𝑎, 𝑎}
16 sneq 4187 . . . . . . . . . . . . . . 15 (𝑎 = 𝐴 → {𝑎} = {𝐴})
1716adantl 482 . . . . . . . . . . . . . 14 ((𝑏 = 𝑎𝑎 = 𝐴) → {𝑎} = {𝐴})
1815, 17syl5eqr 2670 . . . . . . . . . . . . 13 ((𝑏 = 𝑎𝑎 = 𝐴) → {𝑎, 𝑎} = {𝐴})
1914, 18eqtr2d 2657 . . . . . . . . . . . 12 ((𝑏 = 𝑎𝑎 = 𝐴) → {𝐴} = {𝑎, 𝑏})
2019ex 450 . . . . . . . . . . 11 (𝑏 = 𝑎 → (𝑎 = 𝐴 → {𝐴} = {𝑎, 𝑏}))
2120spimev 2259 . . . . . . . . . 10 (𝑎 = 𝐴 → ∃𝑏{𝐴} = {𝑎, 𝑏})
2221adantl 482 . . . . . . . . 9 ((¬ 𝐵 ∈ V ∧ 𝑎 = 𝐴) → ∃𝑏{𝐴} = {𝑎, 𝑏})
23 prprc2 4301 . . . . . . . . . . . 12 𝐵 ∈ V → {𝐴, 𝐵} = {𝐴})
2423adantr 481 . . . . . . . . . . 11 ((¬ 𝐵 ∈ V ∧ 𝑎 = 𝐴) → {𝐴, 𝐵} = {𝐴})
2524eqeq1d 2624 . . . . . . . . . 10 ((¬ 𝐵 ∈ V ∧ 𝑎 = 𝐴) → ({𝐴, 𝐵} = {𝑎, 𝑏} ↔ {𝐴} = {𝑎, 𝑏}))
2625exbidv 1850 . . . . . . . . 9 ((¬ 𝐵 ∈ V ∧ 𝑎 = 𝐴) → (∃𝑏{𝐴, 𝐵} = {𝑎, 𝑏} ↔ ∃𝑏{𝐴} = {𝑎, 𝑏}))
2722, 26mpbird 247 . . . . . . . 8 ((¬ 𝐵 ∈ V ∧ 𝑎 = 𝐴) → ∃𝑏{𝐴, 𝐵} = {𝑎, 𝑏})
2827ex 450 . . . . . . 7 𝐵 ∈ V → (𝑎 = 𝐴 → ∃𝑏{𝐴, 𝐵} = {𝑎, 𝑏}))
2928eximdv 1846 . . . . . 6 𝐵 ∈ V → (∃𝑎 𝑎 = 𝐴 → ∃𝑎𝑏{𝐴, 𝐵} = {𝑎, 𝑏}))
304, 29syl5 34 . . . . 5 𝐵 ∈ V → (𝐴 ∈ V → ∃𝑎𝑏{𝐴, 𝐵} = {𝑎, 𝑏}))
3112, 30pm2.61i 176 . . . 4 (𝐴 ∈ V → ∃𝑎𝑏{𝐴, 𝐵} = {𝑎, 𝑏})
3211ex 450 . . . . 5 (𝐴 ∈ V → (𝐵 ∈ V → ∃𝑎𝑏{𝐴, 𝐵} = {𝑎, 𝑏}))
33 preq1 4268 . . . . . . . . . . . . . . . . 17 (𝑎 = 𝑏 → {𝑎, 𝑏} = {𝑏, 𝑏})
3433adantr 481 . . . . . . . . . . . . . . . 16 ((𝑎 = 𝑏𝑏 = 𝐵) → {𝑎, 𝑏} = {𝑏, 𝑏})
35 dfsn2 4190 . . . . . . . . . . . . . . . . 17 {𝑏} = {𝑏, 𝑏}
36 sneq 4187 . . . . . . . . . . . . . . . . . 18 (𝑏 = 𝐵 → {𝑏} = {𝐵})
3736adantl 482 . . . . . . . . . . . . . . . . 17 ((𝑎 = 𝑏𝑏 = 𝐵) → {𝑏} = {𝐵})
3835, 37syl5eqr 2670 . . . . . . . . . . . . . . . 16 ((𝑎 = 𝑏𝑏 = 𝐵) → {𝑏, 𝑏} = {𝐵})
3934, 38eqtr2d 2657 . . . . . . . . . . . . . . 15 ((𝑎 = 𝑏𝑏 = 𝐵) → {𝐵} = {𝑎, 𝑏})
4039ex 450 . . . . . . . . . . . . . 14 (𝑎 = 𝑏 → (𝑏 = 𝐵 → {𝐵} = {𝑎, 𝑏}))
4140spimev 2259 . . . . . . . . . . . . 13 (𝑏 = 𝐵 → ∃𝑎{𝐵} = {𝑎, 𝑏})
4241adantl 482 . . . . . . . . . . . 12 ((¬ 𝐴 ∈ V ∧ 𝑏 = 𝐵) → ∃𝑎{𝐵} = {𝑎, 𝑏})
43 prprc1 4300 . . . . . . . . . . . . . . 15 𝐴 ∈ V → {𝐴, 𝐵} = {𝐵})
4443adantr 481 . . . . . . . . . . . . . 14 ((¬ 𝐴 ∈ V ∧ 𝑏 = 𝐵) → {𝐴, 𝐵} = {𝐵})
4544eqeq1d 2624 . . . . . . . . . . . . 13 ((¬ 𝐴 ∈ V ∧ 𝑏 = 𝐵) → ({𝐴, 𝐵} = {𝑎, 𝑏} ↔ {𝐵} = {𝑎, 𝑏}))
4645exbidv 1850 . . . . . . . . . . . 12 ((¬ 𝐴 ∈ V ∧ 𝑏 = 𝐵) → (∃𝑎{𝐴, 𝐵} = {𝑎, 𝑏} ↔ ∃𝑎{𝐵} = {𝑎, 𝑏}))
4742, 46mpbird 247 . . . . . . . . . . 11 ((¬ 𝐴 ∈ V ∧ 𝑏 = 𝐵) → ∃𝑎{𝐴, 𝐵} = {𝑎, 𝑏})
4847ex 450 . . . . . . . . . 10 𝐴 ∈ V → (𝑏 = 𝐵 → ∃𝑎{𝐴, 𝐵} = {𝑎, 𝑏}))
4948eximdv 1846 . . . . . . . . 9 𝐴 ∈ V → (∃𝑏 𝑏 = 𝐵 → ∃𝑏𝑎{𝐴, 𝐵} = {𝑎, 𝑏}))
5049impcom 446 . . . . . . . 8 ((∃𝑏 𝑏 = 𝐵 ∧ ¬ 𝐴 ∈ V) → ∃𝑏𝑎{𝐴, 𝐵} = {𝑎, 𝑏})
51 excom 2042 . . . . . . . 8 (∃𝑎𝑏{𝐴, 𝐵} = {𝑎, 𝑏} ↔ ∃𝑏𝑎{𝐴, 𝐵} = {𝑎, 𝑏})
5250, 51sylibr 224 . . . . . . 7 ((∃𝑏 𝑏 = 𝐵 ∧ ¬ 𝐴 ∈ V) → ∃𝑎𝑏{𝐴, 𝐵} = {𝑎, 𝑏})
5352ex 450 . . . . . 6 (∃𝑏 𝑏 = 𝐵 → (¬ 𝐴 ∈ V → ∃𝑎𝑏{𝐴, 𝐵} = {𝑎, 𝑏}))
5453, 5syl11 33 . . . . 5 𝐴 ∈ V → (𝐵 ∈ V → ∃𝑎𝑏{𝐴, 𝐵} = {𝑎, 𝑏}))
5532, 54pm2.61i 176 . . . 4 (𝐵 ∈ V → ∃𝑎𝑏{𝐴, 𝐵} = {𝑎, 𝑏})
5631, 55jaoi 394 . . 3 ((𝐴 ∈ V ∨ 𝐵 ∈ V) → ∃𝑎𝑏{𝐴, 𝐵} = {𝑎, 𝑏})
573, 56syl 17 . 2 ((𝐴𝑉𝐵𝑊) → ∃𝑎𝑏{𝐴, 𝐵} = {𝑎, 𝑏})
58 prex 4909 . . 3 {𝐴, 𝐵} ∈ V
59 eqeq1 2626 . . . 4 (𝑝 = {𝐴, 𝐵} → (𝑝 = {𝑎, 𝑏} ↔ {𝐴, 𝐵} = {𝑎, 𝑏}))
60592exbidv 1852 . . 3 (𝑝 = {𝐴, 𝐵} → (∃𝑎𝑏 𝑝 = {𝑎, 𝑏} ↔ ∃𝑎𝑏{𝐴, 𝐵} = {𝑎, 𝑏}))
6158, 60elab 3350 . 2 ({𝐴, 𝐵} ∈ {𝑝 ∣ ∃𝑎𝑏 𝑝 = {𝑎, 𝑏}} ↔ ∃𝑎𝑏{𝐴, 𝐵} = {𝑎, 𝑏})
6257, 61sylibr 224 1 ((𝐴𝑉𝐵𝑊) → {𝐴, 𝐵} ∈ {𝑝 ∣ ∃𝑎𝑏 𝑝 = {𝑎, 𝑏}})
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wo 383  wa 384   = wceq 1483  wex 1704  wcel 1990  {cab 2608  Vcvv 3200  {csn 4177  {cpr 4179
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-sep 4781  ax-nul 4789  ax-pr 4906
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-v 3202  df-dif 3577  df-un 3579  df-nul 3916  df-sn 4178  df-pr 4180
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator