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

Theorem fndmdif 5629
Description: Two ways to express the locus of differences between two functions. (Contributed by Stefan O'Rear, 17-Jan-2015.)
Assertion
Ref Expression
fndmdif  |-  ( ( F  Fn  A  /\  G  Fn  A )  ->  dom  ( F  \  G )  =  {
x  e.  A  | 
( F `  x
)  =/=  ( G `
 x ) } )
Distinct variable groups:    x, F    x, G    x, A

Proof of Theorem fndmdif
Dummy variable  y is distinct from all other variables.
StepHypRef Expression
1 difss 3303 . . . . 5  |-  ( F 
\  G )  C_  F
2 dmss 4878 . . . . 5  |-  ( ( F  \  G ) 
C_  F  ->  dom  ( F  \  G ) 
C_  dom  F )
31, 2ax-mp 8 . . . 4  |-  dom  ( F  \  G )  C_  dom  F
4 fndm 5343 . . . . 5  |-  ( F  Fn  A  ->  dom  F  =  A )
54adantr 451 . . . 4  |-  ( ( F  Fn  A  /\  G  Fn  A )  ->  dom  F  =  A )
63, 5syl5sseq 3226 . . 3  |-  ( ( F  Fn  A  /\  G  Fn  A )  ->  dom  ( F  \  G )  C_  A
)
7 dfss1 3373 . . 3  |-  ( dom  ( F  \  G
)  C_  A  <->  ( A  i^i  dom  ( F  \  G ) )  =  dom  ( F  \  G ) )
86, 7sylib 188 . 2  |-  ( ( F  Fn  A  /\  G  Fn  A )  ->  ( A  i^i  dom  ( F  \  G ) )  =  dom  ( F  \  G ) )
9 vex 2791 . . . . 5  |-  x  e. 
_V
109eldm 4876 . . . 4  |-  ( x  e.  dom  ( F 
\  G )  <->  E. y  x ( F  \  G ) y )
11 eqcom 2285 . . . . . . . . 9  |-  ( ( F `  x )  =  ( G `  x )  <->  ( G `  x )  =  ( F `  x ) )
12 fnbrfvb 5563 . . . . . . . . 9  |-  ( ( G  Fn  A  /\  x  e.  A )  ->  ( ( G `  x )  =  ( F `  x )  <-> 
x G ( F `
 x ) ) )
1311, 12syl5bb 248 . . . . . . . 8  |-  ( ( G  Fn  A  /\  x  e.  A )  ->  ( ( F `  x )  =  ( G `  x )  <-> 
x G ( F `
 x ) ) )
1413adantll 694 . . . . . . 7  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
( F `  x
)  =  ( G `
 x )  <->  x G
( F `  x
) ) )
1514necon3abid 2479 . . . . . 6  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
( F `  x
)  =/=  ( G `
 x )  <->  -.  x G ( F `  x ) ) )
16 fvex 5539 . . . . . . 7  |-  ( F `
 x )  e. 
_V
17 breq2 4027 . . . . . . . 8  |-  ( y  =  ( F `  x )  ->  (
x G y  <->  x G
( F `  x
) ) )
1817notbid 285 . . . . . . 7  |-  ( y  =  ( F `  x )  ->  ( -.  x G y  <->  -.  x G ( F `  x ) ) )
1916, 18ceqsexv 2823 . . . . . 6  |-  ( E. y ( y  =  ( F `  x
)  /\  -.  x G y )  <->  -.  x G ( F `  x ) )
2015, 19syl6bbr 254 . . . . 5  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
( F `  x
)  =/=  ( G `
 x )  <->  E. y
( y  =  ( F `  x )  /\  -.  x G y ) ) )
21 eqcom 2285 . . . . . . . . . 10  |-  ( y  =  ( F `  x )  <->  ( F `  x )  =  y )
22 fnbrfvb 5563 . . . . . . . . . 10  |-  ( ( F  Fn  A  /\  x  e.  A )  ->  ( ( F `  x )  =  y  <-> 
x F y ) )
2321, 22syl5bb 248 . . . . . . . . 9  |-  ( ( F  Fn  A  /\  x  e.  A )  ->  ( y  =  ( F `  x )  <-> 
x F y ) )
2423adantlr 695 . . . . . . . 8  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
y  =  ( F `
 x )  <->  x F
y ) )
2524anbi1d 685 . . . . . . 7  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
( y  =  ( F `  x )  /\  -.  x G y )  <->  ( x F y  /\  -.  x G y ) ) )
26 brdif 4071 . . . . . . 7  |-  ( x ( F  \  G
) y  <->  ( x F y  /\  -.  x G y ) )
2725, 26syl6bbr 254 . . . . . 6  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
( y  =  ( F `  x )  /\  -.  x G y )  <->  x ( F  \  G ) y ) )
2827exbidv 1612 . . . . 5  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  ( E. y ( y  =  ( F `  x
)  /\  -.  x G y )  <->  E. y  x ( F  \  G ) y ) )
2920, 28bitr2d 245 . . . 4  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  ( E. y  x ( F  \  G ) y  <-> 
( F `  x
)  =/=  ( G `
 x ) ) )
3010, 29syl5bb 248 . . 3  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
x  e.  dom  ( F  \  G )  <->  ( F `  x )  =/=  ( G `  x )
) )
3130rabbi2dva 3377 . 2  |-  ( ( F  Fn  A  /\  G  Fn  A )  ->  ( A  i^i  dom  ( F  \  G ) )  =  { x  e.  A  |  ( F `  x )  =/=  ( G `  x
) } )
328, 31eqtr3d 2317 1  |-  ( ( F  Fn  A  /\  G  Fn  A )  ->  dom  ( F  \  G )  =  {
x  e.  A  | 
( F `  x
)  =/=  ( G `
 x ) } )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 176    /\ wa 358   E.wex 1528    = wceq 1623    e. wcel 1684    =/= wne 2446   {crab 2547    \ cdif 3149    i^i cin 3151    C_ wss 3152   class class class wbr 4023   dom cdm 4689    Fn wfn 5250   ` cfv 5255
This theorem is referenced by:  fndmdifcom  5630  fndmdifeq0  5631  wemapso2lem  7265  wemapso2  7267  ptcmplem2  17747  fndifnfp  26756  dsmmbas2  27203  frlmbas  27223
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-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-sep 4141  ax-nul 4149  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-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-id 4309  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-iota 5219  df-fun 5257  df-fn 5258  df-fv 5263
  Copyright terms: Public domain W3C validator