Users' Mathboxes Mathbox for Scott Fenton < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  wrecseq123 Structured version   Unicode version

Theorem wrecseq123 27647
Description: General equality theorem for the well-founded recursive function generator. (Contributed by Scott Fenton, 7-Jun-2018.)
Assertion
Ref Expression
wrecseq123  |-  ( ( R  =  S  /\  A  =  B  /\  F  =  G )  -> wrecs ( R ,  A ,  F )  = wrecs ( S ,  B ,  G ) )

Proof of Theorem wrecseq123
Dummy variables  f  x  y are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 sseq2 3375 . . . . . . . 8  |-  ( A  =  B  ->  (
x  C_  A  <->  x  C_  B
) )
213ad2ant2 1005 . . . . . . 7  |-  ( ( R  =  S  /\  A  =  B  /\  F  =  G )  ->  ( x  C_  A  <->  x 
C_  B ) )
3 predeq1 27556 . . . . . . . . . . 11  |-  ( R  =  S  ->  Pred ( R ,  A , 
y )  =  Pred ( S ,  A , 
y ) )
4 predeq2 27557 . . . . . . . . . . 11  |-  ( A  =  B  ->  Pred ( S ,  A , 
y )  =  Pred ( S ,  B , 
y ) )
53, 4sylan9eq 2493 . . . . . . . . . 10  |-  ( ( R  =  S  /\  A  =  B )  ->  Pred ( R ,  A ,  y )  =  Pred ( S ,  B ,  y )
)
653adant3 1003 . . . . . . . . 9  |-  ( ( R  =  S  /\  A  =  B  /\  F  =  G )  ->  Pred ( R ,  A ,  y )  =  Pred ( S ,  B ,  y )
)
76sseq1d 3380 . . . . . . . 8  |-  ( ( R  =  S  /\  A  =  B  /\  F  =  G )  ->  ( Pred ( R ,  A ,  y )  C_  x  <->  Pred ( S ,  B ,  y )  C_  x )
)
87ralbidv 2733 . . . . . . 7  |-  ( ( R  =  S  /\  A  =  B  /\  F  =  G )  ->  ( A. y  e.  x  Pred ( R ,  A ,  y )  C_  x  <->  A. y  e.  x  Pred ( S ,  B ,  y )  C_  x ) )
92, 8anbi12d 705 . . . . . 6  |-  ( ( R  =  S  /\  A  =  B  /\  F  =  G )  ->  ( ( x  C_  A  /\  A. y  e.  x  Pred ( R ,  A ,  y )  C_  x )  <->  ( x  C_  B  /\  A. y  e.  x  Pred ( S ,  B ,  y )  C_  x )
) )
10 simp3 985 . . . . . . . . 9  |-  ( ( R  =  S  /\  A  =  B  /\  F  =  G )  ->  F  =  G )
115reseq2d 5106 . . . . . . . . . 10  |-  ( ( R  =  S  /\  A  =  B )  ->  ( f  |`  Pred ( R ,  A , 
y ) )  =  ( f  |`  Pred ( S ,  B , 
y ) ) )
12113adant3 1003 . . . . . . . . 9  |-  ( ( R  =  S  /\  A  =  B  /\  F  =  G )  ->  ( f  |`  Pred ( R ,  A , 
y ) )  =  ( f  |`  Pred ( S ,  B , 
y ) ) )
1310, 12fveq12d 5694 . . . . . . . 8  |-  ( ( R  =  S  /\  A  =  B  /\  F  =  G )  ->  ( F `  (
f  |`  Pred ( R ,  A ,  y )
) )  =  ( G `  ( f  |`  Pred ( S ,  B ,  y )
) ) )
1413eqeq2d 2452 . . . . . . 7  |-  ( ( R  =  S  /\  A  =  B  /\  F  =  G )  ->  ( ( f `  y )  =  ( F `  ( f  |`  Pred ( R ,  A ,  y )
) )  <->  ( f `  y )  =  ( G `  ( f  |`  Pred ( S ,  B ,  y )
) ) ) )
1514ralbidv 2733 . . . . . 6  |-  ( ( R  =  S  /\  A  =  B  /\  F  =  G )  ->  ( A. y  e.  x  ( f `  y )  =  ( F `  ( f  |`  Pred ( R ,  A ,  y )
) )  <->  A. y  e.  x  ( f `  y )  =  ( G `  ( f  |`  Pred ( S ,  B ,  y )
) ) ) )
169, 153anbi23d 1287 . . . . 5  |-  ( ( R  =  S  /\  A  =  B  /\  F  =  G )  ->  ( ( f  Fn  x  /\  ( x 
C_  A  /\  A. y  e.  x  Pred ( R ,  A , 
y )  C_  x
)  /\  A. y  e.  x  ( f `  y )  =  ( F `  ( f  |`  Pred ( R ,  A ,  y )
) ) )  <->  ( f  Fn  x  /\  (
x  C_  B  /\  A. y  e.  x  Pred ( S ,  B , 
y )  C_  x
)  /\  A. y  e.  x  ( f `  y )  =  ( G `  ( f  |`  Pred ( S ,  B ,  y )
) ) ) ) )
1716exbidv 1685 . . . 4  |-  ( ( R  =  S  /\  A  =  B  /\  F  =  G )  ->  ( E. x ( f  Fn  x  /\  ( x  C_  A  /\  A. y  e.  x  Pred ( R ,  A , 
y )  C_  x
)  /\  A. y  e.  x  ( f `  y )  =  ( F `  ( f  |`  Pred ( R ,  A ,  y )
) ) )  <->  E. x
( f  Fn  x  /\  ( x  C_  B  /\  A. y  e.  x  Pred ( S ,  B ,  y )  C_  x )  /\  A. y  e.  x  (
f `  y )  =  ( G `  ( f  |`  Pred ( S ,  B , 
y ) ) ) ) ) )
1817abbidv 2555 . . 3  |-  ( ( R  =  S  /\  A  =  B  /\  F  =  G )  ->  { f  |  E. x ( f  Fn  x  /\  ( x 
C_  A  /\  A. y  e.  x  Pred ( R ,  A , 
y )  C_  x
)  /\  A. y  e.  x  ( f `  y )  =  ( F `  ( f  |`  Pred ( R ,  A ,  y )
) ) ) }  =  { f  |  E. x ( f  Fn  x  /\  (
x  C_  B  /\  A. y  e.  x  Pred ( S ,  B , 
y )  C_  x
)  /\  A. y  e.  x  ( f `  y )  =  ( G `  ( f  |`  Pred ( S ,  B ,  y )
) ) ) } )
1918unieqd 4098 . 2  |-  ( ( R  =  S  /\  A  =  B  /\  F  =  G )  ->  U. { f  |  E. x ( f  Fn  x  /\  (
x  C_  A  /\  A. y  e.  x  Pred ( R ,  A , 
y )  C_  x
)  /\  A. y  e.  x  ( f `  y )  =  ( F `  ( f  |`  Pred ( R ,  A ,  y )
) ) ) }  =  U. { f  |  E. x ( f  Fn  x  /\  ( x  C_  B  /\  A. y  e.  x  Pred ( S ,  B , 
y )  C_  x
)  /\  A. y  e.  x  ( f `  y )  =  ( G `  ( f  |`  Pred ( S ,  B ,  y )
) ) ) } )
20 df-wrecs 27646 . 2  |- wrecs ( R ,  A ,  F
)  =  U. {
f  |  E. x
( f  Fn  x  /\  ( x  C_  A  /\  A. y  e.  x  Pred ( R ,  A ,  y )  C_  x )  /\  A. y  e.  x  (
f `  y )  =  ( F `  ( f  |`  Pred ( R ,  A , 
y ) ) ) ) }
21 df-wrecs 27646 . 2  |- wrecs ( S ,  B ,  G
)  =  U. {
f  |  E. x
( f  Fn  x  /\  ( x  C_  B  /\  A. y  e.  x  Pred ( S ,  B ,  y )  C_  x )  /\  A. y  e.  x  (
f `  y )  =  ( G `  ( f  |`  Pred ( S ,  B , 
y ) ) ) ) }
2219, 20, 213eqtr4g 2498 1  |-  ( ( R  =  S  /\  A  =  B  /\  F  =  G )  -> wrecs ( R ,  A ,  F )  = wrecs ( S ,  B ,  G ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    <-> wb 184    /\ wa 369    /\ w3a 960    = wceq 1364   E.wex 1591   {cab 2427   A.wral 2713    C_ wss 3325   U.cuni 4088    |` cres 4838    Fn wfn 5410   ` cfv 5415   Predcpred 27553  wrecscwrecs 27645
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1596  ax-4 1607  ax-5 1675  ax-6 1713  ax-7 1733  ax-10 1780  ax-11 1785  ax-12 1797  ax-13 1948  ax-ext 2422
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3an 962  df-tru 1367  df-ex 1592  df-nf 1595  df-sb 1706  df-clab 2428  df-cleq 2434  df-clel 2437  df-nfc 2566  df-ral 2718  df-rex 2719  df-rab 2722  df-v 2972  df-dif 3328  df-un 3330  df-in 3332  df-ss 3339  df-nul 3635  df-if 3789  df-sn 3875  df-pr 3877  df-op 3881  df-uni 4089  df-br 4290  df-opab 4348  df-xp 4842  df-cnv 4844  df-dm 4846  df-rn 4847  df-res 4848  df-ima 4849  df-iota 5378  df-fv 5423  df-pred 27554  df-wrecs 27646
This theorem is referenced by:  wrecseq1  27649  wrecseq2  27650  wrecseq3  27651
  Copyright terms: Public domain W3C validator