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

Theorem resasplit 6637
Description: If two functions agree on their common domain, express their union as a union of three functions with pairwise disjoint domains. (Contributed by Stefan O'Rear, 9-Oct-2014.)
Assertion
Ref Expression
resasplit ((𝐹 Fn 𝐴𝐺 Fn 𝐵 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (𝐹𝐺) = ((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))))

Proof of Theorem resasplit
StepHypRef Expression
1 fnresdm 6544 . . . 4 (𝐹 Fn 𝐴 → (𝐹𝐴) = 𝐹)
2 fnresdm 6544 . . . 4 (𝐺 Fn 𝐵 → (𝐺𝐵) = 𝐺)
3 uneq12 4092 . . . 4 (((𝐹𝐴) = 𝐹 ∧ (𝐺𝐵) = 𝐺) → ((𝐹𝐴) ∪ (𝐺𝐵)) = (𝐹𝐺))
41, 2, 3syl2an 596 . . 3 ((𝐹 Fn 𝐴𝐺 Fn 𝐵) → ((𝐹𝐴) ∪ (𝐺𝐵)) = (𝐹𝐺))
543adant3 1131 . 2 ((𝐹 Fn 𝐴𝐺 Fn 𝐵 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐹𝐴) ∪ (𝐺𝐵)) = (𝐹𝐺))
6 inundif 4413 . . . . . . . 8 ((𝐴𝐵) ∪ (𝐴𝐵)) = 𝐴
76reseq2i 5882 . . . . . . 7 (𝐹 ↾ ((𝐴𝐵) ∪ (𝐴𝐵))) = (𝐹𝐴)
8 resundi 5899 . . . . . . 7 (𝐹 ↾ ((𝐴𝐵) ∪ (𝐴𝐵))) = ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐹 ↾ (𝐴𝐵)))
97, 8eqtr3i 2768 . . . . . 6 (𝐹𝐴) = ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐹 ↾ (𝐴𝐵)))
10 incom 4135 . . . . . . . . . 10 (𝐴𝐵) = (𝐵𝐴)
1110uneq1i 4093 . . . . . . . . 9 ((𝐴𝐵) ∪ (𝐵𝐴)) = ((𝐵𝐴) ∪ (𝐵𝐴))
12 inundif 4413 . . . . . . . . 9 ((𝐵𝐴) ∪ (𝐵𝐴)) = 𝐵
1311, 12eqtri 2766 . . . . . . . 8 ((𝐴𝐵) ∪ (𝐵𝐴)) = 𝐵
1413reseq2i 5882 . . . . . . 7 (𝐺 ↾ ((𝐴𝐵) ∪ (𝐵𝐴))) = (𝐺𝐵)
15 resundi 5899 . . . . . . 7 (𝐺 ↾ ((𝐴𝐵) ∪ (𝐵𝐴))) = ((𝐺 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))
1614, 15eqtr3i 2768 . . . . . 6 (𝐺𝐵) = ((𝐺 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))
179, 16uneq12i 4095 . . . . 5 ((𝐹𝐴) ∪ (𝐺𝐵)) = (((𝐹 ↾ (𝐴𝐵)) ∪ (𝐹 ↾ (𝐴𝐵))) ∪ ((𝐺 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴))))
18 simp3 1137 . . . . . . 7 ((𝐹 Fn 𝐴𝐺 Fn 𝐵 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵)))
1918uneq1d 4096 . . . . . 6 ((𝐹 Fn 𝐴𝐺 Fn 𝐵 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴))) = ((𝐺 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴))))
2019uneq2d 4097 . . . . 5 ((𝐹 Fn 𝐴𝐺 Fn 𝐵 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (((𝐹 ↾ (𝐴𝐵)) ∪ (𝐹 ↾ (𝐴𝐵))) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))) = (((𝐹 ↾ (𝐴𝐵)) ∪ (𝐹 ↾ (𝐴𝐵))) ∪ ((𝐺 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))))
2117, 20eqtr4id 2797 . . . 4 ((𝐹 Fn 𝐴𝐺 Fn 𝐵 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐹𝐴) ∪ (𝐺𝐵)) = (((𝐹 ↾ (𝐴𝐵)) ∪ (𝐹 ↾ (𝐴𝐵))) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))))
22 un4 4103 . . . 4 (((𝐹 ↾ (𝐴𝐵)) ∪ (𝐹 ↾ (𝐴𝐵))) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))) = (((𝐹 ↾ (𝐴𝐵)) ∪ (𝐹 ↾ (𝐴𝐵))) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴))))
2321, 22eqtrdi 2794 . . 3 ((𝐹 Fn 𝐴𝐺 Fn 𝐵 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐹𝐴) ∪ (𝐺𝐵)) = (((𝐹 ↾ (𝐴𝐵)) ∪ (𝐹 ↾ (𝐴𝐵))) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))))
24 unidm 4086 . . . 4 ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐹 ↾ (𝐴𝐵))) = (𝐹 ↾ (𝐴𝐵))
2524uneq1i 4093 . . 3 (((𝐹 ↾ (𝐴𝐵)) ∪ (𝐹 ↾ (𝐴𝐵))) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))) = ((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴))))
2623, 25eqtrdi 2794 . 2 ((𝐹 Fn 𝐴𝐺 Fn 𝐵 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐹𝐴) ∪ (𝐺𝐵)) = ((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))))
275, 26eqtr3d 2780 1 ((𝐹 Fn 𝐴𝐺 Fn 𝐵 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (𝐹𝐺) = ((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))))
Colors of variables: wff setvar class
Syntax hints:  wi 4  w3a 1086   = wceq 1539  cdif 3884  cun 3885  cin 3886  cres 5587   Fn wfn 6422
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-12 2171  ax-ext 2709  ax-sep 5222  ax-nul 5229  ax-pr 5351
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3432  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4258  df-if 4461  df-sn 4563  df-pr 4565  df-op 4569  df-br 5075  df-opab 5137  df-xp 5591  df-rel 5592  df-dm 5595  df-res 5597  df-fun 6429  df-fn 6430
This theorem is referenced by:  fresaun  6638  fresaunres2  6639
  Copyright terms: Public domain W3C validator