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

Theorem fndmdif 5797
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 3438 . . . . 5  |-  ( F 
\  G )  C_  F
2 dmss 5032 . . . . 5  |-  ( ( F  \  G ) 
C_  F  ->  dom  ( F  \  G ) 
C_  dom  F )
31, 2ax-mp 8 . . . 4  |-  dom  ( F  \  G )  C_  dom  F
4 fndm 5507 . . . . 5  |-  ( F  Fn  A  ->  dom  F  =  A )
54adantr 452 . . . 4  |-  ( ( F  Fn  A  /\  G  Fn  A )  ->  dom  F  =  A )
63, 5syl5sseq 3360 . . 3  |-  ( ( F  Fn  A  /\  G  Fn  A )  ->  dom  ( F  \  G )  C_  A
)
7 dfss1 3509 . . 3  |-  ( dom  ( F  \  G
)  C_  A  <->  ( A  i^i  dom  ( F  \  G ) )  =  dom  ( F  \  G ) )
86, 7sylib 189 . 2  |-  ( ( F  Fn  A  /\  G  Fn  A )  ->  ( A  i^i  dom  ( F  \  G ) )  =  dom  ( F  \  G ) )
9 vex 2923 . . . . 5  |-  x  e. 
_V
109eldm 5030 . . . 4  |-  ( x  e.  dom  ( F 
\  G )  <->  E. y  x ( F  \  G ) y )
11 eqcom 2410 . . . . . . . . 9  |-  ( ( F `  x )  =  ( G `  x )  <->  ( G `  x )  =  ( F `  x ) )
12 fnbrfvb 5730 . . . . . . . . 9  |-  ( ( G  Fn  A  /\  x  e.  A )  ->  ( ( G `  x )  =  ( F `  x )  <-> 
x G ( F `
 x ) ) )
1311, 12syl5bb 249 . . . . . . . 8  |-  ( ( G  Fn  A  /\  x  e.  A )  ->  ( ( F `  x )  =  ( G `  x )  <-> 
x G ( F `
 x ) ) )
1413adantll 695 . . . . . . 7  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
( F `  x
)  =  ( G `
 x )  <->  x G
( F `  x
) ) )
1514necon3abid 2604 . . . . . 6  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
( F `  x
)  =/=  ( G `
 x )  <->  -.  x G ( F `  x ) ) )
16 fvex 5705 . . . . . . 7  |-  ( F `
 x )  e. 
_V
17 breq2 4180 . . . . . . . 8  |-  ( y  =  ( F `  x )  ->  (
x G y  <->  x G
( F `  x
) ) )
1817notbid 286 . . . . . . 7  |-  ( y  =  ( F `  x )  ->  ( -.  x G y  <->  -.  x G ( F `  x ) ) )
1916, 18ceqsexv 2955 . . . . . 6  |-  ( E. y ( y  =  ( F `  x
)  /\  -.  x G y )  <->  -.  x G ( F `  x ) )
2015, 19syl6bbr 255 . . . . 5  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
( F `  x
)  =/=  ( G `
 x )  <->  E. y
( y  =  ( F `  x )  /\  -.  x G y ) ) )
21 eqcom 2410 . . . . . . . . . 10  |-  ( y  =  ( F `  x )  <->  ( F `  x )  =  y )
22 fnbrfvb 5730 . . . . . . . . . 10  |-  ( ( F  Fn  A  /\  x  e.  A )  ->  ( ( F `  x )  =  y  <-> 
x F y ) )
2321, 22syl5bb 249 . . . . . . . . 9  |-  ( ( F  Fn  A  /\  x  e.  A )  ->  ( y  =  ( F `  x )  <-> 
x F y ) )
2423adantlr 696 . . . . . . . 8  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
y  =  ( F `
 x )  <->  x F
y ) )
2524anbi1d 686 . . . . . . 7  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
( y  =  ( F `  x )  /\  -.  x G y )  <->  ( x F y  /\  -.  x G y ) ) )
26 brdif 4224 . . . . . . 7  |-  ( x ( F  \  G
) y  <->  ( x F y  /\  -.  x G y ) )
2725, 26syl6bbr 255 . . . . . 6  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
( y  =  ( F `  x )  /\  -.  x G y )  <->  x ( F  \  G ) y ) )
2827exbidv 1633 . . . . 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 246 . . . 4  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  ( E. y  x ( F  \  G ) y  <-> 
( F `  x
)  =/=  ( G `
 x ) ) )
3010, 29syl5bb 249 . . 3  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
x  e.  dom  ( F  \  G )  <->  ( F `  x )  =/=  ( G `  x )
) )
3130rabbi2dva 3513 . 2  |-  ( ( F  Fn  A  /\  G  Fn  A )  ->  ( A  i^i  dom  ( F  \  G ) )  =  { x  e.  A  |  ( F `  x )  =/=  ( G `  x
) } )
328, 31eqtr3d 2442 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 177    /\ wa 359   E.wex 1547    = wceq 1649    e. wcel 1721    =/= wne 2571   {crab 2674    \ cdif 3281    i^i cin 3283    C_ wss 3284   class class class wbr 4176   dom cdm 4841    Fn wfn 5412   ` cfv 5417
This theorem is referenced by:  fndmdifcom  5798  fndmdifeq0  5799  wemapso2lem  7479  wemapso2  7481  ptcmplem2  18041  fndifnfp  26631  dsmmbas2  27075  frlmbas  27095
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1552  ax-5 1563  ax-17 1623  ax-9 1662  ax-8 1683  ax-14 1725  ax-6 1740  ax-7 1745  ax-11 1757  ax-12 1946  ax-ext 2389  ax-sep 4294  ax-nul 4302  ax-pr 4367
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3an 938  df-tru 1325  df-ex 1548  df-nf 1551  df-sb 1656  df-eu 2262  df-mo 2263  df-clab 2395  df-cleq 2401  df-clel 2404  df-nfc 2533  df-ne 2573  df-ral 2675  df-rex 2676  df-rab 2679  df-v 2922  df-sbc 3126  df-dif 3287  df-un 3289  df-in 3291  df-ss 3298  df-nul 3593  df-if 3704  df-sn 3784  df-pr 3785  df-op 3787  df-uni 3980  df-br 4177  df-opab 4231  df-id 4462  df-xp 4847  df-rel 4848  df-cnv 4849  df-co 4850  df-dm 4851  df-iota 5381  df-fun 5419  df-fn 5420  df-fv 5425
  Copyright terms: Public domain W3C validator