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

Theorem or2expropbi 44479
Description: If two classes are strictly ordered, there is an ordered pair of both classes fulfilling a wff iff there is an unordered pair of both classes fulfilling the wff. (Contributed by AV, 26-Aug-2023.)
Assertion
Ref Expression
or2expropbi (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → (∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ (𝑎𝑅𝑏𝜑)) ↔ ∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝑅𝑏𝜑))))
Distinct variable groups:   𝑎,𝑏,𝐴   𝐵,𝑎,𝑏   𝑅,𝑎,𝑏   𝑉,𝑎,𝑏   𝑋,𝑎,𝑏
Allowed substitution hints:   𝜑(𝑎,𝑏)

Proof of Theorem or2expropbi
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 nfv 1920 . . . 4 𝑎((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵))
2 nfv 1920 . . . . . . 7 𝑎𝐴, 𝐵⟩ = ⟨𝑥, 𝑦
3 nfcv 2908 . . . . . . . 8 𝑎𝑦
4 nfsbc1v 3739 . . . . . . . 8 𝑎[𝑥 / 𝑎](𝑎𝑅𝑏𝜑)
53, 4nfsbcw 3741 . . . . . . 7 𝑎[𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)
62, 5nfan 1905 . . . . . 6 𝑎(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑))
76nfex 2321 . . . . 5 𝑎𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑))
87nfex 2321 . . . 4 𝑎𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑))
9 nfv 1920 . . . . 5 𝑏((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵))
10 nfv 1920 . . . . . . . 8 𝑏𝐴, 𝐵⟩ = ⟨𝑥, 𝑦
11 nfsbc1v 3739 . . . . . . . 8 𝑏[𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)
1210, 11nfan 1905 . . . . . . 7 𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑))
1312nfex 2321 . . . . . 6 𝑏𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑))
1413nfex 2321 . . . . 5 𝑏𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑))
15 vex 3434 . . . . . . . . . 10 𝑎 ∈ V
16 vex 3434 . . . . . . . . . 10 𝑏 ∈ V
17 preq12bg 4789 . . . . . . . . . 10 (((𝐴𝑋𝐵𝑋) ∧ (𝑎 ∈ V ∧ 𝑏 ∈ V)) → ({𝐴, 𝐵} = {𝑎, 𝑏} ↔ ((𝐴 = 𝑎𝐵 = 𝑏) ∨ (𝐴 = 𝑏𝐵 = 𝑎))))
1815, 16, 17mpanr12 701 . . . . . . . . 9 ((𝐴𝑋𝐵𝑋) → ({𝐴, 𝐵} = {𝑎, 𝑏} ↔ ((𝐴 = 𝑎𝐵 = 𝑏) ∨ (𝐴 = 𝑏𝐵 = 𝑎))))
19183adant3 1130 . . . . . . . 8 ((𝐴𝑋𝐵𝑋𝐴𝑅𝐵) → ({𝐴, 𝐵} = {𝑎, 𝑏} ↔ ((𝐴 = 𝑎𝐵 = 𝑏) ∨ (𝐴 = 𝑏𝐵 = 𝑎))))
2019adantl 481 . . . . . . 7 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → ({𝐴, 𝐵} = {𝑎, 𝑏} ↔ ((𝐴 = 𝑎𝐵 = 𝑏) ∨ (𝐴 = 𝑏𝐵 = 𝑎))))
21 or2expropbilem1 44477 . . . . . . . . . 10 ((𝐴𝑋𝐵𝑋) → ((𝐴 = 𝑎𝐵 = 𝑏) → ((𝑎𝑅𝑏𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)))))
22213adant3 1130 . . . . . . . . 9 ((𝐴𝑋𝐵𝑋𝐴𝑅𝐵) → ((𝐴 = 𝑎𝐵 = 𝑏) → ((𝑎𝑅𝑏𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)))))
2322adantl 481 . . . . . . . 8 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → ((𝐴 = 𝑎𝐵 = 𝑏) → ((𝑎𝑅𝑏𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)))))
24 breq12 5083 . . . . . . . . . . . . 13 ((𝐵 = 𝑎𝐴 = 𝑏) → (𝐵𝑅𝐴𝑎𝑅𝑏))
2524ancoms 458 . . . . . . . . . . . 12 ((𝐴 = 𝑏𝐵 = 𝑎) → (𝐵𝑅𝐴𝑎𝑅𝑏))
2625adantl 481 . . . . . . . . . . 11 ((((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) ∧ (𝐴 = 𝑏𝐵 = 𝑎)) → (𝐵𝑅𝐴𝑎𝑅𝑏))
27 soasym 5533 . . . . . . . . . . . . . . . . 17 ((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → (𝐴𝑅𝐵 → ¬ 𝐵𝑅𝐴))
2827ex 412 . . . . . . . . . . . . . . . 16 (𝑅 Or 𝑋 → ((𝐴𝑋𝐵𝑋) → (𝐴𝑅𝐵 → ¬ 𝐵𝑅𝐴)))
2928adantl 481 . . . . . . . . . . . . . . 15 ((𝑋𝑉𝑅 Or 𝑋) → ((𝐴𝑋𝐵𝑋) → (𝐴𝑅𝐵 → ¬ 𝐵𝑅𝐴)))
3029expd 415 . . . . . . . . . . . . . 14 ((𝑋𝑉𝑅 Or 𝑋) → (𝐴𝑋 → (𝐵𝑋 → (𝐴𝑅𝐵 → ¬ 𝐵𝑅𝐴))))
31303imp2 1347 . . . . . . . . . . . . 13 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → ¬ 𝐵𝑅𝐴)
3231pm2.21d 121 . . . . . . . . . . . 12 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → (𝐵𝑅𝐴 → (𝜑 → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)))))
3332adantr 480 . . . . . . . . . . 11 ((((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) ∧ (𝐴 = 𝑏𝐵 = 𝑎)) → (𝐵𝑅𝐴 → (𝜑 → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)))))
3426, 33sylbird 259 . . . . . . . . . 10 ((((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) ∧ (𝐴 = 𝑏𝐵 = 𝑎)) → (𝑎𝑅𝑏 → (𝜑 → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)))))
3534impd 410 . . . . . . . . 9 ((((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) ∧ (𝐴 = 𝑏𝐵 = 𝑎)) → ((𝑎𝑅𝑏𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑))))
3635ex 412 . . . . . . . 8 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → ((𝐴 = 𝑏𝐵 = 𝑎) → ((𝑎𝑅𝑏𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)))))
3723, 36jaod 855 . . . . . . 7 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → (((𝐴 = 𝑎𝐵 = 𝑏) ∨ (𝐴 = 𝑏𝐵 = 𝑎)) → ((𝑎𝑅𝑏𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)))))
3820, 37sylbid 239 . . . . . 6 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → ({𝐴, 𝐵} = {𝑎, 𝑏} → ((𝑎𝑅𝑏𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)))))
3938impd 410 . . . . 5 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → (({𝐴, 𝐵} = {𝑎, 𝑏} ∧ (𝑎𝑅𝑏𝜑)) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑))))
409, 14, 39exlimd 2214 . . . 4 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → (∃𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ (𝑎𝑅𝑏𝜑)) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑))))
411, 8, 40exlimd 2214 . . 3 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → (∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ (𝑎𝑅𝑏𝜑)) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑))))
42 or2expropbilem2 44478 . . 3 (∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝑅𝑏𝜑)) ↔ ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)))
4341, 42syl6ibr 251 . 2 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → (∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ (𝑎𝑅𝑏𝜑)) → ∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝑅𝑏𝜑))))
44 oppr 44475 . . . . . 6 ((𝐴𝑋𝐵𝑋) → (⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ → {𝐴, 𝐵} = {𝑎, 𝑏}))
4544anim1d 610 . . . . 5 ((𝐴𝑋𝐵𝑋) → ((⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝑅𝑏𝜑)) → ({𝐴, 𝐵} = {𝑎, 𝑏} ∧ (𝑎𝑅𝑏𝜑))))
46452eximdv 1925 . . . 4 ((𝐴𝑋𝐵𝑋) → (∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝑅𝑏𝜑)) → ∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ (𝑎𝑅𝑏𝜑))))
47463adant3 1130 . . 3 ((𝐴𝑋𝐵𝑋𝐴𝑅𝐵) → (∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝑅𝑏𝜑)) → ∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ (𝑎𝑅𝑏𝜑))))
4847adantl 481 . 2 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → (∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝑅𝑏𝜑)) → ∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ (𝑎𝑅𝑏𝜑))))
4943, 48impbid 211 1 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → (∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ (𝑎𝑅𝑏𝜑)) ↔ ∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝑅𝑏𝜑))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843  w3a 1085   = wceq 1541  wex 1785  wcel 2109  Vcvv 3430  [wsbc 3719  {cpr 4568  cop 4572   class class class wbr 5078   Or wor 5501
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-10 2140  ax-11 2157  ax-12 2174  ax-ext 2710  ax-sep 5226  ax-nul 5233  ax-pr 5355
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1544  df-fal 1554  df-ex 1786  df-nf 1790  df-sb 2071  df-clab 2717  df-cleq 2731  df-clel 2817  df-nfc 2890  df-ral 3070  df-rab 3074  df-v 3432  df-sbc 3720  df-dif 3894  df-un 3896  df-nul 4262  df-if 4465  df-sn 4567  df-pr 4569  df-op 4573  df-br 5079  df-po 5502  df-so 5503
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator