Users' Mathboxes Mathbox for Steven Nguyen < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  ofun Structured version   Visualization version   GIF version

Theorem ofun 40137
Description: A function operation of unions of disjoint functions is a union of function operations. (Contributed by SN, 16-Jun-2024.)
Hypotheses
Ref Expression
ofun.a (𝜑𝐴 Fn 𝑀)
ofun.b (𝜑𝐵 Fn 𝑀)
ofun.c (𝜑𝐶 Fn 𝑁)
ofun.d (𝜑𝐷 Fn 𝑁)
ofun.m (𝜑𝑀𝑉)
ofun.n (𝜑𝑁𝑊)
ofun.1 (𝜑 → (𝑀𝑁) = ∅)
Assertion
Ref Expression
ofun (𝜑 → ((𝐴𝐶) ∘f 𝑅(𝐵𝐷)) = ((𝐴f 𝑅𝐵) ∪ (𝐶f 𝑅𝐷)))

Proof of Theorem ofun
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 ofun.a . . . 4 (𝜑𝐴 Fn 𝑀)
2 ofun.c . . . 4 (𝜑𝐶 Fn 𝑁)
3 ofun.1 . . . 4 (𝜑 → (𝑀𝑁) = ∅)
41, 2, 3fnund 6530 . . 3 (𝜑 → (𝐴𝐶) Fn (𝑀𝑁))
5 ofun.b . . . 4 (𝜑𝐵 Fn 𝑀)
6 ofun.d . . . 4 (𝜑𝐷 Fn 𝑁)
75, 6, 3fnund 6530 . . 3 (𝜑 → (𝐵𝐷) Fn (𝑀𝑁))
8 ofun.m . . . 4 (𝜑𝑀𝑉)
9 ofun.n . . . 4 (𝜑𝑁𝑊)
108, 9unexd 7582 . . 3 (𝜑 → (𝑀𝑁) ∈ V)
11 inidm 4149 . . 3 ((𝑀𝑁) ∩ (𝑀𝑁)) = (𝑀𝑁)
124, 7, 10, 10, 11offn 7524 . 2 (𝜑 → ((𝐴𝐶) ∘f 𝑅(𝐵𝐷)) Fn (𝑀𝑁))
13 inidm 4149 . . . 4 (𝑀𝑀) = 𝑀
141, 5, 8, 8, 13offn 7524 . . 3 (𝜑 → (𝐴f 𝑅𝐵) Fn 𝑀)
15 inidm 4149 . . . 4 (𝑁𝑁) = 𝑁
162, 6, 9, 9, 15offn 7524 . . 3 (𝜑 → (𝐶f 𝑅𝐷) Fn 𝑁)
1714, 16, 3fnund 6530 . 2 (𝜑 → ((𝐴f 𝑅𝐵) ∪ (𝐶f 𝑅𝐷)) Fn (𝑀𝑁))
18 eqidd 2739 . . . 4 ((𝜑𝑥 ∈ (𝑀𝑁)) → ((𝐴𝐶)‘𝑥) = ((𝐴𝐶)‘𝑥))
19 eqidd 2739 . . . 4 ((𝜑𝑥 ∈ (𝑀𝑁)) → ((𝐵𝐷)‘𝑥) = ((𝐵𝐷)‘𝑥))
204, 7, 10, 10, 11, 18, 19ofval 7522 . . 3 ((𝜑𝑥 ∈ (𝑀𝑁)) → (((𝐴𝐶) ∘f 𝑅(𝐵𝐷))‘𝑥) = (((𝐴𝐶)‘𝑥)𝑅((𝐵𝐷)‘𝑥)))
21 elun 4079 . . . 4 (𝑥 ∈ (𝑀𝑁) ↔ (𝑥𝑀𝑥𝑁))
22 eqidd 2739 . . . . . . 7 ((𝜑𝑥𝑀) → (𝐴𝑥) = (𝐴𝑥))
23 eqidd 2739 . . . . . . 7 ((𝜑𝑥𝑀) → (𝐵𝑥) = (𝐵𝑥))
241, 5, 8, 8, 13, 22, 23ofval 7522 . . . . . 6 ((𝜑𝑥𝑀) → ((𝐴f 𝑅𝐵)‘𝑥) = ((𝐴𝑥)𝑅(𝐵𝑥)))
2514adantr 480 . . . . . . 7 ((𝜑𝑥𝑀) → (𝐴f 𝑅𝐵) Fn 𝑀)
2616adantr 480 . . . . . . 7 ((𝜑𝑥𝑀) → (𝐶f 𝑅𝐷) Fn 𝑁)
273adantr 480 . . . . . . 7 ((𝜑𝑥𝑀) → (𝑀𝑁) = ∅)
28 simpr 484 . . . . . . 7 ((𝜑𝑥𝑀) → 𝑥𝑀)
2925, 26, 27, 28fvun1d 6843 . . . . . 6 ((𝜑𝑥𝑀) → (((𝐴f 𝑅𝐵) ∪ (𝐶f 𝑅𝐷))‘𝑥) = ((𝐴f 𝑅𝐵)‘𝑥))
301adantr 480 . . . . . . . 8 ((𝜑𝑥𝑀) → 𝐴 Fn 𝑀)
312adantr 480 . . . . . . . 8 ((𝜑𝑥𝑀) → 𝐶 Fn 𝑁)
3230, 31, 27, 28fvun1d 6843 . . . . . . 7 ((𝜑𝑥𝑀) → ((𝐴𝐶)‘𝑥) = (𝐴𝑥))
335adantr 480 . . . . . . . 8 ((𝜑𝑥𝑀) → 𝐵 Fn 𝑀)
346adantr 480 . . . . . . . 8 ((𝜑𝑥𝑀) → 𝐷 Fn 𝑁)
3533, 34, 27, 28fvun1d 6843 . . . . . . 7 ((𝜑𝑥𝑀) → ((𝐵𝐷)‘𝑥) = (𝐵𝑥))
3632, 35oveq12d 7273 . . . . . 6 ((𝜑𝑥𝑀) → (((𝐴𝐶)‘𝑥)𝑅((𝐵𝐷)‘𝑥)) = ((𝐴𝑥)𝑅(𝐵𝑥)))
3724, 29, 363eqtr4rd 2789 . . . . 5 ((𝜑𝑥𝑀) → (((𝐴𝐶)‘𝑥)𝑅((𝐵𝐷)‘𝑥)) = (((𝐴f 𝑅𝐵) ∪ (𝐶f 𝑅𝐷))‘𝑥))
38 eqidd 2739 . . . . . . 7 ((𝜑𝑥𝑁) → (𝐶𝑥) = (𝐶𝑥))
39 eqidd 2739 . . . . . . 7 ((𝜑𝑥𝑁) → (𝐷𝑥) = (𝐷𝑥))
402, 6, 9, 9, 15, 38, 39ofval 7522 . . . . . 6 ((𝜑𝑥𝑁) → ((𝐶f 𝑅𝐷)‘𝑥) = ((𝐶𝑥)𝑅(𝐷𝑥)))
4114adantr 480 . . . . . . 7 ((𝜑𝑥𝑁) → (𝐴f 𝑅𝐵) Fn 𝑀)
4216adantr 480 . . . . . . 7 ((𝜑𝑥𝑁) → (𝐶f 𝑅𝐷) Fn 𝑁)
433adantr 480 . . . . . . 7 ((𝜑𝑥𝑁) → (𝑀𝑁) = ∅)
44 simpr 484 . . . . . . 7 ((𝜑𝑥𝑁) → 𝑥𝑁)
4541, 42, 43, 44fvun2d 6844 . . . . . 6 ((𝜑𝑥𝑁) → (((𝐴f 𝑅𝐵) ∪ (𝐶f 𝑅𝐷))‘𝑥) = ((𝐶f 𝑅𝐷)‘𝑥))
461adantr 480 . . . . . . . 8 ((𝜑𝑥𝑁) → 𝐴 Fn 𝑀)
472adantr 480 . . . . . . . 8 ((𝜑𝑥𝑁) → 𝐶 Fn 𝑁)
4846, 47, 43, 44fvun2d 6844 . . . . . . 7 ((𝜑𝑥𝑁) → ((𝐴𝐶)‘𝑥) = (𝐶𝑥))
495adantr 480 . . . . . . . 8 ((𝜑𝑥𝑁) → 𝐵 Fn 𝑀)
506adantr 480 . . . . . . . 8 ((𝜑𝑥𝑁) → 𝐷 Fn 𝑁)
5149, 50, 43, 44fvun2d 6844 . . . . . . 7 ((𝜑𝑥𝑁) → ((𝐵𝐷)‘𝑥) = (𝐷𝑥))
5248, 51oveq12d 7273 . . . . . 6 ((𝜑𝑥𝑁) → (((𝐴𝐶)‘𝑥)𝑅((𝐵𝐷)‘𝑥)) = ((𝐶𝑥)𝑅(𝐷𝑥)))
5340, 45, 523eqtr4rd 2789 . . . . 5 ((𝜑𝑥𝑁) → (((𝐴𝐶)‘𝑥)𝑅((𝐵𝐷)‘𝑥)) = (((𝐴f 𝑅𝐵) ∪ (𝐶f 𝑅𝐷))‘𝑥))
5437, 53jaodan 954 . . . 4 ((𝜑 ∧ (𝑥𝑀𝑥𝑁)) → (((𝐴𝐶)‘𝑥)𝑅((𝐵𝐷)‘𝑥)) = (((𝐴f 𝑅𝐵) ∪ (𝐶f 𝑅𝐷))‘𝑥))
5521, 54sylan2b 593 . . 3 ((𝜑𝑥 ∈ (𝑀𝑁)) → (((𝐴𝐶)‘𝑥)𝑅((𝐵𝐷)‘𝑥)) = (((𝐴f 𝑅𝐵) ∪ (𝐶f 𝑅𝐷))‘𝑥))
5620, 55eqtrd 2778 . 2 ((𝜑𝑥 ∈ (𝑀𝑁)) → (((𝐴𝐶) ∘f 𝑅(𝐵𝐷))‘𝑥) = (((𝐴f 𝑅𝐵) ∪ (𝐶f 𝑅𝐷))‘𝑥))
5712, 17, 56eqfnfvd 6894 1 (𝜑 → ((𝐴𝐶) ∘f 𝑅(𝐵𝐷)) = ((𝐴f 𝑅𝐵) ∪ (𝐶f 𝑅𝐷)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395  wo 843   = wceq 1539  wcel 2108  Vcvv 3422  cun 3881  cin 3882  c0 4253   Fn wfn 6413  cfv 6418  (class class class)co 7255  f cof 7509
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-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pr 5347  ax-un 7566
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-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  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-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-ov 7258  df-oprab 7259  df-mpo 7260  df-of 7511
This theorem is referenced by:  fsuppssind  40205
  Copyright terms: Public domain W3C validator