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

Theorem cocan2 5802
Description: A surjection is right-cancelable. (Contributed by FL, 21-Nov-2011.) (Proof shortened by Mario Carneiro, 21-Mar-2015.)
Assertion
Ref Expression
cocan2  |-  ( ( F : A -onto-> B  /\  H  Fn  B  /\  K  Fn  B
)  ->  ( ( H  o.  F )  =  ( K  o.  F )  <->  H  =  K ) )

Proof of Theorem cocan2
Dummy variables  x  y are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fof 5451 . . . . . . 7  |-  ( F : A -onto-> B  ->  F : A --> B )
213ad2ant1 976 . . . . . 6  |-  ( ( F : A -onto-> B  /\  H  Fn  B  /\  K  Fn  B
)  ->  F : A
--> B )
3 fvco3 5596 . . . . . 6  |-  ( ( F : A --> B  /\  y  e.  A )  ->  ( ( H  o.  F ) `  y
)  =  ( H `
 ( F `  y ) ) )
42, 3sylan 457 . . . . 5  |-  ( ( ( F : A -onto-> B  /\  H  Fn  B  /\  K  Fn  B
)  /\  y  e.  A )  ->  (
( H  o.  F
) `  y )  =  ( H `  ( F `  y ) ) )
5 fvco3 5596 . . . . . 6  |-  ( ( F : A --> B  /\  y  e.  A )  ->  ( ( K  o.  F ) `  y
)  =  ( K `
 ( F `  y ) ) )
62, 5sylan 457 . . . . 5  |-  ( ( ( F : A -onto-> B  /\  H  Fn  B  /\  K  Fn  B
)  /\  y  e.  A )  ->  (
( K  o.  F
) `  y )  =  ( K `  ( F `  y ) ) )
74, 6eqeq12d 2297 . . . 4  |-  ( ( ( F : A -onto-> B  /\  H  Fn  B  /\  K  Fn  B
)  /\  y  e.  A )  ->  (
( ( H  o.  F ) `  y
)  =  ( ( K  o.  F ) `
 y )  <->  ( H `  ( F `  y
) )  =  ( K `  ( F `
 y ) ) ) )
87ralbidva 2559 . . 3  |-  ( ( F : A -onto-> B  /\  H  Fn  B  /\  K  Fn  B
)  ->  ( A. y  e.  A  (
( H  o.  F
) `  y )  =  ( ( K  o.  F ) `  y )  <->  A. y  e.  A  ( H `  ( F `  y
) )  =  ( K `  ( F `
 y ) ) ) )
9 fveq2 5525 . . . . . 6  |-  ( ( F `  y )  =  x  ->  ( H `  ( F `  y ) )  =  ( H `  x
) )
10 fveq2 5525 . . . . . 6  |-  ( ( F `  y )  =  x  ->  ( K `  ( F `  y ) )  =  ( K `  x
) )
119, 10eqeq12d 2297 . . . . 5  |-  ( ( F `  y )  =  x  ->  (
( H `  ( F `  y )
)  =  ( K `
 ( F `  y ) )  <->  ( H `  x )  =  ( K `  x ) ) )
1211cbvfo 5799 . . . 4  |-  ( F : A -onto-> B  -> 
( A. y  e.  A  ( H `  ( F `  y ) )  =  ( K `
 ( F `  y ) )  <->  A. x  e.  B  ( H `  x )  =  ( K `  x ) ) )
13123ad2ant1 976 . . 3  |-  ( ( F : A -onto-> B  /\  H  Fn  B  /\  K  Fn  B
)  ->  ( A. y  e.  A  ( H `  ( F `  y ) )  =  ( K `  ( F `  y )
)  <->  A. x  e.  B  ( H `  x )  =  ( K `  x ) ) )
148, 13bitrd 244 . 2  |-  ( ( F : A -onto-> B  /\  H  Fn  B  /\  K  Fn  B
)  ->  ( A. y  e.  A  (
( H  o.  F
) `  y )  =  ( ( K  o.  F ) `  y )  <->  A. x  e.  B  ( H `  x )  =  ( K `  x ) ) )
15 simp2 956 . . . 4  |-  ( ( F : A -onto-> B  /\  H  Fn  B  /\  K  Fn  B
)  ->  H  Fn  B )
16 fnfco 5407 . . . 4  |-  ( ( H  Fn  B  /\  F : A --> B )  ->  ( H  o.  F )  Fn  A
)
1715, 2, 16syl2anc 642 . . 3  |-  ( ( F : A -onto-> B  /\  H  Fn  B  /\  K  Fn  B
)  ->  ( H  o.  F )  Fn  A
)
18 simp3 957 . . . 4  |-  ( ( F : A -onto-> B  /\  H  Fn  B  /\  K  Fn  B
)  ->  K  Fn  B )
19 fnfco 5407 . . . 4  |-  ( ( K  Fn  B  /\  F : A --> B )  ->  ( K  o.  F )  Fn  A
)
2018, 2, 19syl2anc 642 . . 3  |-  ( ( F : A -onto-> B  /\  H  Fn  B  /\  K  Fn  B
)  ->  ( K  o.  F )  Fn  A
)
21 eqfnfv 5622 . . 3  |-  ( ( ( H  o.  F
)  Fn  A  /\  ( K  o.  F
)  Fn  A )  ->  ( ( H  o.  F )  =  ( K  o.  F
)  <->  A. y  e.  A  ( ( H  o.  F ) `  y
)  =  ( ( K  o.  F ) `
 y ) ) )
2217, 20, 21syl2anc 642 . 2  |-  ( ( F : A -onto-> B  /\  H  Fn  B  /\  K  Fn  B
)  ->  ( ( H  o.  F )  =  ( K  o.  F )  <->  A. y  e.  A  ( ( H  o.  F ) `  y )  =  ( ( K  o.  F
) `  y )
) )
23 eqfnfv 5622 . . 3  |-  ( ( H  Fn  B  /\  K  Fn  B )  ->  ( H  =  K  <->  A. x  e.  B  ( H `  x )  =  ( K `  x ) ) )
2415, 18, 23syl2anc 642 . 2  |-  ( ( F : A -onto-> B  /\  H  Fn  B  /\  K  Fn  B
)  ->  ( H  =  K  <->  A. x  e.  B  ( H `  x )  =  ( K `  x ) ) )
2514, 22, 243bitr4d 276 1  |-  ( ( F : A -onto-> B  /\  H  Fn  B  /\  K  Fn  B
)  ->  ( ( H  o.  F )  =  ( K  o.  F )  <->  H  =  K ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 176    /\ wa 358    /\ w3a 934    = wceq 1623    e. wcel 1684   A.wral 2543    o. ccom 4693    Fn wfn 5250   -->wf 5251   -onto->wfo 5253   ` cfv 5255
This theorem is referenced by:  mapen  7025  mapfien  7399  hashfacen  11392  setcepi  13920  qtopeu  17407  qtophmeo  17508  derangenlem  23702  injsurinj  25149
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1533  ax-5 1544  ax-17 1603  ax-9 1635  ax-8 1643  ax-13 1686  ax-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-sep 4141  ax-nul 4149  ax-pow 4188  ax-pr 4214
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3an 936  df-tru 1310  df-ex 1529  df-nf 1532  df-sb 1630  df-eu 2147  df-mo 2148  df-clab 2270  df-cleq 2276  df-clel 2279  df-nfc 2408  df-ne 2448  df-ral 2548  df-rex 2549  df-rab 2552  df-v 2790  df-sbc 2992  df-csb 3082  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-nul 3456  df-if 3566  df-sn 3646  df-pr 3647  df-op 3649  df-uni 3828  df-br 4024  df-opab 4078  df-mpt 4079  df-id 4309  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-rn 4700  df-res 4701  df-ima 4702  df-iota 5219  df-fun 5257  df-fn 5258  df-f 5259  df-fo 5261  df-fv 5263
  Copyright terms: Public domain W3C validator