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

Theorem fvcofneq 6015
Description: The values of two function compositions are equal if the values of the composed functions are pairwise equal. (Contributed by AV, 26-Jan-2019.)
Assertion
Ref Expression
fvcofneq  |-  ( ( G  Fn  A  /\  K  Fn  B )  ->  ( ( X  e.  ( A  i^i  B
)  /\  ( G `  X )  =  ( K `  X )  /\  A. x  e.  ( ran  G  i^i  ran 
K ) ( F `
 x )  =  ( H `  x
) )  ->  (
( F  o.  G
) `  X )  =  ( ( H  o.  K ) `  X ) ) )
Distinct variable groups:    x, F    x, G    x, H    x, K    x, X
Allowed substitution hints:    A( x)    B( x)

Proof of Theorem fvcofneq
StepHypRef Expression
1 simpl 455 . . . 4  |-  ( ( G  Fn  A  /\  K  Fn  B )  ->  G  Fn  A )
2 elin 3673 . . . . . 6  |-  ( X  e.  ( A  i^i  B )  <->  ( X  e.  A  /\  X  e.  B ) )
3 simpl 455 . . . . . 6  |-  ( ( X  e.  A  /\  X  e.  B )  ->  X  e.  A )
42, 3sylbi 195 . . . . 5  |-  ( X  e.  ( A  i^i  B )  ->  X  e.  A )
543ad2ant1 1015 . . . 4  |-  ( ( X  e.  ( A  i^i  B )  /\  ( G `  X )  =  ( K `  X )  /\  A. x  e.  ( ran  G  i^i  ran  K )
( F `  x
)  =  ( H `
 x ) )  ->  X  e.  A
)
6 fvco2 5923 . . . 4  |-  ( ( G  Fn  A  /\  X  e.  A )  ->  ( ( F  o.  G ) `  X
)  =  ( F `
 ( G `  X ) ) )
71, 5, 6syl2an 475 . . 3  |-  ( ( ( G  Fn  A  /\  K  Fn  B
)  /\  ( X  e.  ( A  i^i  B
)  /\  ( G `  X )  =  ( K `  X )  /\  A. x  e.  ( ran  G  i^i  ran 
K ) ( F `
 x )  =  ( H `  x
) ) )  -> 
( ( F  o.  G ) `  X
)  =  ( F `
 ( G `  X ) ) )
8 simpr 459 . . . . 5  |-  ( ( G  Fn  A  /\  K  Fn  B )  ->  K  Fn  B )
9 simpr 459 . . . . . . 7  |-  ( ( X  e.  A  /\  X  e.  B )  ->  X  e.  B )
102, 9sylbi 195 . . . . . 6  |-  ( X  e.  ( A  i^i  B )  ->  X  e.  B )
11103ad2ant1 1015 . . . . 5  |-  ( ( X  e.  ( A  i^i  B )  /\  ( G `  X )  =  ( K `  X )  /\  A. x  e.  ( ran  G  i^i  ran  K )
( F `  x
)  =  ( H `
 x ) )  ->  X  e.  B
)
12 fvco2 5923 . . . . 5  |-  ( ( K  Fn  B  /\  X  e.  B )  ->  ( ( H  o.  K ) `  X
)  =  ( H `
 ( K `  X ) ) )
138, 11, 12syl2an 475 . . . 4  |-  ( ( ( G  Fn  A  /\  K  Fn  B
)  /\  ( X  e.  ( A  i^i  B
)  /\  ( G `  X )  =  ( K `  X )  /\  A. x  e.  ( ran  G  i^i  ran 
K ) ( F `
 x )  =  ( H `  x
) ) )  -> 
( ( H  o.  K ) `  X
)  =  ( H `
 ( K `  X ) ) )
14 fveq2 5848 . . . . . . 7  |-  ( ( K `  X )  =  ( G `  X )  ->  ( H `  ( K `  X ) )  =  ( H `  ( G `  X )
) )
1514eqcoms 2466 . . . . . 6  |-  ( ( G `  X )  =  ( K `  X )  ->  ( H `  ( K `  X ) )  =  ( H `  ( G `  X )
) )
16153ad2ant2 1016 . . . . 5  |-  ( ( X  e.  ( A  i^i  B )  /\  ( G `  X )  =  ( K `  X )  /\  A. x  e.  ( ran  G  i^i  ran  K )
( F `  x
)  =  ( H `
 x ) )  ->  ( H `  ( K `  X ) )  =  ( H `
 ( G `  X ) ) )
1716adantl 464 . . . 4  |-  ( ( ( G  Fn  A  /\  K  Fn  B
)  /\  ( X  e.  ( A  i^i  B
)  /\  ( G `  X )  =  ( K `  X )  /\  A. x  e.  ( ran  G  i^i  ran 
K ) ( F `
 x )  =  ( H `  x
) ) )  -> 
( H `  ( K `  X )
)  =  ( H `
 ( G `  X ) ) )
18 id 22 . . . . . . . . . . . 12  |-  ( G  Fn  A  ->  G  Fn  A )
19 fnfvelrn 6004 . . . . . . . . . . . 12  |-  ( ( G  Fn  A  /\  X  e.  A )  ->  ( G `  X
)  e.  ran  G
)
2018, 4, 19syl2anr 476 . . . . . . . . . . 11  |-  ( ( X  e.  ( A  i^i  B )  /\  G  Fn  A )  ->  ( G `  X
)  e.  ran  G
)
2120ex 432 . . . . . . . . . 10  |-  ( X  e.  ( A  i^i  B )  ->  ( G  Fn  A  ->  ( G `
 X )  e. 
ran  G ) )
22 id 22 . . . . . . . . . . . 12  |-  ( K  Fn  B  ->  K  Fn  B )
23 fnfvelrn 6004 . . . . . . . . . . . 12  |-  ( ( K  Fn  B  /\  X  e.  B )  ->  ( K `  X
)  e.  ran  K
)
2422, 10, 23syl2anr 476 . . . . . . . . . . 11  |-  ( ( X  e.  ( A  i^i  B )  /\  K  Fn  B )  ->  ( K `  X
)  e.  ran  K
)
2524ex 432 . . . . . . . . . 10  |-  ( X  e.  ( A  i^i  B )  ->  ( K  Fn  B  ->  ( K `
 X )  e. 
ran  K ) )
2621, 25anim12d 561 . . . . . . . . 9  |-  ( X  e.  ( A  i^i  B )  ->  ( ( G  Fn  A  /\  K  Fn  B )  ->  ( ( G `  X )  e.  ran  G  /\  ( K `  X )  e.  ran  K ) ) )
27 eleq1 2526 . . . . . . . . . . . 12  |-  ( ( K `  X )  =  ( G `  X )  ->  (
( K `  X
)  e.  ran  K  <->  ( G `  X )  e.  ran  K ) )
2827eqcoms 2466 . . . . . . . . . . 11  |-  ( ( G `  X )  =  ( K `  X )  ->  (
( K `  X
)  e.  ran  K  <->  ( G `  X )  e.  ran  K ) )
2928anbi2d 701 . . . . . . . . . 10  |-  ( ( G `  X )  =  ( K `  X )  ->  (
( ( G `  X )  e.  ran  G  /\  ( K `  X )  e.  ran  K )  <->  ( ( G `
 X )  e. 
ran  G  /\  ( G `  X )  e.  ran  K ) ) )
30 elin 3673 . . . . . . . . . . 11  |-  ( ( G `  X )  e.  ( ran  G  i^i  ran  K )  <->  ( ( G `  X )  e.  ran  G  /\  ( G `  X )  e.  ran  K ) )
3130biimpri 206 . . . . . . . . . 10  |-  ( ( ( G `  X
)  e.  ran  G  /\  ( G `  X
)  e.  ran  K
)  ->  ( G `  X )  e.  ( ran  G  i^i  ran  K ) )
3229, 31syl6bi 228 . . . . . . . . 9  |-  ( ( G `  X )  =  ( K `  X )  ->  (
( ( G `  X )  e.  ran  G  /\  ( K `  X )  e.  ran  K )  ->  ( G `  X )  e.  ( ran  G  i^i  ran  K ) ) )
3326, 32sylan9 655 . . . . . . . 8  |-  ( ( X  e.  ( A  i^i  B )  /\  ( G `  X )  =  ( K `  X ) )  -> 
( ( G  Fn  A  /\  K  Fn  B
)  ->  ( G `  X )  e.  ( ran  G  i^i  ran  K ) ) )
34 fveq2 5848 . . . . . . . . . . . 12  |-  ( x  =  ( G `  X )  ->  ( F `  x )  =  ( F `  ( G `  X ) ) )
35 fveq2 5848 . . . . . . . . . . . 12  |-  ( x  =  ( G `  X )  ->  ( H `  x )  =  ( H `  ( G `  X ) ) )
3634, 35eqeq12d 2476 . . . . . . . . . . 11  |-  ( x  =  ( G `  X )  ->  (
( F `  x
)  =  ( H `
 x )  <->  ( F `  ( G `  X
) )  =  ( H `  ( G `
 X ) ) ) )
3736rspcva 3205 . . . . . . . . . 10  |-  ( ( ( G `  X
)  e.  ( ran 
G  i^i  ran  K )  /\  A. x  e.  ( ran  G  i^i  ran 
K ) ( F `
 x )  =  ( H `  x
) )  ->  ( F `  ( G `  X ) )  =  ( H `  ( G `  X )
) )
3837eqcomd 2462 . . . . . . . . 9  |-  ( ( ( G `  X
)  e.  ( ran 
G  i^i  ran  K )  /\  A. x  e.  ( ran  G  i^i  ran 
K ) ( F `
 x )  =  ( H `  x
) )  ->  ( H `  ( G `  X ) )  =  ( F `  ( G `  X )
) )
3938ex 432 . . . . . . . 8  |-  ( ( G `  X )  e.  ( ran  G  i^i  ran  K )  -> 
( A. x  e.  ( ran  G  i^i  ran 
K ) ( F `
 x )  =  ( H `  x
)  ->  ( H `  ( G `  X
) )  =  ( F `  ( G `
 X ) ) ) )
4033, 39syl6 33 . . . . . . 7  |-  ( ( X  e.  ( A  i^i  B )  /\  ( G `  X )  =  ( K `  X ) )  -> 
( ( G  Fn  A  /\  K  Fn  B
)  ->  ( A. x  e.  ( ran  G  i^i  ran  K )
( F `  x
)  =  ( H `
 x )  -> 
( H `  ( G `  X )
)  =  ( F `
 ( G `  X ) ) ) ) )
