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

Theorem fndmdif 7041
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 4072 . . . . 5 (𝐹 ∖ 𝐺) ⊆ 𝐹
2 dmss 5883 . . . . 5 ((𝐹 ∖ 𝐺) ⊆ 𝐹 → dom (𝐹 ∖ 𝐺) ⊆ dom 𝐹)
31, 2ax-mp 5 . . . 4 dom (𝐹 ∖ 𝐺) ⊆ dom 𝐹
4 fndm 6642 . . . . 5 (𝐹 Fn 𝐴 → dom 𝐹 = 𝐴)
54adantr 486 . . . 4 ((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) → dom 𝐹 = 𝐴)
63, 5sseqtrid 3950 . . 3 ((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) → dom (𝐹 ∖ 𝐺) ⊆ 𝐴)
7 sseqin2 4120 . . 3 (dom (𝐹 ∖ 𝐺) ⊆ 𝐴 ↔ (𝐴 ∩ dom (𝐹 ∖ 𝐺)) = dom (𝐹 ∖ 𝐺))
86, 7sylib 221 . 2 ((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) → (𝐴 ∩ dom (𝐹 ∖ 𝐺)) = dom (𝐹 ∖ 𝐺))
9 vex 3454 . . . . 5 𝑥 ∈ V
109eldm 5881 . . . 4 (𝑥 ∈ dom (𝐹 ∖ 𝐺) ↔ ∃𝑦 𝑥(𝐹 ∖ 𝐺)𝑦)
11 eqcom 2767 . . . . . . . . 9 ((𝐹‘𝑥) = (𝐺‘𝑥) ↔ (𝐺‘𝑥) = (𝐹‘𝑥))
12 fnbrfvb 6935 . . . . . . . . 9 ((𝐺 Fn 𝐴 ∧ 𝑥 ∈ 𝐴) → ((𝐺‘𝑥) = (𝐹‘𝑥) ↔ 𝑥𝐺(𝐹‘𝑥)))
1311, 12bitrid 286 . . . . . . . 8 ((𝐺 Fn 𝐴 ∧ 𝑥 ∈ 𝐴) → ((𝐹‘𝑥) = (𝐺‘𝑥) ↔ 𝑥𝐺(𝐹‘𝑥)))
1413adantll 727 . . . . . . 7 (((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) ∧ 𝑥 ∈ 𝐴) → ((𝐹‘𝑥) = (𝐺‘𝑥) ↔ 𝑥𝐺(𝐹‘𝑥)))
1514necon3abid 2991 . . . . . 6 (((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) ∧ 𝑥 ∈ 𝐴) → ((𝐹‘𝑥) ≠ (𝐺‘𝑥) ↔ ¬ 𝑥𝐺(𝐹‘𝑥)))
16 fvex 6898 . . . . . . 7 (𝐹‘𝑥) ∈ V
17 breq2 5106 . . . . . . . 8 (𝑦 = (𝐹‘𝑥) → (𝑥𝐺𝑦 ↔ 𝑥𝐺(𝐹‘𝑥)))
1817notbid 321 . . . . . . 7 (𝑦 = (𝐹‘𝑥) → (¬ 𝑥𝐺𝑦 ↔ ¬ 𝑥𝐺(𝐹‘𝑥)))
1916, 18ceqsexv 3498 . . . . . 6 (∃𝑦(𝑦 = (𝐹‘𝑥) ∧ ¬ 𝑥𝐺𝑦) ↔ ¬ 𝑥𝐺(𝐹‘𝑥))
2015, 19bitr4di 292 . . . . 5 (((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) ∧ 𝑥 ∈ 𝐴) → ((𝐹‘𝑥) ≠ (𝐺‘𝑥) ↔ ∃𝑦(𝑦 = (𝐹‘𝑥) ∧ ¬ 𝑥𝐺𝑦)))
21 eqcom 2767 . . . . . . . . . 10 (𝑦 = (𝐹‘𝑥) ↔ (𝐹‘𝑥) = 𝑦)
22 fnbrfvb 6935 . . . . . . . . . 10 ((𝐹 Fn 𝐴 ∧ 𝑥 ∈ 𝐴) → ((𝐹‘𝑥) = 𝑦 ↔ 𝑥𝐹𝑦))
2321, 22bitrid 286 . . . . . . . . 9 ((𝐹 Fn 𝐴 ∧ 𝑥 ∈ 𝐴) → (𝑦 = (𝐹‘𝑥) ↔ 𝑥𝐹𝑦))
2423adantlr 728 . . . . . . . 8 (((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) ∧ 𝑥 ∈ 𝐴) → (𝑦 = (𝐹‘𝑥) ↔ 𝑥𝐹𝑦))
2524anbi1d 643 . . . . . . 7 (((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) ∧ 𝑥 ∈ 𝐴) → ((𝑦 = (𝐹‘𝑥) ∧ ¬ 𝑥𝐺𝑦) ↔ (𝑥𝐹𝑦 ∧ ¬ 𝑥𝐺𝑦)))
26 brdif 5157 . . . . . . 7 (𝑥(𝐹 ∖ 𝐺)𝑦 ↔ (𝑥𝐹𝑦 ∧ ¬ 𝑥𝐺𝑦))
2725, 26bitr4di 292 . . . . . 6 (((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) ∧ 𝑥 ∈ 𝐴) → ((𝑦 = (𝐹‘𝑥) ∧ ¬ 𝑥𝐺𝑦) ↔ 𝑥(𝐹 ∖ 𝐺)𝑦))
2827exbidv 1953 . . . . 5 (((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) ∧ 𝑥 ∈ 𝐴) → (∃𝑦(𝑦 = (𝐹‘𝑥) ∧ ¬ 𝑥𝐺𝑦) ↔ ∃𝑦 𝑥(𝐹 ∖ 𝐺)𝑦))
2920, 28bitr2d 283 . . . 4 (((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) ∧ 𝑥 ∈ 𝐴) → (∃𝑦 𝑥(𝐹 ∖ 𝐺)𝑦 ↔ (𝐹‘𝑥) ≠ (𝐺‘𝑥)))
3010, 29bitrid 286 . . 3 (((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) ∧ 𝑥 ∈ 𝐴) → (𝑥 ∈ dom (𝐹 ∖ 𝐺) ↔ (𝐹‘𝑥) ≠ (𝐺‘𝑥)))
3130rabbi2dva 4122 . 2 ((𝐹 Fn 𝐴 ∧ 𝐺 Fn 𝐴) → (𝐴 ∩ dom (𝐹 ∖ 𝐺)) = {𝑥 ∈ 𝐴 ∣ (𝐹‘𝑥) ≠ (𝐺‘𝑥)})
328, 31eqtr3d 2797 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 1569  ∃wex 1811   ∈ wcel 2144   ≠ wne 2955  {crab 3412   ⊆ wss 3895   ∖ cdif 4045   ∩ cin 4089   class class class wbr 5102  dom cdm 5650   Fn wfn 6533  ‘cfv 6538
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-nul 5259  ax-pr 5390
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-br 5103  df-opab 5167  df-id 5545  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-iota 6494  df-fun 6540  df-fn 6541  df-fv 6546
This theorem is used by:  fndmdifcom  7042  fndmdifeq0  7043  fndifnfp  7181  wemapsolem  9547  wemapso2lem  9549  dsmmbas2  22048  frlmbas  22066  ptcmplem2  24377
  Copyright terms: Public domain W3C validator