MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  csbifg Structured version   Unicode version

Theorem csbifg 3769
Description: Distribute proper substitution through the conditional operator. (Contributed by NM, 24-Feb-2013.) (Revised by Mario Carneiro, 14-Nov-2016.)
Assertion
Ref Expression
csbifg  |-  ( A  e.  V  ->  [_ A  /  x ]_ if (
ph ,  B ,  C )  =  if ( [. A  /  x ]. ph ,  [_ A  /  x ]_ B ,  [_ A  /  x ]_ C ) )

Proof of Theorem csbifg
Dummy variable  y is distinct from all other variables.
StepHypRef Expression
1 csbeq1 3256 . . 3  |-  ( y  =  A  ->  [_ y  /  x ]_ if (
ph ,  B ,  C )  =  [_ A  /  x ]_ if ( ph ,  B ,  C ) )
2 dfsbcq2 3166 . . . 4  |-  ( y  =  A  ->  ( [ y  /  x ] ph  <->  [. A  /  x ]. ph ) )
3 csbeq1 3256 . . . 4  |-  ( y  =  A  ->  [_ y  /  x ]_ B  = 
[_ A  /  x ]_ B )
4 csbeq1 3256 . . . 4  |-  ( y  =  A  ->  [_ y  /  x ]_ C  = 
[_ A  /  x ]_ C )
52, 3, 4ifbieq12d 3763 . . 3  |-  ( y  =  A  ->  if ( [ y  /  x ] ph ,  [_ y  /  x ]_ B ,  [_ y  /  x ]_ C )  =  if ( [. A  /  x ]. ph ,  [_ A  /  x ]_ B ,  [_ A  /  x ]_ C ) )
61, 5eqeq12d 2452 . 2  |-  ( y  =  A  ->  ( [_ y  /  x ]_ if ( ph ,  B ,  C )  =  if ( [ y  /  x ] ph ,  [_ y  /  x ]_ B ,  [_ y  /  x ]_ C )  <->  [_ A  /  x ]_ if ( ph ,  B ,  C )  =  if ( [. A  /  x ]. ph ,  [_ A  /  x ]_ B ,  [_ A  /  x ]_ C ) ) )
7 vex 2961 . . 3  |-  y  e. 
_V
8 nfs1v 2184 . . . 4  |-  F/ x [ y  /  x ] ph
9 nfcsb1v 3285 . . . 4  |-  F/_ x [_ y  /  x ]_ B
10 nfcsb1v 3285 . . . 4  |-  F/_ x [_ y  /  x ]_ C
118, 9, 10nfif 3765 . . 3  |-  F/_ x if ( [ y  /  x ] ph ,  [_ y  /  x ]_ B ,  [_ y  /  x ]_ C )
12 sbequ12 1945 . . . 4  |-  ( x  =  y  ->  ( ph 
<->  [ y  /  x ] ph ) )
13 csbeq1a 3261 . . . 4  |-  ( x  =  y  ->  B  =  [_ y  /  x ]_ B )
14 csbeq1a 3261 . . . 4  |-  ( x  =  y  ->  C  =  [_ y  /  x ]_ C )
1512, 13, 14ifbieq12d 3763 . . 3  |-  ( x  =  y  ->  if ( ph ,  B ,  C )  =  if ( [ y  /  x ] ph ,  [_ y  /  x ]_ B ,  [_ y  /  x ]_ C ) )
167, 11, 15csbief 3294 . 2  |-  [_ y  /  x ]_ if (
ph ,  B ,  C )  =  if ( [ y  /  x ] ph ,  [_ y  /  x ]_ B ,  [_ y  /  x ]_ C )
176, 16vtoclg 3013 1  |-  ( A  e.  V  ->  [_ A  /  x ]_ if (
ph ,  B ,  C )  =  if ( [. A  /  x ]. ph ,  [_ A  /  x ]_ B ,  [_ A  /  x ]_ C ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    = wceq 1653   [wsb 1659    e. wcel 1726   [.wsbc 3163   [_csb 3253   ifcif 3741
This theorem is referenced by:  cdlemk40  31716
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1556  ax-5 1567  ax-17 1627  ax-9 1667  ax-8 1688  ax-6 1745  ax-7 1750  ax-11 1762  ax-12 1951  ax-ext 2419
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3an 939  df-tru 1329  df-ex 1552  df-nf 1555  df-sb 1660  df-clab 2425  df-cleq 2431  df-clel 2434  df-nfc 2563  df-rab 2716  df-v 2960  df-sbc 3164  df-csb 3254  df-un 3327  df-if 3742
  Copyright terms: Public domain W3C validator