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 44811
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 1918 . . . . 5 𝑎 𝐴𝑋
2 nfv 1918 . . . . 5 𝑎 𝐵𝑋
3 nfich1 44787 . . . . 5 𝑎[𝑎𝑏]𝜑
41, 2, 3nf3an 1905 . . . 4 𝑎(𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑)
5 nfv 1918 . . . . . . 7 𝑎𝐴, 𝐵⟩ = ⟨𝑥, 𝑦
6 nfcv 2906 . . . . . . . 8 𝑎𝑦
7 nfsbc1v 3731 . . . . . . . 8 𝑎[𝑥 / 𝑎]𝜑
86, 7nfsbcw 3733 . . . . . . 7 𝑎[𝑦 / 𝑏][𝑥 / 𝑎]𝜑
95, 8nfan 1903 . . . . . 6 𝑎(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑)
109nfex 2322 . . . . 5 𝑎𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑)
1110nfex 2322 . . . 4 𝑎𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑)
12 nfv 1918 . . . . . 6 𝑏 𝐴𝑋
13 nfv 1918 . . . . . 6 𝑏 𝐵𝑋
14 nfich2 44788 . . . . . 6 𝑏[𝑎𝑏]𝜑
1512, 13, 14nf3an 1905 . . . . 5 𝑏(𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑)
16 nfv 1918 . . . . . . . 8 𝑏𝐴, 𝐵⟩ = ⟨𝑥, 𝑦
17 nfsbc1v 3731 . . . . . . . 8 𝑏[𝑦 / 𝑏][𝑥 / 𝑎]𝜑
1816, 17nfan 1903 . . . . . . 7 𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑)
1918nfex 2322 . . . . . 6 𝑏𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑)
2019nfex 2322 . . . . 5 𝑏𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑)
21 vex 3426 . . . . . . . . 9 𝑎 ∈ V
22 vex 3426 . . . . . . . . 9 𝑏 ∈ V
23 preq12bg 4781 . . . . . . . . 9 (((𝐴𝑋𝐵𝑋) ∧ (𝑎 ∈ V ∧ 𝑏 ∈ V)) → ({𝐴, 𝐵} = {𝑎, 𝑏} ↔ ((𝐴 = 𝑎𝐵 = 𝑏) ∨ (𝐴 = 𝑏𝐵 = 𝑎))))
2421, 22, 23mpanr12 701 . . . . . . . 8 ((𝐴𝑋𝐵𝑋) → ({𝐴, 𝐵} = {𝑎, 𝑏} ↔ ((𝐴 = 𝑎𝐵 = 𝑏) ∨ (𝐴 = 𝑏𝐵 = 𝑎))))
25243adant3 1130 . . . . . . 7 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → ({𝐴, 𝐵} = {𝑎, 𝑏} ↔ ((𝐴 = 𝑎𝐵 = 𝑏) ∨ (𝐴 = 𝑏𝐵 = 𝑎))))
26 or2expropbilem1 44413 . . . . . . . . 9 ((𝐴𝑋𝐵𝑋) → ((𝐴 = 𝑎𝐵 = 𝑏) → (𝜑 → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑))))
27263adant3 1130 . . . . . . . 8 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → ((𝐴 = 𝑎𝐵 = 𝑏) → (𝜑 → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑))))
28 ichcom 44799 . . . . . . . . . . . . . . 15 ([𝑎𝑏]𝜑 ↔ [𝑏𝑎]𝜑)
2928biimpi 215 . . . . . . . . . . . . . 14 ([𝑎𝑏]𝜑 → [𝑏𝑎]𝜑)
30293ad2ant3 1133 . . . . . . . . . . . . 13 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → [𝑏𝑎]𝜑)
3130adantr 480 . . . . . . . . . . . 12 (((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) ∧ 𝜑) → [𝑏𝑎]𝜑)
3222, 21pm3.2i 470 . . . . . . . . . . . . 13 (𝑏 ∈ V ∧ 𝑎 ∈ V)
3332a1i 11 . . . . . . . . . . . 12 ((𝐴 = 𝑏𝐵 = 𝑎) → (𝑏 ∈ V ∧ 𝑎 ∈ V))
3431, 33anim12i 612 . . . . . . . . . . 11 ((((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) ∧ 𝜑) ∧ (𝐴 = 𝑏𝐵 = 𝑎)) → ([𝑏𝑎]𝜑 ∧ (𝑏 ∈ V ∧ 𝑎 ∈ V)))
35 simpr 484 . . . . . . . . . . . 12 (((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) ∧ 𝜑) → 𝜑)
36 opeq12 4803 . . . . . . . . . . . 12 ((𝐴 = 𝑏𝐵 = 𝑎) → ⟨𝐴, 𝐵⟩ = ⟨𝑏, 𝑎⟩)
3735, 36anim12ci 613 . . . . . . . . . . 11 ((((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) ∧ 𝜑) ∧ (𝐴 = 𝑏𝐵 = 𝑎)) → (⟨𝐴, 𝐵⟩ = ⟨𝑏, 𝑎⟩ ∧ 𝜑))
38 nfv 1918 . . . . . . . . . . . 12 𝑥(⟨𝐴, 𝐵⟩ = ⟨𝑏, 𝑎⟩ ∧ 𝜑)
39 nfv 1918 . . . . . . . . . . . 12 𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑏, 𝑎⟩ ∧ 𝜑)
40 opeq12 4803 . . . . . . . . . . . . . . 15 ((𝑥 = 𝑏𝑦 = 𝑎) → ⟨𝑥, 𝑦⟩ = ⟨𝑏, 𝑎⟩)
4140eqeq2d 2749 . . . . . . . . . . . . . 14 ((𝑥 = 𝑏𝑦 = 𝑎) → (⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ↔ ⟨𝐴, 𝐵⟩ = ⟨𝑏, 𝑎⟩))
4241adantl 481 . . . . . . . . . . . . 13 (([𝑏𝑎]𝜑 ∧ (𝑥 = 𝑏𝑦 = 𝑎)) → (⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ↔ ⟨𝐴, 𝐵⟩ = ⟨𝑏, 𝑎⟩))
43 dfsbcq 3713 . . . . . . . . . . . . . . . 16 (𝑦 = 𝑎 → ([𝑦 / 𝑏][𝑥 / 𝑎]𝜑[𝑎 / 𝑏][𝑥 / 𝑎]𝜑))
4443adantl 481 . . . . . . . . . . . . . . 15 ((𝑥 = 𝑏𝑦 = 𝑎) → ([𝑦 / 𝑏][𝑥 / 𝑎]𝜑[𝑎 / 𝑏][𝑥 / 𝑎]𝜑))
4544adantl 481 . . . . . . . . . . . . . 14 (([𝑏𝑎]𝜑 ∧ (𝑥 = 𝑏𝑦 = 𝑎)) → ([𝑦 / 𝑏][𝑥 / 𝑎]𝜑[𝑎 / 𝑏][𝑥 / 𝑎]𝜑))
46 sbceq1a 3722 . . . . . . . . . . . . . . . 16 (𝑥 = 𝑏 → ([𝑎 / 𝑏][𝑥 / 𝑎]𝜑[𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑))
4746adantr 480 . . . . . . . . . . . . . . 15 ((𝑥 = 𝑏𝑦 = 𝑎) → ([𝑎 / 𝑏][𝑥 / 𝑎]𝜑[𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑))
48 df-ich 44786 . . . . . . . . . . . . . . . 16 ([𝑏𝑎]𝜑 ↔ ∀𝑏𝑎([𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑𝜑))
49 sbsbc 3715 . . . . . . . . . . . . . . . . . 18 ([𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑[𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑)
50 sbsbc 3715 . . . . . . . . . . . . . . . . . . . 20 ([𝑎 / 𝑏][𝑥 / 𝑎]𝜑[𝑎 / 𝑏][𝑥 / 𝑎]𝜑)
51 sbsbc 3715 . . . . . . . . . . . . . . . . . . . . 21 ([𝑥 / 𝑎]𝜑[𝑥 / 𝑎]𝜑)
5251sbcbii 3772 . . . . . . . . . . . . . . . . . . . 20 ([𝑎 / 𝑏][𝑥 / 𝑎]𝜑[𝑎 / 𝑏][𝑥 / 𝑎]𝜑)
5350, 52bitri 274 . . . . . . . . . . . . . . . . . . 19 ([𝑎 / 𝑏][𝑥 / 𝑎]𝜑[𝑎 / 𝑏][𝑥 / 𝑎]𝜑)
5453sbcbii 3772 . . . . . . . . . . . . . . . . . 18 ([𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑[𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑)
5549, 54bitri 274 . . . . . . . . . . . . . . . . 17 ([𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑[𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑)
56 2sp 2181 . . . . . . . . . . . . . . . . 17 (∀𝑏𝑎([𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑𝜑) → ([𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑𝜑))
5755, 56bitr3id 284 . . . . . . . . . . . . . . . 16 (∀𝑏𝑎([𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑𝜑) → ([𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑𝜑))
5848, 57sylbi 216 . . . . . . . . . . . . . . 15 ([𝑏𝑎]𝜑 → ([𝑏 / 𝑥][𝑎 / 𝑏][𝑥 / 𝑎]𝜑𝜑))
5947, 58sylan9bbr 510 . . . . . . . . . . . . . 14 (([𝑏𝑎]𝜑 ∧ (𝑥 = 𝑏𝑦 = 𝑎)) → ([𝑎 / 𝑏][𝑥 / 𝑎]𝜑𝜑))
6045, 59bitrd 278 . . . . . . . . . . . . 13 (([𝑏𝑎]𝜑 ∧ (𝑥 = 𝑏𝑦 = 𝑎)) → ([𝑦 / 𝑏][𝑥 / 𝑎]𝜑𝜑))
6142, 60anbi12d 630 . . . . . . . . . . . 12 (([𝑏𝑎]𝜑 ∧ (𝑥 = 𝑏𝑦 = 𝑎)) → ((⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑) ↔ (⟨𝐴, 𝐵⟩ = ⟨𝑏, 𝑎⟩ ∧ 𝜑)))
6238, 39, 61spc2ed 3530 . . . . . . . . . . 11 (([𝑏𝑎]𝜑 ∧ (𝑏 ∈ V ∧ 𝑎 ∈ V)) → ((⟨𝐴, 𝐵⟩ = ⟨𝑏, 𝑎⟩ ∧ 𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑)))
6334, 37, 62sylc 65 . . . . . . . . . 10 ((((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) ∧ 𝜑) ∧ (𝐴 = 𝑏𝐵 = 𝑎)) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑))
6463exp31 419 . . . . . . . . 9 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → (𝜑 → ((𝐴 = 𝑏𝐵 = 𝑎) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑))))
6564com23 86 . . . . . . . 8 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → ((𝐴 = 𝑏𝐵 = 𝑎) → (𝜑 → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑))))
6627, 65jaod 855 . . . . . . 7 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → (((𝐴 = 𝑎𝐵 = 𝑏) ∨ (𝐴 = 𝑏𝐵 = 𝑎)) → (𝜑 → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑))))
6725, 66sylbid 239 . . . . . 6 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → ({𝐴, 𝐵} = {𝑎, 𝑏} → (𝜑 → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑))))
6867impd 410 . . . . 5 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → (({𝐴, 𝐵} = {𝑎, 𝑏} ∧ 𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑)))
6915, 20, 68exlimd 2214 . . . 4 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → (∃𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ 𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑)))
704, 11, 69exlimd 2214 . . 3 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → (∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ 𝜑) → ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑)))
71 or2expropbilem2 44414 . . 3 (∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ 𝜑) ↔ ∃𝑥𝑦(⟨𝐴, 𝐵⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑦 / 𝑏][𝑥 / 𝑎]𝜑))
7270, 71syl6ibr 251 . 2 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → (∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ 𝜑) → ∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ 𝜑)))
73 oppr 44411 . . . . 5 ((𝐴𝑋𝐵𝑋) → (⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ → {𝐴, 𝐵} = {𝑎, 𝑏}))
7473anim1d 610 . . . 4 ((𝐴𝑋𝐵𝑋) → ((⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ 𝜑) → ({𝐴, 𝐵} = {𝑎, 𝑏} ∧ 𝜑)))
75742eximdv 1923 . . 3 ((𝐴𝑋𝐵𝑋) → (∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ 𝜑) → ∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ 𝜑)))
76753adant3 1130 . 2 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → (∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ 𝜑) → ∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ 𝜑)))
7772, 76impbid 211 1 ((𝐴𝑋𝐵𝑋 ∧ [𝑎𝑏]𝜑) → (∃𝑎𝑏({𝐴, 𝐵} = {𝑎, 𝑏} ∧ 𝜑) ↔ ∃𝑎𝑏(⟨𝐴, 𝐵⟩ = ⟨𝑎, 𝑏⟩ ∧ 𝜑)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  wo 843  w3a 1085  wal 1537   = wceq 1539  wex 1783  [wsb 2068  wcel 2108  Vcvv 3422  [wsbc 3711  {cpr 4560  cop 4564  [wich 44785
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-rab 3072  df-v 3424  df-sbc 3712  df-dif 3886  df-un 3888  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-ich 44786
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator