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

Theorem ich2exprop 44596
Description: If the setvar variables are interchangeable in a wff, there is an ordered pair fulfilling the wff iff there is an unordered pair fulfilling the wff. (Contributed by AV, 16-Jul-2023.)
Assertion
Ref Expression
ich2exprop ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → (∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ 𝜑) ↔ ∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ 𝜑)))
Distinct variable groups:   𝐴,𝑎,𝑏   𝐵,𝑎,𝑏   𝑋,𝑎,𝑏
Allowed substitution hints:   𝜑(𝑎,𝑏)

Proof of Theorem ich2exprop
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 nfv 1922 . . . . 5 𝑎 𝐴𝑋
2 nfv 1922 . . . . 5 𝑎 𝐵𝑋
3 nfich1 44572 . . . . 5 𝑎[𝑎𝑏]𝜑
41, 2, 3nf3an 1909 . . . 4 𝑎(𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑)
5 nfv 1922 . . . . . . 7 𝑎𝐴, 𝐵⟩ = ⟨𝑥, 𝑦
6 nfcv 2904 . . . . . . . 8 𝑎𝑦
7 nfsbc1v 3714 . . . . . . . 8 𝑎[𝑥 / 𝑎]𝜑
86, 7nfsbcw 3716 . . . . . . 7 𝑎[𝑦 / 𝑏][𝑥 / 𝑎]𝜑
95, 8nfan 1907 . . . . . 6 𝑎(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑)
109nfex 2323 . . . . 5 𝑎𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑)
1110nfex 2323 . . . 4 𝑎𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑)
12 nfv 1922 . . . . . 6 𝑏 𝐴𝑋
13 nfv 1922 . . . . . 6 𝑏 𝐵𝑋
14 nfich2 44573 . . . . . 6 𝑏[𝑎𝑏]𝜑
1512, 13, 14nf3an 1909 . . . . 5 𝑏(𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑)
16 nfv 1922 . . . . . . . 8 𝑏𝐴, 𝐵⟩ = ⟨𝑥, 𝑦
17 nfsbc1v 3714 . . . . . . . 8 𝑏[𝑦 / 𝑏][𝑥 / 𝑎]𝜑
1816, 17nfan 1907 . . . . . . 7 𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑)
1918nfex 2323 . . . . . 6 𝑏𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑)
2019nfex 2323 . . . . 5 𝑏𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑)
21 vex 3412 . . . . . . . . 9 𝑎 ∈ V
22 vex 3412 . . . . . . . . 9 𝑏 ∈ V
23 preq12bg 4764 . . . . . . . . 9 (((𝐴𝑋𝐵𝑋) ∧ (𝑎 ∈ V ∧ 𝑏 ∈ V)) → ({𝐴, 𝐵} = {𝑎, 𝑏} ↔ ((𝐴 = 𝑎𝐵 = 𝑏) ∨ (𝐴 = 𝑏𝐵 = 𝑎))))
2421, 22, 23mpanr12 705 . . . . . . . 8 ((𝐴𝑋𝐵𝑋) → ({𝐴, 𝐵} = {𝑎, 𝑏} ↔ ((𝐴 = 𝑎𝐵 = 𝑏) ∨ (𝐴 = 𝑏𝐵 = 𝑎))))
25243adant3 1134 . . . . . . 7 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → ({𝐴, 𝐵} = {𝑎, 𝑏} ↔ ((𝐴 = 𝑎𝐵 = 𝑏) ∨ (𝐴 = 𝑏𝐵 = 𝑎))))
26 or2expropbilem1 44198 . . . . . . . . 9 ((𝐴𝑋𝐵𝑋) → ((𝐴 = 𝑎𝐵 = 𝑏) → (𝜑 → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑))))
27263adant3 1134 . . . . . . . 8 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → ((𝐴 = 𝑎𝐵 = 𝑏) → (𝜑 → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑))))
28 ichcom 44584 . . . . . . . . . . . . . . 15 ([𝑎𝑏]𝜑 ↔ [𝑏𝑎]𝜑)
2928biimpi 219 . . . . . . . . . . . . . 14 ([𝑎𝑏]𝜑 → [𝑏𝑎]𝜑)
30293ad2ant3 1137 . . . . . . . . . . . . 13 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → [𝑏𝑎]𝜑)
3130adantr 484 . . . . . . . . . . . 12 (((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) ∧ 𝜑) → [𝑏𝑎]𝜑)
3222, 21pm3.2i 474 . . . . . . . . . . . . 13 (𝑏 ∈ V ∧ 𝑎 ∈ V)
3332a1i 11 . . . . . . . . . . . 12 ((𝐴 = 𝑏𝐵 = 𝑎) → (𝑏 ∈ V ∧ 𝑎 ∈ V))
3431, 33anim12i 616 . . . . . . . . . . 11 ((((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) ∧ 𝜑) ∧ (𝐴 = 𝑏𝐵 = 𝑎)) → ([𝑏𝑎]𝜑 ∧ (𝑏 ∈ V ∧ 𝑎 ∈ V)))
35 simpr 488 . . . . . . . . . . . 12 (((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) ∧ 𝜑) → 𝜑)
36 opeq12 4786 . . . . . . . . . . . 12 ((𝐴 = 𝑏𝐵 = 𝑎) → ⟨𝐴, 𝐵⟩ = ⟨𝑏, 𝑎⟩)
3735, 36anim12ci 617 . . . . . . . . . . 11 ((((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) ∧ 𝜑) ∧ (𝐴 = 𝑏𝐵 = 𝑎)) → (⟨𝐴, 𝐵⟩ = ⟨𝑏, 𝑎⟩ ∧ 𝜑))
38 nfv 1922 . . . . . . . . . . . 12 𝑥(⟨𝐴, 𝐵⟩ = ⟨𝑏, 𝑎⟩ ∧ 𝜑)
39 nfv 1922 . . . . . . . . . . . 12 𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑏, 𝑎⟩ ∧ 𝜑)
40 opeq12 4786 . . . . . . . . . . . . . . 15 ((𝑥 = 𝑏𝑦 = 𝑎) → ⟨𝑥, 𝑦⟩ = ⟨𝑏, 𝑎⟩)
4140eqeq2d 2748 . . . . . . . . . . . . . 14 ((𝑥 = 𝑏𝑦 = 𝑎) → (⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ↔ ⟨𝐴, 𝐵⟩ = ⟨𝑏, 𝑎⟩))
4241adantl 485 . . . . . . . . . . . . 13 (([𝑏𝑎]𝜑 ∧ (𝑥 = 𝑏𝑦 = 𝑎)) → (⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ↔ ⟨𝐴, 𝐵⟩ = ⟨𝑏, 𝑎⟩))
43 dfsbcq 3696 . . . . . . . . . . . . . . . 16 (𝑦 = 𝑎 → ([𝑦 / 𝑏][𝑥 / 𝑎]𝜑[𝑎 / 𝑏][𝑥 / 𝑎]𝜑))
4443adantl 485 . . . . . . . . . . . . . . 15 ((𝑥 = 𝑏𝑦 = 𝑎) → ([𝑦 / 𝑏][𝑥 / 𝑎]𝜑[𝑎 / 𝑏][𝑥 / 𝑎]𝜑))
4544adantl 485 . . . . . . . . . . . . . 14 (([𝑏𝑎]𝜑 ∧ (𝑥 = 𝑏𝑦 = 𝑎)) → ([𝑦 / 𝑏][𝑥 / 𝑎]𝜑[𝑎 / 𝑏][𝑥 / 𝑎]𝜑))
46 sbceq1a 3705 . . . . . . . . . . . . . . . 16 (𝑥 = 𝑏 → ([𝑎 / 𝑏][𝑥 / 𝑎]𝜑[𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑))
4746adantr 484 . . . . . . . . . . . . . . 15 ((𝑥 = 𝑏𝑦 = 𝑎) → ([𝑎 / 𝑏][𝑥 / 𝑎]𝜑[𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑))
48 df-ich 44571 . . . . . . . . . . . . . . . 16 ([𝑏𝑎]𝜑 ↔ ∀𝑏𝑎([𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑𝜑))
49 sbsbc 3698 . . . . . . . . . . . . . . . . . 18 ([𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑[𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑)
50 sbsbc 3698 . . . . . . . . . . . . . . . . . . . 20 ([𝑎 / 𝑏][𝑥 / 𝑎]𝜑[𝑎 / 𝑏][𝑥 / 𝑎]𝜑)
51 sbsbc 3698 . . . . . . . . . . . . . . . . . . . . 21 ([𝑥 / 𝑎]𝜑[𝑥 / 𝑎]𝜑)
5251sbcbii 3755 . . . . . . . . . . . . . . . . . . . 20 ([𝑎 / 𝑏][𝑥 / 𝑎]𝜑[𝑎 / 𝑏][𝑥 / 𝑎]𝜑)
5350, 52bitri 278 . . . . . . . . . . . . . . . . . . 19 ([𝑎 / 𝑏][𝑥 / 𝑎]𝜑[𝑎 / 𝑏][𝑥 / 𝑎]𝜑)
5453sbcbii 3755 . . . . . . . . . . . . . . . . . 18 ([𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑[𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑)
5549, 54bitri 278 . . . . . . . . . . . . . . . . 17 ([𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑[𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑)
56 2sp 2183 . . . . . . . . . . . . . . . . 17 (∀𝑏𝑎([𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑𝜑) → ([𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑𝜑))
5755, 56bitr3id 288 . . . . . . . . . . . . . . . 16 (∀𝑏𝑎([𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑𝜑) → ([𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑𝜑))
5848, 57sylbi 220 . . . . . . . . . . . . . . 15 ([𝑏𝑎]𝜑 → ([𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑𝜑))
5947, 58sylan9bbr 514 . . . . . . . . . . . . . 14 (([𝑏𝑎]𝜑 ∧ (𝑥 = 𝑏𝑦 = 𝑎)) → ([𝑎 / 𝑏][𝑥 / 𝑎]𝜑𝜑))
6045, 59bitrd 282 . . . . . . . . . . . . 13 (([𝑏𝑎]𝜑 ∧ (𝑥 = 𝑏𝑦 = 𝑎)) → ([𝑦 / 𝑏][𝑥 / 𝑎]𝜑𝜑))
6142, 60anbi12d 634 . . . . . . . . . . . 12 (([𝑏𝑎]𝜑 ∧ (𝑥 = 𝑏𝑦 = 𝑎)) → ((⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑) ↔ (⟨𝐴, 𝐵⟩ = ⟨𝑏, 𝑎⟩ ∧ 𝜑)))
6238, 39, 61spc2ed 3516 . . . . . . . . . . 11 (([𝑏𝑎]𝜑 ∧ (𝑏 ∈ V ∧ 𝑎 ∈ V)) → ((⟨𝐴, 𝐵⟩ = ⟨𝑏, 𝑎⟩ ∧ 𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑)))
6334, 37, 62sylc 65 . . . . . . . . . 10 ((((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) ∧ 𝜑) ∧ (𝐴 = 𝑏𝐵 = 𝑎)) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑))
6463exp31 423 . . . . . . . . 9 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → (𝜑 → ((𝐴 = 𝑏𝐵 = 𝑎) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑))))
6564com23 86 . . . . . . . 8 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → ((𝐴 = 𝑏𝐵 = 𝑎) → (𝜑 → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑))))
6627, 65jaod 859 . . . . . . 7 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → (((𝐴 = 𝑎𝐵 = 𝑏) ∨ (𝐴 = 𝑏𝐵 = 𝑎)) → (𝜑 → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑))))
6725, 66sylbid 243 . . . . . 6 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → ({𝐴, 𝐵} = {𝑎, 𝑏} → (𝜑 → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑))))
6867impd 414 . . . . 5 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → (({𝐴, 𝐵} = {𝑎, 𝑏} ∧ 𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑)))
6915, 20, 68exlimd 2216 . . . 4 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → (∃𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ 𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑)))
704, 11, 69exlimd 2216 . . 3 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → (∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ 𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑)))
71 or2expropbilem2 44199 . . 3 (∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ 𝜑) ↔ ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑))
7270, 71syl6ibr 255 . 2 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → (∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ 𝜑) → ∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ 𝜑)))
73 oppr 44196 . . . . 5 ((𝐴𝑋𝐵𝑋) → (⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ → {𝐴, 𝐵} = {𝑎, 𝑏}))
7473anim1d 614 . . . 4 ((𝐴𝑋𝐵𝑋) → ((⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ 𝜑) → ({𝐴, 𝐵} = {𝑎, 𝑏} ∧ 𝜑)))
75742eximdv 1927 . . 3 ((𝐴𝑋𝐵𝑋) → (∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ 𝜑) → ∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ 𝜑)))
76753adant3 1134 . 2 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → (∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ 𝜑) → ∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ 𝜑)))
7772, 76impbid 215 1 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → (∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ 𝜑) ↔ ∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ 𝜑)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  wo 847  w3a 1089  wal 1541   = wceq 1543  wex 1787  [wsb 2070  wcel 2110  Vcvv 3408  [wsbc 3694  {cpr 4543  cop 4547  [wich 44570
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-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-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-ich 44571
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator