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

Theorem xpcomco 7506
Description: Composition with the bijection of xpcomf1o 7505 swaps the arguments to a mapping. (Contributed by Mario Carneiro, 30-May-2015.)
Hypotheses
Ref Expression
xpcomf1o.1  |-  F  =  ( x  e.  ( A  X.  B ) 
|->  U. `' { x } )
xpcomco.1  |-  G  =  ( y  e.  B ,  z  e.  A  |->  C )
Assertion
Ref Expression
xpcomco  |-  ( G  o.  F )  =  ( z  e.  A ,  y  e.  B  |->  C )
Distinct variable groups:    x, y,
z, A    x, B, y, z    y, F, z
Allowed substitution hints:    C( x, y, z)    F( x)    G( x, y, z)

Proof of Theorem xpcomco
Dummy variables  v  u  w are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 xpcomf1o.1 . . . . . . . . . 10  |-  F  =  ( x  e.  ( A  X.  B ) 
|->  U. `' { x } )
21xpcomf1o 7505 . . . . . . . . 9  |-  F :
( A  X.  B
)
-1-1-onto-> ( B  X.  A
)
3 f1ofun 5746 . . . . . . . . 9  |-  ( F : ( A  X.  B ) -1-1-onto-> ( B  X.  A
)  ->  Fun  F )
4 funbrfv2b 5840 . . . . . . . . 9  |-  ( Fun 
F  ->  ( u F w  <->  ( u  e. 
dom  F  /\  ( F `  u )  =  w ) ) )
52, 3, 4mp2b 10 . . . . . . . 8  |-  ( u F w  <->  ( u  e.  dom  F  /\  ( F `  u )  =  w ) )
6 ancom 450 . . . . . . . 8  |-  ( ( u  e.  dom  F  /\  ( F `  u
)  =  w )  <-> 
( ( F `  u )  =  w  /\  u  e.  dom  F ) )
7 eqcom 2461 . . . . . . . . 9  |-  ( ( F `  u )  =  w  <->  w  =  ( F `  u ) )
8 f1odm 5748 . . . . . . . . . . 11  |-  ( F : ( A  X.  B ) -1-1-onto-> ( B  X.  A
)  ->  dom  F  =  ( A  X.  B
) )
92, 8ax-mp 5 . . . . . . . . . 10  |-  dom  F  =  ( A  X.  B )
109eleq2i 2530 . . . . . . . . 9  |-  ( u  e.  dom  F  <->  u  e.  ( A  X.  B
) )
117, 10anbi12i 697 . . . . . . . 8  |-  ( ( ( F `  u
)  =  w  /\  u  e.  dom  F )  <-> 
( w  =  ( F `  u )  /\  u  e.  ( A  X.  B ) ) )
125, 6, 113bitri 271 . . . . . . 7  |-  ( u F w  <->  ( w  =  ( F `  u )  /\  u  e.  ( A  X.  B
) ) )
1312anbi1i 695 . . . . . 6  |-  ( ( u F w  /\  w G v )  <->  ( (
w  =  ( F `
 u )  /\  u  e.  ( A  X.  B ) )  /\  w G v ) )
14 anass 649 . . . . . 6  |-  ( ( ( w  =  ( F `  u )  /\  u  e.  ( A  X.  B ) )  /\  w G v )  <->  ( w  =  ( F `  u )  /\  (
u  e.  ( A  X.  B )  /\  w G v ) ) )
1513, 14bitri 249 . . . . 5  |-  ( ( u F w  /\  w G v )  <->  ( w  =  ( F `  u )  /\  (
u  e.  ( A  X.  B )  /\  w G v ) ) )
1615exbii 1635 . . . 4  |-  ( E. w ( u F w  /\  w G v )  <->  E. w
( w  =  ( F `  u )  /\  ( u  e.  ( A  X.  B
)  /\  w G
v ) ) )
17 fvex 5804 . . . . 5  |-  ( F `
 u )  e. 
_V
18 breq1 4398 . . . . . 6  |-  ( w  =  ( F `  u )  ->  (
w G v  <->  ( F `  u ) G v ) )
1918anbi2d 703 . . . . 5  |-  ( w  =  ( F `  u )  ->  (
( u  e.  ( A  X.  B )  /\  w G v )  <->  ( u  e.  ( A  X.  B
)  /\  ( F `  u ) G v ) ) )
2017, 19ceqsexv 3109 . . . 4  |-  ( E. w ( w  =  ( F `  u
)  /\  ( u  e.  ( A  X.  B
)  /\  w G
v ) )  <->  ( u  e.  ( A  X.  B
)  /\  ( F `  u ) G v ) )
21 elxp 4960 . . . . . 6  |-  ( u  e.  ( A  X.  B )  <->  E. z E. y ( u  = 
<. z ,  y >.  /\  ( z  e.  A  /\  y  e.  B
) ) )
2221anbi1i 695 . . . . 5  |-  ( ( u  e.  ( A  X.  B )  /\  ( F `  u ) G v )  <->  ( E. z E. y ( u  =  <. z ,  y
>.  /\  ( z  e.  A  /\  y  e.  B ) )  /\  ( F `  u ) G v ) )
23 nfcv 2614 . . . . . . 7  |-  F/_ z
( F `  u
)
24 xpcomco.1 . . . . . . . 8  |-  G  =  ( y  e.  B ,  z  e.  A  |->  C )
25 nfmpt22 6258 . . . . . . . 8  |-  F/_ z
( y  e.  B ,  z  e.  A  |->  C )
2624, 25nfcxfr 2612 . . . . . . 7  |-  F/_ z G
27 nfcv 2614 . . . . . . 7  |-  F/_ z
v
2823, 26, 27nfbr 4439 . . . . . 6  |-  F/ z ( F `  u
) G v
292819.41 1910 . . . . 5  |-  ( E. z ( E. y
( u  =  <. z ,  y >.  /\  (
z  e.  A  /\  y  e.  B )
)  /\  ( F `  u ) G v )  <->  ( E. z E. y ( u  = 
<. z ,  y >.  /\  ( z  e.  A  /\  y  e.  B
) )  /\  ( F `  u ) G v ) )
30 nfcv 2614 . . . . . . . . 9  |-  F/_ y
( F `  u
)
31 nfmpt21 6257 . . . . . . . . . 10  |-  F/_ y
( y  e.  B ,  z  e.  A  |->  C )
3224, 31nfcxfr 2612 . . . . . . . . 9  |-  F/_ y G
33 nfcv 2614 . . . . . . . . 9  |-  F/_ y
v
3430, 32, 33nfbr 4439 . . . . . . . 8  |-  F/ y ( F `  u
) G v
353419.41 1910 . . . . . . 7  |-  ( E. y ( ( u  =  <. z ,  y
>.  /\  ( z  e.  A  /\  y  e.  B ) )  /\  ( F `  u ) G v )  <->  ( E. y ( u  = 
<. z ,  y >.  /\  ( z  e.  A  /\  y  e.  B
) )  /\  ( F `  u ) G v ) )
36 anass 649 . . . . . . . . 9  |-  ( ( ( u  =  <. z ,  y >.  /\  (
z  e.  A  /\  y  e.  B )
)  /\  ( F `  u ) G v )  <->  ( u  = 
<. z ,  y >.  /\  ( ( z  e.  A  /\  y  e.  B )  /\  ( F `  u ) G v ) ) )
37 fveq2 5794 . . . . . . . . . . . . . 14  |-  ( u  =  <. z ,  y
>.  ->  ( F `  u )  =  ( F `  <. z ,  y >. )
)
38 opelxpi 4974 . . . . . . . . . . . . . . 15  |-  ( ( z  e.  A  /\  y  e.  B )  -> 
<. z ,  y >.  e.  ( A  X.  B
) )
39 sneq 3990 . . . . . . . . . . . . . . . . . . 19  |-  ( x  =  <. z ,  y
>.  ->  { x }  =  { <. z ,  y
>. } )
4039cnveqd 5118 . . . . . . . . . . . . . . . . . 18  |-  ( x  =  <. z ,  y
>.  ->  `' { x }  =  `' { <. z ,  y >. } )
4140unieqd 4204 . . . . . . . . . . . . . . . . 17  |-  ( x  =  <. z ,  y
>.  ->  U. `' { x }  =  U. `' { <. z ,  y >. } )
42 opswap 5429 . . . . . . . . . . . . . . . . 17  |-  U. `' { <. z ,  y
>. }  =  <. y ,  z >.
4341, 42syl6eq 2509 . . . . . . . . . . . . . . . 16  |-  ( x  =  <. z ,  y
>.  ->  U. `' { x }  =  <. y ,  z >. )
44 opex 4659 . . . . . . . . . . . . . . . 16  |-  <. y ,  z >.  e.  _V
4543, 1, 44fvmpt 5878 . . . . . . . . . . . . . . 15  |-  ( <.
z ,  y >.  e.  ( A  X.  B
)  ->  ( F `  <. z ,  y
>. )  =  <. y ,  z >. )
4638, 45syl 16 . . . . . . . . . . . . . 14  |-  ( ( z  e.  A  /\  y  e.  B )  ->  ( F `  <. z ,  y >. )  =  <. y ,  z
>. )
4737, 46sylan9eq 2513 . . . . . . . . . . . . 13  |-  ( ( u  =  <. z ,  y >.  /\  (
z  e.  A  /\  y  e.  B )
)  ->  ( F `  u )  =  <. y ,  z >. )
4847breq1d 4405 . . . . . . . . . . . 12  |-  ( ( u  =  <. z ,  y >.  /\  (
z  e.  A  /\  y  e.  B )
)  ->  ( ( F `  u ) G v  <->  <. y ,  z >. G v ) )
49 df-br 4396 . . . . . . . . . . . . . . . 16  |-  ( <.
y ,  z >. G v  <->  <. <. y ,  z >. ,  v
>.  e.  G )
50 df-mpt2 6200 . . . . . . . . . . . . . . . . . 18  |-  ( y  e.  B ,  z  e.  A  |->  C )  =  { <. <. y ,  z >. ,  v
>.  |  ( (
y  e.  B  /\  z  e.  A )  /\  v  =  C
) }
5124, 50eqtri 2481 . . . . . . . . . . . . . . . . 17  |-  G  =  { <. <. y ,  z
>. ,  v >.  |  ( ( y  e.  B  /\  z  e.  A )  /\  v  =  C ) }
5251eleq2i 2530 . . . . . . . . . . . . . . . 16  |-  ( <. <. y ,  z >. ,  v >.  e.  G  <->  <. <. y ,  z >. ,  v >.  e.  { <. <. y ,  z
>. ,  v >.  |  ( ( y  e.  B  /\  z  e.  A )  /\  v  =  C ) } )
53 oprabid 6219 . . . . . . . . . . . . . . . 16  |-  ( <. <. y ,  z >. ,  v >.  e.  { <. <. y ,  z
>. ,  v >.  |  ( ( y  e.  B  /\  z  e.  A )  /\  v  =  C ) }  <->  ( (
y  e.  B  /\  z  e.  A )  /\  v  =  C
) )
5449, 52, 533bitri 271 . . . . . . . . . . . . . . 15  |-  ( <.
y ,  z >. G v  <->  ( (
y  e.  B  /\  z  e.  A )  /\  v  =  C
) )
5554baib 896 . . . . . . . . . . . . . 14  |-  ( ( y  e.  B  /\  z  e.  A )  ->  ( <. y ,  z
>. G v  <->  v  =  C ) )
5655ancoms 453 . . . . . . . . . . . . 13  |-  ( ( z  e.  A  /\  y  e.  B )  ->  ( <. y ,  z
>. G v  <->  v  =  C ) )
5756adantl 466 . . . . . . . . . . . 12  |-  ( ( u  =  <. z ,  y >.  /\  (
z  e.  A  /\  y  e.  B )
)  ->  ( <. y ,  z >. G v  <-> 
v  =  C ) )
5848, 57bitrd 253 . . . . . . . . . . 11  |-  ( ( u  =  <. z ,  y >.  /\  (
z  e.  A  /\  y  e.  B )
)  ->  ( ( F `  u ) G v  <->  v  =  C ) )
5958pm5.32da 641 . . . . . . . . . 10  |-  ( u  =  <. z ,  y
>.  ->  ( ( ( z  e.  A  /\  y  e.  B )  /\  ( F `  u
) G v )  <-> 
( ( z  e.  A  /\  y  e.  B )  /\  v  =  C ) ) )
6059pm5.32i 637 . . . . . . . . 9  |-  ( ( u  =  <. z ,  y >.  /\  (
( z  e.  A  /\  y  e.  B
)  /\  ( F `  u ) G v ) )  <->  ( u  =  <. z ,  y
>.  /\  ( ( z  e.  A  /\  y  e.  B )  /\  v  =  C ) ) )
6136, 60bitri 249 . . . . . . . 8  |-  ( ( ( u  =  <. z ,  y >.  /\  (
z  e.  A  /\  y  e.  B )
)  /\  ( F `  u ) G v )  <->  ( u  = 
<. z ,  y >.  /\  ( ( z  e.  A  /\  y  e.  B )  /\  v  =  C ) ) )
6261exbii 1635 . . . . . . 7  |-  ( E. y ( ( u  =  <. z ,  y
>.  /\  ( z  e.  A  /\  y  e.  B ) )  /\  ( F `  u ) G v )  <->  E. y
( u  =  <. z ,  y >.  /\  (
( z  e.  A  /\  y  e.  B
)  /\  v  =  C ) ) )
6335, 62bitr3i 251 . . . . . 6  |-  ( ( E. y ( u  =  <. z ,  y
>.  /\  ( z  e.  A  /\  y  e.  B ) )  /\  ( F `  u ) G v )  <->  E. y
( u  =  <. z ,  y >.  /\  (
( z  e.  A  /\  y  e.  B
)  /\  v  =  C ) ) )
6463exbii 1635 . . . . 5  |-  ( E. z ( E. y
( u  =  <. z ,  y >.  /\  (
z  e.  A  /\  y  e.  B )
)  /\  ( F `  u ) G v )  <->  E. z E. y
( u  =  <. z ,  y >.  /\  (
( z  e.  A  /\  y  e.  B
)  /\  v  =  C ) ) )
6522, 29, 643bitr2i 273 . . . 4  |-  ( ( u  e.  ( A  X.  B )  /\  ( F `  u ) G v )  <->  E. z E. y ( u  = 
<. z ,  y >.  /\  ( ( z  e.  A  /\  y  e.  B )  /\  v  =  C ) ) )
6616, 20, 653bitri 271 . . 3  |-  ( E. w ( u F w  /\  w G v )  <->  E. z E. y ( u  = 
<. z ,  y >.  /\  ( ( z  e.  A  /\  y  e.  B )  /\  v  =  C ) ) )
6766opabbii 4459 . 2  |-  { <. u ,  v >.  |  E. w ( u F w  /\  w G v ) }  =  { <. u ,  v
>.  |  E. z E. y ( u  = 
<. z ,  y >.  /\  ( ( z  e.  A  /\  y  e.  B )  /\  v  =  C ) ) }
68 df-co 4952 . 2  |-  ( G  o.  F )  =  { <. u ,  v
>.  |  E. w
( u F w  /\  w G v ) }
69 df-mpt2 6200 . . 3  |-  ( z  e.  A ,  y  e.  B  |->  C )  =  { <. <. z ,  y >. ,  v
>.  |  ( (
z  e.  A  /\  y  e.  B )  /\  v  =  C
) }
70 dfoprab2 6237 . . 3  |-  { <. <.
z ,  y >. ,  v >.  |  ( ( z  e.  A  /\  y  e.  B
)  /\  v  =  C ) }  =  { <. u ,  v
>.  |  E. z E. y ( u  = 
<. z ,  y >.  /\  ( ( z  e.  A  /\  y  e.  B )  /\  v  =  C ) ) }
7169, 70eqtri 2481 . 2  |-  ( z  e.  A ,  y  e.  B  |->  C )  =  { <. u ,  v >.  |  E. z E. y ( u  =  <. z ,  y
>.  /\  ( ( z  e.  A  /\  y  e.  B )  /\  v  =  C ) ) }
7267, 68, 713eqtr4i 2491 1  |-  ( G  o.  F )  =  ( z  e.  A ,  y  e.  B  |->  C )
Colors of variables: wff setvar class
Syntax hints:    <-> wb 184    /\ wa 369    = wceq 1370   E.wex 1587    e. wcel 1758   {csn 3980   <.cop 3986   U.cuni 4194   class class class wbr 4395   {copab 4452    |-> cmpt 4453    X. cxp 4941   `'ccnv 4942   dom cdm 4943    o. ccom 4947   Fun wfun 5515   -1-1-onto->wf1o 5520   ` cfv 5521   {coprab 6196    |-> cmpt2 6197
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1592  ax-4 1603  ax-5 1671  ax-6 1710  ax-7 1730  ax-8 1760  ax-9 1762  ax-10 1777  ax-11 1782  ax-12 1794  ax-13 1954  ax-ext 2431  ax-sep 4516  ax-nul 4524  ax-pow 4573  ax-pr 4634  ax-un 6477
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3an 967  df-tru 1373  df-ex 1588  df-nf 1591  df-sb 1703  df-eu 2265  df-mo 2266  df-clab 2438  df-cleq 2444  df-clel 2447  df-nfc 2602  df-ne 2647  df-ral 2801  df-rex 2802  df-rab 2805  df-v 3074  df-sbc 3289  df-dif 3434  df-un 3436  df-in 3438  df-ss 3445  df-nul 3741  df-if 3895  df-pw 3965  df-sn 3981  df-pr 3983  df-op 3987  df-uni 4195  df-br 4396  df-opab 4454  df-mpt 4455  df-id 4739  df-xp 4949  df-rel 4950  df-cnv 4951  df-co 4952  df-dm 4953  df-rn 4954  df-iota 5484  df-fun 5523  df-fn 5524  df-f 5525  df-f1 5526  df-fo 5527  df-f1o 5528  df-fv 5529  df-oprab 6199  df-mpt2 6200  df-1st 6682  df-2nd 6683
This theorem is referenced by:  omf1o  7519
  Copyright terms: Public domain W3C validator