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 44200
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 1922 . . . 4 𝑎((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵))
2 nfv 1922 . . . . . . 7 𝑎𝐴, 𝐵⟩ = ⟨𝑥, 𝑦
3 nfcv 2904 . . . . . . . 8 𝑎𝑦
4 nfsbc1v 3714 . . . . . . . 8 𝑎[𝑥 / 𝑎](𝑎𝑅𝑏𝜑)
53, 4nfsbcw 3716 . . . . . . 7 𝑎[𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)
62, 5nfan 1907 . . . . . 6 𝑎(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑))
76nfex 2323 . . . . 5 𝑎𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑))
87nfex 2323 . . . 4 𝑎𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑))
9 nfv 1922 . . . . 5 𝑏((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵))
10 nfv 1922 . . . . . . . 8 𝑏𝐴, 𝐵⟩ = ⟨𝑥, 𝑦
11 nfsbc1v 3714 . . . . . . . 8 𝑏[𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)
1210, 11nfan 1907 . . . . . . 7 𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑))
1312nfex 2323 . . . . . 6 𝑏𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑))
1413nfex 2323 . . . . 5 𝑏𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑))
15 vex 3412 . . . . . . . . . 10 𝑎 ∈ V
16 vex 3412 . . . . . . . . . 10 𝑏 ∈ V
17 preq12bg 4764 . . . . . . . . . 10 (((𝐴𝑋𝐵𝑋) ∧ (𝑎 ∈ V ∧ 𝑏 ∈ V)) → ({𝐴, 𝐵} = {𝑎, 𝑏} ↔ ((𝐴 = 𝑎𝐵 = 𝑏) ∨ (𝐴 = 𝑏𝐵 = 𝑎))))
1815, 16, 17mpanr12 705 . . . . . . . . 9 ((𝐴𝑋𝐵𝑋) → ({𝐴, 𝐵} = {𝑎, 𝑏} ↔ ((𝐴 = 𝑎𝐵 = 𝑏) ∨ (𝐴 = 𝑏𝐵 = 𝑎))))
19183adant3 1134 . . . . . . . 8 ((𝐴𝑋𝐵𝑋𝐴𝑅𝐵) → ({𝐴, 𝐵} = {𝑎, 𝑏} ↔ ((𝐴 = 𝑎𝐵 = 𝑏) ∨ (𝐴 = 𝑏𝐵 = 𝑎))))
2019adantl 485 . . . . . . 7 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → ({𝐴, 𝐵} = {𝑎, 𝑏} ↔ ((𝐴 = 𝑎𝐵 = 𝑏) ∨ (𝐴 = 𝑏𝐵 = 𝑎))))
21 or2expropbilem1 44198 . . . . . . . . . 10 ((𝐴𝑋𝐵𝑋) → ((𝐴 = 𝑎𝐵 = 𝑏) → ((𝑎𝑅𝑏𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)))))
22213adant3 1134 . . . . . . . . 9 ((𝐴𝑋𝐵𝑋𝐴𝑅𝐵) → ((𝐴 = 𝑎𝐵 = 𝑏) → ((𝑎𝑅𝑏𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)))))
2322adantl 485 . . . . . . . 8 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → ((𝐴 = 𝑎𝐵 = 𝑏) → ((𝑎𝑅𝑏𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)))))
24 breq12 5058 . . . . . . . . . . . . 13 ((𝐵 = 𝑎𝐴 = 𝑏) → (𝐵𝑅𝐴𝑎𝑅𝑏))
2524ancoms 462 . . . . . . . . . . . 12 ((𝐴 = 𝑏𝐵 = 𝑎) → (𝐵𝑅𝐴𝑎𝑅𝑏))
2625adantl 485 . . . . . . . . . . 11 ((((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) ∧ (𝐴 = 𝑏𝐵 = 𝑎)) → (𝐵𝑅𝐴𝑎𝑅𝑏))
27 soasym 5499 . . . . . . . . . . . . . . . . 17 ((𝑅 Or 𝑋 ∧ (𝐴𝑋𝐵𝑋)) → (𝐴𝑅𝐵 → ¬ 𝐵𝑅𝐴))
2827ex 416 . . . . . . . . . . . . . . . 16 (𝑅 Or 𝑋 → ((𝐴𝑋𝐵𝑋) → (𝐴𝑅𝐵 → ¬ 𝐵𝑅𝐴)))
2928adantl 485 . . . . . . . . . . . . . . 15 ((𝑋𝑉𝑅 Or 𝑋) → ((𝐴𝑋𝐵𝑋) → (𝐴𝑅𝐵 → ¬ 𝐵𝑅𝐴)))
3029expd 419 . . . . . . . . . . . . . 14 ((𝑋𝑉𝑅 Or 𝑋) → (𝐴𝑋 → (𝐵𝑋 → (𝐴𝑅𝐵 → ¬ 𝐵𝑅𝐴))))
31303imp2 1351 . . . . . . . . . . . . 13 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → ¬ 𝐵𝑅𝐴)
3231pm2.21d 121 . . . . . . . . . . . 12 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → (𝐵𝑅𝐴 → (𝜑 → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)))))
3332adantr 484 . . . . . . . . . . 11 ((((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) ∧ (𝐴 = 𝑏𝐵 = 𝑎)) → (𝐵𝑅𝐴 → (𝜑 → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)))))
3426, 33sylbird 263 . . . . . . . . . 10 ((((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) ∧ (𝐴 = 𝑏𝐵 = 𝑎)) → (𝑎𝑅𝑏 → (𝜑 → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)))))
3534impd 414 . . . . . . . . 9 ((((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) ∧ (𝐴 = 𝑏𝐵 = 𝑎)) → ((𝑎𝑅𝑏𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑))))
3635ex 416 . . . . . . . 8 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → ((𝐴 = 𝑏𝐵 = 𝑎) → ((𝑎𝑅𝑏𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)))))
3723, 36jaod 859 . . . . . . 7 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → (((𝐴 = 𝑎𝐵 = 𝑏) ∨ (𝐴 = 𝑏𝐵 = 𝑎)) → ((𝑎𝑅𝑏𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)))))
3820, 37sylbid 243 . . . . . 6 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → ({𝐴, 𝐵} = {𝑎, 𝑏} → ((𝑎𝑅𝑏𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)))))
3938impd 414 . . . . 5 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → (({𝐴, 𝐵} = {𝑎, 𝑏} ∧ (𝑎𝑅𝑏𝜑)) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑))))
409, 14, 39exlimd 2216 . . . 4 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → (∃𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ (𝑎𝑅𝑏𝜑)) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑))))
411, 8, 40exlimd 2216 . . 3 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → (∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ (𝑎𝑅𝑏𝜑)) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑))))
42 or2expropbilem2 44199 . . 3 (∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝑅𝑏𝜑)) ↔ ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎](𝑎𝑅𝑏𝜑)))
4341, 42syl6ibr 255 . 2 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → (∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ (𝑎𝑅𝑏𝜑)) → ∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝑅𝑏𝜑))))
44 oppr 44196 . . . . . 6 ((𝐴𝑋𝐵𝑋) → (⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ → {𝐴, 𝐵} = {𝑎, 𝑏}))
4544anim1d 614 . . . . 5 ((𝐴𝑋𝐵𝑋) → ((⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝑅𝑏𝜑)) → ({𝐴, 𝐵} = {𝑎, 𝑏} ∧ (𝑎𝑅𝑏𝜑))))
46452eximdv 1927 . . . 4 ((𝐴𝑋𝐵𝑋) → (∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝑅𝑏𝜑)) → ∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ (𝑎𝑅𝑏𝜑))))
47463adant3 1134 . . 3 ((𝐴𝑋𝐵𝑋𝐴𝑅𝐵) → (∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝑅𝑏𝜑)) → ∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ (𝑎𝑅𝑏𝜑))))
4847adantl 485 . 2 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → (∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝑅𝑏𝜑)) → ∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ (𝑎𝑅𝑏𝜑))))
4943, 48impbid 215 1 (((𝑋𝑉𝑅 Or 𝑋) ∧ (𝐴𝑋𝐵𝑋𝐴𝑅𝐵)) → (∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ (𝑎𝑅𝑏𝜑)) ↔ ∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ (𝑎𝑅𝑏𝜑))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399  wo 847  w3a 1089   = wceq 1543  wex 1787  wcel 2110  Vcvv 3408  [wsbc 3694  {cpr 4543  cop 4547   class class class wbr 5053   Or wor 5467
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2708  ax-sep 5192  ax-nul 5199  ax-pr 5322
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3or 1090  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2071  df-clab 2715  df-cleq 2729  df-clel 2816  df-nfc 2886  df-ral 3066  df-rab 3070  df-v 3410  df-sbc 3695  df-dif 3869  df-un 3871  df-nul 4238  df-if 4440  df-sn 4542  df-pr 4544  df-op 4548  df-br 5054  df-po 5468  df-so 5469
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator