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

Theorem fpar 7168
Description: Merge two functions in parallel. Use as the second argument of a composition with a (2-place) operation to build compound operations such as 𝑧 = ((√‘𝑥) + (abs‘𝑦)). (Contributed by NM, 17-Sep-2007.) (Proof shortened by Mario Carneiro, 28-Apr-2015.)
Hypothesis
Ref Expression
fpar.1 𝐻 = (((1st ↾ (V × V)) ∘ (𝐹 ∘ (1st ↾ (V × V)))) ∩ ((2nd ↾ (V × V)) ∘ (𝐺 ∘ (2nd ↾ (V × V)))))
Assertion
Ref Expression
fpar ((𝐹 Fn 𝐴𝐺 Fn 𝐵) → 𝐻 = (𝑥𝐴, 𝑦𝐵 ↦ ⟨(𝐹𝑥), (𝐺𝑦)⟩))
Distinct variable groups:   𝑥,𝑦,𝐴   𝑥,𝐵,𝑦   𝑥,𝐹,𝑦   𝑥,𝐺,𝑦
Allowed substitution hints:   𝐻(𝑥,𝑦)

Proof of Theorem fpar
StepHypRef Expression
1 fparlem3 7166 . . 3 (𝐹 Fn 𝐴 → ((1st ↾ (V × V)) ∘ (𝐹 ∘ (1st ↾ (V × V)))) = 𝑥𝐴 (({𝑥} × V) × ({(𝐹𝑥)} × V)))
2 fparlem4 7167 . . 3 (𝐺 Fn 𝐵 → ((2nd ↾ (V × V)) ∘ (𝐺 ∘ (2nd ↾ (V × V)))) = 𝑦𝐵 ((V × {𝑦}) × (V × {(𝐺𝑦)})))
31, 2ineqan12d 3778 . 2 ((𝐹 Fn 𝐴𝐺 Fn 𝐵) → (((1st ↾ (V × V)) ∘ (𝐹 ∘ (1st ↾ (V × V)))) ∩ ((2nd ↾ (V × V)) ∘ (𝐺 ∘ (2nd ↾ (V × V))))) = ( 𝑥𝐴 (({𝑥} × V) × ({(𝐹𝑥)} × V)) ∩ 𝑦𝐵 ((V × {𝑦}) × (V × {(𝐺𝑦)}))))
4 fpar.1 . 2 𝐻 = (((1st ↾ (V × V)) ∘ (𝐹 ∘ (1st ↾ (V × V)))) ∩ ((2nd ↾ (V × V)) ∘ (𝐺 ∘ (2nd ↾ (V × V)))))
5 opex 4859 . . . 4 ⟨(𝐹𝑥), (𝐺𝑦)⟩ ∈ V
65dfmpt2 7154 . . 3 (𝑥𝐴, 𝑦𝐵 ↦ ⟨(𝐹𝑥), (𝐺𝑦)⟩) = 𝑥𝐴 𝑦𝐵 {⟨⟨𝑥, 𝑦⟩, ⟨(𝐹𝑥), (𝐺𝑦)⟩⟩}
7 inxp 5176 . . . . . . . 8 ((({𝑥} × V) × ({(𝐹𝑥)} × V)) ∩ ((V × {𝑦}) × (V × {(𝐺𝑦)}))) = ((({𝑥} × V) ∩ (V × {𝑦})) × (({(𝐹𝑥)} × V) ∩ (V × {(𝐺𝑦)})))
8 inxp 5176 . . . . . . . . . 10 (({𝑥} × V) ∩ (V × {𝑦})) = (({𝑥} ∩ V) × (V ∩ {𝑦}))
9 inv1 3922 . . . . . . . . . . 11 ({𝑥} ∩ V) = {𝑥}
10 incom 3767 . . . . . . . . . . . 12 (V ∩ {𝑦}) = ({𝑦} ∩ V)
11 inv1 3922 . . . . . . . . . . . 12 ({𝑦} ∩ V) = {𝑦}
1210, 11eqtri 2632 . . . . . . . . . . 11 (V ∩ {𝑦}) = {𝑦}
139, 12xpeq12i 5061 . . . . . . . . . 10 (({𝑥} ∩ V) × (V ∩ {𝑦})) = ({𝑥} × {𝑦})
14 vex 3176 . . . . . . . . . . 11 𝑥 ∈ V
15 vex 3176 . . . . . . . . . . 11 𝑦 ∈ V
1614, 15xpsn 6313 . . . . . . . . . 10 ({𝑥} × {𝑦}) = {⟨𝑥, 𝑦⟩}
178, 13, 163eqtri 2636 . . . . . . . . 9 (({𝑥} × V) ∩ (V × {𝑦})) = {⟨𝑥, 𝑦⟩}
18 inxp 5176 . . . . . . . . . 10 (({(𝐹𝑥)} × V) ∩ (V × {(𝐺𝑦)})) = (({(𝐹𝑥)} ∩ V) × (V ∩ {(𝐺𝑦)}))
19 inv1 3922 . . . . . . . . . . 11 ({(𝐹𝑥)} ∩ V) = {(𝐹𝑥)}
20 incom 3767 . . . . . . . . . . . 12 (V ∩ {(𝐺𝑦)}) = ({(𝐺𝑦)} ∩ V)
21 inv1 3922 . . . . . . . . . . . 12 ({(𝐺𝑦)} ∩ V) = {(𝐺𝑦)}
2220, 21eqtri 2632 . . . . . . . . . . 11 (V ∩ {(𝐺𝑦)}) = {(𝐺𝑦)}
2319, 22xpeq12i 5061 . . . . . . . . . 10 (({(𝐹𝑥)} ∩ V) × (V ∩ {(𝐺𝑦)})) = ({(𝐹𝑥)} × {(𝐺𝑦)})
24 fvex 6113 . . . . . . . . . . 11 (𝐹𝑥) ∈ V
25 fvex 6113 . . . . . . . . . . 11 (𝐺𝑦) ∈ V
2624, 25xpsn 6313 . . . . . . . . . 10 ({(𝐹𝑥)} × {(𝐺𝑦)}) = {⟨(𝐹𝑥), (𝐺𝑦)⟩}
2718, 23, 263eqtri 2636 . . . . . . . . 9 (({(𝐹𝑥)} × V) ∩ (V × {(𝐺𝑦)})) = {⟨(𝐹𝑥), (𝐺𝑦)⟩}
2817, 27xpeq12i 5061 . . . . . . . 8 ((({𝑥} × V) ∩ (V × {𝑦})) × (({(𝐹𝑥)} × V) ∩ (V × {(𝐺𝑦)}))) = ({⟨𝑥, 𝑦⟩} × {⟨(𝐹𝑥), (𝐺𝑦)⟩})
29 opex 4859 . . . . . . . . 9 𝑥, 𝑦⟩ ∈ V
3029, 5xpsn 6313 . . . . . . . 8 ({⟨𝑥, 𝑦⟩} × {⟨(𝐹𝑥), (𝐺𝑦)⟩}) = {⟨⟨𝑥, 𝑦⟩, ⟨(𝐹𝑥), (𝐺𝑦)⟩⟩}
317, 28, 303eqtri 2636 . . . . . . 7 ((({𝑥} × V) × ({(𝐹𝑥)} × V)) ∩ ((V × {𝑦}) × (V × {(𝐺𝑦)}))) = {⟨⟨𝑥, 𝑦⟩, ⟨(𝐹𝑥), (𝐺𝑦)⟩⟩}
3231a1i 11 . . . . . 6 (𝑦𝐵 → ((({𝑥} × V) × ({(𝐹𝑥)} × V)) ∩ ((V × {𝑦}) × (V × {(𝐺𝑦)}))) = {⟨⟨𝑥, 𝑦⟩, ⟨(𝐹𝑥), (𝐺𝑦)⟩⟩})
3332iuneq2i 4475 . . . . 5 𝑦𝐵 ((({𝑥} × V) × ({(𝐹𝑥)} × V)) ∩ ((V × {𝑦}) × (V × {(𝐺𝑦)}))) = 𝑦𝐵 {⟨⟨𝑥, 𝑦⟩, ⟨(𝐹𝑥), (𝐺𝑦)⟩⟩}
3433a1i 11 . . . 4 (𝑥𝐴 𝑦𝐵 ((({𝑥} × V) × ({(𝐹𝑥)} × V)) ∩ ((V × {𝑦}) × (V × {(𝐺𝑦)}))) = 𝑦𝐵 {⟨⟨𝑥, 𝑦⟩, ⟨(𝐹𝑥), (𝐺𝑦)⟩⟩})
3534iuneq2i 4475 . . 3 𝑥𝐴 𝑦𝐵 ((({𝑥} × V) × ({(𝐹𝑥)} × V)) ∩ ((V × {𝑦}) × (V × {(𝐺𝑦)}))) = 𝑥𝐴 𝑦𝐵 {⟨⟨𝑥, 𝑦⟩, ⟨(𝐹𝑥), (𝐺𝑦)⟩⟩}
36 2iunin 4524 . . 3 𝑥𝐴 𝑦𝐵 ((({𝑥} × V) × ({(𝐹𝑥)} × V)) ∩ ((V × {𝑦}) × (V × {(𝐺𝑦)}))) = ( 𝑥𝐴 (({𝑥} × V) × ({(𝐹𝑥)} × V)) ∩ 𝑦𝐵 ((V × {𝑦}) × (V × {(𝐺𝑦)})))
376, 35, 363eqtr2i 2638 . 2 (𝑥𝐴, 𝑦𝐵 ↦ ⟨(𝐹𝑥), (𝐺𝑦)⟩) = ( 𝑥𝐴 (({𝑥} × V) × ({(𝐹𝑥)} × V)) ∩ 𝑦𝐵 ((V × {𝑦}) × (V × {(𝐺𝑦)})))
383, 4, 373eqtr4g 2669 1 ((𝐹 Fn 𝐴𝐺 Fn 𝐵) → 𝐻 = (𝑥𝐴, 𝑦𝐵 ↦ ⟨(𝐹𝑥), (𝐺𝑦)⟩))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 383   = wceq 1475  wcel 1977  Vcvv 3173  cin 3539  {csn 4125  cop 4131   ciun 4455   × cxp 5036  ccnv 5037  cres 5040  ccom 5042   Fn wfn 5799  cfv 5804  cmpt2 6551  1st c1st 7057  2nd c2nd 7058
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-8 1979  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-sep 4709  ax-nul 4717  ax-pow 4769  ax-pr 4833  ax-un 6847
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-fal 1481  df-ex 1696  df-nf 1701  df-sb 1868  df-eu 2462  df-mo 2463  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ne 2782  df-ral 2901  df-rex 2902  df-reu 2903  df-rab 2905  df-v 3175  df-sbc 3403  df-csb 3500  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-nul 3875  df-if 4037  df-sn 4126  df-pr 4128  df-op 4132  df-uni 4373  df-iun 4457  df-br 4584  df-opab 4644  df-mpt 4645  df-id 4953  df-xp 5044  df-rel 5045  df-cnv 5046  df-co 5047  df-dm 5048  df-rn 5049  df-res 5050  df-ima 5051  df-iota 5768  df-fun 5806  df-fn 5807  df-f 5808  df-f1 5809  df-fo 5810  df-f1o 5811  df-fv 5812  df-oprab 6553  df-mpt2 6554  df-1st 7059  df-2nd 7060
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator