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

Theorem fresaunres2 6630
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 6584 . . . 4 (𝐹:𝐴𝐶𝐹 Fn 𝐴)
2 ffn 6584 . . . 4 (𝐺:𝐵𝐶𝐺 Fn 𝐵)
3 id 22 . . . 4 ((𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵)) → (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵)))
4 resasplit 6628 . . . 4 ((𝐹 Fn 𝐴𝐺 Fn 𝐵 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (𝐹𝐺) = ((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))))
51, 2, 3, 4syl3an 1158 . . 3 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (𝐹𝐺) = ((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))))
65reseq1d 5879 . 2 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐹𝐺) ↾ 𝐵) = (((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))) ↾ 𝐵))
7 resundir 5895 . . 3 (((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))) ↾ 𝐵) = (((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) ∪ (((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴))) ↾ 𝐵))
8 inss2 4160 . . . . . 6 (𝐴𝐵) ⊆ 𝐵
9 resabs2 5912 . . . . . 6 ((𝐴𝐵) ⊆ 𝐵 → ((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) = (𝐹 ↾ (𝐴𝐵)))
108, 9ax-mp 5 . . . . 5 ((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) = (𝐹 ↾ (𝐴𝐵))
11 resundir 5895 . . . . 5 (((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴))) ↾ 𝐵) = (((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) ∪ ((𝐺 ↾ (𝐵𝐴)) ↾ 𝐵))
1210, 11uneq12i 4091 . . . 4 (((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) ∪ (((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴))) ↾ 𝐵)) = ((𝐹 ↾ (𝐴𝐵)) ∪ (((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) ∪ ((𝐺 ↾ (𝐵𝐴)) ↾ 𝐵)))
13 dmres 5902 . . . . . . . . 9 dom ((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) = (𝐵 ∩ dom (𝐹 ↾ (𝐴𝐵)))
14 dmres 5902 . . . . . . . . . . 11 dom (𝐹 ↾ (𝐴𝐵)) = ((𝐴𝐵) ∩ dom 𝐹)
1514ineq2i 4140 . . . . . . . . . 10 (𝐵 ∩ dom (𝐹 ↾ (𝐴𝐵))) = (𝐵 ∩ ((𝐴𝐵) ∩ dom 𝐹))
16 disjdif 4402 . . . . . . . . . . . 12 (𝐵 ∩ (𝐴𝐵)) = ∅
1716ineq1i 4139 . . . . . . . . . . 11 ((𝐵 ∩ (𝐴𝐵)) ∩ dom 𝐹) = (∅ ∩ dom 𝐹)
18 inass 4150 . . . . . . . . . . 11 ((𝐵 ∩ (𝐴𝐵)) ∩ dom 𝐹) = (𝐵 ∩ ((𝐴𝐵) ∩ dom 𝐹))
19 0in 4324 . . . . . . . . . . 11 (∅ ∩ dom 𝐹) = ∅
2017, 18, 193eqtr3i 2774 . . . . . . . . . 10 (𝐵 ∩ ((𝐴𝐵) ∩ dom 𝐹)) = ∅
2115, 20eqtri 2766 . . . . . . . . 9 (𝐵 ∩ dom (𝐹 ↾ (𝐴𝐵))) = ∅
2213, 21eqtri 2766 . . . . . . . 8 dom ((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) = ∅
23 relres 5909 . . . . . . . . 9 Rel ((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵)
24 reldm0 5826 . . . . . . . . 9 (Rel ((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) → (((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) = ∅ ↔ dom ((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) = ∅))
2523, 24ax-mp 5 . . . . . . . 8 (((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) = ∅ ↔ dom ((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) = ∅)
2622, 25mpbir 230 . . . . . . 7 ((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) = ∅
27 difss 4062 . . . . . . . 8 (𝐵𝐴) ⊆ 𝐵
28 resabs2 5912 . . . . . . . 8 ((𝐵𝐴) ⊆ 𝐵 → ((𝐺 ↾ (𝐵𝐴)) ↾ 𝐵) = (𝐺 ↾ (𝐵𝐴)))
2927, 28ax-mp 5 . . . . . . 7 ((𝐺 ↾ (𝐵𝐴)) ↾ 𝐵) = (𝐺 ↾ (𝐵𝐴))
3026, 29uneq12i 4091 . . . . . 6 (((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) ∪ ((𝐺 ↾ (𝐵𝐴)) ↾ 𝐵)) = (∅ ∪ (𝐺 ↾ (𝐵𝐴)))
3130uneq2i 4090 . . . . 5 ((𝐹 ↾ (𝐴𝐵)) ∪ (((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) ∪ ((𝐺 ↾ (𝐵𝐴)) ↾ 𝐵))) = ((𝐹 ↾ (𝐴𝐵)) ∪ (∅ ∪ (𝐺 ↾ (𝐵𝐴))))
32 simp3 1136 . . . . . . 7 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵)))
3332uneq1d 4092 . . . . . 6 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐹 ↾ (𝐴𝐵)) ∪ (∅ ∪ (𝐺 ↾ (𝐵𝐴)))) = ((𝐺 ↾ (𝐴𝐵)) ∪ (∅ ∪ (𝐺 ↾ (𝐵𝐴)))))
34 uncom 4083 . . . . . . . . . 10 (∅ ∪ (𝐺 ↾ (𝐵𝐴))) = ((𝐺 ↾ (𝐵𝐴)) ∪ ∅)
35 un0 4321 . . . . . . . . . 10 ((𝐺 ↾ (𝐵𝐴)) ∪ ∅) = (𝐺 ↾ (𝐵𝐴))
3634, 35eqtri 2766 . . . . . . . . 9 (∅ ∪ (𝐺 ↾ (𝐵𝐴))) = (𝐺 ↾ (𝐵𝐴))
3736uneq2i 4090 . . . . . . . 8 ((𝐺 ↾ (𝐴𝐵)) ∪ (∅ ∪ (𝐺 ↾ (𝐵𝐴)))) = ((𝐺 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))
38 resundi 5894 . . . . . . . . 9 (𝐺 ↾ ((𝐴𝐵) ∪ (𝐵𝐴))) = ((𝐺 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))
39 incom 4131 . . . . . . . . . . . . 13 (𝐴𝐵) = (𝐵𝐴)
4039uneq1i 4089 . . . . . . . . . . . 12 ((𝐴𝐵) ∪ (𝐵𝐴)) = ((𝐵𝐴) ∪ (𝐵𝐴))
41 inundif 4409 . . . . . . . . . . . 12 ((𝐵𝐴) ∪ (𝐵𝐴)) = 𝐵
4240, 41eqtri 2766 . . . . . . . . . . 11 ((𝐴𝐵) ∪ (𝐵𝐴)) = 𝐵
4342reseq2i 5877 . . . . . . . . . 10 (𝐺 ↾ ((𝐴𝐵) ∪ (𝐵𝐴))) = (𝐺𝐵)
44 fnresdm 6535 . . . . . . . . . . . 12 (𝐺 Fn 𝐵 → (𝐺𝐵) = 𝐺)
452, 44syl 17 . . . . . . . . . . 11 (𝐺:𝐵𝐶 → (𝐺𝐵) = 𝐺)
4645adantl 481 . . . . . . . . . 10 ((𝐹:𝐴𝐶𝐺:𝐵𝐶) → (𝐺𝐵) = 𝐺)
4743, 46eqtrid 2790 . . . . . . . . 9 ((𝐹:𝐴𝐶𝐺:𝐵𝐶) → (𝐺 ↾ ((𝐴𝐵) ∪ (𝐵𝐴))) = 𝐺)
4838, 47eqtr3id 2793 . . . . . . . 8 ((𝐹:𝐴𝐶𝐺:𝐵𝐶) → ((𝐺 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴))) = 𝐺)
4937, 48eqtrid 2790 . . . . . . 7 ((𝐹:𝐴𝐶𝐺:𝐵𝐶) → ((𝐺 ↾ (𝐴𝐵)) ∪ (∅ ∪ (𝐺 ↾ (𝐵𝐴)))) = 𝐺)
50493adant3 1130 . . . . . 6 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐺 ↾ (𝐴𝐵)) ∪ (∅ ∪ (𝐺 ↾ (𝐵𝐴)))) = 𝐺)
5133, 50eqtrd 2778 . . . . 5 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐹 ↾ (𝐴𝐵)) ∪ (∅ ∪ (𝐺 ↾ (𝐵𝐴)))) = 𝐺)
5231, 51eqtrid 2790 . . . 4 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐹 ↾ (𝐴𝐵)) ∪ (((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) ∪ ((𝐺 ↾ (𝐵𝐴)) ↾ 𝐵))) = 𝐺)
5312, 52eqtrid 2790 . . 3 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (((𝐹 ↾ (𝐴𝐵)) ↾ 𝐵) ∪ (((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴))) ↾ 𝐵)) = 𝐺)
547, 53eqtrid 2790 . 2 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))) ↾ 𝐵) = 𝐺)
556, 54eqtrd 2778 1 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐹𝐺) ↾ 𝐵) = 𝐺)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395  w3a 1085   = wceq 1539  cdif 3880  cun 3881  cin 3882  wss 3883  c0 4253  dom cdm 5580  cres 5582  Rel wrel 5585   Fn wfn 6413  wf 6414
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-br 5071  df-opab 5133  df-xp 5586  df-rel 5587  df-dm 5590  df-res 5592  df-fun 6420  df-fn 6421  df-f 6422
This theorem is referenced by:  fresaunres1  6631  mapunen  8882  ptuncnv  22866  cvmliftlem10  33156  elmapresaunres2  40509
  Copyright terms: Public domain W3C validator