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

Theorem fndmdif 5917
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 3592 . . . . 5  |-  ( F 
\  G )  C_  F
2 dmss 5148 . . . . 5  |-  ( ( F  \  G ) 
C_  F  ->  dom  ( F  \  G ) 
C_  dom  F )
31, 2ax-mp 5 . . . 4  |-  dom  ( F  \  G )  C_  dom  F
4 fndm 5619 . . . . 5  |-  ( F  Fn  A  ->  dom  F  =  A )
54adantr 465 . . . 4  |-  ( ( F  Fn  A  /\  G  Fn  A )  ->  dom  F  =  A )
63, 5syl5sseq 3513 . . 3  |-  ( ( F  Fn  A  /\  G  Fn  A )  ->  dom  ( F  \  G )  C_  A
)
7 dfss1 3664 . . 3  |-  ( dom  ( F  \  G
)  C_  A  <->  ( A  i^i  dom  ( F  \  G ) )  =  dom  ( F  \  G ) )
86, 7sylib 196 . 2  |-  ( ( F  Fn  A  /\  G  Fn  A )  ->  ( A  i^i  dom  ( F  \  G ) )  =  dom  ( F  \  G ) )
9 vex 3081 . . . . 5  |-  x  e. 
_V
109eldm 5146 . . . 4  |-  ( x  e.  dom  ( F 
\  G )  <->  E. y  x ( F  \  G ) y )
11 eqcom 2463 . . . . . . . . 9  |-  ( ( F `  x )  =  ( G `  x )  <->  ( G `  x )  =  ( F `  x ) )
12 fnbrfvb 5842 . . . . . . . . 9  |-  ( ( G  Fn  A  /\  x  e.  A )  ->  ( ( G `  x )  =  ( F `  x )  <-> 
x G ( F `
 x ) ) )
1311, 12syl5bb 257 . . . . . . . 8  |-  ( ( G  Fn  A  /\  x  e.  A )  ->  ( ( F `  x )  =  ( G `  x )  <-> 
x G ( F `
 x ) ) )
1413adantll 713 . . . . . . 7  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
( F `  x
)  =  ( G `
 x )  <->  x G
( F `  x
) ) )
1514necon3abid 2698 . . . . . 6  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
( F `  x
)  =/=  ( G `
 x )  <->  -.  x G ( F `  x ) ) )
16 fvex 5810 . . . . . . 7  |-  ( F `
 x )  e. 
_V
17 breq2 4405 . . . . . . . 8  |-  ( y  =  ( F `  x )  ->  (
x G y  <->  x G
( F `  x
) ) )
1817notbid 294 . . . . . . 7  |-  ( y  =  ( F `  x )  ->  ( -.  x G y  <->  -.  x G ( F `  x ) ) )
1916, 18ceqsexv 3115 . . . . . 6  |-  ( E. y ( y  =  ( F `  x
)  /\  -.  x G y )  <->  -.  x G ( F `  x ) )
2015, 19syl6bbr 263 . . . . 5  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
( F `  x
)  =/=  ( G `
 x )  <->  E. y
( y  =  ( F `  x )  /\  -.  x G y ) ) )
21 eqcom 2463 . . . . . . . . . 10  |-  ( y  =  ( F `  x )  <->  ( F `  x )  =  y )
22 fnbrfvb 5842 . . . . . . . . . 10  |-  ( ( F  Fn  A  /\  x  e.  A )  ->  ( ( F `  x )  =  y  <-> 
x F y ) )
2321, 22syl5bb 257 . . . . . . . . 9  |-  ( ( F  Fn  A  /\  x  e.  A )  ->  ( y  =  ( F `  x )  <-> 
x F y ) )
2423adantlr 714 . . . . . . . 8  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
y  =  ( F `
 x )  <->  x F
y ) )
2524anbi1d 704 . . . . . . 7  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
( y  =  ( F `  x )  /\  -.  x G y )  <->  ( x F y  /\  -.  x G y ) ) )
26 brdif 4451 . . . . . . 7  |-  ( x ( F  \  G
) y  <->  ( x F y  /\  -.  x G y ) )
2725, 26syl6bbr 263 . . . . . 6  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
( y  =  ( F `  x )  /\  -.  x G y )  <->  x ( F  \  G ) y ) )
2827exbidv 1681 . . . . 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 254 . . . 4  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  ( E. y  x ( F  \  G ) y  <-> 
( F `  x
)  =/=  ( G `
 x ) ) )
3010, 29syl5bb 257 . . 3  |-  ( ( ( F  Fn  A  /\  G  Fn  A
)  /\  x  e.  A )  ->  (
x  e.  dom  ( F  \  G )  <->  ( F `  x )  =/=  ( G `  x )
) )
3130rabbi2dva 3667 . 2  |-  ( ( F  Fn  A  /\  G  Fn  A )  ->  ( A  i^i  dom  ( F  \  G ) )  =  { x  e.  A  |  ( F `  x )  =/=  ( G `  x
) } )
328, 31eqtr3d 2497 1  |-  ( ( F  Fn  A  /\  G  Fn  A )  ->  dom  ( F  \  G )  =  {
x  e.  A  | 
( F `  x
)  =/=  ( G `
 x ) } )
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 184    /\ wa 369    = wceq 1370   E.wex 1587    e. wcel 1758    =/= wne 2648   {crab 2803    \ cdif 3434    i^i cin 3436    C_ wss 3437   class class class wbr 4401   dom cdm 4949    Fn wfn 5522   ` cfv 5527
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1592  ax-4 1603  ax-5 1671  ax-6 1710  ax-7 1730  ax-9 1762  ax-10 1777  ax-11 1782  ax-12 1794  ax-13 1955  ax-ext 2432  ax-sep 4522  ax-nul 4530  ax-pr 4640
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3an 967  df-tru 1373  df-ex 1588  df-nf 1591  df-sb 1703  df-eu 2266  df-mo 2267  df-clab 2440  df-cleq 2446  df-clel 2449  df-nfc 2604  df-ne 2650  df-ral 2804  df-rex 2805  df-rab 2808  df-v 3080  df-sbc 3295  df-dif 3440  df-un 3442  df-in 3444  df-ss 3451  df-nul 3747  df-if 3901  df-sn 3987  df-pr 3989  df-op 3993  df-uni 4201  df-br 4402  df-opab 4460  df-id 4745  df-xp 4955  df-rel 4956  df-cnv 4957  df-co 4958  df-dm 4959  df-iota 5490  df-fun 5529  df-fn 5530  df-fv 5535
This theorem is referenced by:  fndmdifcom  5918  fndmdifeq0  5919  fndifnfp  6017  wemapsolem  7876  wemapso2OLD  7878  wemapso2lem  7879  dsmmbas2  18288  frlmbas  18306  frlmbasOLD  18307  ptcmplem2  19758
  Copyright terms: Public domain W3C validator