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

Theorem frrlem5 25578
Description: Lemma for founded recursion. The values of two acceptable functions agree within their domains. (Contributed by Paul Chapman, 21-Apr-2012.) (Revised by Mario Carneiro, 26-Jun-2015.)
Hypotheses
Ref Expression
frrlem5.1  |-  R  Fr  A
frrlem5.2  |-  R Se  A
frrlem5.3  |-  B  =  { 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
)  =  ( y G ( f  |`  Pred ( R ,  A ,  y ) ) ) ) ) }
Assertion
Ref Expression
frrlem5  |-  ( ( g  e.  B  /\  h  e.  B )  ->  ( ( x g u  /\  x h v )  ->  u  =  v ) )
Distinct variable groups:    A, f,
g, h, x, y   
f, G, h, x, y, g    u, g, v, x    y, g   
u, h, v    R, f, g, h, x, y    B, g, h, u, v, x
Allowed substitution hints:    A( v, u)    B( y, f)    R( v, u)    G( v, u)

Proof of Theorem frrlem5
Dummy variable  a is distinct from all other variables.
StepHypRef Expression
1 vex 2951 . . . . . 6  |-  x  e. 
_V
2 vex 2951 . . . . . 6  |-  u  e. 
_V
31, 2breldm 5066 . . . . 5  |-  ( x g u  ->  x  e.  dom  g )
4 vex 2951 . . . . . 6  |-  v  e. 
_V
51, 4breldm 5066 . . . . 5  |-  ( x h v  ->  x  e.  dom  h )
63, 5anim12i 550 . . . 4  |-  ( ( x g u  /\  x h v )  ->  ( x  e. 
dom  g  /\  x  e.  dom  h ) )
7 elin 3522 . . . 4  |-  ( x  e.  ( dom  g  i^i  dom  h )  <->  ( x  e.  dom  g  /\  x  e.  dom  h ) )
86, 7sylibr 204 . . 3  |-  ( ( x g u  /\  x h v )  ->  x  e.  ( dom  g  i^i  dom  h ) )
9 anandir 803 . . . . 5  |-  ( ( ( x g u  /\  x h v )  /\  x  e.  ( dom  g  i^i 
dom  h ) )  <-> 
( ( x g u  /\  x  e.  ( dom  g  i^i 
dom  h ) )  /\  ( x h v  /\  x  e.  ( dom  g  i^i 
dom  h ) ) ) )
102brres 5144 . . . . . 6  |-  ( x ( g  |`  ( dom  g  i^i  dom  h
) ) u  <->  ( x
g u  /\  x  e.  ( dom  g  i^i 
dom  h ) ) )
114brres 5144 . . . . . 6  |-  ( x ( h  |`  ( dom  g  i^i  dom  h
) ) v  <->  ( x h v  /\  x  e.  ( dom  g  i^i 
dom  h ) ) )
1210, 11anbi12i 679 . . . . 5  |-  ( ( x ( g  |`  ( dom  g  i^i  dom  h ) ) u  /\  x ( h  |`  ( dom  g  i^i 
dom  h ) ) v )  <->  ( (
x g u  /\  x  e.  ( dom  g  i^i  dom  h )
)  /\  ( x h v  /\  x  e.  ( dom  g  i^i 
dom  h ) ) ) )
139, 12bitr4i 244 . . . 4  |-  ( ( ( x g u  /\  x h v )  /\  x  e.  ( dom  g  i^i 
dom  h ) )  <-> 
( x ( g  |`  ( dom  g  i^i 
dom  h ) ) u  /\  x ( h  |`  ( dom  g  i^i  dom  h )
) v ) )
1413biimpi 187 . . 3  |-  ( ( ( x g u  /\  x h v )  /\  x  e.  ( dom  g  i^i 
dom  h ) )  ->  ( x ( g  |`  ( dom  g  i^i  dom  h )
) u  /\  x
( h  |`  ( dom  g  i^i  dom  h
) ) v ) )
158, 14mpdan 650 . 2  |-  ( ( x g u  /\  x h v )  ->  ( x ( g  |`  ( dom  g  i^i  dom  h )
) u  /\  x
( h  |`  ( dom  g  i^i  dom  h
) ) v ) )
16 frrlem5.3 . . . . . . . . 9  |-  B  =  { 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
)  =  ( y G ( f  |`  Pred ( R ,  A ,  y ) ) ) ) ) }
1716frrlem3 25576 . . . . . . . 8  |-  ( g  e.  B  ->  dom  g  C_  A )
18 ssinss1 3561 . . . . . . . 8  |-  ( dom  g  C_  A  ->  ( dom  g  i^i  dom  h )  C_  A
)
19 frrlem5.1 . . . . . . . . . 10  |-  R  Fr  A
20 frss 4541 . . . . . . . . . 10  |-  ( ( dom  g  i^i  dom  h )  C_  A  ->  ( R  Fr  A  ->  R  Fr  ( dom  g  i^i  dom  h
) ) )
2119, 20mpi 17 . . . . . . . . 9  |-  ( ( dom  g  i^i  dom  h )  C_  A  ->  R  Fr  ( dom  g  i^i  dom  h
) )
22 frrlem5.2 . . . . . . . . . 10  |-  R Se  A
23 sess2 4543 . . . . . . . . . 10  |-  ( ( dom  g  i^i  dom  h )  C_  A  ->  ( R Se  A  ->  R Se  ( dom  g  i^i 
dom  h ) ) )
2422, 23mpi 17 . . . . . . . . 9  |-  ( ( dom  g  i^i  dom  h )  C_  A  ->  R Se  ( dom  g  i^i  dom  h ) )
2521, 24jca 519 . . . . . . . 8  |-  ( ( dom  g  i^i  dom  h )  C_  A  ->  ( R  Fr  ( dom  g  i^i  dom  h
)  /\  R Se  ( dom  g  i^i  dom  h
) ) )
2617, 18, 253syl 19 . . . . . . 7  |-  ( g  e.  B  ->  ( R  Fr  ( dom  g  i^i  dom  h )  /\  R Se  ( dom  g  i^i  dom  h )
) )
2726adantr 452 . . . . . 6  |-  ( ( g  e.  B  /\  h  e.  B )  ->  ( R  Fr  ( dom  g  i^i  dom  h
)  /\  R Se  ( dom  g  i^i  dom  h
) ) )
2816frrlem4 25577 . . . . . 6  |-  ( ( g  e.  B  /\  h  e.  B )  ->  ( ( g  |`  ( dom  g  i^i  dom  h ) )  Fn  ( dom  g  i^i 
dom  h )  /\  A. a  e.  ( dom  g  i^i  dom  h
) ( ( g  |`  ( dom  g  i^i 
dom  h ) ) `
 a )  =  ( a G ( ( g  |`  ( dom  g  i^i  dom  h
) )  |`  Pred ( R ,  ( dom  g  i^i  dom  h ) ,  a ) ) ) ) )
2916frrlem4 25577 . . . . . . . 8  |-  ( ( h  e.  B  /\  g  e.  B )  ->  ( ( h  |`  ( dom  h  i^i  dom  g ) )  Fn  ( dom  h  i^i 
dom  g )  /\  A. a  e.  ( dom  h  i^i  dom  g
) ( ( h  |`  ( dom  h  i^i 
dom  g ) ) `
 a )  =  ( a G ( ( h  |`  ( dom  h  i^i  dom  g
) )  |`  Pred ( R ,  ( dom  h  i^i  dom  g ) ,  a ) ) ) ) )
3029ancoms 440 . . . . . . 7  |-  ( ( g  e.  B  /\  h  e.  B )  ->  ( ( h  |`  ( dom  h  i^i  dom  g ) )  Fn  ( dom  h  i^i 
dom  g )  /\  A. a  e.  ( dom  h  i^i  dom  g
) ( ( h  |`  ( dom  h  i^i 
dom  g ) ) `
 a )  =  ( a G ( ( h  |`  ( dom  h  i^i  dom  g
) )  |`  Pred ( R ,  ( dom  h  i^i  dom  g ) ,  a ) ) ) ) )
31 incom 3525 . . . . . . . . . . 11  |-  ( dom  g  i^i  dom  h
)  =  ( dom  h  i^i  dom  g
)
3231reseq2i 5135 . . . . . . . . . 10  |-  ( h  |`  ( dom  g  i^i 
dom  h ) )  =  ( h  |`  ( dom  h  i^i  dom  g ) )
3332fneq1i 5531 . . . . . . . . 9  |-  ( ( h  |`  ( dom  g  i^i  dom  h )
)  Fn  ( dom  g  i^i  dom  h
)  <->  ( h  |`  ( dom  h  i^i  dom  g ) )  Fn  ( dom  g  i^i 
dom  h ) )
3431fneq2i 5532 . . . . . . . . 9  |-  ( ( h  |`  ( dom  h  i^i  dom  g )
)  Fn  ( dom  g  i^i  dom  h
)  <->  ( h  |`  ( dom  h  i^i  dom  g ) )  Fn  ( dom  h  i^i 
dom  g ) )
3533, 34bitri 241 . . . . . . . 8  |-  ( ( h  |`  ( dom  g  i^i  dom  h )
)  Fn  ( dom  g  i^i  dom  h
)  <->  ( h  |`  ( dom  h  i^i  dom  g ) )  Fn  ( dom  h  i^i 
dom  g ) )
3632fveq1i 5721 . . . . . . . . . 10  |-  ( ( h  |`  ( dom  g  i^i  dom  h )
) `  a )  =  ( ( h  |`  ( dom  h  i^i 
dom  g ) ) `
 a )
37 predeq2 25434 . . . . . . . . . . . . 13  |-  ( ( dom  g  i^i  dom  h )  =  ( dom  h  i^i  dom  g )  ->  Pred ( R ,  ( dom  g  i^i  dom  h ) ,  a )  = 
Pred ( R , 
( dom  h  i^i  dom  g ) ,  a ) )
3831, 37ax-mp 8 . . . . . . . . . . . 12  |-  Pred ( R ,  ( dom  g  i^i  dom  h ) ,  a )  = 
Pred ( R , 
( dom  h  i^i  dom  g ) ,  a )
3932, 38reseq12i 5136 . . . . . . . . . . 11  |-  ( ( h  |`  ( dom  g  i^i  dom  h )
)  |`  Pred ( R , 
( dom  g  i^i  dom  h ) ,  a ) )  =  ( ( h  |`  ( dom  h  i^i  dom  g
) )  |`  Pred ( R ,  ( dom  h  i^i  dom  g ) ,  a ) )
4039oveq2i 6084 . . . . . . . . . 10  |-  ( a G ( ( h  |`  ( dom  g  i^i 
dom  h ) )  |`  Pred ( R , 
( dom  g  i^i  dom  h ) ,  a ) ) )  =  ( a G ( ( h  |`  ( dom  h  i^i  dom  g
) )  |`  Pred ( R ,  ( dom  h  i^i  dom  g ) ,  a ) ) )
4136, 40eqeq12i 2448 . . . . . . . . 9  |-  ( ( ( h  |`  ( dom  g  i^i  dom  h
) ) `  a
)  =  ( a G ( ( h  |`  ( dom  g  i^i 
dom  h ) )  |`  Pred ( R , 
( dom  g  i^i  dom  h ) ,  a ) ) )  <->  ( (
h  |`  ( dom  h  i^i  dom  g ) ) `
 a )  =  ( a G ( ( h  |`  ( dom  h  i^i  dom  g
) )  |`  Pred ( R ,  ( dom  h  i^i  dom  g ) ,  a ) ) ) )
4231, 41raleqbii 2727 . . . . . . . 8  |-  ( A. a  e.  ( dom  g  i^i  dom  h )
( ( h  |`  ( dom  g  i^i  dom  h ) ) `  a )  =  ( a G ( ( h  |`  ( dom  g  i^i  dom  h )
)  |`  Pred ( R , 
( dom  g  i^i  dom  h ) ,  a ) ) )  <->  A. a  e.  ( dom  h  i^i 
dom  g ) ( ( h  |`  ( dom  h  i^i  dom  g
) ) `  a
)  =  ( a G ( ( h  |`  ( dom  h  i^i 
dom  g ) )  |`  Pred ( R , 
( dom  h  i^i  dom  g ) ,  a ) ) ) )
4335, 42anbi12i 679 . . . . . . 7  |-  ( ( ( h  |`  ( dom  g  i^i  dom  h
) )  Fn  ( dom  g  i^i  dom  h
)  /\  A. a  e.  ( dom  g  i^i 
dom  h ) ( ( h  |`  ( dom  g  i^i  dom  h
) ) `  a
)  =  ( a G ( ( h  |`  ( dom  g  i^i 
dom  h ) )  |`  Pred ( R , 
( dom  g  i^i  dom  h ) ,  a ) ) ) )  <-> 
( ( h  |`  ( dom  h  i^i  dom  g ) )  Fn  ( dom  h  i^i 
dom  g )  /\  A. a  e.  ( dom  h  i^i  dom  g
) ( ( h  |`  ( dom  h  i^i 
dom  g ) ) `
 a )  =  ( a G ( ( h  |`  ( dom  h  i^i  dom  g
) )  |`  Pred ( R ,  ( dom  h  i^i  dom  g ) ,  a ) ) ) ) )
4430, 43sylibr 204 . . . . . 6  |-  ( ( g  e.  B  /\  h  e.  B )  ->  ( ( h  |`  ( dom  g  i^i  dom  h ) )  Fn  ( dom  g  i^i 
dom  h )  /\  A. a  e.  ( dom  g  i^i  dom  h
) ( ( h  |`  ( dom  g  i^i 
dom  h ) ) `
 a )  =  ( a G ( ( h  |`  ( dom  g  i^i  dom  h
) )  |`  Pred ( R ,  ( dom  g  i^i  dom  h ) ,  a ) ) ) ) )
45 frr3g 25573 . . . . . 6  |-  ( ( ( R  Fr  ( dom  g  i^i  dom  h
)  /\  R Se  ( dom  g  i^i  dom  h
) )  /\  (
( g  |`  ( dom  g  i^i  dom  h
) )  Fn  ( dom  g  i^i  dom  h
)  /\  A. a  e.  ( dom  g  i^i 
dom  h ) ( ( g  |`  ( dom  g  i^i  dom  h
) ) `  a
)  =  ( a G ( ( g  |`  ( dom  g  i^i 
dom  h ) )  |`  Pred ( R , 
( dom  g  i^i  dom  h ) ,  a ) ) ) )  /\  ( ( h  |`  ( dom  g  i^i 
dom  h ) )  Fn  ( dom  g  i^i  dom  h )  /\  A. a  e.  ( dom  g  i^i  dom  h
) ( ( h  |`  ( dom  g  i^i 
dom  h ) ) `
 a )  =  ( a G ( ( h  |`  ( dom  g  i^i  dom  h
) )  |`  Pred ( R ,  ( dom  g  i^i  dom  h ) ,  a ) ) ) ) )  -> 
( g  |`  ( dom  g  i^i  dom  h
) )  =  ( h  |`  ( dom  g  i^i  dom  h )
) )
4627, 28, 44, 45syl3anc 1184 . . . . 5  |-  ( ( g  e.  B  /\  h  e.  B )  ->  ( g  |`  ( dom  g  i^i  dom  h
) )  =  ( h  |`  ( dom  g  i^i  dom  h )
) )
4746breqd 4215 . . . 4  |-  ( ( g  e.  B  /\  h  e.  B )  ->  ( x ( g  |`  ( dom  g  i^i 
dom  h ) ) v  <->  x ( h  |`  ( dom  g  i^i 
dom  h ) ) v ) )
4847biimprd 215 . . 3  |-  ( ( g  e.  B  /\  h  e.  B )  ->  ( x ( h  |`  ( dom  g  i^i 
dom  h ) ) v  ->  x (
g  |`  ( dom  g  i^i  dom  h ) ) v ) )
4916frrlem2 25575 . . . . 5  |-  ( g  e.  B  ->  Fun  g )
50 funres 5484 . . . . 5  |-  ( Fun  g  ->  Fun  ( g  |`  ( dom  g  i^i 
dom  h ) ) )
51 dffun2 5456 . . . . . . 7  |-  ( Fun  ( g  |`  ( dom  g  i^i  dom  h
) )  <->  ( Rel  ( g  |`  ( dom  g  i^i  dom  h
) )  /\  A. x A. u A. v
( ( x ( g  |`  ( dom  g  i^i  dom  h )
) u  /\  x
( g  |`  ( dom  g  i^i  dom  h
) ) v )  ->  u  =  v ) ) )
5251simprbi 451 . . . . . 6  |-  ( Fun  ( g  |`  ( dom  g  i^i  dom  h
) )  ->  A. x A. u A. v ( ( x ( g  |`  ( dom  g  i^i 
dom  h ) ) u  /\  x ( g  |`  ( dom  g  i^i  dom  h )
) v )  ->  u  =  v )
)
53 sp 1763 . . . . . . . 8  |-  ( A. v ( ( x ( g  |`  ( dom  g  i^i  dom  h
) ) u  /\  x ( g  |`  ( dom  g  i^i  dom  h ) ) v )  ->  u  =  v )  ->  (
( x ( g  |`  ( dom  g  i^i 
dom  h ) ) u  /\  x ( g  |`  ( dom  g  i^i  dom  h )
) v )  ->  u  =  v )
)
5453sps 1770 . . . . . . 7  |-  ( A. u A. v ( ( x ( g  |`  ( dom  g  i^i  dom  h ) ) u  /\  x ( g  |`  ( dom  g  i^i 
dom  h ) ) v )  ->  u  =  v )  -> 
( ( x ( g  |`  ( dom  g  i^i  dom  h )
) u  /\  x
( g  |`  ( dom  g  i^i  dom  h
) ) v )  ->  u  =  v ) )
5554sps 1770 . . . . . 6  |-  ( A. x A. u A. v
( ( x ( g  |`  ( dom  g  i^i  dom  h )
) u  /\  x
( g  |`  ( dom  g  i^i  dom  h
) ) v )  ->  u  =  v )  ->  ( (
x ( g  |`  ( dom  g  i^i  dom  h ) ) u  /\  x ( g  |`  ( dom  g  i^i 
dom  h ) ) v )  ->  u  =  v ) )
5652, 55syl 16 . . . . 5  |-  ( Fun  ( g  |`  ( dom  g  i^i  dom  h
) )  ->  (
( x ( g  |`  ( dom  g  i^i 
dom  h ) ) u  /\  x ( g  |`  ( dom  g  i^i  dom  h )
) v )  ->  u  =  v )
)
5749, 50, 563syl 19 . . . 4  |-  ( g  e.  B  ->  (
( x ( g  |`  ( dom  g  i^i 
dom  h ) ) u  /\  x ( g  |`  ( dom  g  i^i  dom  h )
) v )  ->  u  =  v )
)
5857adantr 452 . . 3  |-  ( ( g  e.  B  /\  h  e.  B )  ->  ( ( x ( g  |`  ( dom  g  i^i  dom  h )
) u  /\  x
( g  |`  ( dom  g  i^i  dom  h
) ) v )  ->  u  =  v ) )
5948, 58sylan2d 469 . 2  |-  ( ( g  e.  B  /\  h  e.  B )  ->  ( ( x ( g  |`  ( dom  g  i^i  dom  h )
) u  /\  x
( h  |`  ( dom  g  i^i  dom  h
) ) v )  ->  u  =  v ) )
6015, 59syl5 30 1  |-  ( ( g  e.  B  /\  h  e.  B )  ->  ( ( x g u  /\  x h v )  ->  u  =  v ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 359    /\ w3a 936   A.wal 1549   E.wex 1550    = wceq 1652    e. wcel 1725   {cab 2421   A.wral 2697    i^i cin 3311    C_ wss 3312   class class class wbr 4204    Fr wfr 4530   Se wse 4531   dom cdm 4870    |` cres 4872   Rel wrel 4875   Fun wfun 5440    Fn wfn 5441   ` cfv 5446  (class class class)co 6073   Predcpred 25430
This theorem is referenced by:  frrlem5c  25580
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1555  ax-5 1566  ax-17 1626  ax-9 1666  ax-8 1687  ax-13 1727  ax-14 1729  ax-6 1744  ax-7 1749  ax-11 1761  ax-12 1950  ax-ext 2416  ax-rep 4312  ax-sep 4322  ax-nul 4330  ax-pow 4369  ax-pr 4395  ax-un 4693  ax-inf2 7588
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3or 937  df-3an 938  df-tru 1328  df-ex 1551  df-nf 1554  df-sb 1659  df-eu 2284  df-mo 2285  df-clab 2422  df-cleq 2428  df-clel 2431  df-nfc 2560  df-ne 2600  df-ral 2702  df-rex 2703  df-reu 2704  df-rab 2706  df-v 2950  df-sbc 3154  df-csb 3244  df-dif 3315  df-un 3317  df-in 3319  df-ss 3326  df-pss 3328  df-nul 3621  df-if 3732  df-pw 3793  df-sn 3812  df-pr 3813  df-tp 3814  df-op 3815  df-uni 4008  df-iun 4087  df-br 4205  df-opab 4259  df-mpt 4260  df-tr 4295  df-eprel 4486  df-id 4490  df-po 4495  df-so 4496  df-fr 4533  df-se 4534  df-we 4535  df-ord 4576  df-on 4577  df-lim 4578  df-suc 4579  df-om 4838  df-xp 4876  df-rel 4877  df-cnv 4878  df-co 4879  df-dm 4880  df-rn 4881  df-res 4882  df-ima 4883  df-iota 5410  df-fun 5448  df-fn 5449  df-f 5450  df-f1 5451  df-fo 5452  df-f1o 5453  df-fv 5454  df-ov 6076  df-recs 6625  df-rdg 6660  df-pred 25431  df-trpred 25488
  Copyright terms: Public domain W3C validator