4140com23 78 . . . . . 6  |-  ( ( X  e.  ( A  i^i  B )  /\  ( G `  X )  =  ( K `  X ) )  -> 
( A. x  e.  ( ran  G  i^i  ran 
K ) ( F `
 x )  =  ( H `  x
)  ->  ( ( G  Fn  A  /\  K  Fn  B )  ->  ( H `  ( G `  X )
)  =  ( F `
 ( G `  X ) ) ) ) )
42413impia 1191 . . . . 5  |-  ( ( X  e.  ( A  i^i  B )  /\  ( G `  X )  =  ( K `  X )  /\  A. x  e.  ( ran  G  i^i  ran  K )
( F `  x
)  =  ( H `
 x ) )  ->  ( ( G  Fn  A  /\  K  Fn  B )  ->  ( H `  ( G `  X ) )  =  ( F `  ( G `  X )
) ) )
4342impcom 428 . . . 4  |-  ( ( ( G  Fn  A  /\  K  Fn  B
)  /\  ( X  e.  ( A  i^i  B
)  /\  ( G `  X )  =  ( K `  X )  /\  A. x  e.  ( ran  G  i^i  ran 
K ) ( F `
 x )  =  ( H `  x
) ) )  -> 
( H `  ( G `  X )
)  =  ( F `
 ( G `  X ) ) )
4413, 17, 433eqtrrd 2500 . . 3  |-  ( ( ( G  Fn  A  /\  K  Fn  B
)  /\  ( X  e.  ( A  i^i  B
)  /\  ( G `  X )  =  ( K `  X )  /\  A. x  e.  ( ran  G  i^i  ran 
K ) ( F `
 x )  =  ( H `  x
) ) )  -> 
( F `  ( G `  X )
)  =  ( ( H  o.  K ) `
 X ) )
457, 44eqtrd 2495 . 2  |-  ( ( ( G  Fn  A  /\  K  Fn  B
)  /\  ( X  e.  ( A  i^i  B
)  /\  ( G `  X )  =  ( K `  X )  /\  A. x  e.  ( ran  G  i^i  ran 
K ) ( F `
 x )  =  ( H `  x
) ) )  -> 
( ( F  o.  G ) `  X
)  =  ( ( H  o.  K ) `
 X ) )
4645ex 432 1  |-  ( ( G  Fn  A  /\  K  Fn  B )  ->  ( ( X  e.  ( A  i^i  B
)  /\  ( G `  X )  =  ( K `  X )  /\  A. x  e.  ( ran  G  i^i  ran 
K ) ( F `
 x )  =  ( H `  x
) )  ->  (
( F  o.  G
) `  X )  =  ( ( H  o.  K ) `  X ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    <-> wb 184    /\ wa 367    /\ w3a 971    = wceq 1398    e. wcel 1823   A.wral 2804    i^i cin 3460   ran crn 4989    o. ccom 4992    Fn wfn 5565   ` cfv 5570
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1623  ax-4 1636  ax-5 1709  ax-6 1752  ax-7 1795  ax-8 1825  ax-9 1827  ax-10 1842  ax-11 1847  ax-12 1859  ax-13 2004  ax-ext 2432  ax-sep 4560  ax-nul 4568  ax-pow 4615  ax-pr 4676
This theorem depends on definitions:  df-bi 185  df-or 368  df-an 369  df-3an 973  df-tru 1401  df-ex 1618  df-nf 1622  df-sb 1745  df-eu 2288  df-mo 2289  df-clab 2440  df-cleq 2446  df-clel 2449  df-nfc 2604  df-ne 2651  df-ral 2809  df-rex 2810  df-rab 2813  df-v 3108  df-sbc 3325  df-dif 3464  df-un 3466  df-in 3468  df-ss 3475  df-nul 3784  df-if 3930  df-sn 4017  df-pr 4019  df-op 4023  df-uni 4236  df-br 4440  df-opab 4498  df-id 4784  df-xp 4994  df-rel 4995  df-cnv 4996  df-co 4997  df-dm 4998  df-rn 4999  df-res 5000  df-ima 5001  df-iota 5534  df-fun 5572  df-fn 5573  df-fv 5578
This theorem is referenced by:  fvcosymgeq  16653
  Copyright terms: Public domain W3C validator