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

Theorem fresaun 6675
Description: The union of two functions which agree on their common domain is a function. (Contributed by Stefan O'Rear, 9-Oct-2014.)
Assertion
Ref Expression
fresaun ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (𝐹𝐺):(𝐴𝐵)⟶𝐶)

Proof of Theorem fresaun
StepHypRef Expression
1 simp1 1136 . . . 4 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → 𝐹:𝐴𝐶)
2 inss1 4168 . . . 4 (𝐴𝐵) ⊆ 𝐴
3 fssres 6670 . . . 4 ((𝐹:𝐴𝐶 ∧ (𝐴𝐵) ⊆ 𝐴) → (𝐹 ↾ (𝐴𝐵)):(𝐴𝐵)⟶𝐶)
41, 2, 3sylancl 587 . . 3 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (𝐹 ↾ (𝐴𝐵)):(𝐴𝐵)⟶𝐶)
5 difss 4072 . . . . 5 (𝐴𝐵) ⊆ 𝐴
6 fssres 6670 . . . . 5 ((𝐹:𝐴𝐶 ∧ (𝐴𝐵) ⊆ 𝐴) → (𝐹 ↾ (𝐴𝐵)):(𝐴𝐵)⟶𝐶)
71, 5, 6sylancl 587 . . . 4 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (𝐹 ↾ (𝐴𝐵)):(𝐴𝐵)⟶𝐶)
8 simp2 1137 . . . . 5 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → 𝐺:𝐵𝐶)
9 difss 4072 . . . . 5 (𝐵𝐴) ⊆ 𝐵
10 fssres 6670 . . . . 5 ((𝐺:𝐵𝐶 ∧ (𝐵𝐴) ⊆ 𝐵) → (𝐺 ↾ (𝐵𝐴)):(𝐵𝐴)⟶𝐶)
118, 9, 10sylancl 587 . . . 4 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (𝐺 ↾ (𝐵𝐴)):(𝐵𝐴)⟶𝐶)
12 indifdir 4224 . . . . . 6 ((𝐴𝐵) ∩ (𝐵𝐴)) = ((𝐴 ∩ (𝐵𝐴)) ∖ (𝐵 ∩ (𝐵𝐴)))
13 disjdif 4411 . . . . . . 7 (𝐴 ∩ (𝐵𝐴)) = ∅
1413difeq1i 4059 . . . . . 6 ((𝐴 ∩ (𝐵𝐴)) ∖ (𝐵 ∩ (𝐵𝐴))) = (∅ ∖ (𝐵 ∩ (𝐵𝐴)))
15 0dif 4341 . . . . . 6 (∅ ∖ (𝐵 ∩ (𝐵𝐴))) = ∅
1612, 14, 153eqtri 2768 . . . . 5 ((𝐴𝐵) ∩ (𝐵𝐴)) = ∅
1716a1i 11 . . . 4 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐴𝐵) ∩ (𝐵𝐴)) = ∅)
187, 11, 17fun2d 6668 . . 3 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴))):((𝐴𝐵) ∪ (𝐵𝐴))⟶𝐶)
19 indi 4213 . . . . 5 ((𝐴𝐵) ∩ ((𝐴𝐵) ∪ (𝐵𝐴))) = (((𝐴𝐵) ∩ (𝐴𝐵)) ∪ ((𝐴𝐵) ∩ (𝐵𝐴)))
20 inass 4159 . . . . . . 7 ((𝐴𝐵) ∩ (𝐴𝐵)) = (𝐴 ∩ (𝐵 ∩ (𝐴𝐵)))
21 disjdif 4411 . . . . . . . 8 (𝐵 ∩ (𝐴𝐵)) = ∅
2221ineq2i 4149 . . . . . . 7 (𝐴 ∩ (𝐵 ∩ (𝐴𝐵))) = (𝐴 ∩ ∅)
23 in0 4331 . . . . . . 7 (𝐴 ∩ ∅) = ∅
2420, 22, 233eqtri 2768 . . . . . 6 ((𝐴𝐵) ∩ (𝐴𝐵)) = ∅
25 incom 4141 . . . . . . . 8 (𝐴𝐵) = (𝐵𝐴)
2625ineq1i 4148 . . . . . . 7 ((𝐴𝐵) ∩ (𝐵𝐴)) = ((𝐵𝐴) ∩ (𝐵𝐴))
27 inass 4159 . . . . . . . 8 ((𝐵𝐴) ∩ (𝐵𝐴)) = (𝐵 ∩ (𝐴 ∩ (𝐵𝐴)))
2813ineq2i 4149 . . . . . . . 8 (𝐵 ∩ (𝐴 ∩ (𝐵𝐴))) = (𝐵 ∩ ∅)
29 in0 4331 . . . . . . . 8 (𝐵 ∩ ∅) = ∅
3027, 28, 293eqtri 2768 . . . . . . 7 ((𝐵𝐴) ∩ (𝐵𝐴)) = ∅
3126, 30eqtri 2764 . . . . . 6 ((𝐴𝐵) ∩ (𝐵𝐴)) = ∅
3224, 31uneq12i 4101 . . . . 5 (((𝐴𝐵) ∩ (𝐴𝐵)) ∪ ((𝐴𝐵) ∩ (𝐵𝐴))) = (∅ ∪ ∅)
33 un0 4330 . . . . 5 (∅ ∪ ∅) = ∅
3419, 32, 333eqtri 2768 . . . 4 ((𝐴𝐵) ∩ ((𝐴𝐵) ∪ (𝐵𝐴))) = ∅
3534a1i 11 . . 3 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐴𝐵) ∩ ((𝐴𝐵) ∪ (𝐵𝐴))) = ∅)
364, 18, 35fun2d 6668 . 2 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))):((𝐴𝐵) ∪ ((𝐴𝐵) ∪ (𝐵𝐴)))⟶𝐶)
37 un12 4107 . . . . 5 ((𝐴𝐵) ∪ ((𝐴𝐵) ∪ (𝐵𝐴))) = ((𝐴𝐵) ∪ ((𝐴𝐵) ∪ (𝐵𝐴)))
3825uneq1i 4099 . . . . . . 7 ((𝐴𝐵) ∪ (𝐵𝐴)) = ((𝐵𝐴) ∪ (𝐵𝐴))
39 inundif 4418 . . . . . . 7 ((𝐵𝐴) ∪ (𝐵𝐴)) = 𝐵
4038, 39eqtri 2764 . . . . . 6 ((𝐴𝐵) ∪ (𝐵𝐴)) = 𝐵
4140uneq2i 4100 . . . . 5 ((𝐴𝐵) ∪ ((𝐴𝐵) ∪ (𝐵𝐴))) = ((𝐴𝐵) ∪ 𝐵)
42 undif1 4415 . . . . 5 ((𝐴𝐵) ∪ 𝐵) = (𝐴𝐵)
4337, 41, 423eqtri 2768 . . . 4 ((𝐴𝐵) ∪ ((𝐴𝐵) ∪ (𝐵𝐴))) = (𝐴𝐵)
4443feq2i 6622 . . 3 (((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))):((𝐴𝐵) ∪ ((𝐴𝐵) ∪ (𝐵𝐴)))⟶𝐶 ↔ ((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))):(𝐴𝐵)⟶𝐶)
45 ffn 6630 . . . . 5 (𝐹:𝐴𝐶𝐹 Fn 𝐴)
46 ffn 6630 . . . . 5 (𝐺:𝐵𝐶𝐺 Fn 𝐵)
47 id 22 . . . . 5 ((𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵)) → (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵)))
48 resasplit 6674 . . . . 5 ((𝐹 Fn 𝐴𝐺 Fn 𝐵 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (𝐹𝐺) = ((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))))
4945, 46, 47, 48syl3an 1160 . . . 4 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (𝐹𝐺) = ((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))))
5049feq1d 6615 . . 3 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → ((𝐹𝐺):(𝐴𝐵)⟶𝐶 ↔ ((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))):(𝐴𝐵)⟶𝐶))
5144, 50bitr4id 290 . 2 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (((𝐹 ↾ (𝐴𝐵)) ∪ ((𝐹 ↾ (𝐴𝐵)) ∪ (𝐺 ↾ (𝐵𝐴)))):((𝐴𝐵) ∪ ((𝐴𝐵) ∪ (𝐵𝐴)))⟶𝐶 ↔ (𝐹𝐺):(𝐴𝐵)⟶𝐶))
5236, 51mpbid 231 1 ((𝐹:𝐴𝐶𝐺:𝐵𝐶 ∧ (𝐹 ↾ (𝐴𝐵)) = (𝐺 ↾ (𝐴𝐵))) → (𝐹𝐺):(𝐴𝐵)⟶𝐶)
Colors of variables: wff setvar class
Syntax hints:  wi 4  w3a 1087   = wceq 1539  cdif 3889  cun 3890  cin 3891  wss 3892  c0 4262  cres 5602   Fn wfn 6453  wf 6454
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1911  ax-6 1969  ax-7 2009  ax-8 2106  ax-9 2114  ax-10 2135  ax-12 2169  ax-ext 2707  ax-sep 5232  ax-nul 5239  ax-pr 5361
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 846  df-3an 1089  df-tru 1542  df-fal 1552  df-ex 1780  df-nf 1784  df-sb 2066  df-clab 2714  df-cleq 2728  df-clel 2814  df-ral 3063  df-rex 3072  df-rab 3306  df-v 3439  df-dif 3895  df-un 3897  df-in 3899  df-ss 3909  df-nul 4263  df-if 4466  df-sn 4566  df-pr 4568  df-op 4572  df-br 5082  df-opab 5144  df-id 5500  df-xp 5606  df-rel 5607  df-cnv 5608  df-co 5609  df-dm 5610  df-rn 5611  df-res 5612  df-fun 6460  df-fn 6461  df-f 6462
This theorem is referenced by:  elmapresaun  8699  cvmliftlem10  33305
  Copyright terms: Public domain W3C validator