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

Theorem setcinv 18072
Description: An inverse in the category of sets is the converse operation. (Contributed by Mario Carneiro, 3-Jan-2017.)
Hypotheses
Ref Expression
setcmon.c 𝐶 = (SetCat‘𝑈)
setcmon.u (𝜑𝑈𝑉)
setcmon.x (𝜑𝑋𝑈)
setcmon.y (𝜑𝑌𝑈)
setcinv.n 𝑁 = (Inv‘𝐶)
Assertion
Ref Expression
setcinv (𝜑 → (𝐹(𝑋𝑁𝑌)𝐺 ↔ (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹)))

Proof of Theorem setcinv
StepHypRef Expression
1 eqid 2727 . . 3 (Base‘𝐶) = (Base‘𝐶)
2 setcinv.n . . 3 𝑁 = (Inv‘𝐶)
3 setcmon.u . . . 4 (𝜑𝑈𝑉)
4 setcmon.c . . . . 5 𝐶 = (SetCat‘𝑈)
54setccat 18067 . . . 4 (𝑈𝑉𝐶 ∈ Cat)
63, 5syl 17 . . 3 (𝜑𝐶 ∈ Cat)
7 setcmon.x . . . 4 (𝜑𝑋𝑈)
84, 3setcbas 18060 . . . 4 (𝜑𝑈 = (Base‘𝐶))
97, 8eleqtrd 2830 . . 3 (𝜑𝑋 ∈ (Base‘𝐶))
10 setcmon.y . . . 4 (𝜑𝑌𝑈)
1110, 8eleqtrd 2830 . . 3 (𝜑𝑌 ∈ (Base‘𝐶))
12 eqid 2727 . . 3 (Sect‘𝐶) = (Sect‘𝐶)
131, 2, 6, 9, 11, 12isinv 17736 . 2 (𝜑 → (𝐹(𝑋𝑁𝑌)𝐺 ↔ (𝐹(𝑋(Sect‘𝐶)𝑌)𝐺𝐺(𝑌(Sect‘𝐶)𝑋)𝐹)))
144, 3, 7, 10, 12setcsect 18071 . . . . 5 (𝜑 → (𝐹(𝑋(Sect‘𝐶)𝑌)𝐺 ↔ (𝐹:𝑋𝑌𝐺:𝑌𝑋 ∧ (𝐺𝐹) = ( I ↾ 𝑋))))
15 df-3an 1087 . . . . 5 ((𝐹:𝑋𝑌𝐺:𝑌𝑋 ∧ (𝐺𝐹) = ( I ↾ 𝑋)) ↔ ((𝐹:𝑋𝑌𝐺:𝑌𝑋) ∧ (𝐺𝐹) = ( I ↾ 𝑋)))
1614, 15bitrdi 287 . . . 4 (𝜑 → (𝐹(𝑋(Sect‘𝐶)𝑌)𝐺 ↔ ((𝐹:𝑋𝑌𝐺:𝑌𝑋) ∧ (𝐺𝐹) = ( I ↾ 𝑋))))
174, 3, 10, 7, 12setcsect 18071 . . . . 5 (𝜑 → (𝐺(𝑌(Sect‘𝐶)𝑋)𝐹 ↔ (𝐺:𝑌𝑋𝐹:𝑋𝑌 ∧ (𝐹𝐺) = ( I ↾ 𝑌))))
18 3ancoma 1096 . . . . . 6 ((𝐺:𝑌𝑋𝐹:𝑋𝑌 ∧ (𝐹𝐺) = ( I ↾ 𝑌)) ↔ (𝐹:𝑋𝑌𝐺:𝑌𝑋 ∧ (𝐹𝐺) = ( I ↾ 𝑌)))
19 df-3an 1087 . . . . . 6 ((𝐹:𝑋𝑌𝐺:𝑌𝑋 ∧ (𝐹𝐺) = ( I ↾ 𝑌)) ↔ ((𝐹:𝑋𝑌𝐺:𝑌𝑋) ∧ (𝐹𝐺) = ( I ↾ 𝑌)))
2018, 19bitri 275 . . . . 5 ((𝐺:𝑌𝑋𝐹:𝑋𝑌 ∧ (𝐹𝐺) = ( I ↾ 𝑌)) ↔ ((𝐹:𝑋𝑌𝐺:𝑌𝑋) ∧ (𝐹𝐺) = ( I ↾ 𝑌)))
2117, 20bitrdi 287 . . . 4 (𝜑 → (𝐺(𝑌(Sect‘𝐶)𝑋)𝐹 ↔ ((𝐹:𝑋𝑌𝐺:𝑌𝑋) ∧ (𝐹𝐺) = ( I ↾ 𝑌))))
2216, 21anbi12d 630 . . 3 (𝜑 → ((𝐹(𝑋(Sect‘𝐶)𝑌)𝐺𝐺(𝑌(Sect‘𝐶)𝑋)𝐹) ↔ (((𝐹:𝑋𝑌𝐺:𝑌𝑋) ∧ (𝐺𝐹) = ( I ↾ 𝑋)) ∧ ((𝐹:𝑋𝑌𝐺:𝑌𝑋) ∧ (𝐹𝐺) = ( I ↾ 𝑌)))))
23 anandi 675 . . 3 (((𝐹:𝑋𝑌𝐺:𝑌𝑋) ∧ ((𝐺𝐹) = ( I ↾ 𝑋) ∧ (𝐹𝐺) = ( I ↾ 𝑌))) ↔ (((𝐹:𝑋𝑌𝐺:𝑌𝑋) ∧ (𝐺𝐹) = ( I ↾ 𝑋)) ∧ ((𝐹:𝑋𝑌𝐺:𝑌𝑋) ∧ (𝐹𝐺) = ( I ↾ 𝑌))))
2422, 23bitr4di 289 . 2 (𝜑 → ((𝐹(𝑋(Sect‘𝐶)𝑌)𝐺𝐺(𝑌(Sect‘𝐶)𝑋)𝐹) ↔ ((𝐹:𝑋𝑌𝐺:𝑌𝑋) ∧ ((𝐺𝐹) = ( I ↾ 𝑋) ∧ (𝐹𝐺) = ( I ↾ 𝑌)))))
25 fcof1o 7299 . . . . . 6 (((𝐹:𝑋𝑌𝐺:𝑌𝑋) ∧ ((𝐹𝐺) = ( I ↾ 𝑌) ∧ (𝐺𝐹) = ( I ↾ 𝑋))) → (𝐹:𝑋1-1-onto𝑌𝐹 = 𝐺))
26 eqcom 2734 . . . . . . 7 (𝐹 = 𝐺𝐺 = 𝐹)
2726anbi2i 622 . . . . . 6 ((𝐹:𝑋1-1-onto𝑌𝐹 = 𝐺) ↔ (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹))
2825, 27sylib 217 . . . . 5 (((𝐹:𝑋𝑌𝐺:𝑌𝑋) ∧ ((𝐹𝐺) = ( I ↾ 𝑌) ∧ (𝐺𝐹) = ( I ↾ 𝑋))) → (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹))
2928ancom2s 649 . . . 4 (((𝐹:𝑋𝑌𝐺:𝑌𝑋) ∧ ((𝐺𝐹) = ( I ↾ 𝑋) ∧ (𝐹𝐺) = ( I ↾ 𝑌))) → (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹))
3029adantl 481 . . 3 ((𝜑 ∧ ((𝐹:𝑋𝑌𝐺:𝑌𝑋) ∧ ((𝐺𝐹) = ( I ↾ 𝑋) ∧ (𝐹𝐺) = ( I ↾ 𝑌)))) → (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹))
31 f1of 6833 . . . . 5 (𝐹:𝑋1-1-onto𝑌𝐹:𝑋𝑌)
3231ad2antrl 727 . . . 4 ((𝜑 ∧ (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹)) → 𝐹:𝑋𝑌)
33 f1ocnv 6845 . . . . . . 7 (𝐹:𝑋1-1-onto𝑌𝐹:𝑌1-1-onto𝑋)
3433ad2antrl 727 . . . . . 6 ((𝜑 ∧ (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹)) → 𝐹:𝑌1-1-onto𝑋)
35 f1oeq1 6821 . . . . . . 7 (𝐺 = 𝐹 → (𝐺:𝑌1-1-onto𝑋𝐹:𝑌1-1-onto𝑋))
3635ad2antll 728 . . . . . 6 ((𝜑 ∧ (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹)) → (𝐺:𝑌1-1-onto𝑋𝐹:𝑌1-1-onto𝑋))
3734, 36mpbird 257 . . . . 5 ((𝜑 ∧ (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹)) → 𝐺:𝑌1-1-onto𝑋)
38 f1of 6833 . . . . 5 (𝐺:𝑌1-1-onto𝑋𝐺:𝑌𝑋)
3937, 38syl 17 . . . 4 ((𝜑 ∧ (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹)) → 𝐺:𝑌𝑋)
40 simprr 772 . . . . . . 7 ((𝜑 ∧ (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹)) → 𝐺 = 𝐹)
4140coeq1d 5858 . . . . . 6 ((𝜑 ∧ (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹)) → (𝐺𝐹) = (𝐹𝐹))
42 f1ococnv1 6862 . . . . . . 7 (𝐹:𝑋1-1-onto𝑌 → (𝐹𝐹) = ( I ↾ 𝑋))
4342ad2antrl 727 . . . . . 6 ((𝜑 ∧ (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹)) → (𝐹𝐹) = ( I ↾ 𝑋))
4441, 43eqtrd 2767 . . . . 5 ((𝜑 ∧ (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹)) → (𝐺𝐹) = ( I ↾ 𝑋))
4540coeq2d 5859 . . . . . 6 ((𝜑 ∧ (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹)) → (𝐹𝐺) = (𝐹𝐹))
46 f1ococnv2 6860 . . . . . . 7 (𝐹:𝑋1-1-onto𝑌 → (𝐹𝐹) = ( I ↾ 𝑌))
4746ad2antrl 727 . . . . . 6 ((𝜑 ∧ (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹)) → (𝐹𝐹) = ( I ↾ 𝑌))
4845, 47eqtrd 2767 . . . . 5 ((𝜑 ∧ (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹)) → (𝐹𝐺) = ( I ↾ 𝑌))
4944, 48jca 511 . . . 4 ((𝜑 ∧ (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹)) → ((𝐺𝐹) = ( I ↾ 𝑋) ∧ (𝐹𝐺) = ( I ↾ 𝑌)))
5032, 39, 49jca31 514 . . 3 ((𝜑 ∧ (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹)) → ((𝐹:𝑋𝑌𝐺:𝑌𝑋) ∧ ((𝐺𝐹) = ( I ↾ 𝑋) ∧ (𝐹𝐺) = ( I ↾ 𝑌))))
5130, 50impbida 800 . 2 (𝜑 → (((𝐹:𝑋𝑌𝐺:𝑌𝑋) ∧ ((𝐺𝐹) = ( I ↾ 𝑋) ∧ (𝐹𝐺) = ( I ↾ 𝑌))) ↔ (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹)))
5213, 24, 513bitrd 305 1 (𝜑 → (𝐹(𝑋𝑁𝑌)𝐺 ↔ (𝐹:𝑋1-1-onto𝑌𝐺 = 𝐹)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085   = wceq 1534  wcel 2099   class class class wbr 5142   I cid 5569  ccnv 5671  cres 5674  ccom 5676  wf 6538  1-1-ontowf1o 6541  cfv 6542  (class class class)co 7414  Basecbs 17173  Catccat 17637  Sectcsect 17720  Invcinv 17721  SetCatcsetc 18057
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1790  ax-4 1804  ax-5 1906  ax-6 1964  ax-7 2004  ax-8 2101  ax-9 2109  ax-10 2130  ax-11 2147  ax-12 2164  ax-ext 2698  ax-rep 5279  ax-sep 5293  ax-nul 5300  ax-pow 5359  ax-pr 5423  ax-un 7734  ax-cnex 11188  ax-resscn 11189  ax-1cn 11190  ax-icn 11191  ax-addcl 11192  ax-addrcl 11193  ax-mulcl 11194  ax-mulrcl 11195  ax-mulcom 11196  ax-addass 11197  ax-mulass 11198  ax-distr 11199  ax-i2m1 11200  ax-1ne0 11201  ax-1rid 11202  ax-rnegex 11203  ax-rrecex 11204  ax-cnre 11205  ax-pre-lttri 11206  ax-pre-lttrn 11207  ax-pre-ltadd 11208  ax-pre-mulgt0 11209
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 847  df-3or 1086  df-3an 1087  df-tru 1537  df-fal 1547  df-ex 1775  df-nf 1779  df-sb 2061  df-mo 2529  df-eu 2558  df-clab 2705  df-cleq 2719  df-clel 2805  df-nfc 2880  df-ne 2936  df-nel 3042  df-ral 3057  df-rex 3066  df-rmo 3371  df-reu 3372  df-rab 3428  df-v 3471  df-sbc 3775  df-csb 3890  df-dif 3947  df-un 3949  df-in 3951  df-ss 3961  df-pss 3963  df-nul 4319  df-if 4525  df-pw 4600  df-sn 4625  df-pr 4627  df-tp 4629  df-op 4631  df-uni 4904  df-iun 4993  df-br 5143  df-opab 5205  df-mpt 5226  df-tr 5260  df-id 5570  df-eprel 5576  df-po 5584  df-so 5585  df-fr 5627  df-we 5629  df-xp 5678  df-rel 5679  df-cnv 5680  df-co 5681  df-dm 5682  df-rn 5683  df-res 5684  df-ima 5685  df-pred 6299  df-ord 6366  df-on 6367  df-lim 6368  df-suc 6369  df-iota 6494  df-fun 6544  df-fn 6545  df-f 6546  df-f1 6547  df-fo 6548  df-f1o 6549  df-fv 6550  df-riota 7370  df-ov 7417  df-oprab 7418  df-mpo 7419  df-om 7865  df-1st 7987  df-2nd 7988  df-frecs 8280  df-wrecs 8311  df-recs 8385  df-rdg 8424  df-1o 8480  df-er 8718  df-map 8840  df-en 8958  df-dom 8959  df-sdom 8960  df-fin 8961  df-pnf 11274  df-mnf 11275  df-xr 11276  df-ltxr 11277  df-le 11278  df-sub 11470  df-neg 11471  df-nn 12237  df-2 12299  df-3 12300  df-4 12301  df-5 12302  df-6 12303  df-7 12304  df-8 12305  df-9 12306  df-n0 12497  df-z 12583  df-dec 12702  df-uz 12847  df-fz 13511  df-struct 17109  df-slot 17144  df-ndx 17156  df-base 17174  df-hom 17250  df-cco 17251  df-cat 17641  df-cid 17642  df-sect 17723  df-inv 17724  df-setc 18058
This theorem is referenced by:  setciso  18073  yonedainv  18266
  Copyright terms: Public domain W3C validator