MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  sbceqg Structured version   Visualization version   GIF version

Theorem sbceqg 4364
Description: Distribute proper substitution through an equality relation. (Contributed by NM, 10-Nov-2005.) (Proof shortened by Andrew Salmon, 29-Jun-2011.)
Assertion
Ref Expression
sbceqg (𝐴𝑉 → ([𝐴 / 𝑥]𝐵 = 𝐶𝐴 / 𝑥𝐵 = 𝐴 / 𝑥𝐶))

Proof of Theorem sbceqg
Dummy variables 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 dfsbcq2 3778 . . 3 (𝑧 = 𝐴 → ([𝑧 / 𝑥]𝐵 = 𝐶[𝐴 / 𝑥]𝐵 = 𝐶))
2 dfsbcq2 3778 . . . . 5 (𝑧 = 𝐴 → ([𝑧 / 𝑥]𝑦𝐵[𝐴 / 𝑥]𝑦𝐵))
32abbidv 2888 . . . 4 (𝑧 = 𝐴 → {𝑦 ∣ [𝑧 / 𝑥]𝑦𝐵} = {𝑦[𝐴 / 𝑥]𝑦𝐵})
4 dfsbcq2 3778 . . . . 5 (𝑧 = 𝐴 → ([𝑧 / 𝑥]𝑦𝐶[𝐴 / 𝑥]𝑦𝐶))
54abbidv 2888 . . . 4 (𝑧 = 𝐴 → {𝑦 ∣ [𝑧 / 𝑥]𝑦𝐶} = {𝑦[𝐴 / 𝑥]𝑦𝐶})
63, 5eqeq12d 2840 . . 3 (𝑧 = 𝐴 → ({𝑦 ∣ [𝑧 / 𝑥]𝑦𝐵} = {𝑦 ∣ [𝑧 / 𝑥]𝑦𝐶} ↔ {𝑦[𝐴 / 𝑥]𝑦𝐵} = {𝑦[𝐴 / 𝑥]𝑦𝐶}))
7 nfs1v 2159 . . . . . 6 𝑥[𝑧 / 𝑥]𝑦𝐵
87nfab 2987 . . . . 5 𝑥{𝑦 ∣ [𝑧 / 𝑥]𝑦𝐵}
9 nfs1v 2159 . . . . . 6 𝑥[𝑧 / 𝑥]𝑦𝐶
109nfab 2987 . . . . 5 𝑥{𝑦 ∣ [𝑧 / 𝑥]𝑦𝐶}
118, 10nfeq 2994 . . . 4 𝑥{𝑦 ∣ [𝑧 / 𝑥]𝑦𝐵} = {𝑦 ∣ [𝑧 / 𝑥]𝑦𝐶}
12 sbab 2963 . . . . 5 (𝑥 = 𝑧𝐵 = {𝑦 ∣ [𝑧 / 𝑥]𝑦𝐵})
13 sbab 2963 . . . . 5 (𝑥 = 𝑧𝐶 = {𝑦 ∣ [𝑧 / 𝑥]𝑦𝐶})
1412, 13eqeq12d 2840 . . . 4 (𝑥 = 𝑧 → (𝐵 = 𝐶 ↔ {𝑦 ∣ [𝑧 / 𝑥]𝑦𝐵} = {𝑦 ∣ [𝑧 / 𝑥]𝑦𝐶}))
1511, 14sbiev 2329 . . 3 ([𝑧 / 𝑥]𝐵 = 𝐶 ↔ {𝑦 ∣ [𝑧 / 𝑥]𝑦𝐵} = {𝑦 ∣ [𝑧 / 𝑥]𝑦𝐶})
161, 6, 15vtoclbg 3572 . 2 (𝐴𝑉 → ([𝐴 / 𝑥]𝐵 = 𝐶 ↔ {𝑦[𝐴 / 𝑥]𝑦𝐵} = {𝑦[𝐴 / 𝑥]𝑦𝐶}))
17 df-csb 3887 . . 3 𝐴 / 𝑥𝐵 = {𝑦[𝐴 / 𝑥]𝑦𝐵}
18 df-csb 3887 . . 3 𝐴 / 𝑥𝐶 = {𝑦[𝐴 / 𝑥]𝑦𝐶}
1917, 18eqeq12i 2839 . 2 (𝐴 / 𝑥𝐵 = 𝐴 / 𝑥𝐶 ↔ {𝑦[𝐴 / 𝑥]𝑦𝐵} = {𝑦[𝐴 / 𝑥]𝑦𝐶})
2016, 19syl6bbr 291 1 (𝐴𝑉 → ([𝐴 / 𝑥]𝐵 = 𝐶𝐴 / 𝑥𝐵 = 𝐴 / 𝑥𝐶))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208   = wceq 1536  [wsb 2068  wcel 2113  {cab 2802  [wsbc 3775  csb 3886
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1969  ax-7 2014  ax-8 2115  ax-9 2123  ax-10 2144  ax-11 2160  ax-12 2176  ax-ext 2796
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-tru 1539  df-ex 1780  df-nf 1784  df-sb 2069  df-clab 2803  df-cleq 2817  df-clel 2896  df-nfc 2966  df-sbc 3776  df-csb 3887
This theorem is referenced by:  sbceqi  4365  sbcne12  4367  sbceq1g  4369  sbceq2g  4371  csbie2df  4395  sbcfng  6514  swrdspsleq  14030  fprodmodd  15354  csbwrecsg  34612  relowlpssretop  34649  rdgeqoa  34655  poimirlem25  34921  cdlemk42  38081  onfrALTlem5  40882  onfrALTlem4  40883  csbingVD  41224  onfrALTlem5VD  41225  onfrALTlem4VD  41226  csbeq2gVD  41232  csbsngVD  41233  csbunigVD  41238  csbfv12gALTVD  41239
  Copyright terms: Public domain W3C validator