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

Theorem domssex2 7037
Description: A corollary of disjenex 7035. If  F is an injection from  A to  B then there is a right inverse  g of  F from  B to a superset of  A. (Contributed by Mario Carneiro, 7-Feb-2015.) (Revised by Mario Carneiro, 24-Jun-2015.)
Assertion
Ref Expression
domssex2  |-  ( ( F : A -1-1-> B  /\  A  e.  V  /\  B  e.  W
)  ->  E. g
( g : B -1-1-> _V 
/\  ( g  o.  F )  =  (  _I  |`  A )
) )
Distinct variable groups:    A, g    B, g    g, F
Allowed substitution hints:    V( g)    W( g)

Proof of Theorem domssex2
StepHypRef Expression
1 f1f 5453 . . . . 5  |-  ( F : A -1-1-> B  ->  F : A --> B )
2 fex2 5417 . . . . 5  |-  ( ( F : A --> B  /\  A  e.  V  /\  B  e.  W )  ->  F  e.  _V )
31, 2syl3an1 1215 . . . 4  |-  ( ( F : A -1-1-> B  /\  A  e.  V  /\  B  e.  W
)  ->  F  e.  _V )
4 f1stres 6157 . . . . . 6  |-  ( 1st  |`  ( ( B  \  ran  F )  X.  { ~P U. ran  A }
) ) : ( ( B  \  ran  F )  X.  { ~P U.
ran  A } ) --> ( B  \  ran  F )
54a1i 10 . . . . 5  |-  ( ( F : A -1-1-> B  /\  A  e.  V  /\  B  e.  W
)  ->  ( 1st  |`  ( ( B  \  ran  F )  X.  { ~P U. ran  A }
) ) : ( ( B  \  ran  F )  X.  { ~P U.
ran  A } ) --> ( B  \  ran  F ) )
6 difexg 4178 . . . . . . 7  |-  ( B  e.  W  ->  ( B  \  ran  F )  e.  _V )
763ad2ant3 978 . . . . . 6  |-  ( ( F : A -1-1-> B  /\  A  e.  V  /\  B  e.  W
)  ->  ( B  \  ran  F )  e. 
_V )
8 snex 4232 . . . . . 6  |-  { ~P U.
ran  A }  e.  _V
9 xpexg 4816 . . . . . 6  |-  ( ( ( B  \  ran  F )  e.  _V  /\  { ~P U. ran  A }  e.  _V )  ->  ( ( B  \  ran  F )  X.  { ~P U. ran  A }
)  e.  _V )
107, 8, 9sylancl 643 . . . . 5  |-  ( ( F : A -1-1-> B  /\  A  e.  V  /\  B  e.  W
)  ->  ( ( B  \  ran  F )  X.  { ~P U. ran  A } )  e. 
_V )
11 fex2 5417 . . . . 5  |-  ( ( ( 1st  |`  (
( B  \  ran  F )  X.  { ~P U.
ran  A } ) ) : ( ( B  \  ran  F
)  X.  { ~P U.
ran  A } ) --> ( B  \  ran  F )  /\  ( ( B  \  ran  F
)  X.  { ~P U.
ran  A } )  e.  _V  /\  ( B  \  ran  F )  e.  _V )  -> 
( 1st  |`  ( ( B  \  ran  F
)  X.  { ~P U.
ran  A } ) )  e.  _V )
125, 10, 7, 11syl3anc 1182 . . . 4  |-  ( ( F : A -1-1-> B  /\  A  e.  V  /\  B  e.  W
)  ->  ( 1st  |`  ( ( B  \  ran  F )  X.  { ~P U. ran  A }
) )  e.  _V )
13 unexg 4537 . . . 4  |-  ( ( F  e.  _V  /\  ( 1st  |`  ( ( B  \  ran  F )  X.  { ~P U. ran  A } ) )  e.  _V )  -> 
( F  u.  ( 1st  |`  ( ( B 
\  ran  F )  X.  { ~P U. ran  A } ) ) )  e.  _V )
143, 12, 13syl2anc 642 . . 3  |-  ( ( F : A -1-1-> B  /\  A  e.  V  /\  B  e.  W
)  ->  ( F  u.  ( 1st  |`  (
( B  \  ran  F )  X.  { ~P U.
ran  A } ) ) )  e.  _V )
15 cnvexg 5224 . . 3  |-  ( ( F  u.  ( 1st  |`  ( ( B  \  ran  F )  X.  { ~P U. ran  A }
) ) )  e. 
_V  ->  `' ( F  u.  ( 1st  |`  (
( B  \  ran  F )  X.  { ~P U.
ran  A } ) ) )  e.  _V )
1614, 15syl 15 . 2  |-  ( ( F : A -1-1-> B  /\  A  e.  V  /\  B  e.  W
)  ->  `' ( F  u.  ( 1st  |`  ( ( B  \  ran  F )  X.  { ~P U. ran  A }
) ) )  e. 
_V )
17 eqid 2296 . . . . . . 7  |-  `' ( F  u.  ( 1st  |`  ( ( B  \  ran  F )  X.  { ~P U. ran  A }
) ) )  =  `' ( F  u.  ( 1st  |`  ( ( B  \  ran  F )  X.  { ~P U. ran  A } ) ) )
1817domss2 7036 . . . . . 6  |-  ( ( F : A -1-1-> B  /\  A  e.  V  /\  B  e.  W
)  ->  ( `' ( F  u.  ( 1st  |`  ( ( B 
\  ran  F )  X.  { ~P U. ran  A } ) ) ) : B -1-1-onto-> ran  `' ( F  u.  ( 1st  |`  (
( B  \  ran  F )  X.  { ~P U.
ran  A } ) ) )  /\  A  C_ 
ran  `' ( F  u.  ( 1st  |`  ( ( B  \  ran  F )  X.  { ~P U. ran  A } ) ) )  /\  ( `' ( F  u.  ( 1st  |`  ( ( B 
\  ran  F )  X.  { ~P U. ran  A } ) ) )  o.  F )  =  (  _I  |`  A ) ) )
1918simp1d 967 . . . . 5  |-  ( ( F : A -1-1-> B  /\  A  e.  V  /\  B  e.  W
)  ->  `' ( F  u.  ( 1st  |`  ( ( B  \  ran  F )  X.  { ~P U. ran  A }
) ) ) : B -1-1-onto-> ran  `' ( F  u.  ( 1st  |`  (
( B  \  ran  F )  X.  { ~P U.
ran  A } ) ) ) )
20 f1of1 5487 . . . . 5  |-  ( `' ( F  u.  ( 1st  |`  ( ( B 
\  ran  F )  X.  { ~P U. ran  A } ) ) ) : B -1-1-onto-> ran  `' ( F  u.  ( 1st  |`  (
( B  \  ran  F )  X.  { ~P U.
ran  A } ) ) )  ->  `' ( F  u.  ( 1st  |`  ( ( B 
\  ran  F )  X.  { ~P U. ran  A } ) ) ) : B -1-1-> ran  `' ( F  u.  ( 1st  |`  ( ( B 
\  ran  F )  X.  { ~P U. ran  A } ) ) ) )
2119, 20syl 15 . . . 4  |-  ( ( F : A -1-1-> B  /\  A  e.  V  /\  B  e.  W
)  ->  `' ( F  u.  ( 1st  |`  ( ( B  \  ran  F )  X.  { ~P U. ran  A }
) ) ) : B -1-1-> ran  `' ( F  u.  ( 1st  |`  (
( B  \  ran  F )  X.  { ~P U.
ran  A } ) ) ) )
22 ssv 3211 . . . 4  |-  ran  `' ( F  u.  ( 1st  |`  ( ( B 
\  ran  F )  X.  { ~P U. ran  A } ) ) ) 
C_  _V
23 f1ss 5458 . . . 4  |-  ( ( `' ( F  u.  ( 1st  |`  ( ( B  \  ran  F )  X.  { ~P U. ran  A } ) ) ) : B -1-1-> ran  `' ( F  u.  ( 1st  |`  ( ( B 
\  ran  F )  X.  { ~P U. ran  A } ) ) )  /\  ran  `' ( F  u.  ( 1st  |`  ( ( B  \  ran  F )  X.  { ~P U. ran  A }
) ) )  C_  _V )  ->  `' ( F  u.  ( 1st  |`  ( ( B  \  ran  F )  X.  { ~P U. ran  A }
) ) ) : B -1-1-> _V )
2421, 22, 23sylancl 643 . . 3  |-  ( ( F : A -1-1-> B  /\  A  e.  V  /\  B  e.  W
)  ->  `' ( F  u.  ( 1st  |`  ( ( B  \  ran  F )  X.  { ~P U. ran  A }
) ) ) : B -1-1-> _V )
2518simp3d 969 . . 3  |-  ( ( F : A -1-1-> B  /\  A  e.  V  /\  B  e.  W
)  ->  ( `' ( F  u.  ( 1st  |`  ( ( B 
\  ran  F )  X.  { ~P U. ran  A } ) ) )  o.  F )  =  (  _I  |`  A ) )
2624, 25jca 518 . 2  |-  ( ( F : A -1-1-> B  /\  A  e.  V  /\  B  e.  W
)  ->  ( `' ( F  u.  ( 1st  |`  ( ( B 
\  ran  F )  X.  { ~P U. ran  A } ) ) ) : B -1-1-> _V  /\  ( `' ( F  u.  ( 1st  |`  ( ( B  \  ran  F )  X.  { ~P U. ran  A } ) ) )  o.  F )  =  (  _I  |`  A ) ) )
27 f1eq1 5448 . . . 4  |-  ( g  =  `' ( F  u.  ( 1st  |`  (
( B  \  ran  F )  X.  { ~P U.
ran  A } ) ) )  ->  (
g : B -1-1-> _V  <->  `' ( F  u.  ( 1st  |`  ( ( B 
\  ran  F )  X.  { ~P U. ran  A } ) ) ) : B -1-1-> _V )
)
28 coeq1 4857 . . . . 5  |-  ( g  =  `' ( F  u.  ( 1st  |`  (
( B  \  ran  F )  X.  { ~P U.
ran  A } ) ) )  ->  (
g  o.  F )  =  ( `' ( F  u.  ( 1st  |`  ( ( B  \  ran  F )  X.  { ~P U. ran  A }
) ) )  o.  F ) )
2928eqeq1d 2304 . . . 4  |-  ( g  =  `' ( F  u.  ( 1st  |`  (
( B  \  ran  F )  X.  { ~P U.
ran  A } ) ) )  ->  (
( g  o.  F
)  =  (  _I  |`  A )  <->  ( `' ( F  u.  ( 1st  |`  ( ( B 
\  ran  F )  X.  { ~P U. ran  A } ) ) )  o.  F )  =  (  _I  |`  A ) ) )
3027, 29anbi12d 691 . . 3  |-  ( g  =  `' ( F  u.  ( 1st  |`  (
( B  \  ran  F )  X.  { ~P U.
ran  A } ) ) )  ->  (
( g : B -1-1-> _V 
/\  ( g  o.  F )  =  (  _I  |`  A )
)  <->  ( `' ( F  u.  ( 1st  |`  ( ( B  \  ran  F )  X.  { ~P U. ran  A }
) ) ) : B -1-1-> _V  /\  ( `' ( F  u.  ( 1st  |`  ( ( B  \  ran  F )  X.  { ~P U. ran  A } ) ) )  o.  F )  =  (  _I  |`  A ) ) ) )
3130spcegv 2882 . 2  |-  ( `' ( F  u.  ( 1st  |`  ( ( B 
\  ran  F )  X.  { ~P U. ran  A } ) ) )  e.  _V  ->  (
( `' ( F  u.  ( 1st  |`  (
( B  \  ran  F )  X.  { ~P U.
ran  A } ) ) ) : B -1-1-> _V 
/\  ( `' ( F  u.  ( 1st  |`  ( ( B  \  ran  F )  X.  { ~P U. ran  A }
) ) )  o.  F )  =  (  _I  |`  A )
)  ->  E. g
( g : B -1-1-> _V 
/\  ( g  o.  F )  =  (  _I  |`  A )
) ) )
3216, 26, 31sylc 56 1  |-  ( ( F : A -1-1-> B  /\  A  e.  V  /\  B  e.  W
)  ->  E. g
( g : B -1-1-> _V 
/\  ( g  o.  F )  =  (  _I  |`  A )
) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 358    /\ w3a 934   E.wex 1531    = wceq 1632    e. wcel 1696   _Vcvv 2801    \ cdif 3162    u. cun 3163    C_ wss 3165   ~Pcpw 3638   {csn 3653   U.cuni 3843    _I cid 4320    X. cxp 4703   `'ccnv 4704   ran crn 4706    |` cres 4707    o. ccom 4709   -->wf 5267   -1-1->wf1 5268   -1-1-onto->wf1o 5270   1stc1st 6136
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1536  ax-5 1547  ax-17 1606  ax-9 1644  ax-8 1661  ax-13 1698  ax-14 1700  ax-6 1715  ax-7 1720  ax-11 1727  ax-12 1878  ax-ext 2277  ax-sep 4157  ax-nul 4165  ax-pow 4204  ax-pr 4230  ax-un 4528
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3an 936  df-tru 1310  df-ex 1532  df-nf 1535  df-sb 1639  df-eu 2160  df-mo 2161  df-clab 2283  df-cleq 2289  df-clel 2292  df-nfc 2421  df-ne 2461  df-nel 2462  df-ral 2561  df-rex 2562  df-rab 2565  df-v 2803  df-sbc 3005  df-csb 3095  df-dif 3168  df-un 3170  df-in 3172  df-ss 3179  df-nul 3469  df-if 3579  df-pw 3640  df-sn 3659  df-pr 3660  df-op 3662  df-uni 3844  df-int 3879  df-iun 3923  df-br 4040  df-opab 4094  df-mpt 4095  df-id 4325  df-xp 4711  df-rel 4712  df-cnv 4713  df-co 4714  df-dm 4715  df-rn 4716  df-res 4717  df-ima 4718  df-iota 5235  df-fun 5273  df-fn 5274  df-f 5275  df-f1 5276  df-fo 5277  df-f1o 5278  df-fv 5279  df-1st 6138  df-2nd 6139  df-en 6880
  Copyright terms: Public domain W3C validator