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

Theorem brapply 27968
Description: The binary relationship form of the Apply function. (Contributed by Scott Fenton, 12-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
Hypotheses
Ref Expression
brapply.1  |-  A  e. 
_V
brapply.2  |-  B  e. 
_V
brapply.3  |-  C  e. 
_V
Assertion
Ref Expression
brapply  |-  ( <. A ,  B >.Apply C  <-> 
C  =  ( A `
 B ) )

Proof of Theorem brapply
Dummy variables  a 
b  x  y  z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 snex 4532 . . . 4  |-  { ( A " { B } ) }  e.  _V
21inex1 4432 . . 3  |-  ( { ( A " { B } ) }  i^i  Singletons )  e.  _V
3 unieq 4098 . . . . 5  |-  ( x  =  ( { ( A " { B } ) }  i^i  Singletons )  ->  U. x  =  U. ( { ( A " { B } ) }  i^i  Singletons ) )
43unieqd 4100 . . . 4  |-  ( x  =  ( { ( A " { B } ) }  i^i  Singletons )  ->  U. U. x  = 
U. U. ( { ( A " { B } ) }  i^i  Singletons ) )
54eqeq2d 2453 . . 3  |-  ( x  =  ( { ( A " { B } ) }  i^i  Singletons )  ->  ( C  = 
U. U. x  <->  C  =  U. U. ( { ( A " { B } ) }  i^i  Singletons ) ) )
62, 5ceqsexv 3008 . 2  |-  ( E. x ( x  =  ( { ( A
" { B }
) }  i^i  Singletons )  /\  C  =  U. U. x )  <-> 
C  =  U. U. ( { ( A " { B } ) }  i^i  Singletons ) )
7 df-apply 27902 . . . 4  |- Apply  =  ( ( Bigcup  o.  Bigcup )  o.  ( ( ( _V 
X.  _V )  \  ran  ( ( _V  (x)  _E  )(++) ( (  _E  |` 
Singletons )  (x)  _V )
) )  o.  (
(Singleton  o. Img )  o. pprod (  _I  , Singleton ) ) ) )
87breqi 4297 . . 3  |-  ( <. A ,  B >.Apply C  <->  <. A ,  B >. ( ( Bigcup  o.  Bigcup )  o.  ( ( ( _V 
X.  _V )  \  ran  ( ( _V  (x)  _E  )(++) ( (  _E  |` 
Singletons )  (x)  _V )
) )  o.  (
(Singleton  o. Img )  o. pprod (  _I  , Singleton ) ) ) ) C )
9 opex 4555 . . . 4  |-  <. A ,  B >.  e.  _V
10 brapply.3 . . . 4  |-  C  e. 
_V
119, 10brco 5009 . . 3  |-  ( <. A ,  B >. ( ( Bigcup  o.  Bigcup )  o.  ( ( ( _V 
X.  _V )  \  ran  ( ( _V  (x)  _E  )(++) ( (  _E  |` 
Singletons )  (x)  _V )
) )  o.  (
(Singleton  o. Img )  o. pprod (  _I  , Singleton ) ) ) ) C  <->  E. x
( <. A ,  B >. ( ( ( _V 
X.  _V )  \  ran  ( ( _V  (x)  _E  )(++) ( (  _E  |` 
Singletons )  (x)  _V )
) )  o.  (
(Singleton  o. Img )  o. pprod (  _I  , Singleton ) ) ) x  /\  x (
Bigcup  o.  Bigcup ) C ) )
12 vex 2974 . . . . . . 7  |-  x  e. 
_V
139, 12brco 5009 . . . . . 6  |-  ( <. A ,  B >. ( ( ( _V  X.  _V )  \  ran  (
( _V  (x)  _E  )(++) ( (  _E  |`  Singletons )  (x)  _V ) ) )  o.  ( (Singleton  o. Img )  o. pprod (  _I  , Singleton ) ) ) x  <->  E. y
( <. A ,  B >. ( (Singleton  o. Img )  o. pprod (  _I  , Singleton ) ) y  /\  y ( ( _V  X.  _V )  \  ran  ( ( _V  (x)  _E  )(++) ( (  _E  |`  Singletons )  (x)  _V ) ) ) x ) )
14 vex 2974 . . . . . . . . . 10  |-  y  e. 
_V
159, 14brco 5009 . . . . . . . . 9  |-  ( <. A ,  B >. ( (Singleton  o. Img )  o. pprod (  _I  , Singleton ) ) y  <->  E. z ( <. A ,  B >.pprod (  _I  , Singleton ) z  /\  z (Singleton  o. Img ) y ) )
16 brapply.1 . . . . . . . . . . . . 13  |-  A  e. 
_V
17 brapply.2 . . . . . . . . . . . . 13  |-  B  e. 
_V
18 vex 2974 . . . . . . . . . . . . 13  |-  z  e. 
_V
1916, 17, 18brpprod3a 27916 . . . . . . . . . . . 12  |-  ( <. A ,  B >.pprod (  _I  , Singleton ) z  <->  E. a E. b ( z  = 
<. a ,  b >.  /\  A  _I  a  /\  BSingleton b ) )
20 3anrot 970 . . . . . . . . . . . . . 14  |-  ( ( z  =  <. a ,  b >.  /\  A  _I  a  /\  BSingleton b
)  <->  ( A  _I  a  /\  BSingleton b  /\  z  =  <. a ,  b
>. ) )
21 vex 2974 . . . . . . . . . . . . . . . . 17  |-  a  e. 
_V
2221ideq 4991 . . . . . . . . . . . . . . . 16  |-  ( A  _I  a  <->  A  =  a )
23 eqcom 2444 . . . . . . . . . . . . . . . 16  |-  ( A  =  a  <->  a  =  A )
2422, 23bitri 249 . . . . . . . . . . . . . . 15  |-  ( A  _I  a  <->  a  =  A )
25 vex 2974 . . . . . . . . . . . . . . . 16  |-  b  e. 
_V
2617, 25brsingle 27947 . . . . . . . . . . . . . . 15  |-  ( BSingleton
b  <->  b  =  { B } )
27 biid 236 . . . . . . . . . . . . . . 15  |-  ( z  =  <. a ,  b
>. 
<->  z  =  <. a ,  b >. )
2824, 26, 273anbi123i 1176 . . . . . . . . . . . . . 14  |-  ( ( A  _I  a  /\  BSingleton b  /\  z  = 
<. a ,  b >.
)  <->  ( a  =  A  /\  b  =  { B }  /\  z  =  <. a ,  b >. ) )
2920, 28bitri 249 . . . . . . . . . . . . 13  |-  ( ( z  =  <. a ,  b >.  /\  A  _I  a  /\  BSingleton b
)  <->  ( a  =  A  /\  b  =  { B }  /\  z  =  <. a ,  b >. ) )
30292exbii 1635 . . . . . . . . . . . 12  |-  ( E. a E. b ( z  =  <. a ,  b >.  /\  A  _I  a  /\  BSingleton b
)  <->  E. a E. b
( a  =  A  /\  b  =  { B }  /\  z  =  <. a ,  b
>. ) )
31 snex 4532 . . . . . . . . . . . . 13  |-  { B }  e.  _V
32 opeq1 4058 . . . . . . . . . . . . . 14  |-  ( a  =  A  ->  <. a ,  b >.  =  <. A ,  b >. )
3332eqeq2d 2453 . . . . . . . . . . . . 13  |-  ( a  =  A  ->  (
z  =  <. a ,  b >.  <->  z  =  <. A ,  b >.
) )
34 opeq2 4059 . . . . . . . . . . . . . 14  |-  ( b  =  { B }  -> 
<. A ,  b >.  =  <. A ,  { B } >. )
3534eqeq2d 2453 . . . . . . . . . . . . 13  |-  ( b  =  { B }  ->  ( z  =  <. A ,  b >.  <->  z  =  <. A ,  { B } >. ) )
3616, 31, 33, 35ceqsex2v 3010 . . . . . . . . . . . 12  |-  ( E. a E. b ( a  =  A  /\  b  =  { B }  /\  z  =  <. a ,  b >. )  <->  z  =  <. A ,  { B } >. )
3719, 30, 363bitri 271 . . . . . . . . . . 11  |-  ( <. A ,  B >.pprod (  _I  , Singleton ) z  <->  z  =  <. A ,  { B } >. )
3837anbi1i 695 . . . . . . . . . 10  |-  ( (
<. A ,  B >.pprod (  _I  , Singleton ) z  /\  z (Singleton  o. Img ) y
)  <->  ( z  = 
<. A ,  { B } >.  /\  z (Singleton  o. Img ) y ) )
3938exbii 1634 . . . . . . . . 9  |-  ( E. z ( <. A ,  B >.pprod (  _I  , Singleton ) z  /\  z (Singleton  o. Img ) y )  <->  E. z
( z  =  <. A ,  { B } >.  /\  z (Singleton  o. Img ) y ) )
40 opex 4555 . . . . . . . . . . 11  |-  <. A ,  { B } >.  e.  _V
41 breq1 4294 . . . . . . . . . . 11  |-  ( z  =  <. A ,  { B } >.  ->  ( z (Singleton  o. Img ) y  <->  <. A ,  { B } >. (Singleton  o. Img ) y ) )
4240, 41ceqsexv 3008 . . . . . . . . . 10  |-  ( E. z ( z  = 
<. A ,  { B } >.  /\  z (Singleton  o. Img ) y )  <->  <. A ,  { B } >. (Singleton  o. Img ) y )
4340, 14brco 5009 . . . . . . . . . 10  |-  ( <. A ,  { B } >. (Singleton  o. Img ) y  <->  E. x ( <. A ,  { B } >.Img x  /\  xSingleton y ) )
4416, 31, 12brimg 27967 . . . . . . . . . . . . 13  |-  ( <. A ,  { B } >.Img x  <->  x  =  ( A " { B } ) )
4512, 14brsingle 27947 . . . . . . . . . . . . 13  |-  ( xSingleton
y  <->  y  =  {
x } )
4644, 45anbi12i 697 . . . . . . . . . . . 12  |-  ( (
<. A ,  { B } >.Img x  /\  xSingleton y )  <->  ( x  =  ( A " { B } )  /\  y  =  { x } ) )
4746exbii 1634 . . . . . . . . . . 11  |-  ( E. x ( <. A ,  { B } >.Img x  /\  xSingleton y )  <->  E. x
( x  =  ( A " { B } )  /\  y  =  { x } ) )
48 imaexg 6514 . . . . . . . . . . . . 13  |-  ( A  e.  _V  ->  ( A " { B }
)  e.  _V )
4916, 48ax-mp 5 . . . . . . . . . . . 12  |-  ( A
" { B }
)  e.  _V
50 sneq 3886 . . . . . . . . . . . . 13  |-  ( x  =  ( A " { B } )  ->  { x }  =  { ( A " { B } ) } )
5150eqeq2d 2453 . . . . . . . . . . . 12  |-  ( x  =  ( A " { B } )  -> 
( y  =  {
x }  <->  y  =  { ( A " { B } ) } ) )
5249, 51ceqsexv 3008 . . . . . . . . . . 11  |-  ( E. x ( x  =  ( A " { B } )  /\  y  =  { x } )  <-> 
y  =  { ( A " { B } ) } )
5347, 52bitri 249 . . . . . . . . . 10  |-  ( E. x ( <. A ,  { B } >.Img x  /\  xSingleton y )  <->  y  =  { ( A " { B } ) } )
5442, 43, 533bitri 271 . . . . . . . . 9  |-  ( E. z ( z  = 
<. A ,  { B } >.  /\  z (Singleton  o. Img ) y )  <->  y  =  { ( A " { B } ) } )
5515, 39, 543bitri 271 . . . . . . . 8  |-  ( <. A ,  B >. ( (Singleton  o. Img )  o. pprod (  _I  , Singleton ) ) y  <-> 
y  =  { ( A " { B } ) } )
56 eqid 2442 . . . . . . . . 9  |-  ( ( _V  X.  _V )  \  ran  ( ( _V 
(x)  _E  )(++) (
(  _E  |`  Singletons )  (x)  _V ) ) )  =  ( ( _V  X.  _V )  \  ran  (
( _V  (x)  _E  )(++) ( (  _E  |`  Singletons )  (x)  _V ) ) )
57 brxp 4869 . . . . . . . . . 10  |-  ( y ( _V  X.  _V ) x  <->  ( y  e. 
_V  /\  x  e.  _V ) )
5814, 12, 57mpbir2an 911 . . . . . . . . 9  |-  y ( _V  X.  _V )
x
59 epel 4634 . . . . . . . . . . 11  |-  ( z  _E  y  <->  z  e.  y )
6059anbi1i 695 . . . . . . . . . 10  |-  ( ( z  _E  y  /\  z  e.  Singletons )  <->  ( z  e.  y  /\  z  e. 
Singletons ) )
6114brres 5116 . . . . . . . . . 10  |-  ( z (  _E  |`  Singletons ) y  <->  ( z  _E  y  /\  z  e. 
Singletons ) )
62 elin 3538 . . . . . . . . . 10  |-  ( z  e.  ( y  i^i  Singletons
)  <->  ( z  e.  y  /\  z  e.  Singletons
) )
6360, 61, 623bitr4ri 278 . . . . . . . . 9  |-  ( z  e.  ( y  i^i  Singletons
)  <->  z (  _E  |` 
Singletons ) y )
6414, 12, 56, 58, 63brtxpsd3 27926 . . . . . . . 8  |-  ( y ( ( _V  X.  _V )  \  ran  (
( _V  (x)  _E  )(++) ( (  _E  |`  Singletons )  (x)  _V ) ) ) x  <-> 
x  =  ( y  i^i  Singletons ) )
6555, 64anbi12i 697 . . . . . . 7  |-  ( (
<. A ,  B >. ( (Singleton  o. Img )  o. pprod (  _I  , Singleton ) ) y  /\  y ( ( _V  X.  _V )  \  ran  ( ( _V 
(x)  _E  )(++) (
(  _E  |`  Singletons )  (x)  _V ) ) ) x )  <->  ( y  =  { ( A " { B } ) }  /\  x  =  ( y  i^i  Singletons ) ) )
6665exbii 1634 . . . . . 6  |-  ( E. y ( <. A ,  B >. ( (Singleton  o. Img )  o. pprod (  _I  , Singleton ) ) y  /\  y
( ( _V  X.  _V )  \  ran  (
( _V  (x)  _E  )(++) ( (  _E  |`  Singletons )  (x)  _V ) ) ) x )  <->  E. y ( y  =  { ( A
" { B }
) }  /\  x  =  ( y  i^i  Singletons
) ) )
67 ineq1 3544 . . . . . . . 8  |-  ( y  =  { ( A
" { B }
) }  ->  (
y  i^i  Singletons )  =  ( { ( A " { B } ) }  i^i  Singletons ) )
6867eqeq2d 2453 . . . . . . 7  |-  ( y  =  { ( A
" { B }
) }  ->  (
x  =  ( y  i^i  Singletons )  <->  x  =  ( { ( A " { B } ) }  i^i  Singletons ) ) )
691, 68ceqsexv 3008 . . . . . 6  |-  ( E. y ( y  =  { ( A " { B } ) }  /\  x  =  ( y  i^i  Singletons ) )  <->  x  =  ( { ( A " { B } ) }  i^i  Singletons ) )
7013, 66, 693bitri 271 . . . . 5  |-  ( <. A ,  B >. ( ( ( _V  X.  _V )  \  ran  (
( _V  (x)  _E  )(++) ( (  _E  |`  Singletons )  (x)  _V ) ) )  o.  ( (Singleton  o. Img )  o. pprod (  _I  , Singleton ) ) ) x  <->  x  =  ( { ( A " { B } ) }  i^i  Singletons ) )
7112, 10brco 5009 . . . . . 6  |-  ( x ( Bigcup  o.  Bigcup ) C  <->  E. y ( x Bigcup y  /\  y Bigcup C ) )
7214brbigcup 27928 . . . . . . . . 9  |-  ( x
Bigcup y  <->  U. x  =  y )
73 eqcom 2444 . . . . . . . . 9  |-  ( U. x  =  y  <->  y  =  U. x )
7472, 73bitri 249 . . . . . . . 8  |-  ( x
Bigcup y  <->  y  =  U. x )
7510brbigcup 27928 . . . . . . . . 9  |-  ( y
Bigcup C  <->  U. y  =  C )
76 eqcom 2444 . . . . . . . . 9  |-  ( U. y  =  C  <->  C  =  U. y )
7775, 76bitri 249 . . . . . . . 8  |-  ( y
Bigcup C  <->  C  =  U. y )
7874, 77anbi12i 697 . . . . . . 7  |-  ( ( x Bigcup y  /\  y Bigcup C )  <->  ( y  =  U. x  /\  C  =  U. y ) )
7978exbii 1634 . . . . . 6  |-  ( E. y ( x Bigcup y  /\  y Bigcup C )  <->  E. y ( y  = 
U. x  /\  C  =  U. y ) )
8012uniex 6375 . . . . . . 7  |-  U. x  e.  _V
81 unieq 4098 . . . . . . . 8  |-  ( y  =  U. x  ->  U. y  =  U. U. x )
8281eqeq2d 2453 . . . . . . 7  |-  ( y  =  U. x  -> 
( C  =  U. y 
<->  C  =  U. U. x ) )
8380, 82ceqsexv 3008 . . . . . 6  |-  ( E. y ( y  = 
U. x  /\  C  =  U. y )  <->  C  =  U. U. x )
8471, 79, 833bitri 271 . . . . 5  |-  ( x ( Bigcup  o.  Bigcup ) C  <-> 
C  =  U. U. x )
8570, 84anbi12i 697 . . . 4  |-  ( (
<. A ,  B >. ( ( ( _V  X.  _V )  \  ran  (
( _V  (x)  _E  )(++) ( (  _E  |`  Singletons )  (x)  _V ) ) )  o.  ( (Singleton  o. Img )  o. pprod (  _I  , Singleton ) ) ) x  /\  x
( Bigcup  o.  Bigcup ) C )  <->  ( x  =  ( { ( A
" { B }
) }  i^i  Singletons )  /\  C  =  U. U. x ) )
8685exbii 1634 . . 3  |-  ( E. x ( <. A ,  B >. ( ( ( _V  X.  _V )  \  ran  ( ( _V 
(x)  _E  )(++) (
(  _E  |`  Singletons )  (x)  _V ) ) )  o.  ( (Singleton  o. Img )  o. pprod (  _I  , Singleton ) ) ) x  /\  x
( Bigcup  o.  Bigcup ) C )  <->  E. x ( x  =  ( { ( A " { B } ) }  i^i  Singletons )  /\  C  =  U. U. x ) )
878, 11, 863bitri 271 . 2  |-  ( <. A ,  B >.Apply C  <->  E. x ( x  =  ( { ( A
" { B }
) }  i^i  Singletons )  /\  C  =  U. U. x ) )
88 dffv5 27954 . . 3  |-  ( A `
 B )  = 
U. U. ( { ( A " { B } ) }  i^i  Singletons )
8988eqeq2i 2452 . 2  |-  ( C  =  ( A `  B )  <->  C  =  U. U. ( { ( A " { B } ) }  i^i  Singletons ) )
906, 87, 893bitr4i 277 1  |-  ( <. A ,  B >.Apply C  <-> 
C  =  ( A `
 B ) )
Colors of variables: wff setvar class
Syntax hints:    <-> wb 184    /\ wa 369    /\ w3a 965    = wceq 1369   E.wex 1586    e. wcel 1756   _Vcvv 2971    \ cdif 3324    i^i cin 3326   {csn 3876   <.cop 3882   U.cuni 4090   class class class wbr 4291    _E cep 4629    _I cid 4630    X. cxp 4837   ran crn 4840    |` cres 4841   "cima 4842    o. ccom 4843   ` cfv 5417  (++)csymdif 27847    (x) ctxp 27859  pprodcpprod 27860   Bigcupcbigcup 27863  Singletoncsingle 27867   Singletonscsingles 27868  Imgcimg 27871  Applycapply 27874
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1591  ax-4 1602  ax-5 1670  ax-6 1708  ax-7 1728  ax-8 1758  ax-9 1760  ax-10 1775  ax-11 1780  ax-12 1792  ax-13 1943  ax-ext 2423  ax-sep 4412  ax-nul 4420  ax-pow 4469  ax-pr 4530  ax-un 6371
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3an 967  df-tru 1372  df-ex 1587  df-nf 1590  df-sb 1701  df-eu 2257  df-mo 2258  df-clab 2429  df-cleq 2435  df-clel 2438  df-nfc 2567  df-ne 2607  df-ral 2719  df-rex 2720  df-rab 2723  df-v 2973  df-sbc 3186  df-dif 3330  df-un 3332  df-in 3334  df-ss 3341  df-nul 3637  df-if 3791  df-pw 3861  df-sn 3877  df-pr 3879  df-op 3883  df-uni 4091  df-br 4292  df-opab 4350  df-mpt 4351  df-eprel 4631  df-id 4635  df-xp 4845  df-rel 4846  df-cnv 4847  df-co 4848  df-dm 4849  df-rn 4850  df-res 4851  df-ima 4852  df-iota 5380  df-fun 5419  df-fn 5420  df-f 5421  df-fo 5423  df-fv 5425  df-1st 6576  df-2nd 6577  df-symdif 27848  df-txp 27883  df-pprod 27884  df-bigcup 27887  df-singleton 27891  df-singles 27892  df-image 27893  df-cart 27894  df-img 27895  df-apply 27902
This theorem is referenced by:  dfrdg4  27980  tfrqfree  27981
  Copyright terms: Public domain W3C validator