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

Theorem fresaunres2 6591
Description: From the union of two functions that agree on the domain overlap, either component can be recovered by restriction. (Contributed by Stefan O'Rear, 9-Oct-2014.)
Assertion
Ref Expression
fresaunres2 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐹𝐺) ↾ 𝐵) = 𝐺)

Proof of Theorem fresaunres2
StepHypRef Expression
1 ffn 6545 . . . 4 (𝐹:𝐴𝐶𝐹 Fn 𝐴)
2 ffn 6545 . . . 4 (𝐺:𝐵𝐶𝐺 Fn 𝐵)
3 id 22 . . . 4 ((𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵)) → (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵)))
4 resasplit 6589 . . . 4 ((𝐹 Fn 𝐴𝐺 Fn 𝐵 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (𝐹𝐺) = ((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))))
51, 2, 3, 4syl3an 1162 . . 3 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (𝐹𝐺) = ((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))))
65reseq1d 5850 . 2 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐹𝐺) ↾ 𝐵) = (((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))) ↾ 𝐵))
7 resundir 5866 . . 3 (((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))) ↾ 𝐵) = (((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) ∪ (((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴))) ↾ 𝐵))
8 inss2 4144 . . . . . 6 (𝐴𝐵) ⊆ 𝐵
9 resabs2 5883 . . . . . 6 ((𝐴𝐵) ⊆ 𝐵 → ((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) = (𝐹 ↾ (𝐴𝐵)))
108, 9ax-mp 5 . . . . 5 ((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) = (𝐹 ↾ (𝐴𝐵))
11 resundir 5866 . . . . 5 (((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴))) ↾ 𝐵) = (((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) ∪ ((𝐺 ↾ (𝐵𝐴)) ↾ 𝐵))
1210, 11uneq12i 4075 . . . 4 (((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) ∪ (((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴))) ↾ 𝐵)) = ((𝐹 ↾ (𝐴𝐵)) ∪ (((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) ∪ ((𝐺 ↾ (𝐵𝐴)) ↾ 𝐵)))
13 dmres 5873 . . . . . . . . 9 dom ((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) = (𝐵 ∩ dom (𝐹 ↾ (𝐴𝐵)))
14 dmres 5873 . . . . . . . . . . 11 dom (𝐹 ↾ (𝐴𝐵)) = ((𝐴𝐵) ∩ dom 𝐹)
1514ineq2i 4124 . . . . . . . . . 10 (𝐵 ∩ dom (𝐹 ↾ (𝐴𝐵))) = (𝐵 ∩ ((𝐴𝐵) ∩ dom 𝐹))
16 disjdif 4386 . . . . . . . . . . . 12 (𝐵 ∩ (𝐴𝐵)) = ∅
1716ineq1i 4123 . . . . . . . . . . 11 ((𝐵 ∩ (𝐴𝐵)) ∩ dom 𝐹) = (∅ ∩ dom 𝐹)
18 inass 4134 . . . . . . . . . . 11 ((𝐵 ∩ (𝐴𝐵)) ∩ dom 𝐹) = (𝐵 ∩ ((𝐴𝐵) ∩ dom 𝐹))
19 0in 4308 . . . . . . . . . . 11 (∅ ∩ dom 𝐹) = ∅
2017, 18, 193eqtr3i 2773 . . . . . . . . . 10 (𝐵 ∩ ((𝐴𝐵) ∩ dom 𝐹)) = ∅
2115, 20eqtri 2765 . . . . . . . . 9 (𝐵 ∩ dom (𝐹 ↾ (𝐴𝐵))) = ∅
2213, 21eqtri 2765 . . . . . . . 8 dom ((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) = ∅
23 relres 5880 . . . . . . . . 9 Rel ((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵)
24 reldm0 5797 . . . . . . . . 9 (Rel ((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) → (((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) = ∅ ↔ dom ((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) = ∅))
2523, 24ax-mp 5 . . . . . . . 8 (((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) = ∅ ↔ dom ((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) = ∅)
2622, 25mpbir 234 . . . . . . 7 ((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) = ∅
27 difss 4046 . . . . . . . 8 (𝐵𝐴) ⊆ 𝐵
28 resabs2 5883 . . . . . . . 8 ((𝐵𝐴) ⊆ 𝐵 → ((𝐺 ↾ (𝐵𝐴)) ↾ 𝐵) = (𝐺 ↾ (𝐵𝐴)))
2927, 28ax-mp 5 . . . . . . 7 ((𝐺 ↾ (𝐵𝐴)) ↾ 𝐵) = (𝐺 ↾ (𝐵𝐴))
3026, 29uneq12i 4075 . . . . . 6 (((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) ∪ ((𝐺 ↾ (𝐵𝐴)) ↾ 𝐵)) = (∅ ∪ (𝐺 ↾ (𝐵𝐴)))
3130uneq2i 4074 . . . . 5 ((𝐹 ↾ (𝐴𝐵)) ∪ (((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) ∪ ((𝐺 ↾ (𝐵𝐴)) ↾ 𝐵))) = ((𝐹 ↾ (𝐴𝐵)) ∪ (∅ ∪ (𝐺 ↾ (𝐵𝐴))))
32 simp3 1140 . . . . . . 7 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵)))
3332uneq1d 4076 . . . . . 6 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐹 ↾ (𝐴𝐵)) ∪ (∅ ∪ (𝐺 ↾ (𝐵𝐴)))) = ((𝐺 ↾ (𝐴𝐵)) ∪ (∅ ∪ (𝐺 ↾ (𝐵𝐴)))))
34 uncom 4067 . . . . . . . . . 10 (∅ ∪ (𝐺 ↾ (𝐵𝐴))) = ((𝐺 ↾ (𝐵𝐴)) ∪ ∅)
35 un0 4305 . . . . . . . . . 10 ((𝐺 ↾ (𝐵𝐴)) ∪ ∅) = (𝐺 ↾ (𝐵𝐴))
3634, 35eqtri 2765 . . . . . . . . 9 (∅ ∪ (𝐺 ↾ (𝐵𝐴))) = (𝐺 ↾ (𝐵𝐴))
3736uneq2i 4074 . . . . . . . 8 ((𝐺 ↾ (𝐴𝐵)) ∪ (∅ ∪ (𝐺 ↾ (𝐵𝐴)))) = ((𝐺 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))
38 resundi 5865 . . . . . . . . 9 (𝐺 ↾ ((𝐴𝐵) ∪ (𝐵𝐴))) = ((𝐺 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))
39 incom 4115 . . . . . . . . . . . . 13 (𝐴𝐵) = (𝐵𝐴)
4039uneq1i 4073 . . . . . . . . . . . 12 ((𝐴𝐵) ∪ (𝐵𝐴)) = ((𝐵𝐴) ∪ (𝐵𝐴))
41 inundif 4393 . . . . . . . . . . . 12 ((𝐵𝐴) ∪ (𝐵𝐴)) = 𝐵
4240, 41eqtri 2765 . . . . . . . . . . 11 ((𝐴𝐵) ∪ (𝐵𝐴)) = 𝐵
4342reseq2i 5848 . . . . . . . . . 10 (𝐺 ↾ ((𝐴𝐵) ∪ (𝐵𝐴))) = (𝐺𝐵)
44 fnresdm 6496 . . . . . . . . . . . 12 (𝐺 Fn 𝐵 → (𝐺𝐵) = 𝐺)
452, 44syl 17 . . . . . . . . . . 11 (𝐺:𝐵𝐶 → (𝐺𝐵) = 𝐺)
4645adantl 485 . . . . . . . . . 10 ((𝐹:𝐴𝐶𝐺:𝐵𝐶) → (𝐺𝐵) = 𝐺)
4743, 46eqtrid 2789 . . . . . . . . 9 ((𝐹:𝐴𝐶𝐺:𝐵𝐶) → (𝐺 ↾ ((𝐴𝐵) ∪ (𝐵𝐴))) = 𝐺)
4838, 47eqtr3id 2792 . . . . . . . 8 ((𝐹:𝐴𝐶𝐺:𝐵𝐶) → ((𝐺 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴))) = 𝐺)
4937, 48eqtrid 2789 . . . . . . 7 ((𝐹:𝐴𝐶𝐺:𝐵𝐶) → ((𝐺 ↾ (𝐴𝐵)) ∪ (∅ ∪ (𝐺 ↾ (𝐵𝐴)))) = 𝐺)
50493adant3 1134 . . . . . 6 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐺 ↾ (𝐴𝐵)) ∪ (∅ ∪ (𝐺 ↾ (𝐵𝐴)))) = 𝐺)
5133, 50eqtrd 2777 . . . . 5 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐹 ↾ (𝐴𝐵)) ∪ (∅ ∪ (𝐺 ↾ (𝐵𝐴)))) = 𝐺)
5231, 51eqtrid 2789 . . . 4 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐹 ↾ (𝐴𝐵)) ∪ (((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) ∪ ((𝐺 ↾ (𝐵𝐴)) ↾ 𝐵))) = 𝐺)
5312, 52eqtrid 2789 . . 3 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) ∪ (((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴))) ↾ 𝐵)) = 𝐺)
547, 53eqtrid 2789 . 2 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))) ↾ 𝐵) = 𝐺)
556, 54eqtrd 2777 1 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐹𝐺) ↾ 𝐵) = 𝐺)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  w3a 1089   = wceq 1543  cdif 3863  cun 3864  cin 3865  wss 3866  c0 4237  dom cdm 5551  cres 5553  Rel wrel 5556   Fn wfn 6375  wf 6376
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-10 2141  ax-12 2175  ax-ext 2708  ax-sep 5192  ax-nul 5199  ax-pr 5322
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2071  df-clab 2715  df-cleq 2729  df-clel 2816  df-ral 3066  df-rex 3067  df-rab 3070  df-v 3410  df-dif 3869  df-un 3871  df-in 3873  df-ss 3883  df-nul 4238  df-if 4440  df-sn 4542  df-pr 4544  df-op 4548  df-br 5054  df-opab 5116  df-xp 5557  df-rel 5558  df-dm 5561  df-res 5563  df-fun 6382  df-fn 6383  df-f 6384
This theorem is referenced by:  fresaunres1  6592  mapunen  8815  ptuncnv  22704  cvmliftlem10  32969  elmapresaunres2  40296
  Copyright terms: Public domain W3C validator