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

Theorem resasplit 6644
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 6551 . . . 4 (𝐹 Fn 𝐴 → (𝐹𝐴) = 𝐹)
2 fnresdm 6551 . . . 4 (𝐺 Fn 𝐵 → (𝐺𝐵) = 𝐺)
3 uneq12 4092 . . . 4 (((𝐹𝐴) = 𝐹 ∧ (𝐺𝐵) = 𝐺) → ((𝐹𝐴) ∪ (𝐺𝐵)) = (𝐹𝐺))
41, 2, 3syl2an 596 . . 3 ((𝐹 Fn 𝐴𝐺 Fn 𝐵) → ((𝐹𝐴) ∪ (𝐺𝐵)) = (𝐹𝐺))
543adant3 1131 . 2 ((𝐹 Fn 𝐴𝐺 Fn 𝐵 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐹𝐴) ∪ (𝐺𝐵)) = (𝐹𝐺))
6 inundif 4412 . . . . . . . 8 ((𝐴𝐵) ∪ (𝐴𝐵)) = 𝐴
76reseq2i 5888 . . . . . . 7 (𝐹 ↾ ((𝐴𝐵) ∪ (𝐴𝐵))) = (𝐹𝐴)
8 resundi 5905 . . . . . . 7 (𝐹 ↾ ((𝐴𝐵) ∪ (𝐴𝐵))) = ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐹 ↾ (𝐴𝐵)))
97, 8eqtr3i 2768 . . . . . 6 (𝐹𝐴) = ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐹 ↾ (𝐴𝐵)))
10 incom 4135 . . . . . . . . . 10 (𝐴𝐵) = (𝐵𝐴)
1110uneq1i 4093 . . . . . . . . 9 ((𝐴𝐵) ∪ (𝐵𝐴)) = ((𝐵𝐴) ∪ (𝐵𝐴))
12 inundif 4412 . . . . . . . . 9 ((𝐵𝐴) ∪ (𝐵𝐴)) = 𝐵
1311, 12eqtri 2766 . . . . . . . 8 ((𝐴𝐵) ∪ (𝐵𝐴)) = 𝐵
1413reseq2i 5888 . . . . . . 7 (𝐺 ↾ ((𝐴𝐵) ∪ (𝐵𝐴))) = (𝐺𝐵)
15 resundi 5905 . . . . . . 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 5591   Fn wfn 6428
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-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352
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 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-br 5075  df-opab 5137  df-xp 5595  df-rel 5596  df-dm 5599  df-res 5601  df-fun 6435  df-fn 6436
This theorem is referenced by:  fresaun  6645  fresaunres2  6646
  Copyright terms: Public domain W3C validator