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

Theorem sbcpr 48742
Description: The proper substitution of an unordered pair for a setvar variable corresponds to a proper substitution of each of its elements. (Contributed by AV, 7-Apr-2023.)
Hypothesis
Ref Expression
sbcpr.x (𝑝 = {𝑥, 𝑦} → (𝜑 ↔ 𝜓))
Assertion
Ref Expression
sbcpr ([{𝑎, 𝑏} / 𝑝]𝜑 ↔ [𝑏 / 𝑦][𝑎 / 𝑥]𝜓)
Distinct variable groups:   𝑎,𝑏,𝑥,𝑦,𝑝   𝜑,𝑥,𝑦   𝜓,𝑝
Allowed substitution hints:   𝜑(𝑝, 𝑎, 𝑏)   𝜓(𝑥, 𝑦, 𝑎, 𝑏)

Proof of Theorem sbcpr
StepHypRef Expression
1 sbc5 3769 . . 3 ([{𝑎, 𝑏} / 𝑝]𝜑 ↔ ∃𝑝(𝑝 = {𝑎, 𝑏} ∧ 𝜑))
2 preq12 4695 . . . . . . . . . . . . . . . . . 18 ((𝑥 = 𝑎 ∧ 𝑦 = 𝑏) → {𝑥, 𝑦} = {𝑎, 𝑏})
32eqcomd 2769 . . . . . . . . . . . . . . . . 17 ((𝑥 = 𝑎 ∧ 𝑦 = 𝑏) → {𝑎, 𝑏} = {𝑥, 𝑦})
43eqeq2d 2774 . . . . . . . . . . . . . . . 16 ((𝑥 = 𝑎 ∧ 𝑦 = 𝑏) → (𝑝 = {𝑎, 𝑏} ↔ 𝑝 = {𝑥, 𝑦}))
54biimpa 482 . . . . . . . . . . . . . . 15 (((𝑥 = 𝑎 ∧ 𝑦 = 𝑏) ∧ 𝑝 = {𝑎, 𝑏}) → 𝑝 = {𝑥, 𝑦})
6 sbcpr.x . . . . . . . . . . . . . . 15 (𝑝 = {𝑥, 𝑦} → (𝜑 ↔ 𝜓))
75, 6syl 18 . . . . . . . . . . . . . 14 (((𝑥 = 𝑎 ∧ 𝑦 = 𝑏) ∧ 𝑝 = {𝑎, 𝑏}) → (𝜑 ↔ 𝜓))
87biimpd 232 . . . . . . . . . . . . 13 (((𝑥 = 𝑎 ∧ 𝑦 = 𝑏) ∧ 𝑝 = {𝑎, 𝑏}) → (𝜑 → 𝜓))
98expcom 419 . . . . . . . . . . . 12 (𝑝 = {𝑎, 𝑏} → ((𝑥 = 𝑎 ∧ 𝑦 = 𝑏) → (𝜑 → 𝜓)))
109expd 421 . . . . . . . . . . 11 (𝑝 = {𝑎, 𝑏} → (𝑥 = 𝑎 → (𝑦 = 𝑏 → (𝜑 → 𝜓))))
1110com24 96 . . . . . . . . . 10 (𝑝 = {𝑎, 𝑏} → (𝜑 → (𝑦 = 𝑏 → (𝑥 = 𝑎 → 𝜓))))
1211imp31 423 . . . . . . . . 9 (((𝑝 = {𝑎, 𝑏} ∧ 𝜑) ∧ 𝑦 = 𝑏) → (𝑥 = 𝑎 → 𝜓))
1312alrimiv 1961 . . . . . . . 8 (((𝑝 = {𝑎, 𝑏} ∧ 𝜑) ∧ 𝑦 = 𝑏) → ∀𝑥(𝑥 = 𝑎 → 𝜓))
14 vex 3457 . . . . . . . . 9 𝑎 ∈ V
1514sbc6 3772 . . . . . . . 8 ([𝑎 / 𝑥]𝜓 ↔ ∀𝑥(𝑥 = 𝑎 → 𝜓))
1613, 15sylibr 237 . . . . . . 7 (((𝑝 = {𝑎, 𝑏} ∧ 𝜑) ∧ 𝑦 = 𝑏) → [𝑎 / 𝑥]𝜓)
1716ex 418 . . . . . 6 ((𝑝 = {𝑎, 𝑏} ∧ 𝜑) → (𝑦 = 𝑏 → [𝑎 / 𝑥]𝜓))
1817alrimiv 1961 . . . . 5 ((𝑝 = {𝑎, 𝑏} ∧ 𝜑) → ∀𝑦(𝑦 = 𝑏 → [𝑎 / 𝑥]𝜓))
19 vex 3457 . . . . . 6 𝑏 ∈ V
2019sbc6 3772 . . . . 5 ([𝑏 / 𝑦][𝑎 / 𝑥]𝜓 ↔ ∀𝑦(𝑦 = 𝑏 → [𝑎 / 𝑥]𝜓))
2118, 20sylibr 237 . . . 4 ((𝑝 = {𝑎, 𝑏} ∧ 𝜑) → [𝑏 / 𝑦][𝑎 / 𝑥]𝜓)
2221exlimiv 1964 . . 3 (∃𝑝(𝑝 = {𝑎, 𝑏} ∧ 𝜑) → [𝑏 / 𝑦][𝑎 / 𝑥]𝜓)
231, 22sylbi 220 . 2 ([{𝑎, 𝑏} / 𝑝]𝜑 → [𝑏 / 𝑦][𝑎 / 𝑥]𝜓)
24 sbc5 3769 . . . . 5 ([𝑏 / 𝑦][𝑎 / 𝑥]𝜓 ↔ ∃𝑦(𝑦 = 𝑏 ∧ [𝑎 / 𝑥]𝜓))
25 sbc5 3769 . . . . . . . 8 ([𝑎 / 𝑥]𝜓 ↔ ∃𝑥(𝑥 = 𝑎 ∧ 𝜓))
266bicomd 226 . . . . . . . . . . . . . . 15 (𝑝 = {𝑥, 𝑦} → (𝜓 ↔ 𝜑))
275, 26syl 18 . . . . . . . . . . . . . 14 (((𝑥 = 𝑎 ∧ 𝑦 = 𝑏) ∧ 𝑝 = {𝑎, 𝑏}) → (𝜓 ↔ 𝜑))
2827biimpd 232 . . . . . . . . . . . . 13 (((𝑥 = 𝑎 ∧ 𝑦 = 𝑏) ∧ 𝑝 = {𝑎, 𝑏}) → (𝜓 → 𝜑))
2928expcom 419 . . . . . . . . . . . 12 (𝑝 = {𝑎, 𝑏} → ((𝑥 = 𝑎 ∧ 𝑦 = 𝑏) → (𝜓 → 𝜑)))
3029com13 89 . . . . . . . . . . 11 (𝜓 → ((𝑥 = 𝑎 ∧ 𝑦 = 𝑏) → (𝑝 = {𝑎, 𝑏} → 𝜑)))
3130expd 421 . . . . . . . . . 10 (𝜓 → (𝑥 = 𝑎 → (𝑦 = 𝑏 → (𝑝 = {𝑎, 𝑏} → 𝜑))))
3231impcom 413 . . . . . . . . 9 ((𝑥 = 𝑎 ∧ 𝜓) → (𝑦 = 𝑏 → (𝑝 = {𝑎, 𝑏} → 𝜑)))
3332exlimiv 1964 . . . . . . . 8 (∃𝑥(𝑥 = 𝑎 ∧ 𝜓) → (𝑦 = 𝑏 → (𝑝 = {𝑎, 𝑏} → 𝜑)))
3425, 33sylbi 220 . . . . . . 7 ([𝑎 / 𝑥]𝜓 → (𝑦 = 𝑏 → (𝑝 = {𝑎, 𝑏} → 𝜑)))
3534impcom 413 . . . . . 6 ((𝑦 = 𝑏 ∧ [𝑎 / 𝑥]𝜓) → (𝑝 = {𝑎, 𝑏} → 𝜑))
3635exlimiv 1964 . . . . 5 (∃𝑦(𝑦 = 𝑏 ∧ [𝑎 / 𝑥]𝜓) → (𝑝 = {𝑎, 𝑏} → 𝜑))
3724, 36sylbi 220 . . . 4 ([𝑏 / 𝑦][𝑎 / 𝑥]𝜓 → (𝑝 = {𝑎, 𝑏} → 𝜑))
3837alrimiv 1961 . . 3 ([𝑏 / 𝑦][𝑎 / 𝑥]𝜓 → ∀𝑝(𝑝 = {𝑎, 𝑏} → 𝜑))
39 prex 5399 . . . 4 {𝑎, 𝑏} ∈ V
4039sbc6 3772 . . 3 ([{𝑎, 𝑏} / 𝑝]𝜑 ↔ ∀𝑝(𝑝 = {𝑎, 𝑏} → 𝜑))
4138, 40sylibr 237 . 2 ([𝑏 / 𝑦][𝑎 / 𝑥]𝜓 → [{𝑎, 𝑏} / 𝑝]𝜑)
4223, 41impbii 212 1 ([{𝑎, 𝑏} / 𝑝]𝜑 ↔ [𝑏 / 𝑦][𝑎 / 𝑥]𝜓)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401  ∀wal 1567   = wceq 1569  ∃wex 1811  [wsbc 3741  {cpr 4589
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1944  ax-6 2001  ax-7 2042  ax-8 2148  ax-9 2156  ax-10 2179  ax-12 2215  ax-ext 2735  ax-sep 5251  ax-pr 5394
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1572  df-ex 1812  df-nf 1816  df-sb 2101  df-clab 2742  df-cleq 2755  df-clel 2838  df-v 3455  df-sbc 3742  df-un 4153  df-sn 4588  df-pr 4590
This theorem is used by:  reupr  48743
  Copyright terms: Public domain W3C validator