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

Theorem setcinv 14245
Description: An inverse in the category of sets is the converse operation. (Contributed by Mario Carneiro, 3-Jan-2017.)
Hypotheses
Ref Expression
setcmon.c  |-  C  =  ( SetCat `  U )
setcmon.u  |-  ( ph  ->  U  e.  V )
setcmon.x  |-  ( ph  ->  X  e.  U )
setcmon.y  |-  ( ph  ->  Y  e.  U )
setcinv.n  |-  N  =  (Inv `  C )
Assertion
Ref Expression
setcinv  |-  ( ph  ->  ( F ( X N Y ) G  <-> 
( F : X -1-1-onto-> Y  /\  G  =  `' F ) ) )

Proof of Theorem setcinv
StepHypRef Expression
1 eqid 2436 . . 3  |-  ( Base `  C )  =  (
Base `  C )
2 setcinv.n . . 3  |-  N  =  (Inv `  C )
3 setcmon.u . . . 4  |-  ( ph  ->  U  e.  V )
4 setcmon.c . . . . 5  |-  C  =  ( SetCat `  U )
54setccat 14240 . . . 4  |-  ( U  e.  V  ->  C  e.  Cat )
63, 5syl 16 . . 3  |-  ( ph  ->  C  e.  Cat )
7 setcmon.x . . . 4  |-  ( ph  ->  X  e.  U )
84, 3setcbas 14233 . . . 4  |-  ( ph  ->  U  =  ( Base `  C ) )
97, 8eleqtrd 2512 . . 3  |-  ( ph  ->  X  e.  ( Base `  C ) )
10 setcmon.y . . . 4  |-  ( ph  ->  Y  e.  U )
1110, 8eleqtrd 2512 . . 3  |-  ( ph  ->  Y  e.  ( Base `  C ) )
12 eqid 2436 . . 3  |-  (Sect `  C )  =  (Sect `  C )
131, 2, 6, 9, 11, 12isinv 13985 . 2  |-  ( ph  ->  ( F ( X N Y ) G  <-> 
( F ( X (Sect `  C ) Y ) G  /\  G ( Y (Sect `  C ) X ) F ) ) )
144, 3, 7, 10, 12setcsect 14244 . . . . 5  |-  ( ph  ->  ( F ( X (Sect `  C ) Y ) G  <->  ( F : X --> Y  /\  G : Y --> X  /\  ( G  o.  F )  =  (  _I  |`  X ) ) ) )
15 df-3an 938 . . . . 5  |-  ( ( F : X --> Y  /\  G : Y --> X  /\  ( G  o.  F
)  =  (  _I  |`  X ) )  <->  ( ( F : X --> Y  /\  G : Y --> X )  /\  ( G  o.  F )  =  (  _I  |`  X )
) )
1614, 15syl6bb 253 . . . 4  |-  ( ph  ->  ( F ( X (Sect `  C ) Y ) G  <->  ( ( F : X --> Y  /\  G : Y --> X )  /\  ( G  o.  F )  =  (  _I  |`  X )
) ) )
174, 3, 10, 7, 12setcsect 14244 . . . . 5  |-  ( ph  ->  ( G ( Y (Sect `  C ) X ) F  <->  ( G : Y --> X  /\  F : X --> Y  /\  ( F  o.  G )  =  (  _I  |`  Y ) ) ) )
18 3ancoma 943 . . . . . 6  |-  ( ( G : Y --> X  /\  F : X --> Y  /\  ( F  o.  G
)  =  (  _I  |`  Y ) )  <->  ( F : X --> Y  /\  G : Y --> X  /\  ( F  o.  G )  =  (  _I  |`  Y ) ) )
19 df-3an 938 . . . . . 6  |-  ( ( F : X --> Y  /\  G : Y --> X  /\  ( F  o.  G
)  =  (  _I  |`  Y ) )  <->  ( ( F : X --> Y  /\  G : Y --> X )  /\  ( F  o.  G )  =  (  _I  |`  Y )
) )
2018, 19bitri 241 . . . . 5  |-  ( ( G : Y --> X  /\  F : X --> Y  /\  ( F  o.  G
)  =  (  _I  |`  Y ) )  <->  ( ( F : X --> Y  /\  G : Y --> X )  /\  ( F  o.  G )  =  (  _I  |`  Y )
) )
2117, 20syl6bb 253 . . . 4  |-  ( ph  ->  ( G ( Y (Sect `  C ) X ) F  <->  ( ( F : X --> Y  /\  G : Y --> X )  /\  ( F  o.  G )  =  (  _I  |`  Y )
) ) )
2216, 21anbi12d 692 . . 3  |-  ( ph  ->  ( ( F ( X (Sect `  C
) Y ) G  /\  G ( Y (Sect `  C ) X ) F )  <-> 
( ( ( F : X --> Y  /\  G : Y --> X )  /\  ( G  o.  F )  =  (  _I  |`  X )
)  /\  ( ( F : X --> Y  /\  G : Y --> X )  /\  ( F  o.  G )  =  (  _I  |`  Y )
) ) ) )
23 anandi 802 . . 3  |-  ( ( ( F : X --> Y  /\  G : Y --> X )  /\  (
( G  o.  F
)  =  (  _I  |`  X )  /\  ( F  o.  G )  =  (  _I  |`  Y ) ) )  <->  ( (
( F : X --> Y  /\  G : Y --> X )  /\  ( G  o.  F )  =  (  _I  |`  X ) )  /\  ( ( F : X --> Y  /\  G : Y --> X )  /\  ( F  o.  G )  =  (  _I  |`  Y )
) ) )
2422, 23syl6bbr 255 . 2  |-  ( ph  ->  ( ( F ( X (Sect `  C
) Y ) G  /\  G ( Y (Sect `  C ) X ) F )  <-> 
( ( F : X
--> Y  /\  G : Y
--> X )  /\  (
( G  o.  F
)  =  (  _I  |`  X )  /\  ( F  o.  G )  =  (  _I  |`  Y ) ) ) ) )
25 fcof1o 6026 . . . . . 6  |-  ( ( ( F : X --> Y  /\  G : Y --> X )  /\  (
( F  o.  G
)  =  (  _I  |`  Y )  /\  ( G  o.  F )  =  (  _I  |`  X ) ) )  ->  ( F : X -1-1-onto-> Y  /\  `' F  =  G ) )
26 eqcom 2438 . . . . . . 7  |-  ( `' F  =  G  <->  G  =  `' F )
2726anbi2i 676 . . . . . 6  |-  ( ( F : X -1-1-onto-> Y  /\  `' F  =  G
)  <->  ( F : X
-1-1-onto-> Y  /\  G  =  `' F ) )
2825, 27sylib 189 . . . . 5  |-  ( ( ( F : X --> Y  /\  G : Y --> X )  /\  (
( F  o.  G
)  =  (  _I  |`  Y )  /\  ( G  o.  F )  =  (  _I  |`  X ) ) )  ->  ( F : X -1-1-onto-> Y  /\  G  =  `' F ) )
2928ancom2s 778 . . . 4  |-  ( ( ( F : X --> Y  /\  G : Y --> X )  /\  (
( G  o.  F
)  =  (  _I  |`  X )  /\  ( F  o.  G )  =  (  _I  |`  Y ) ) )  ->  ( F : X -1-1-onto-> Y  /\  G  =  `' F ) )
3029adantl 453 . . 3  |-  ( (
ph  /\  ( ( F : X --> Y  /\  G : Y --> X )  /\  ( ( G  o.  F )  =  (  _I  |`  X )  /\  ( F  o.  G )  =  (  _I  |`  Y )
) ) )  -> 
( F : X -1-1-onto-> Y  /\  G  =  `' F ) )
31 f1of 5674 . . . . 5  |-  ( F : X -1-1-onto-> Y  ->  F : X
--> Y )
3231ad2antrl 709 . . . 4  |-  ( (
ph  /\  ( F : X -1-1-onto-> Y  /\  G  =  `' F ) )  ->  F : X --> Y )
33 f1ocnv 5687 . . . . . . 7  |-  ( F : X -1-1-onto-> Y  ->  `' F : Y -1-1-onto-> X )
3433ad2antrl 709 . . . . . 6  |-  ( (
ph  /\  ( F : X -1-1-onto-> Y  /\  G  =  `' F ) )  ->  `' F : Y -1-1-onto-> X )
35 f1oeq1 5665 . . . . . . 7  |-  ( G  =  `' F  -> 
( G : Y -1-1-onto-> X  <->  `' F : Y -1-1-onto-> X ) )
3635ad2antll 710 . . . . . 6  |-  ( (
ph  /\  ( F : X -1-1-onto-> Y  /\  G  =  `' F ) )  -> 
( G : Y -1-1-onto-> X  <->  `' F : Y -1-1-onto-> X ) )
3734, 36mpbird 224 . . . . 5  |-  ( (
ph  /\  ( F : X -1-1-onto-> Y  /\  G  =  `' F ) )  ->  G : Y -1-1-onto-> X )
38 f1of 5674 . . . . 5  |-  ( G : Y -1-1-onto-> X  ->  G : Y
--> X )
3937, 38syl 16 . . . 4  |-  ( (
ph  /\  ( F : X -1-1-onto-> Y  /\  G  =  `' F ) )  ->  G : Y --> X )
40 simprr 734 . . . . . . 7  |-  ( (
ph  /\  ( F : X -1-1-onto-> Y  /\  G  =  `' F ) )  ->  G  =  `' F
)
4140coeq1d 5034 . . . . . 6  |-  ( (
ph  /\  ( F : X -1-1-onto-> Y  /\  G  =  `' F ) )  -> 
( G  o.  F
)  =  ( `' F  o.  F ) )
42 f1ococnv1 5704 . . . . . . 7  |-  ( F : X -1-1-onto-> Y  ->  ( `' F  o.  F )  =  (  _I  |`  X ) )
4342ad2antrl 709 . . . . . 6  |-  ( (
ph  /\  ( F : X -1-1-onto-> Y  /\  G  =  `' F ) )  -> 
( `' F  o.  F )  =  (  _I  |`  X )
)
4441, 43eqtrd 2468 . . . . 5  |-  ( (
ph  /\  ( F : X -1-1-onto-> Y  /\  G  =  `' F ) )  -> 
( G  o.  F
)  =  (  _I  |`  X ) )
4540coeq2d 5035 . . . . . 6  |-  ( (
ph  /\  ( F : X -1-1-onto-> Y  /\  G  =  `' F ) )  -> 
( F  o.  G
)  =  ( F  o.  `' F ) )
46 f1ococnv2 5702 . . . . . . 7  |-  ( F : X -1-1-onto-> Y  ->  ( F  o.  `' F )  =  (  _I  |`  Y )
)
4746ad2antrl 709 . . . . . 6  |-  ( (
ph  /\  ( F : X -1-1-onto-> Y  /\  G  =  `' F ) )  -> 
( F  o.  `' F )  =  (  _I  |`  Y )
)
4845, 47eqtrd 2468 . . . . 5  |-  ( (
ph  /\  ( F : X -1-1-onto-> Y  /\  G  =  `' F ) )  -> 
( F  o.  G
)  =  (  _I  |`  Y ) )
4944, 48jca 519 . . . 4  |-  ( (
ph  /\  ( F : X -1-1-onto-> Y  /\  G  =  `' F ) )  -> 
( ( G  o.  F )  =  (  _I  |`  X )  /\  ( F  o.  G
)  =  (  _I  |`  Y ) ) )
5032, 39, 49jca31 521 . . 3  |-  ( (
ph  /\  ( F : X -1-1-onto-> Y  /\  G  =  `' F ) )  -> 
( ( F : X
--> Y  /\  G : Y
--> X )  /\  (
( G  o.  F
)  =  (  _I  |`  X )  /\  ( F  o.  G )  =  (  _I  |`  Y ) ) ) )
5130, 50impbida 806 . 2  |-  ( ph  ->  ( ( ( F : X --> Y  /\  G : Y --> X )  /\  ( ( G  o.  F )  =  (  _I  |`  X )  /\  ( F  o.  G )  =  (  _I  |`  Y )
) )  <->  ( F : X -1-1-onto-> Y  /\  G  =  `' F ) ) )
5213, 24, 513bitrd 271 1  |-  ( ph  ->  ( F ( X N Y ) G  <-> 
( F : X -1-1-onto-> Y  /\  G  =  `' F ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 177    /\ wa 359    /\ w3a 936    = wceq 1652    e. wcel 1725   class class class wbr 4212    _I cid 4493   `'ccnv 4877    |` cres 4880    o. ccom 4882   -->wf 5450   -1-1-onto->wf1o 5453   ` cfv 5454  (class class class)co 6081   Basecbs 13469   Catccat 13889  Sectcsect 13970  Invcinv 13971   SetCatcsetc 14230
This theorem is referenced by:  setciso  14246  yonedainv  14378
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 2417  ax-rep 4320  ax-sep 4330  ax-nul 4338  ax-pow 4377  ax-pr 4403  ax-un 4701  ax-cnex 9046  ax-resscn 9047  ax-1cn 9048  ax-icn 9049  ax-addcl 9050  ax-addrcl 9051  ax-mulcl 9052  ax-mulrcl 9053  ax-mulcom 9054  ax-addass 9055  ax-mulass 9056  ax-distr 9057  ax-i2m1 9058  ax-1ne0 9059  ax-1rid 9060  ax-rnegex 9061  ax-rrecex 9062  ax-cnre 9063  ax-pre-lttri 9064  ax-pre-lttrn 9065  ax-pre-ltadd 9066  ax-pre-mulgt0 9067
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 2285  df-mo 2286  df-clab 2423  df-cleq 2429  df-clel 2432  df-nfc 2561  df-ne 2601  df-nel 2602  df-ral 2710  df-rex 2711  df-reu 2712  df-rmo 2713  df-rab 2714  df-v 2958  df-sbc 3162  df-csb 3252  df-dif 3323  df-un 3325  df-in 3327  df-ss 3334  df-pss 3336  df-nul 3629  df-if 3740  df-pw 3801  df-sn 3820  df-pr 3821  df-tp 3822  df-op 3823  df-uni 4016  df-int 4051  df-iun 4095  df-br 4213  df-opab 4267  df-mpt 4268  df-tr 4303  df-eprel 4494  df-id 4498  df-po 4503  df-so 4504  df-fr 4541  df-we 4543  df-ord 4584  df-on 4585  df-lim 4586  df-suc 4587  df-om 4846  df-xp 4884  df-rel 4885  df-cnv 4886  df-co 4887  df-dm 4888  df-rn 4889  df-res 4890  df-ima 4891  df-iota 5418  df-fun 5456  df-fn 5457  df-f 5458  df-f1 5459  df-fo 5460  df-f1o 5461  df-fv 5462  df-ov 6084  df-oprab 6085  df-mpt2 6086  df-1st 6349  df-2nd 6350  df-riota 6549  df-recs 6633  df-rdg 6668  df-1o 6724  df-oadd 6728  df-er 6905  df-map 7020  df-en 7110  df-dom 7111  df-sdom 7112  df-fin 7113  df-pnf 9122  df-mnf 9123  df-xr 9124  df-ltxr 9125  df-le 9126  df-sub 9293  df-neg 9294  df-nn 10001  df-2 10058  df-3 10059  df-4 10060  df-5 10061  df-6 10062  df-7 10063  df-8 10064  df-9 10065  df-10 10066  df-n0 10222  df-z 10283  df-dec 10383  df-uz 10489  df-fz 11044  df-struct 13471  df-ndx 13472  df-slot 13473  df-base 13474  df-hom 13553  df-cco 13554  df-cat 13893  df-cid 13894  df-sect 13973  df-inv 13974  df-setc 14231
  Copyright terms: Public domain W3C validator