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

Theorem fndmdif 7082
Description: Two ways to express the locus of differences between two functions. (Contributed by Stefan O'Rear, 17-Jan-2015.)
Assertion
Ref Expression
fndmdif ((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) → dom (𝐹 ∖ 𝐺) = {𝑥 ∈ 𝐴 ∣ (𝐹‘𝑥) ≠ (𝐺‘𝑥)})
Distinct variable groups:   𝑥,𝐹   𝑥,𝐺   𝑥,𝐴

Proof of Theorem fndmdif
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 difss 4077 . . . . 5 (𝐹 ∖ 𝐺) ⊆ 𝐹
2 dmss 5899 . . . . 5 ((𝐹 ∖ 𝐺) ⊆ 𝐹 → dom (𝐹 ∖ 𝐺) ⊆ dom 𝐹)
31, 2ax-mp 5 . . . 4 dom (𝐹 ∖ 𝐺) ⊆ dom 𝐹
4 fndm 6682 . . . . 5 (𝐹 Fn 𝐴 → dom 𝐹 = 𝐴)
54adantr 486 . . . 4 ((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) → dom 𝐹 = 𝐴)
63, 5sseqtrid 3957 . . 3 ((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) → dom (𝐹 ∖ 𝐺) ⊆ 𝐴)
7 sseqin2 4125 . . 3 (dom (𝐹 ∖ 𝐺) ⊆ 𝐴 ↔ (𝐴 ∩ dom (𝐹 ∖ 𝐺)) = dom (𝐹 ∖ 𝐺))
86, 7sylib 221 . 2 ((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) → (𝐴 ∩ dom (𝐹 ∖ 𝐺)) = dom (𝐹 ∖ 𝐺))
9 vex 3460 . . . . 5 𝑥 ∈ V
109eldm 5897 . . . 4 (𝑥 ∈ dom (𝐹 ∖ 𝐺) ↔ ∃𝑦 𝑥(𝐹 ∖ 𝐺)𝑦)
11 eqcom 2776 . . . . . . . . 9 ((𝐹‘𝑥) = (𝐺‘𝑥) ↔ (𝐺‘𝑥) = (𝐹‘𝑥))
12 fnbrfvb 6976 . . . . . . . . 9 ((𝐺 Fn 𝐴 ∧ 𝑥 ∈ 𝐴) → ((𝐺‘𝑥) = (𝐹‘𝑥) ↔ 𝑥𝐺(𝐹‘𝑥)))
1311, 12bitrid 286 . . . . . . . 8 ((𝐺 Fn 𝐴 ∧ 𝑥 ∈ 𝐴) → ((𝐹‘𝑥) = (𝐺‘𝑥) ↔ 𝑥𝐺(𝐹‘𝑥)))
1413adantll 727 . . . . . . 7 (((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) ∧ 𝑥 ∈ 𝐴) → ((𝐹‘𝑥) = (𝐺‘𝑥) ↔ 𝑥𝐺(𝐹‘𝑥)))
1514necon3abid 3001 . . . . . 6 (((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) ∧ 𝑥 ∈ 𝐴) → ((𝐹‘𝑥) ≠ (𝐺‘𝑥) ↔ ¬ 𝑥𝐺(𝐹‘𝑥)))
16 fvex 6939 . . . . . . 7 (𝐹‘𝑥) ∈ V
17 breq2 5115 . . . . . . . 8 (𝑦 = (𝐹‘𝑥) → (𝑥𝐺𝑦 ↔ 𝑥𝐺(𝐹‘𝑥)))
1817notbid 321 . . . . . . 7 (𝑦 = (𝐹‘𝑥) → (¬ 𝑥𝐺𝑦 ↔ ¬ 𝑥𝐺(𝐹‘𝑥)))
1916, 18ceqsexv 3504 . . . . . 6 (∃𝑦(𝑦 = (𝐹‘𝑥) ∧ ¬ 𝑥𝐺𝑦) ↔ ¬ 𝑥𝐺(𝐹‘𝑥))
2015, 19bitr4di 292 . . . . 5 (((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) ∧ 𝑥 ∈ 𝐴) → ((𝐹‘𝑥) ≠ (𝐺‘𝑥) ↔ ∃𝑦(𝑦 = (𝐹‘𝑥) ∧ ¬ 𝑥𝐺𝑦)))
21 eqcom 2776 . . . . . . . . . 10 (𝑦 = (𝐹‘𝑥) ↔ (𝐹‘𝑥) = 𝑦)
22 fnbrfvb 6976 . . . . . . . . . 10 ((𝐹 Fn 𝐴 ∧ 𝑥 ∈ 𝐴) → ((𝐹‘𝑥) = 𝑦 ↔ 𝑥𝐹𝑦))
2321, 22bitrid 286 . . . . . . . . 9 ((𝐹 Fn 𝐴 ∧ 𝑥 ∈ 𝐴) → (𝑦 = (𝐹‘𝑥) ↔ 𝑥𝐹𝑦))
2423adantlr 728 . . . . . . . 8 (((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) ∧ 𝑥 ∈ 𝐴) → (𝑦 = (𝐹‘𝑥) ↔ 𝑥𝐹𝑦))
2524anbi1d 643 . . . . . . 7 (((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) ∧ 𝑥 ∈ 𝐴) → ((𝑦 = (𝐹‘𝑥) ∧ ¬ 𝑥𝐺𝑦) ↔ (𝑥𝐹𝑦 ∧ ¬ 𝑥𝐺𝑦)))
26 brdif 5167 . . . . . . 7 (𝑥(𝐹 ∖ 𝐺)𝑦 ↔ (𝑥𝐹𝑦 ∧ ¬ 𝑥𝐺𝑦))
2725, 26bitr4di 292 . . . . . 6 (((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) ∧ 𝑥 ∈ 𝐴) → ((𝑦 = (𝐹‘𝑥) ∧ ¬ 𝑥𝐺𝑦) ↔ 𝑥(𝐹 ∖ 𝐺)𝑦))
2827exbidv 1958 . . . . 5 (((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) ∧ 𝑥 ∈ 𝐴) → (∃𝑦(𝑦 = (𝐹‘𝑥) ∧ ¬ 𝑥𝐺𝑦) ↔ ∃𝑦 𝑥(𝐹 ∖ 𝐺)𝑦))
2920, 28bitr2d 283 . . . 4 (((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) ∧ 𝑥 ∈ 𝐴) → (∃𝑦 𝑥(𝐹 ∖ 𝐺)𝑦 ↔ (𝐹‘𝑥) ≠ (𝐺‘𝑥)))
3010, 29bitrid 286 . . 3 (((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) ∧ 𝑥 ∈ 𝐴) → (𝑥 ∈ dom (𝐹 ∖ 𝐺) ↔ (𝐹‘𝑥) ≠ (𝐺‘𝑥)))
3130rabbi2dva 4127 . 2 ((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) → (𝐴 ∩ dom (𝐹 ∖ 𝐺)) = {𝑥 ∈ 𝐴 ∣ (𝐹‘𝑥) ≠ (𝐺‘𝑥)})
328, 31eqtr3d 2806 1 ((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) → dom (𝐹 ∖ 𝐺) = {𝑥 ∈ 𝐴 ∣ (𝐹‘𝑥) ≠ (𝐺‘𝑥)})
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1572  ∃wex 1814   ∈ wcel 2151   ≠ wne 2965  {crab 3418   ⊆ wss 3902   ∖ cdif 4050   ∩ cin 4094   class class class wbr 5111  dom cdm 5661   Fn wfn 6568  ‘cfv 6573
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-12 2220  ax-ext 2741  ax-sep 5258  ax-nul 5269  ax-pr 5401
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2105  df-mo 2571  df-eu 2601  df-clab 2748  df-cleq 2761  df-clel 2845  df-ne 2966  df-ral 3087  df-rex 3097  df-rab 3419  df-v 3458  df-ss 3903  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-sn 4591  df-pr 4593  df-op 4844  df-uni 4876  df-br 5112  df-opab 5177  df-id 5556  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-iota 6527  df-fun 6575  df-fn 6576  df-fv 6581
This theorem is used by:  fndmdifcom  7083  fndmdifeq0  7084  fndifnfp  7222  wemapsolem  9591  wemapso2lem  9593  dsmmbas2  22115  frlmbas  22133  ptcmplem2  24450
  Copyright terms: Public domain W3C validator