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

Theorem prdsval 15346
Description: Value of the structure product. (Contributed by Stefan O'Rear, 3-Jan-2015.) (Revised by Mario Carneiro, 7-Jan-2017.) (Revised by Thierry Arnoux, 16-Jun-2019.)
Hypotheses
Ref Expression
prdsval.p  |-  P  =  ( S X_s R )
prdsval.k  |-  K  =  ( Base `  S
)
prdsval.i  |-  ( ph  ->  dom  R  =  I )
prdsval.b  |-  ( ph  ->  B  =  X_ x  e.  I  ( Base `  ( R `  x
) ) )
prdsval.a  |-  ( ph  ->  .+  =  ( f  e.  B ,  g  e.  B  |->  ( x  e.  I  |->  ( ( f `  x ) ( +g  `  ( R `  x )
) ( g `  x ) ) ) ) )
prdsval.t  |-  ( ph  ->  .X.  =  ( f  e.  B ,  g  e.  B  |->  ( x  e.  I  |->  ( ( f `  x ) ( .r `  ( R `  x )
) ( g `  x ) ) ) ) )
prdsval.m  |-  ( ph  ->  .x.  =  ( f  e.  K ,  g  e.  B  |->  ( x  e.  I  |->  ( f ( .s `  ( R `  x )
) ( g `  x ) ) ) ) )
prdsval.j  |-  ( ph  ->  .,  =  ( f  e.  B ,  g  e.  B  |->  ( S 
gsumg  ( x  e.  I  |->  ( ( f `  x ) ( .i
`  ( R `  x ) ) ( g `  x ) ) ) ) ) )
prdsval.o  |-  ( ph  ->  O  =  ( Xt_ `  ( TopOpen  o.  R )
) )
prdsval.l  |-  ( ph  -> 
.<_  =  { <. f ,  g >.  |  ( { f ,  g }  C_  B  /\  A. x  e.  I  ( f `  x ) ( le `  ( R `  x )
) ( g `  x ) ) } )
prdsval.d  |-  ( ph  ->  D  =  ( f  e.  B ,  g  e.  B  |->  sup (
( ran  ( x  e.  I  |->  ( ( f `  x ) ( dist `  ( R `  x )
) ( g `  x ) ) )  u.  { 0 } ) ,  RR* ,  <  ) ) )
prdsval.h  |-  ( ph  ->  H  =  ( f  e.  B ,  g  e.  B  |->  X_ x  e.  I  ( (
f `  x )
( Hom  `  ( R `
 x ) ) ( g `  x
) ) ) )
prdsval.x  |-  ( ph  -> 
.xb  =  ( a  e.  ( B  X.  B ) ,  c  e.  B  |->  ( d  e.  ( c H ( 2nd `  a
) ) ,  e  e.  ( H `  a )  |->  ( x  e.  I  |->  ( ( d `  x ) ( <. ( ( 1st `  a ) `  x
) ,  ( ( 2nd `  a ) `
 x ) >.
(comp `  ( R `  x ) ) ( c `  x ) ) ( e `  x ) ) ) ) ) )
prdsval.s  |-  ( ph  ->  S  e.  W )
prdsval.r  |-  ( ph  ->  R  e.  Z )
Assertion
Ref Expression
prdsval  |-  ( ph  ->  P  =  ( ( { <. ( Base `  ndx ) ,  B >. , 
<. ( +g  `  ndx ) ,  .+  >. ,  <. ( .r `  ndx ) ,  .X.  >. }  u.  { <. (Scalar `  ndx ) ,  S >. ,  <. ( .s `  ndx ) , 
.x.  >. ,  <. ( .i `  ndx ) , 
.,  >. } )  u.  ( { <. (TopSet ` 
ndx ) ,  O >. ,  <. ( le `  ndx ) ,  .<_  >. ,  <. (
dist `  ndx ) ,  D >. }  u.  { <. ( Hom  `  ndx ) ,  H >. , 
<. (comp `  ndx ) , 
.xb  >. } ) ) )
Distinct variable groups:    a, c,
d, e, f, g, B    H, a, c, d, e    x, a, ph, c, d, e, f, g   
x, I    R, a,
c, d, e, f, g, x    S, a, c, d, e, f, g, x
Allowed substitution hints:    B( x)    D( x, e, f, g, a, c, d)    P( x, e, f, g, a, c, d)    .+ ( x, e, f, g, a, c, d)    .xb ( x, e, f, g, a, c, d)    .x. ( x, e, f, g, a, c, d)    .X. ( x, e, f, g, a, c, d)    H( x, f, g)    ., ( x, e, f, g, a, c, d)    I(
e, f, g, a, c, d)    K( x, e, f, g, a, c, d)    .<_ ( x, e, f, g, a, c, d)    O( x, e, f, g, a, c, d)    W( x, e, f, g, a, c, d)    Z( x, e, f, g, a, c, d)

Proof of Theorem prdsval
Dummy variables  h  r  s  v are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 prdsval.p . 2  |-  P  =  ( S X_s R )
2 df-prds 15339 . . . 4  |-  X_s  =  (
s  e.  _V , 
r  e.  _V  |->  [_ X_ x  e.  dom  r
( Base `  ( r `  x ) )  / 
v ]_ [_ ( f  e.  v ,  g  e.  v  |->  X_ x  e.  dom  r ( ( f `  x ) ( Hom  `  (
r `  x )
) ( g `  x ) ) )  /  h ]_ (
( { <. ( Base `  ndx ) ,  v >. ,  <. ( +g  `  ndx ) ,  ( f  e.  v ,  g  e.  v 
|->  ( x  e.  dom  r  |->  ( ( f `
 x ) ( +g  `  ( r `
 x ) ) ( g `  x
) ) ) )
>. ,  <. ( .r
`  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( ( f `  x ) ( .r
`  ( r `  x ) ) ( g `  x ) ) ) ) >. }  u.  { <. (Scalar ` 
ndx ) ,  s
>. ,  <. ( .s
`  ndx ) ,  ( f  e.  ( Base `  s ) ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( f ( .s `  ( r `  x
) ) ( g `
 x ) ) ) ) >. ,  <. ( .i `  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  ( s  gsumg  ( x  e.  dom  r  |->  ( ( f `  x
) ( .i `  ( r `  x
) ) ( g `
 x ) ) ) ) ) >. } )  u.  ( { <. (TopSet `  ndx ) ,  ( Xt_ `  ( TopOpen  o.  r )
) >. ,  <. ( le `  ndx ) ,  { <. f ,  g
>.  |  ( {
f ,  g } 
C_  v  /\  A. x  e.  dom  r ( f `  x ) ( le `  (
r `  x )
) ( g `  x ) ) }
>. ,  <. ( dist `  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  sup ( ( ran  (
x  e.  dom  r  |->  ( ( f `  x ) ( dist `  ( r `  x
) ) ( g `
 x ) ) )  u.  { 0 } ) ,  RR* ,  <  ) ) >. }  u.  { <. ( Hom  `  ndx ) ,  h >. ,  <. (comp ` 
ndx ) ,  ( a  e.  ( v  X.  v ) ,  c  e.  v  |->  ( d  e.  ( c h ( 2nd `  a
) ) ,  e  e.  ( h `  a )  |->  ( x  e.  dom  r  |->  ( ( d `  x
) ( <. (
( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  (
r `  x )
) ( c `  x ) ) ( e `  x ) ) ) ) )
>. } ) ) )
32a1i 11 . . 3  |-  ( ph  -> 
X_s 
=  ( s  e. 
_V ,  r  e. 
_V  |->  [_ X_ x  e.  dom  r ( Base `  (
r `  x )
)  /  v ]_ [_ ( f  e.  v ,  g  e.  v 
|->  X_ x  e.  dom  r ( ( f `
 x ) ( Hom  `  ( r `  x ) ) ( g `  x ) ) )  /  h ]_ ( ( { <. (
Base `  ndx ) ,  v >. ,  <. ( +g  `  ndx ) ,  ( f  e.  v ,  g  e.  v 
|->  ( x  e.  dom  r  |->  ( ( f `
 x ) ( +g  `  ( r `
 x ) ) ( g `  x
) ) ) )
>. ,  <. ( .r
`  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( ( f `  x ) ( .r
`  ( r `  x ) ) ( g `  x ) ) ) ) >. }  u.  { <. (Scalar ` 
ndx ) ,  s
>. ,  <. ( .s
`  ndx ) ,  ( f  e.  ( Base `  s ) ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( f ( .s `  ( r `  x
) ) ( g `
 x ) ) ) ) >. ,  <. ( .i `  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  ( s  gsumg  ( x  e.  dom  r  |->  ( ( f `  x
) ( .i `  ( r `  x
) ) ( g `
 x ) ) ) ) ) >. } )  u.  ( { <. (TopSet `  ndx ) ,  ( Xt_ `  ( TopOpen  o.  r )
) >. ,  <. ( le `  ndx ) ,  { <. f ,  g
>.  |  ( {
f ,  g } 
C_  v  /\  A. x  e.  dom  r ( f `  x ) ( le `  (
r `  x )
) ( g `  x ) ) }
>. ,  <. ( dist `  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  sup ( ( ran  (
x  e.  dom  r  |->  ( ( f `  x ) ( dist `  ( r `  x
) ) ( g `
 x ) ) )  u.  { 0 } ) ,  RR* ,  <  ) ) >. }  u.  { <. ( Hom  `  ndx ) ,  h >. ,  <. (comp ` 
ndx ) ,  ( a  e.  ( v  X.  v ) ,  c  e.  v  |->  ( d  e.  ( c h ( 2nd `  a
) ) ,  e  e.  ( h `  a )  |->  ( x  e.  dom  r  |->  ( ( d `  x
) ( <. (
( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  (
r `  x )
) ( c `  x ) ) ( e `  x ) ) ) ) )
>. } ) ) ) )
4 vex 3085 . . . . . . . . . . . 12  |-  r  e. 
_V
54rnex 6739 . . . . . . . . . . 11  |-  ran  r  e.  _V
65uniex 6599 . . . . . . . . . 10  |-  U. ran  r  e.  _V
76rnex 6739 . . . . . . . . 9  |-  ran  U. ran  r  e.  _V
87uniex 6599 . . . . . . . 8  |-  U. ran  U.
ran  r  e.  _V
9 baseid 15162 . . . . . . . . . . . 12  |-  Base  = Slot  ( Base `  ndx )
109strfvss 15132 . . . . . . . . . . 11  |-  ( Base `  ( r `  x
) )  C_  U. ran  ( r `  x
)
11 fvssunirn 5902 . . . . . . . . . . . 12  |-  ( r `
 x )  C_  U.
ran  r
12 rnss 5080 . . . . . . . . . . . 12  |-  ( ( r `  x ) 
C_  U. ran  r  ->  ran  ( r `  x
)  C_  ran  U. ran  r )
13 uniss 4238 . . . . . . . . . . . 12  |-  ( ran  ( r `  x
)  C_  ran  U. ran  r  ->  U. ran  ( r `
 x )  C_  U.
ran  U. ran  r )
1411, 12, 13mp2b 10 . . . . . . . . . . 11  |-  U. ran  ( r `  x
)  C_  U. ran  U. ran  r
1510, 14sstri 3474 . . . . . . . . . 10  |-  ( Base `  ( r `  x
) )  C_  U. ran  U.
ran  r
1615rgenw 2787 . . . . . . . . 9  |-  A. x  e.  dom  r ( Base `  ( r `  x
) )  C_  U. ran  U.
ran  r
17 iunss 4338 . . . . . . . . 9  |-  ( U_ x  e.  dom  r (
Base `  ( r `  x ) )  C_  U.
ran  U. ran  r  <->  A. x  e.  dom  r ( Base `  ( r `  x
) )  C_  U. ran  U.
ran  r )
1816, 17mpbir 213 . . . . . . . 8  |-  U_ x  e.  dom  r ( Base `  ( r `  x
) )  C_  U. ran  U.
ran  r
198, 18ssexi 4567 . . . . . . 7  |-  U_ x  e.  dom  r ( Base `  ( r `  x
) )  e.  _V
20 ixpssmap2g 7557 . . . . . . 7  |-  ( U_ x  e.  dom  r (
Base `  ( r `  x ) )  e. 
_V  ->  X_ x  e.  dom  r ( Base `  (
r `  x )
)  C_  ( U_ x  e.  dom  r (
Base `  ( r `  x ) )  ^m  dom  r ) )
2119, 20ax-mp 5 . . . . . 6  |-  X_ x  e.  dom  r ( Base `  ( r `  x
) )  C_  ( U_ x  e.  dom  r ( Base `  (
r `  x )
)  ^m  dom  r )
22 ovex 6331 . . . . . . 7  |-  ( U_ x  e.  dom  r (
Base `  ( r `  x ) )  ^m  dom  r )  e.  _V
2322ssex 4566 . . . . . 6  |-  ( X_ x  e.  dom  r (
Base `  ( r `  x ) )  C_  ( U_ x  e.  dom  r ( Base `  (
r `  x )
)  ^m  dom  r )  ->  X_ x  e.  dom  r ( Base `  (
r `  x )
)  e.  _V )
2421, 23mp1i 13 . . . . 5  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  X_ x  e.  dom  r ( Base `  ( r `  x
) )  e.  _V )
25 simpr 463 . . . . . . . . 9  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  r  =  R )
2625fveq1d 5881 . . . . . . . 8  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  (
r `  x )  =  ( R `  x ) )
2726fveq2d 5883 . . . . . . 7  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  ( Base `  ( r `  x ) )  =  ( Base `  ( R `  x )
) )
2827ixpeq2dv 7544 . . . . . 6  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  X_ x  e.  I  ( Base `  ( r `  x
) )  =  X_ x  e.  I  ( Base `  ( R `  x ) ) )
2925dmeqd 5054 . . . . . . . 8  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  dom  r  =  dom  R )
30 prdsval.i . . . . . . . . 9  |-  ( ph  ->  dom  R  =  I )
3130ad2antrr 731 . . . . . . . 8  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  dom  R  =  I )
3229, 31eqtrd 2464 . . . . . . 7  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  dom  r  =  I )
3332ixpeq1d 7540 . . . . . 6  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  X_ x  e.  dom  r ( Base `  ( r `  x
) )  =  X_ x  e.  I  ( Base `  ( r `  x ) ) )
34 prdsval.b . . . . . . 7  |-  ( ph  ->  B  =  X_ x  e.  I  ( Base `  ( R `  x
) ) )
3534ad2antrr 731 . . . . . 6  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  B  =  X_ x  e.  I 
( Base `  ( R `  x ) ) )
3628, 33, 353eqtr4d 2474 . . . . 5  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  X_ x  e.  dom  r ( Base `  ( r `  x
) )  =  B )
37 ovssunirn 6332 . . . . . . . . . . . . . . 15  |-  ( ( f `  x ) ( Hom  `  (
r `  x )
) ( g `  x ) )  C_  U.
ran  ( Hom  `  (
r `  x )
)
38 df-hom 15207 . . . . . . . . . . . . . . . . . 18  |-  Hom  = Slot ; 1 4
3938strfvss 15132 . . . . . . . . . . . . . . . . 17  |-  ( Hom  `  ( r `  x
) )  C_  U. ran  ( r `  x
)
4039, 14sstri 3474 . . . . . . . . . . . . . . . 16  |-  ( Hom  `  ( r `  x
) )  C_  U. ran  U.
ran  r
41 rnss 5080 . . . . . . . . . . . . . . . 16  |-  ( ( Hom  `  ( r `  x ) )  C_  U.
ran  U. ran  r  ->  ran  ( Hom  `  (
r `  x )
)  C_  ran  U. ran  U.
ran  r )
42 uniss 4238 . . . . . . . . . . . . . . . 16  |-  ( ran  ( Hom  `  (
r `  x )
)  C_  ran  U. ran  U.
ran  r  ->  U. ran  ( Hom  `  ( r `  x ) )  C_  U.
ran  U. ran  U. ran  r )
4340, 41, 42mp2b 10 . . . . . . . . . . . . . . 15  |-  U. ran  ( Hom  `  ( r `  x ) )  C_  U.
ran  U. ran  U. ran  r
4437, 43sstri 3474 . . . . . . . . . . . . . 14  |-  ( ( f `  x ) ( Hom  `  (
r `  x )
) ( g `  x ) )  C_  U.
ran  U. ran  U. ran  r
4544rgenw 2787 . . . . . . . . . . . . 13  |-  A. x  e.  dom  r ( ( f `  x ) ( Hom  `  (
r `  x )
) ( g `  x ) )  C_  U.
ran  U. ran  U. ran  r
46 ss2ixp 7541 . . . . . . . . . . . . 13  |-  ( A. x  e.  dom  r ( ( f `  x
) ( Hom  `  (
r `  x )
) ( g `  x ) )  C_  U.
ran  U. ran  U. ran  r  ->  X_ x  e.  dom  r ( ( f `
 x ) ( Hom  `  ( r `  x ) ) ( g `  x ) )  C_  X_ x  e. 
dom  r U. ran  U.
ran  U. ran  r )
4745, 46ax-mp 5 . . . . . . . . . . . 12  |-  X_ x  e.  dom  r ( ( f `  x ) ( Hom  `  (
r `  x )
) ( g `  x ) )  C_  X_ x  e.  dom  r U. ran  U. ran  U. ran  r
484dmex 6738 . . . . . . . . . . . . 13  |-  dom  r  e.  _V
498rnex 6739 . . . . . . . . . . . . . 14  |-  ran  U. ran  U. ran  r  e. 
_V
5049uniex 6599 . . . . . . . . . . . . 13  |-  U. ran  U.
ran  U. ran  r  e. 
_V
5148, 50ixpconst 7538 . . . . . . . . . . . 12  |-  X_ x  e.  dom  r U. ran  U.
ran  U. ran  r  =  ( U. ran  U. ran  U. ran  r  ^m  dom  r )
5247, 51sseqtri 3497 . . . . . . . . . . 11  |-  X_ x  e.  dom  r ( ( f `  x ) ( Hom  `  (
r `  x )
) ( g `  x ) )  C_  ( U. ran  U. ran  U.
ran  r  ^m  dom  r )
53 ovex 6331 . . . . . . . . . . . 12  |-  ( U. ran  U. ran  U. ran  r  ^m  dom  r )  e.  _V
5453elpw2 4586 . . . . . . . . . . 11  |-  ( X_ x  e.  dom  r ( ( f `  x
) ( Hom  `  (
r `  x )
) ( g `  x ) )  e. 
~P ( U. ran  U.
ran  U. ran  r  ^m  dom  r )  <->  X_ x  e. 
dom  r ( ( f `  x ) ( Hom  `  (
r `  x )
) ( g `  x ) )  C_  ( U. ran  U. ran  U.
ran  r  ^m  dom  r ) )
5552, 54mpbir 213 . . . . . . . . . 10  |-  X_ x  e.  dom  r ( ( f `  x ) ( Hom  `  (
r `  x )
) ( g `  x ) )  e. 
~P ( U. ran  U.
ran  U. ran  r  ^m  dom  r )
5655rgen2w 2788 . . . . . . . . 9  |-  A. f  e.  v  A. g  e.  v  X_ x  e. 
dom  r ( ( f `  x ) ( Hom  `  (
r `  x )
) ( g `  x ) )  e. 
~P ( U. ran  U.
ran  U. ran  r  ^m  dom  r )
57 eqid 2423 . . . . . . . . . 10  |-  ( f  e.  v ,  g  e.  v  |->  X_ x  e.  dom  r ( ( f `  x ) ( Hom  `  (
r `  x )
) ( g `  x ) ) )  =  ( f  e.  v ,  g  e.  v  |->  X_ x  e.  dom  r ( ( f `
 x ) ( Hom  `  ( r `  x ) ) ( g `  x ) ) )
5857fmpt2 6872 . . . . . . . . 9  |-  ( A. f  e.  v  A. g  e.  v  X_ x  e.  dom  r ( ( f `  x ) ( Hom  `  (
r `  x )
) ( g `  x ) )  e. 
~P ( U. ran  U.
ran  U. ran  r  ^m  dom  r )  <->  ( f  e.  v ,  g  e.  v  |->  X_ x  e.  dom  r ( ( f `
 x ) ( Hom  `  ( r `  x ) ) ( g `  x ) ) ) : ( v  X.  v ) --> ~P ( U. ran  U.
ran  U. ran  r  ^m  dom  r ) )
5956, 58mpbi 212 . . . . . . . 8  |-  ( f  e.  v ,  g  e.  v  |->  X_ x  e.  dom  r ( ( f `  x ) ( Hom  `  (
r `  x )
) ( g `  x ) ) ) : ( v  X.  v ) --> ~P ( U. ran  U. ran  U. ran  r  ^m  dom  r
)
60 vex 3085 . . . . . . . . 9  |-  v  e. 
_V
6160, 60xpex 6607 . . . . . . . 8  |-  ( v  X.  v )  e. 
_V
6253pwex 4605 . . . . . . . 8  |-  ~P ( U. ran  U. ran  U. ran  r  ^m  dom  r
)  e.  _V
63 fex2 6760 . . . . . . . 8  |-  ( ( ( f  e.  v ,  g  e.  v 
|->  X_ x  e.  dom  r ( ( f `
 x ) ( Hom  `  ( r `  x ) ) ( g `  x ) ) ) : ( v  X.  v ) --> ~P ( U. ran  U.
ran  U. ran  r  ^m  dom  r )  /\  (
v  X.  v )  e.  _V  /\  ~P ( U. ran  U. ran  U.
ran  r  ^m  dom  r )  e.  _V )  ->  ( f  e.  v ,  g  e.  v  |->  X_ x  e.  dom  r ( ( f `
 x ) ( Hom  `  ( r `  x ) ) ( g `  x ) ) )  e.  _V )
6459, 61, 62, 63mp3an 1361 . . . . . . 7  |-  ( f  e.  v ,  g  e.  v  |->  X_ x  e.  dom  r ( ( f `  x ) ( Hom  `  (
r `  x )
) ( g `  x ) ) )  e.  _V
6564a1i 11 . . . . . 6  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  (
f  e.  v ,  g  e.  v  |->  X_ x  e.  dom  r ( ( f `  x
) ( Hom  `  (
r `  x )
) ( g `  x ) ) )  e.  _V )
66 simpr 463 . . . . . . . 8  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  v  =  B )
6732adantr 467 . . . . . . . . . 10  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  dom  r  =  I )
6867ixpeq1d 7540 . . . . . . . . 9  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  X_ x  e.  dom  r ( ( f `  x ) ( Hom  `  (
r `  x )
) ( g `  x ) )  = 
X_ x  e.  I 
( ( f `  x ) ( Hom  `  ( r `  x
) ) ( g `
 x ) ) )
6926fveq2d 5883 . . . . . . . . . . . 12  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  ( Hom  `  ( r `  x ) )  =  ( Hom  `  ( R `  x )
) )
7069oveqd 6320 . . . . . . . . . . 11  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  (
( f `  x
) ( Hom  `  (
r `  x )
) ( g `  x ) )  =  ( ( f `  x ) ( Hom  `  ( R `  x
) ) ( g `
 x ) ) )
7170ixpeq2dv 7544 . . . . . . . . . 10  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  X_ x  e.  I  ( (
f `  x )
( Hom  `  ( r `
 x ) ) ( g `  x
) )  =  X_ x  e.  I  (
( f `  x
) ( Hom  `  ( R `  x )
) ( g `  x ) ) )
7271adantr 467 . . . . . . . . 9  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  X_ x  e.  I  ( (
f `  x )
( Hom  `  ( r `
 x ) ) ( g `  x
) )  =  X_ x  e.  I  (
( f `  x
) ( Hom  `  ( R `  x )
) ( g `  x ) ) )
7368, 72eqtrd 2464 . . . . . . . 8  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  X_ x  e.  dom  r ( ( f `  x ) ( Hom  `  (
r `  x )
) ( g `  x ) )  = 
X_ x  e.  I 
( ( f `  x ) ( Hom  `  ( R `  x
) ) ( g `
 x ) ) )
7466, 66, 73mpt2eq123dv 6365 . . . . . . 7  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  (
f  e.  v ,  g  e.  v  |->  X_ x  e.  dom  r ( ( f `  x
) ( Hom  `  (
r `  x )
) ( g `  x ) ) )  =  ( f  e.  B ,  g  e.  B  |->  X_ x  e.  I 
( ( f `  x ) ( Hom  `  ( R `  x
) ) ( g `
 x ) ) ) )
75 prdsval.h . . . . . . . 8  |-  ( ph  ->  H  =  ( f  e.  B ,  g  e.  B  |->  X_ x  e.  I  ( (
f `  x )
( Hom  `  ( R `
 x ) ) ( g `  x
) ) ) )
7675ad3antrrr 735 . . . . . . 7  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  H  =  ( f  e.  B ,  g  e.  B  |->  X_ x  e.  I 
( ( f `  x ) ( Hom  `  ( R `  x
) ) ( g `
 x ) ) ) )
7774, 76eqtr4d 2467 . . . . . 6  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  (
f  e.  v ,  g  e.  v  |->  X_ x  e.  dom  r ( ( f `  x
) ( Hom  `  (
r `  x )
) ( g `  x ) ) )  =  H )
78 simplr 761 . . . . . . . . . 10  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  v  =  B )
7978opeq2d 4192 . . . . . . . . 9  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  <. ( Base `  ndx ) ,  v >.  =  <. (
Base `  ndx ) ,  B >. )
8026fveq2d 5883 . . . . . . . . . . . . . . . 16  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  ( +g  `  ( r `  x ) )  =  ( +g  `  ( R `  x )
) )
8180oveqd 6320 . . . . . . . . . . . . . . 15  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  (
( f `  x
) ( +g  `  (
r `  x )
) ( g `  x ) )  =  ( ( f `  x ) ( +g  `  ( R `  x
) ) ( g `
 x ) ) )
8232, 81mpteq12dv 4500 . . . . . . . . . . . . . 14  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  (
x  e.  dom  r  |->  ( ( f `  x ) ( +g  `  ( r `  x
) ) ( g `
 x ) ) )  =  ( x  e.  I  |->  ( ( f `  x ) ( +g  `  ( R `  x )
) ( g `  x ) ) ) )
8382adantr 467 . . . . . . . . . . . . 13  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  (
x  e.  dom  r  |->  ( ( f `  x ) ( +g  `  ( r `  x
) ) ( g `
 x ) ) )  =  ( x  e.  I  |->  ( ( f `  x ) ( +g  `  ( R `  x )
) ( g `  x ) ) ) )
8466, 66, 83mpt2eq123dv 6365 . . . . . . . . . . . 12  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  (
f  e.  v ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( ( f `  x ) ( +g  `  ( r `  x
) ) ( g `
 x ) ) ) )  =  ( f  e.  B , 
g  e.  B  |->  ( x  e.  I  |->  ( ( f `  x
) ( +g  `  ( R `  x )
) ( g `  x ) ) ) ) )
8584adantr 467 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  (
f  e.  v ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( ( f `  x ) ( +g  `  ( r `  x
) ) ( g `
 x ) ) ) )  =  ( f  e.  B , 
g  e.  B  |->  ( x  e.  I  |->  ( ( f `  x
) ( +g  `  ( R `  x )
) ( g `  x ) ) ) ) )
86 prdsval.a . . . . . . . . . . . 12  |-  ( ph  ->  .+  =  ( f  e.  B ,  g  e.  B  |->  ( x  e.  I  |->  ( ( f `  x ) ( +g  `  ( R `  x )
) ( g `  x ) ) ) ) )
8786ad4antr 737 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  .+  =  ( f  e.  B ,  g  e.  B  |->  ( x  e.  I  |->  ( ( f `  x ) ( +g  `  ( R `  x
) ) ( g `
 x ) ) ) ) )
8885, 87eqtr4d 2467 . . . . . . . . . 10  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  (
f  e.  v ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( ( f `  x ) ( +g  `  ( r `  x
) ) ( g `
 x ) ) ) )  =  .+  )
8988opeq2d 4192 . . . . . . . . 9  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  <. ( +g  `  ndx ) ,  ( f  e.  v ,  g  e.  v 
|->  ( x  e.  dom  r  |->  ( ( f `
 x ) ( +g  `  ( r `
 x ) ) ( g `  x
) ) ) )
>.  =  <. ( +g  ` 
ndx ) ,  .+  >.
)
9026fveq2d 5883 . . . . . . . . . . . . . . . 16  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  ( .r `  ( r `  x ) )  =  ( .r `  ( R `  x )
) )
9190oveqd 6320 . . . . . . . . . . . . . . 15  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  (
( f `  x
) ( .r `  ( r `  x
) ) ( g `
 x ) )  =  ( ( f `
 x ) ( .r `  ( R `
 x ) ) ( g `  x
) ) )
9232, 91mpteq12dv 4500 . . . . . . . . . . . . . 14  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  (
x  e.  dom  r  |->  ( ( f `  x ) ( .r
`  ( r `  x ) ) ( g `  x ) ) )  =  ( x  e.  I  |->  ( ( f `  x
) ( .r `  ( R `  x ) ) ( g `  x ) ) ) )
9392adantr 467 . . . . . . . . . . . . 13  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  (
x  e.  dom  r  |->  ( ( f `  x ) ( .r
`  ( r `  x ) ) ( g `  x ) ) )  =  ( x  e.  I  |->  ( ( f `  x
) ( .r `  ( R `  x ) ) ( g `  x ) ) ) )
9466, 66, 93mpt2eq123dv 6365 . . . . . . . . . . . 12  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  (
f  e.  v ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( ( f `  x ) ( .r
`  ( r `  x ) ) ( g `  x ) ) ) )  =  ( f  e.  B ,  g  e.  B  |->  ( x  e.  I  |->  ( ( f `  x ) ( .r
`  ( R `  x ) ) ( g `  x ) ) ) ) )
9594adantr 467 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  (
f  e.  v ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( ( f `  x ) ( .r
`  ( r `  x ) ) ( g `  x ) ) ) )  =  ( f  e.  B ,  g  e.  B  |->  ( x  e.  I  |->  ( ( f `  x ) ( .r
`  ( R `  x ) ) ( g `  x ) ) ) ) )
96 prdsval.t . . . . . . . . . . . 12  |-  ( ph  ->  .X.  =  ( f  e.  B ,  g  e.  B  |->  ( x  e.  I  |->  ( ( f `  x ) ( .r `  ( R `  x )
) ( g `  x ) ) ) ) )
9796ad4antr 737 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  .X.  =  ( f  e.  B ,  g  e.  B  |->  ( x  e.  I  |->  ( ( f `  x ) ( .r
`  ( R `  x ) ) ( g `  x ) ) ) ) )
9895, 97eqtr4d 2467 . . . . . . . . . 10  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  (
f  e.  v ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( ( f `  x ) ( .r
`  ( r `  x ) ) ( g `  x ) ) ) )  = 
.X.  )
9998opeq2d 4192 . . . . . . . . 9  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  <. ( .r `  ndx ) ,  ( f  e.  v ,  g  e.  v 
|->  ( x  e.  dom  r  |->  ( ( f `
 x ) ( .r `  ( r `
 x ) ) ( g `  x
) ) ) )
>.  =  <. ( .r
`  ndx ) ,  .X.  >.
)
10079, 89, 99tpeq123d 4092 . . . . . . . 8  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  { <. (
Base `  ndx ) ,  v >. ,  <. ( +g  `  ndx ) ,  ( f  e.  v ,  g  e.  v 
|->  ( x  e.  dom  r  |->  ( ( f `
 x ) ( +g  `  ( r `
 x ) ) ( g `  x
) ) ) )
>. ,  <. ( .r
`  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( ( f `  x ) ( .r
`  ( r `  x ) ) ( g `  x ) ) ) ) >. }  =  { <. ( Base `  ndx ) ,  B >. ,  <. ( +g  `  ndx ) , 
.+  >. ,  <. ( .r `  ndx ) , 
.X.  >. } )
101 simp-4r 776 . . . . . . . . . 10  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  s  =  S )
102101opeq2d 4192 . . . . . . . . 9  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  <. (Scalar ` 
ndx ) ,  s
>.  =  <. (Scalar `  ndx ) ,  S >. )
103 simpllr 768 . . . . . . . . . . . . . . 15  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  s  =  S )
104103fveq2d 5883 . . . . . . . . . . . . . 14  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  ( Base `  s )  =  ( Base `  S
) )
105 prdsval.k . . . . . . . . . . . . . 14  |-  K  =  ( Base `  S
)
106104, 105syl6eqr 2482 . . . . . . . . . . . . 13  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  ( Base `  s )  =  K )
10726fveq2d 5883 . . . . . . . . . . . . . . . 16  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  ( .s `  ( r `  x ) )  =  ( .s `  ( R `  x )
) )
108107oveqd 6320 . . . . . . . . . . . . . . 15  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  (
f ( .s `  ( r `  x
) ) ( g `
 x ) )  =  ( f ( .s `  ( R `
 x ) ) ( g `  x
) ) )
10932, 108mpteq12dv 4500 . . . . . . . . . . . . . 14  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  (
x  e.  dom  r  |->  ( f ( .s
`  ( r `  x ) ) ( g `  x ) ) )  =  ( x  e.  I  |->  ( f ( .s `  ( R `  x ) ) ( g `  x ) ) ) )
110109adantr 467 . . . . . . . . . . . . 13  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  (
x  e.  dom  r  |->  ( f ( .s
`  ( r `  x ) ) ( g `  x ) ) )  =  ( x  e.  I  |->  ( f ( .s `  ( R `  x ) ) ( g `  x ) ) ) )
111106, 66, 110mpt2eq123dv 6365 . . . . . . . . . . . 12  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  (
f  e.  ( Base `  s ) ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( f ( .s `  ( r `  x
) ) ( g `
 x ) ) ) )  =  ( f  e.  K , 
g  e.  B  |->  ( x  e.  I  |->  ( f ( .s `  ( R `  x ) ) ( g `  x ) ) ) ) )
112111adantr 467 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  (
f  e.  ( Base `  s ) ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( f ( .s `  ( r `  x
) ) ( g `
 x ) ) ) )  =  ( f  e.  K , 
g  e.  B  |->  ( x  e.  I  |->  ( f ( .s `  ( R `  x ) ) ( g `  x ) ) ) ) )
113 prdsval.m . . . . . . . . . . . 12  |-  ( ph  ->  .x.  =  ( f  e.  K ,  g  e.  B  |->  ( x  e.  I  |->  ( f ( .s `  ( R `  x )
) ( g `  x ) ) ) ) )
114113ad4antr 737 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  .x.  =  ( f  e.  K ,  g  e.  B  |->  ( x  e.  I  |->  ( f ( .s
`  ( R `  x ) ) ( g `  x ) ) ) ) )
115112, 114eqtr4d 2467 . . . . . . . . . 10  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  (
f  e.  ( Base `  s ) ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( f ( .s `  ( r `  x
) ) ( g `
 x ) ) ) )  =  .x.  )
116115opeq2d 4192 . . . . . . . . 9  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  <. ( .s `  ndx ) ,  ( f  e.  (
Base `  s ) ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( f ( .s `  ( r `
 x ) ) ( g `  x
) ) ) )
>.  =  <. ( .s
`  ndx ) ,  .x.  >.
)
11726fveq2d 5883 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  ( .i `  ( r `  x ) )  =  ( .i `  ( R `  x )
) )
118117oveqd 6320 . . . . . . . . . . . . . . . 16  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  (
( f `  x
) ( .i `  ( r `  x
) ) ( g `
 x ) )  =  ( ( f `
 x ) ( .i `  ( R `
 x ) ) ( g `  x
) ) )
11932, 118mpteq12dv 4500 . . . . . . . . . . . . . . 15  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  (
x  e.  dom  r  |->  ( ( f `  x ) ( .i
`  ( r `  x ) ) ( g `  x ) ) )  =  ( x  e.  I  |->  ( ( f `  x
) ( .i `  ( R `  x ) ) ( g `  x ) ) ) )
120119adantr 467 . . . . . . . . . . . . . 14  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  (
x  e.  dom  r  |->  ( ( f `  x ) ( .i
`  ( r `  x ) ) ( g `  x ) ) )  =  ( x  e.  I  |->  ( ( f `  x
) ( .i `  ( R `  x ) ) ( g `  x ) ) ) )
121103, 120oveq12d 6321 . . . . . . . . . . . . 13  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  (
s  gsumg  ( x  e.  dom  r  |->  ( ( f `
 x ) ( .i `  ( r `
 x ) ) ( g `  x
) ) ) )  =  ( S  gsumg  ( x  e.  I  |->  ( ( f `  x ) ( .i `  ( R `  x )
) ( g `  x ) ) ) ) )
12266, 66, 121mpt2eq123dv 6365 . . . . . . . . . . . 12  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  (
f  e.  v ,  g  e.  v  |->  ( s  gsumg  ( x  e.  dom  r  |->  ( ( f `
 x ) ( .i `  ( r `
 x ) ) ( g `  x
) ) ) ) )  =  ( f  e.  B ,  g  e.  B  |->  ( S 
gsumg  ( x  e.  I  |->  ( ( f `  x ) ( .i
`  ( R `  x ) ) ( g `  x ) ) ) ) ) )
123122adantr 467 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  (
f  e.  v ,  g  e.  v  |->  ( s  gsumg  ( x  e.  dom  r  |->  ( ( f `
 x ) ( .i `  ( r `
 x ) ) ( g `  x
) ) ) ) )  =  ( f  e.  B ,  g  e.  B  |->  ( S 
gsumg  ( x  e.  I  |->  ( ( f `  x ) ( .i
`  ( R `  x ) ) ( g `  x ) ) ) ) ) )
124 prdsval.j . . . . . . . . . . . 12  |-  ( ph  ->  .,  =  ( f  e.  B ,  g  e.  B  |->  ( S 
gsumg  ( x  e.  I  |->  ( ( f `  x ) ( .i
`  ( R `  x ) ) ( g `  x ) ) ) ) ) )
125124ad4antr 737 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  .,  =  ( f  e.  B ,  g  e.  B  |->  ( S  gsumg  ( x  e.  I  |->  ( ( f `  x ) ( .i
`  ( R `  x ) ) ( g `  x ) ) ) ) ) )
126123, 125eqtr4d 2467 . . . . . . . . . 10  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  (
f  e.  v ,  g  e.  v  |->  ( s  gsumg  ( x  e.  dom  r  |->  ( ( f `
 x ) ( .i `  ( r `
 x ) ) ( g `  x
) ) ) ) )  =  .,  )
127126opeq2d 4192 . . . . . . . . 9  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  <. ( .i `  ndx ) ,  ( f  e.  v ,  g  e.  v 
|->  ( s  gsumg  ( x  e.  dom  r  |->  ( ( f `
 x ) ( .i `  ( r `
 x ) ) ( g `  x
) ) ) ) ) >.  =  <. ( .i `  ndx ) ,  .,  >. )
128102, 116, 127tpeq123d 4092 . . . . . . . 8  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  { <. (Scalar `  ndx ) ,  s
>. ,  <. ( .s
`  ndx ) ,  ( f  e.  ( Base `  s ) ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( f ( .s `  ( r `  x
) ) ( g `
 x ) ) ) ) >. ,  <. ( .i `  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  ( s  gsumg  ( x  e.  dom  r  |->  ( ( f `  x
) ( .i `  ( r `  x
) ) ( g `
 x ) ) ) ) ) >. }  =  { <. (Scalar ` 
ndx ) ,  S >. ,  <. ( .s `  ndx ) ,  .x.  >. ,  <. ( .i `  ndx ) ,  .,  >. } )
129100, 128uneq12d 3622 . . . . . . 7  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  ( { <. ( Base `  ndx ) ,  v >. , 
<. ( +g  `  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  ( x  e. 
dom  r  |->  ( ( f `  x ) ( +g  `  (
r `  x )
) ( g `  x ) ) ) ) >. ,  <. ( .r `  ndx ) ,  ( f  e.  v ,  g  e.  v 
|->  ( x  e.  dom  r  |->  ( ( f `
 x ) ( .r `  ( r `
 x ) ) ( g `  x
) ) ) )
>. }  u.  { <. (Scalar `  ndx ) ,  s
>. ,  <. ( .s
`  ndx ) ,  ( f  e.  ( Base `  s ) ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( f ( .s `  ( r `  x
) ) ( g `
 x ) ) ) ) >. ,  <. ( .i `  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  ( s  gsumg  ( x  e.  dom  r  |->  ( ( f `  x
) ( .i `  ( r `  x
) ) ( g `
 x ) ) ) ) ) >. } )  =  ( { <. ( Base `  ndx ) ,  B >. , 
<. ( +g  `  ndx ) ,  .+  >. ,  <. ( .r `  ndx ) ,  .X.  >. }  u.  { <. (Scalar `  ndx ) ,  S >. ,  <. ( .s `  ndx ) , 
.x.  >. ,  <. ( .i `  ndx ) , 
.,  >. } ) )
130 simpllr 768 . . . . . . . . . . . . 13  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  r  =  R )
131130coeq2d 5014 . . . . . . . . . . . 12  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  ( TopOpen  o.  r )  =  ( TopOpen  o.  R )
)
132131fveq2d 5883 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  ( Xt_ `  ( TopOpen  o.  r
) )  =  (
Xt_ `  ( TopOpen  o.  R
) ) )
133 prdsval.o . . . . . . . . . . . 12  |-  ( ph  ->  O  =  ( Xt_ `  ( TopOpen  o.  R )
) )
134133ad4antr 737 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  O  =  ( Xt_ `  ( TopOpen  o.  R ) ) )
135132, 134eqtr4d 2467 . . . . . . . . . 10  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  ( Xt_ `  ( TopOpen  o.  r
) )  =  O )
136135opeq2d 4192 . . . . . . . . 9  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  <. (TopSet ` 
ndx ) ,  (
Xt_ `  ( TopOpen  o.  r
) ) >.  =  <. (TopSet `  ndx ) ,  O >. )
13766sseq2d 3493 . . . . . . . . . . . . . 14  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  ( { f ,  g }  C_  v  <->  { f ,  g }  C_  B ) )
13826fveq2d 5883 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  ( le `  ( r `  x ) )  =  ( le `  ( R `  x )
) )
139138breqd 4432 . . . . . . . . . . . . . . . 16  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  (
( f `  x
) ( le `  ( r `  x
) ) ( g `
 x )  <->  ( f `  x ) ( le
`  ( R `  x ) ) ( g `  x ) ) )
14032, 139raleqbidv 3040 . . . . . . . . . . . . . . 15  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  ( A. x  e.  dom  r ( f `  x ) ( le
`  ( r `  x ) ) ( g `  x )  <->  A. x  e.  I 
( f `  x
) ( le `  ( R `  x ) ) ( g `  x ) ) )
141140adantr 467 . . . . . . . . . . . . . 14  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  ( A. x  e.  dom  r ( f `  x ) ( le
`  ( r `  x ) ) ( g `  x )  <->  A. x  e.  I 
( f `  x
) ( le `  ( R `  x ) ) ( g `  x ) ) )
142137, 141anbi12d 716 . . . . . . . . . . . . 13  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  (
( { f ,  g }  C_  v  /\  A. x  e.  dom  r ( f `  x ) ( le
`  ( r `  x ) ) ( g `  x ) )  <->  ( { f ,  g }  C_  B  /\  A. x  e.  I  ( f `  x ) ( le
`  ( R `  x ) ) ( g `  x ) ) ) )
143142opabbidv 4485 . . . . . . . . . . . 12  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  { <. f ,  g >.  |  ( { f ,  g }  C_  v  /\  A. x  e.  dom  r
( f `  x
) ( le `  ( r `  x
) ) ( g `
 x ) ) }  =  { <. f ,  g >.  |  ( { f ,  g }  C_  B  /\  A. x  e.  I  ( f `  x ) ( le `  ( R `  x )
) ( g `  x ) ) } )
144143adantr 467 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  { <. f ,  g >.  |  ( { f ,  g }  C_  v  /\  A. x  e.  dom  r
( f `  x
) ( le `  ( r `  x
) ) ( g `
 x ) ) }  =  { <. f ,  g >.  |  ( { f ,  g }  C_  B  /\  A. x  e.  I  ( f `  x ) ( le `  ( R `  x )
) ( g `  x ) ) } )
145 prdsval.l . . . . . . . . . . . 12  |-  ( ph  -> 
.<_  =  { <. f ,  g >.  |  ( { f ,  g }  C_  B  /\  A. x  e.  I  ( f `  x ) ( le `  ( R `  x )
) ( g `  x ) ) } )
146145ad4antr 737 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  .<_  =  { <. f ,  g
>.  |  ( {
f ,  g } 
C_  B  /\  A. x  e.  I  (
f `  x )
( le `  ( R `  x )
) ( g `  x ) ) } )
147144, 146eqtr4d 2467 . . . . . . . . . 10  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  { <. f ,  g >.  |  ( { f ,  g }  C_  v  /\  A. x  e.  dom  r
( f `  x
) ( le `  ( r `  x
) ) ( g `
 x ) ) }  =  .<_  )
148147opeq2d 4192 . . . . . . . . 9  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  <. ( le `  ndx ) ,  { <. f ,  g
>.  |  ( {
f ,  g } 
C_  v  /\  A. x  e.  dom  r ( f `  x ) ( le `  (
r `  x )
) ( g `  x ) ) }
>.  =  <. ( le
`  ndx ) ,  .<_  >.
)
14926fveq2d 5883 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  ( dist `  ( r `  x ) )  =  ( dist `  ( R `  x )
) )
150149oveqd 6320 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  (
( f `  x
) ( dist `  (
r `  x )
) ( g `  x ) )  =  ( ( f `  x ) ( dist `  ( R `  x
) ) ( g `
 x ) ) )
15132, 150mpteq12dv 4500 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  (
x  e.  dom  r  |->  ( ( f `  x ) ( dist `  ( r `  x
) ) ( g `
 x ) ) )  =  ( x  e.  I  |->  ( ( f `  x ) ( dist `  ( R `  x )
) ( g `  x ) ) ) )
152151adantr 467 . . . . . . . . . . . . . . . 16  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  (
x  e.  dom  r  |->  ( ( f `  x ) ( dist `  ( r `  x
) ) ( g `
 x ) ) )  =  ( x  e.  I  |->  ( ( f `  x ) ( dist `  ( R `  x )
) ( g `  x ) ) ) )
153152rneqd 5079 . . . . . . . . . . . . . . 15  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  ran  ( x  e.  dom  r  |->  ( ( f `
 x ) (
dist `  ( r `  x ) ) ( g `  x ) ) )  =  ran  ( x  e.  I  |->  ( ( f `  x ) ( dist `  ( R `  x
) ) ( g `
 x ) ) ) )
154153uneq1d 3620 . . . . . . . . . . . . . 14  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  ( ran  ( x  e.  dom  r  |->  ( ( f `
 x ) (
dist `  ( r `  x ) ) ( g `  x ) ) )  u.  {
0 } )  =  ( ran  ( x  e.  I  |->  ( ( f `  x ) ( dist `  ( R `  x )
) ( g `  x ) ) )  u.  { 0 } ) )
155154supeq1d 7964 . . . . . . . . . . . . 13  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  sup ( ( ran  (
x  e.  dom  r  |->  ( ( f `  x ) ( dist `  ( r `  x
) ) ( g `
 x ) ) )  u.  { 0 } ) ,  RR* ,  <  )  =  sup ( ( ran  (
x  e.  I  |->  ( ( f `  x
) ( dist `  ( R `  x )
) ( g `  x ) ) )  u.  { 0 } ) ,  RR* ,  <  ) )
15666, 66, 155mpt2eq123dv 6365 . . . . . . . . . . . 12  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  (
f  e.  v ,  g  e.  v  |->  sup ( ( ran  (
x  e.  dom  r  |->  ( ( f `  x ) ( dist `  ( r `  x
) ) ( g `
 x ) ) )  u.  { 0 } ) ,  RR* ,  <  ) )  =  ( f  e.  B ,  g  e.  B  |->  sup ( ( ran  ( x  e.  I  |->  ( ( f `  x ) ( dist `  ( R `  x
) ) ( g `
 x ) ) )  u.  { 0 } ) ,  RR* ,  <  ) ) )
157156adantr 467 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  (
f  e.  v ,  g  e.  v  |->  sup ( ( ran  (
x  e.  dom  r  |->  ( ( f `  x ) ( dist `  ( r `  x
) ) ( g `
 x ) ) )  u.  { 0 } ) ,  RR* ,  <  ) )  =  ( f  e.  B ,  g  e.  B  |->  sup ( ( ran  ( x  e.  I  |->  ( ( f `  x ) ( dist `  ( R `  x
) ) ( g `
 x ) ) )  u.  { 0 } ) ,  RR* ,  <  ) ) )
158 prdsval.d . . . . . . . . . . . 12  |-  ( ph  ->  D  =  ( f  e.  B ,  g  e.  B  |->  sup (
( ran  ( x  e.  I  |->  ( ( f `  x ) ( dist `  ( R `  x )
) ( g `  x ) ) )  u.  { 0 } ) ,  RR* ,  <  ) ) )
159158ad4antr 737 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  D  =  ( f  e.  B ,  g  e.  B  |->  sup ( ( ran  ( x  e.  I  |->  ( ( f `  x ) ( dist `  ( R `  x
) ) ( g `
 x ) ) )  u.  { 0 } ) ,  RR* ,  <  ) ) )
160157, 159eqtr4d 2467 . . . . . . . . . 10  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  (
f  e.  v ,  g  e.  v  |->  sup ( ( ran  (
x  e.  dom  r  |->  ( ( f `  x ) ( dist `  ( r `  x
) ) ( g `
 x ) ) )  u.  { 0 } ) ,  RR* ,  <  ) )  =  D )
161160opeq2d 4192 . . . . . . . . 9  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  <. ( dist `  ndx ) ,  ( f  e.  v ,  g  e.  v 
|->  sup ( ( ran  ( x  e.  dom  r  |->  ( ( f `
 x ) (
dist `  ( r `  x ) ) ( g `  x ) ) )  u.  {
0 } ) , 
RR* ,  <  ) )
>.  =  <. ( dist `  ndx ) ,  D >. )
162136, 148, 161tpeq123d 4092 . . . . . . . 8  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  { <. (TopSet `  ndx ) ,  (
Xt_ `  ( TopOpen  o.  r
) ) >. ,  <. ( le `  ndx ) ,  { <. f ,  g
>.  |  ( {
f ,  g } 
C_  v  /\  A. x  e.  dom  r ( f `  x ) ( le `  (
r `  x )
) ( g `  x ) ) }
>. ,  <. ( dist `  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  sup ( ( ran  (
x  e.  dom  r  |->  ( ( f `  x ) ( dist `  ( r `  x
) ) ( g `
 x ) ) )  u.  { 0 } ) ,  RR* ,  <  ) ) >. }  =  { <. (TopSet ` 
ndx ) ,  O >. ,  <. ( le `  ndx ) ,  .<_  >. ,  <. (
dist `  ndx ) ,  D >. } )
163 simpr 463 . . . . . . . . . 10  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  h  =  H )
164163opeq2d 4192 . . . . . . . . 9  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  <. ( Hom  `  ndx ) ,  h >.  =  <. ( Hom  `  ndx ) ,  H >. )
16578sqxpeqd 4877 . . . . . . . . . . . 12  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  (
v  X.  v )  =  ( B  X.  B ) )
166163oveqd 6320 . . . . . . . . . . . . 13  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  (
c h ( 2nd `  a ) )  =  ( c H ( 2nd `  a ) ) )
167163fveq1d 5881 . . . . . . . . . . . . 13  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  (
h `  a )  =  ( H `  a ) )
16826fveq2d 5883 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  (comp `  ( r `  x
) )  =  (comp `  ( R `  x
) ) )
169168oveqd 6320 . . . . . . . . . . . . . . . 16  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  ( <. ( ( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  (
r `  x )
) ( c `  x ) )  =  ( <. ( ( 1st `  a ) `  x
) ,  ( ( 2nd `  a ) `
 x ) >.
(comp `  ( R `  x ) ) ( c `  x ) ) )
170169oveqd 6320 . . . . . . . . . . . . . . 15  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  (
( d `  x
) ( <. (
( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  (
r `  x )
) ( c `  x ) ) ( e `  x ) )  =  ( ( d `  x ) ( <. ( ( 1st `  a ) `  x
) ,  ( ( 2nd `  a ) `
 x ) >.
(comp `  ( R `  x ) ) ( c `  x ) ) ( e `  x ) ) )
17132, 170mpteq12dv 4500 . . . . . . . . . . . . . 14  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  (
x  e.  dom  r  |->  ( ( d `  x ) ( <.
( ( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  (
r `  x )
) ( c `  x ) ) ( e `  x ) ) )  =  ( x  e.  I  |->  ( ( d `  x
) ( <. (
( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  ( R `  x )
) ( c `  x ) ) ( e `  x ) ) ) )
172171ad2antrr 731 . . . . . . . . . . . . 13  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  (
x  e.  dom  r  |->  ( ( d `  x ) ( <.
( ( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  (
r `  x )
) ( c `  x ) ) ( e `  x ) ) )  =  ( x  e.  I  |->  ( ( d `  x
) ( <. (
( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  ( R `  x )
) ( c `  x ) ) ( e `  x ) ) ) )
173166, 167, 172mpt2eq123dv 6365 . . . . . . . . . . . 12  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  (
d  e.  ( c h ( 2nd `  a
) ) ,  e  e.  ( h `  a )  |->  ( x  e.  dom  r  |->  ( ( d `  x
) ( <. (
( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  (
r `  x )
) ( c `  x ) ) ( e `  x ) ) ) )  =  ( d  e.  ( c H ( 2nd `  a ) ) ,  e  e.  ( H `
 a )  |->  ( x  e.  I  |->  ( ( d `  x
) ( <. (
( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  ( R `  x )
) ( c `  x ) ) ( e `  x ) ) ) ) )
174165, 78, 173mpt2eq123dv 6365 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  (
a  e.  ( v  X.  v ) ,  c  e.  v  |->  ( d  e.  ( c h ( 2nd `  a
) ) ,  e  e.  ( h `  a )  |->  ( x  e.  dom  r  |->  ( ( d `  x
) ( <. (
( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  (
r `  x )
) ( c `  x ) ) ( e `  x ) ) ) ) )  =  ( a  e.  ( B  X.  B
) ,  c  e.  B  |->  ( d  e.  ( c H ( 2nd `  a ) ) ,  e  e.  ( H `  a
)  |->  ( x  e.  I  |->  ( ( d `
 x ) (
<. ( ( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  ( R `  x )
) ( c `  x ) ) ( e `  x ) ) ) ) ) )
175 prdsval.x . . . . . . . . . . . 12  |-  ( ph  -> 
.xb  =  ( a  e.  ( B  X.  B ) ,  c  e.  B  |->  ( d  e.  ( c H ( 2nd `  a
) ) ,  e  e.  ( H `  a )  |->  ( x  e.  I  |->  ( ( d `  x ) ( <. ( ( 1st `  a ) `  x
) ,  ( ( 2nd `  a ) `
 x ) >.
(comp `  ( R `  x ) ) ( c `  x ) ) ( e `  x ) ) ) ) ) )
176175ad4antr 737 . . . . . . . . . . 11  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  .xb  =  ( a  e.  ( B  X.  B ) ,  c  e.  B  |->  ( d  e.  ( c H ( 2nd `  a ) ) ,  e  e.  ( H `
 a )  |->  ( x  e.  I  |->  ( ( d `  x
) ( <. (
( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  ( R `  x )
) ( c `  x ) ) ( e `  x ) ) ) ) ) )
177174, 176eqtr4d 2467 . . . . . . . . . 10  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  (
a  e.  ( v  X.  v ) ,  c  e.  v  |->  ( d  e.  ( c h ( 2nd `  a
) ) ,  e  e.  ( h `  a )  |->  ( x  e.  dom  r  |->  ( ( d `  x
) ( <. (
( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  (
r `  x )
) ( c `  x ) ) ( e `  x ) ) ) ) )  =  .xb  )
178177opeq2d 4192 . . . . . . . . 9  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  <. (comp ` 
ndx ) ,  ( a  e.  ( v  X.  v ) ,  c  e.  v  |->  ( d  e.  ( c h ( 2nd `  a
) ) ,  e  e.  ( h `  a )  |->  ( x  e.  dom  r  |->  ( ( d `  x
) ( <. (
( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  (
r `  x )
) ( c `  x ) ) ( e `  x ) ) ) ) )
>.  =  <. (comp `  ndx ) ,  .xb  >. )
179164, 178preq12d 4085 . . . . . . . 8  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  { <. ( Hom  `  ndx ) ,  h >. ,  <. (comp ` 
ndx ) ,  ( a  e.  ( v  X.  v ) ,  c  e.  v  |->  ( d  e.  ( c h ( 2nd `  a
) ) ,  e  e.  ( h `  a )  |->  ( x  e.  dom  r  |->  ( ( d `  x
) ( <. (
( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  (
r `  x )
) ( c `  x ) ) ( e `  x ) ) ) ) )
>. }  =  { <. ( Hom  `  ndx ) ,  H >. ,  <. (comp ` 
ndx ) ,  .xb  >. } )
180162, 179uneq12d 3622 . . . . . . 7  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  ( { <. (TopSet `  ndx ) ,  ( Xt_ `  ( TopOpen  o.  r )
) >. ,  <. ( le `  ndx ) ,  { <. f ,  g
>.  |  ( {
f ,  g } 
C_  v  /\  A. x  e.  dom  r ( f `  x ) ( le `  (
r `  x )
) ( g `  x ) ) }
>. ,  <. ( dist `  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  sup ( ( ran  (
x  e.  dom  r  |->  ( ( f `  x ) ( dist `  ( r `  x
) ) ( g `
 x ) ) )  u.  { 0 } ) ,  RR* ,  <  ) ) >. }  u.  { <. ( Hom  `  ndx ) ,  h >. ,  <. (comp ` 
ndx ) ,  ( a  e.  ( v  X.  v ) ,  c  e.  v  |->  ( d  e.  ( c h ( 2nd `  a
) ) ,  e  e.  ( h `  a )  |->  ( x  e.  dom  r  |->  ( ( d `  x
) ( <. (
( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  (
r `  x )
) ( c `  x ) ) ( e `  x ) ) ) ) )
>. } )  =  ( { <. (TopSet `  ndx ) ,  O >. , 
<. ( le `  ndx ) ,  .<_  >. ,  <. (
dist `  ndx ) ,  D >. }  u.  { <. ( Hom  `  ndx ) ,  H >. , 
<. (comp `  ndx ) , 
.xb  >. } ) )
181129, 180uneq12d 3622 . . . . . 6  |-  ( ( ( ( ( ph  /\  s  =  S )  /\  r  =  R )  /\  v  =  B )  /\  h  =  H )  ->  (
( { <. ( Base `  ndx ) ,  v >. ,  <. ( +g  `  ndx ) ,  ( f  e.  v ,  g  e.  v 
|->  ( x  e.  dom  r  |->  ( ( f `
 x ) ( +g  `  ( r `
 x ) ) ( g `  x
) ) ) )
>. ,  <. ( .r
`  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( ( f `  x ) ( .r
`  ( r `  x ) ) ( g `  x ) ) ) ) >. }  u.  { <. (Scalar ` 
ndx ) ,  s
>. ,  <. ( .s
`  ndx ) ,  ( f  e.  ( Base `  s ) ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( f ( .s `  ( r `  x
) ) ( g `
 x ) ) ) ) >. ,  <. ( .i `  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  ( s  gsumg  ( x  e.  dom  r  |->  ( ( f `  x
) ( .i `  ( r `  x
) ) ( g `
 x ) ) ) ) ) >. } )  u.  ( { <. (TopSet `  ndx ) ,  ( Xt_ `  ( TopOpen  o.  r )
) >. ,  <. ( le `  ndx ) ,  { <. f ,  g
>.  |  ( {
f ,  g } 
C_  v  /\  A. x  e.  dom  r ( f `  x ) ( le `  (
r `  x )
) ( g `  x ) ) }
>. ,  <. ( dist `  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  sup ( ( ran  (
x  e.  dom  r  |->  ( ( f `  x ) ( dist `  ( r `  x
) ) ( g `
 x ) ) )  u.  { 0 } ) ,  RR* ,  <  ) ) >. }  u.  { <. ( Hom  `  ndx ) ,  h >. ,  <. (comp ` 
ndx ) ,  ( a  e.  ( v  X.  v ) ,  c  e.  v  |->  ( d  e.  ( c h ( 2nd `  a
) ) ,  e  e.  ( h `  a )  |->  ( x  e.  dom  r  |->  ( ( d `  x
) ( <. (
( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  (
r `  x )
) ( c `  x ) ) ( e `  x ) ) ) ) )
>. } ) )  =  ( ( { <. (
Base `  ndx ) ,  B >. ,  <. ( +g  `  ndx ) , 
.+  >. ,  <. ( .r `  ndx ) , 
.X.  >. }  u.  { <. (Scalar `  ndx ) ,  S >. ,  <. ( .s `  ndx ) , 
.x.  >. ,  <. ( .i `  ndx ) , 
.,  >. } )  u.  ( { <. (TopSet ` 
ndx ) ,  O >. ,  <. ( le `  ndx ) ,  .<_  >. ,  <. (
dist `  ndx ) ,  D >. }  u.  { <. ( Hom  `  ndx ) ,  H >. , 
<. (comp `  ndx ) , 
.xb  >. } ) ) )
18265, 77, 181csbied2 3424 . . . . 5  |-  ( ( ( ( ph  /\  s  =  S )  /\  r  =  R
)  /\  v  =  B )  ->  [_ (
f  e.  v ,  g  e.  v  |->  X_ x  e.  dom  r ( ( f `  x
) ( Hom  `  (
r `  x )
) ( g `  x ) ) )  /  h ]_ (
( { <. ( Base `  ndx ) ,  v >. ,  <. ( +g  `  ndx ) ,  ( f  e.  v ,  g  e.  v 
|->  ( x  e.  dom  r  |->  ( ( f `
 x ) ( +g  `  ( r `
 x ) ) ( g `  x
) ) ) )
>. ,  <. ( .r
`  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( ( f `  x ) ( .r
`  ( r `  x ) ) ( g `  x ) ) ) ) >. }  u.  { <. (Scalar ` 
ndx ) ,  s
>. ,  <. ( .s
`  ndx ) ,  ( f  e.  ( Base `  s ) ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( f ( .s `  ( r `  x
) ) ( g `
 x ) ) ) ) >. ,  <. ( .i `  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  ( s  gsumg  ( x  e.  dom  r  |->  ( ( f `  x
) ( .i `  ( r `  x
) ) ( g `
 x ) ) ) ) ) >. } )  u.  ( { <. (TopSet `  ndx ) ,  ( Xt_ `  ( TopOpen  o.  r )
) >. ,  <. ( le `  ndx ) ,  { <. f ,  g
>.  |  ( {
f ,  g } 
C_  v  /\  A. x  e.  dom  r ( f `  x ) ( le `  (
r `  x )
) ( g `  x ) ) }
>. ,  <. ( dist `  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  sup ( ( ran  (
x  e.  dom  r  |->  ( ( f `  x ) ( dist `  ( r `  x
) ) ( g `
 x ) ) )  u.  { 0 } ) ,  RR* ,  <  ) ) >. }  u.  { <. ( Hom  `  ndx ) ,  h >. ,  <. (comp ` 
ndx ) ,  ( a  e.  ( v  X.  v ) ,  c  e.  v  |->  ( d  e.  ( c h ( 2nd `  a
) ) ,  e  e.  ( h `  a )  |->  ( x  e.  dom  r  |->  ( ( d `  x
) ( <. (
( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  (
r `  x )
) ( c `  x ) ) ( e `  x ) ) ) ) )
>. } ) )  =  ( ( { <. (
Base `  ndx ) ,  B >. ,  <. ( +g  `  ndx ) , 
.+  >. ,  <. ( .r `  ndx ) , 
.X.  >. }  u.  { <. (Scalar `  ndx ) ,  S >. ,  <. ( .s `  ndx ) , 
.x.  >. ,  <. ( .i `  ndx ) , 
.,  >. } )  u.  ( { <. (TopSet ` 
ndx ) ,  O >. ,  <. ( le `  ndx ) ,  .<_  >. ,  <. (
dist `  ndx ) ,  D >. }  u.  { <. ( Hom  `  ndx ) ,  H >. , 
<. (comp `  ndx ) , 
.xb  >. } ) ) )
18324, 36, 182csbied2 3424 . . . 4  |-  ( ( ( ph  /\  s  =  S )  /\  r  =  R )  ->  [_ X_ x  e.  dom  r ( Base `  ( r `  x
) )  /  v ]_ [_ ( f  e.  v ,  g  e.  v  |->  X_ x  e.  dom  r ( ( f `
 x ) ( Hom  `  ( r `  x ) ) ( g `  x ) ) )  /  h ]_ ( ( { <. (
Base `  ndx ) ,  v >. ,  <. ( +g  `  ndx ) ,  ( f  e.  v ,  g  e.  v 
|->  ( x  e.  dom  r  |->  ( ( f `
 x ) ( +g  `  ( r `
 x ) ) ( g `  x
) ) ) )
>. ,  <. ( .r
`  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( ( f `  x ) ( .r
`  ( r `  x ) ) ( g `  x ) ) ) ) >. }  u.  { <. (Scalar ` 
ndx ) ,  s
>. ,  <. ( .s
`  ndx ) ,  ( f  e.  ( Base `  s ) ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( f ( .s `  ( r `  x
) ) ( g `
 x ) ) ) ) >. ,  <. ( .i `  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  ( s  gsumg  ( x  e.  dom  r  |->  ( ( f `  x
) ( .i `  ( r `  x
) ) ( g `
 x ) ) ) ) ) >. } )  u.  ( { <. (TopSet `  ndx ) ,  ( Xt_ `  ( TopOpen  o.  r )
) >. ,  <. ( le `  ndx ) ,  { <. f ,  g
>.  |  ( {
f ,  g } 
C_  v  /\  A. x  e.  dom  r ( f `  x ) ( le `  (
r `  x )
) ( g `  x ) ) }
>. ,  <. ( dist `  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  sup ( ( ran  (
x  e.  dom  r  |->  ( ( f `  x ) ( dist `  ( r `  x
) ) ( g `
 x ) ) )  u.  { 0 } ) ,  RR* ,  <  ) ) >. }  u.  { <. ( Hom  `  ndx ) ,  h >. ,  <. (comp ` 
ndx ) ,  ( a  e.  ( v  X.  v ) ,  c  e.  v  |->  ( d  e.  ( c h ( 2nd `  a
) ) ,  e  e.  ( h `  a )  |->  ( x  e.  dom  r  |->  ( ( d `  x
) ( <. (
( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  (
r `  x )
) ( c `  x ) ) ( e `  x ) ) ) ) )
>. } ) )  =  ( ( { <. (
Base `  ndx ) ,  B >. ,  <. ( +g  `  ndx ) , 
.+  >. ,  <. ( .r `  ndx ) , 
.X.  >. }  u.  { <. (Scalar `  ndx ) ,  S >. ,  <. ( .s `  ndx ) , 
.x.  >. ,  <. ( .i `  ndx ) , 
.,  >. } )  u.  ( { <. (TopSet ` 
ndx ) ,  O >. ,  <. ( le `  ndx ) ,  .<_  >. ,  <. (
dist `  ndx ) ,  D >. }  u.  { <. ( Hom  `  ndx ) ,  H >. , 
<. (comp `  ndx ) , 
.xb  >. } ) ) )
184183anasss 652 . . 3  |-  ( (
ph  /\  ( s  =  S  /\  r  =  R ) )  ->  [_ X_ x  e.  dom  r ( Base `  (
r `  x )
)  /  v ]_ [_ ( f  e.  v ,  g  e.  v 
|->  X_ x  e.  dom  r ( ( f `
 x ) ( Hom  `  ( r `  x ) ) ( g `  x ) ) )  /  h ]_ ( ( { <. (
Base `  ndx ) ,  v >. ,  <. ( +g  `  ndx ) ,  ( f  e.  v ,  g  e.  v 
|->  ( x  e.  dom  r  |->  ( ( f `
 x ) ( +g  `  ( r `
 x ) ) ( g `  x
) ) ) )
>. ,  <. ( .r
`  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( ( f `  x ) ( .r
`  ( r `  x ) ) ( g `  x ) ) ) ) >. }  u.  { <. (Scalar ` 
ndx ) ,  s
>. ,  <. ( .s
`  ndx ) ,  ( f  e.  ( Base `  s ) ,  g  e.  v  |->  ( x  e.  dom  r  |->  ( f ( .s `  ( r `  x
) ) ( g `
 x ) ) ) ) >. ,  <. ( .i `  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  ( s  gsumg  ( x  e.  dom  r  |->  ( ( f `  x
) ( .i `  ( r `  x
) ) ( g `
 x ) ) ) ) ) >. } )  u.  ( { <. (TopSet `  ndx ) ,  ( Xt_ `  ( TopOpen  o.  r )
) >. ,  <. ( le `  ndx ) ,  { <. f ,  g
>.  |  ( {
f ,  g } 
C_  v  /\  A. x  e.  dom  r ( f `  x ) ( le `  (
r `  x )
) ( g `  x ) ) }
>. ,  <. ( dist `  ndx ) ,  ( f  e.  v ,  g  e.  v  |->  sup ( ( ran  (
x  e.  dom  r  |->  ( ( f `  x ) ( dist `  ( r `  x
) ) ( g `
 x ) ) )  u.  { 0 } ) ,  RR* ,  <  ) ) >. }  u.  { <. ( Hom  `  ndx ) ,  h >. ,  <. (comp ` 
ndx ) ,  ( a  e.  ( v  X.  v ) ,  c  e.  v  |->  ( d  e.  ( c h ( 2nd `  a
) ) ,  e  e.  ( h `  a )  |->  ( x  e.  dom  r  |->  ( ( d `  x
) ( <. (
( 1st `  a
) `  x ) ,  ( ( 2nd `  a ) `  x
) >. (comp `  (
r `  x )
) ( c `  x ) ) ( e `  x ) ) ) ) )
>. } ) )  =  ( ( { <. (
Base `  ndx ) ,  B >. ,  <. ( +g  `  ndx ) , 
.+  >. ,  <. ( .r `  ndx ) , 
.X.  >. }  u.  { <. (Scalar `  ndx ) ,  S >. ,  <. ( .s `  ndx ) , 
.x.  >. ,  <. ( .i `  ndx ) , 
.,  >. } )  u.  ( { <. (TopSet ` 
ndx ) ,  O >. ,  <. ( le `  ndx ) ,  .<_  >. ,  <. (
dist `  ndx ) ,  D >. }  u.  { <. ( Hom  `  ndx ) ,  H >. , 
<. (comp `  ndx ) , 
.xb  >. } ) ) )
185 prdsval.s . . . 4  |-  ( ph  ->  S  e.  W )
186 elex 3091 . . . 4  |-  ( S  e.  W  ->  S  e.  _V )
187185, 186syl 17 . . 3  |-  ( ph  ->  S  e.  _V )
188 prdsval.r . . . 4  |-  ( ph  ->  R  e.  Z )
189 elex 3091 . . . 4  |-  ( R  e.  Z  ->  R  e.  _V )
190188, 189syl 17 . . 3  |-  ( ph  ->  R  e.  _V )
191 tpex 6602 . . . . . 6  |-  { <. (
Base `  ndx ) ,  B >. ,  <. ( +g  `  ndx ) , 
.+  >. ,  <. ( .r `  ndx ) , 
.X.  >. }  e.  _V
192 tpex 6602 . . . . . 6  |-  { <. (Scalar `  ndx ) ,  S >. ,  <. ( .s `  ndx ) ,  .x.  >. ,  <. ( .i `  ndx ) ,  .,  >. }  e.  _V
193191, 192unex 6601 . . . . 5  |-  ( {
<. ( Base `  ndx ) ,  B >. , 
<. ( +g  `  ndx ) ,  .+  >. ,  <. ( .r `  ndx ) ,  .X.  >. }  u.  { <. (Scalar `  ndx ) ,  S >. ,  <. ( .s `  ndx ) , 
.x.  >. ,  <. ( .i `  ndx ) , 
.,  >. } )  e. 
_V
194 tpex 6602 . . . . . 6  |-  { <. (TopSet `  ndx ) ,  O >. ,  <. ( le `  ndx ) ,  .<_  >. ,  <. (
dist `  ndx ) ,  D >. }  e.  _V
195 prex 4661 . . . . . 6  |-  { <. ( Hom  `  ndx ) ,  H >. ,  <. (comp ` 
ndx ) ,  .xb  >. }  e.  _V
196194, 195unex 6601 . . . . 5  |-  ( {
<. (TopSet `  ndx ) ,  O >. ,  <. ( le `  ndx ) , 
.<_  >. ,  <. ( dist `  ndx ) ,  D >. }  u.  { <. ( Hom  `  ndx ) ,  H >. , 
<. (comp `  ndx ) , 
.xb  >. } )  e. 
_V
197193, 196unex 6601 . . . 4  |-  ( ( { <. ( Base `  ndx ) ,  B >. , 
<. ( +g  `  ndx ) ,  .+  >. ,  <. ( .r `  ndx ) ,  .X.  >. }  u.  { <. (Scalar `  ndx ) ,  S >. ,  <. ( .s `  ndx ) , 
.x.  >. ,  <. ( .i `  ndx ) , 
.,  >. } )  u.  ( { <. (TopSet ` 
ndx ) ,  O >. ,  <. ( le `  ndx ) ,  .<_  >. ,  <. (
dist `  ndx ) ,  D >. }  u.  { <. ( Hom  `  ndx ) ,  H >. , 
<. (comp `  ndx ) , 
.xb  >. } ) )  e.  _V
198197a1i 11 . . 3  |-  ( ph  ->  ( ( { <. (
Base `  ndx ) ,  B >. ,  <. ( +g  `  ndx ) , 
.+  >. ,  <. ( .r `  ndx ) , 
.X.  >. }  u.  { <. (Scalar `  ndx ) ,  S >. ,  <. ( .s `  ndx ) , 
.x.  >. ,  <. ( .i `  ndx ) , 
.,  >. } )  u.  ( { <. (TopSet ` 
ndx ) ,  O >. ,  <. ( le `  ndx ) ,  .<_  >. ,  <. (
dist `  ndx ) ,  D >. }  u.  { <. ( Hom  `  ndx ) ,  H >. , 
<. (comp `  ndx ) , 
.xb  >. } ) )  e.  _V )
1993, 184, 187, 190, 198ovmpt2d 6436 . 2  |-  ( ph  ->  ( S X_s R )  =  ( ( { <. ( Base `  ndx ) ,  B >. ,  <. ( +g  `  ndx ) , 
.+  >. ,  <. ( .r `  ndx ) , 
.X.  >. }  u.  { <. (Scalar `  ndx ) ,  S >. ,  <. ( .s `  ndx ) , 
.x.  >. ,  <. ( .i `  ndx ) , 
.,  >. } )  u.  ( { <. (TopSet ` 
ndx ) ,  O >. ,  <. ( le `  ndx ) ,  .<_  >. ,  <. (
dist `  ndx ) ,  D >. }  u.  { <. ( Hom  `  ndx ) ,  H >. , 
<. (comp `  ndx ) , 
.xb  >. } ) ) )
2001, 199syl5eq 2476 1  |-  ( ph  ->  P  =  ( ( { <. ( Base `  ndx ) ,  B >. , 
<. ( +g  `  ndx ) ,  .+  >. ,  <. ( .r `  ndx ) ,  .X.  >. }  u.  { <. (Scalar `  ndx ) ,  S >. ,  <. ( .s `  ndx ) , 
.x.  >. ,  <. ( .i `  ndx ) , 
.,  >. } )  u.  ( { <. (TopSet ` 
ndx ) ,  O >. ,  <. ( le `  ndx ) ,  .<_  >. ,  <. (
dist `  ndx ) ,  D >. }  u.  { <. ( Hom  `  ndx ) ,  H >. , 
<. (comp `  ndx ) , 
.xb  >. } ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    <-> wb 188    /\ wa 371    = wceq 1438    e. wcel 1869   A.wral 2776   _Vcvv 3082   [_csb 3396    u. cun 3435    C_ wss 3437   ~Pcpw 3980   {csn 3997   {cpr 3999   {ctp 4001   <.cop 4003   U.cuni 4217   U_ciun 4297   class class class wbr 4421   {copab 4479    |-> cmpt 4480    X. cxp 4849   dom cdm 4851   ran crn 4852    o. ccom 4855   -->wf 5595   ` cfv 5599  (class class class)co 6303    |-> cmpt2 6305   1stc1st 6803   2ndc2nd 6804    ^m cmap 7478   X_cixp 7528   supcsup 7958   0cc0 9541   1c1 9542   RR*cxr 9676    < clt 9677   4c4 10663  ;cdc 11053   ndxcnx 15111   Basecbs 15114   +g cplusg 15183   .rcmulr 15184  Scalarcsca 15186   .scvsca 15187   .icip 15188  TopSetcts 15189   lecple 15190   distcds 15192   Hom chom 15194  compcco 15195   TopOpenctopn 15313   Xt_cpt 15330    gsumg cgsu 15332   X_scprds 15337
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1666  ax-4 1679  ax-5 1749  ax-6 1795  ax-7 1840  ax-8 1871  ax-9 1873  ax-10 1888  ax-11 1893  ax-12 1906  ax-13 2054  ax-ext 2401  ax-sep 4544  ax-nul 4553  ax-pow 4600  ax-pr 4658  ax-un 6595  ax-cnex 9597  ax-resscn 9598  ax-1cn 9599  ax-icn 9600  ax-addcl 9601  ax-addrcl 9602  ax-mulcl 9603  ax-mulrcl 9604  ax-i2m1 9609  ax-1ne0 9610  ax-rrecex 9613  ax-cnre 9614
This theorem depends on definitions:  df-bi 189  df-or 372  df-an 373  df-3or 984  df-3an 985  df-tru 1441  df-ex 1661  df-nf 1665  df-sb 1788  df-eu 2270  df-mo 2271  df-clab 2409  df-cleq 2415  df-clel 2418  df-nfc 2573  df-ne 2621  df-ral 2781  df-rex 2782  df-reu 2783  df-rab 2785  df-v 3084  df-sbc 3301  df-csb 3397  df-dif 3440  df-un 3442  df-in 3444  df-ss 3451  df-pss 3453  df-nul 3763  df-if 3911  df-pw 3982  df-sn 3998  df-pr 4000  df-tp 4002  df-op 4004  df-uni 4218  df-iun 4299  df-br 4422  df-opab 4481  df-mpt 4482  df-tr 4517  df-eprel 4762  df-id 4766  df-po 4772  df-so 4773  df-fr 4810  df-we 4812  df-xp 4857  df-rel 4858  df-cnv 4859  df-co 4860  df-dm 4861  df-rn 4862  df-res 4863  df-ima 4864  df-pred 5397  df-ord 5443  df-on 5444  df-lim 5445  df-suc 5446  df-iota 5563  df-fun 5601  df-fn 5602  df-f 5603  df-f1 5604  df-fo 5605  df-f1o 5606  df-fv 5607  df-ov 6306  df-oprab 6307  df-mpt2 6308  df-om 6705  df-1st 6805  df-2nd 6806  df-wrecs 7034  df-recs 7096  df-rdg 7134  df-map 7480  df-ixp 7529  df-sup 7960  df-nn 10612  df-ndx 15117  df-slot 15118  df-base 15119  df-hom 15207  df-prds 15339
This theorem is referenced by:  prdssca  15347  prdsbas  15348  prdsplusg  15349  prdsmulr  15350  prdsvsca  15351  prdsip  15352  prdsle  15353  prdsds  15355  prdstset  15357  prdshom  15358  prdsco  15359
  Copyright terms: Public domain W3C validator