ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  ofco GIF version

Theorem ofco 5968
Description: The composition of a function operation with another function. (Contributed by Mario Carneiro, 19-Dec-2014.)
Hypotheses
Ref Expression
ofco.1 (𝜑𝐹 Fn 𝐴)
ofco.2 (𝜑𝐺 Fn 𝐵)
ofco.3 (𝜑𝐻:𝐷𝐶)
ofco.4 (𝜑𝐴𝑉)
ofco.5 (𝜑𝐵𝑊)
ofco.6 (𝜑𝐷𝑋)
ofco.7 (𝐴𝐵) = 𝐶
Assertion
Ref Expression
ofco (𝜑 → ((𝐹𝑓 𝑅𝐺) ∘ 𝐻) = ((𝐹𝐻) ∘𝑓 𝑅(𝐺𝐻)))

Proof of Theorem ofco
Dummy variables 𝑦 𝑥 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ofco.3 . . . 4 (𝜑𝐻:𝐷𝐶)
21ffvelrnda 5523 . . 3 ((𝜑𝑥𝐷) → (𝐻𝑥) ∈ 𝐶)
31feqmptd 5442 . . 3 (𝜑𝐻 = (𝑥𝐷 ↦ (𝐻𝑥)))
4 ofco.1 . . . 4 (𝜑𝐹 Fn 𝐴)
5 ofco.2 . . . 4 (𝜑𝐺 Fn 𝐵)
6 ofco.4 . . . 4 (𝜑𝐴𝑉)
7 ofco.5 . . . 4 (𝜑𝐵𝑊)
8 ofco.7 . . . 4 (𝐴𝐵) = 𝐶
9 eqidd 2118 . . . 4 ((𝜑𝑦𝐴) → (𝐹𝑦) = (𝐹𝑦))
10 eqidd 2118 . . . 4 ((𝜑𝑦𝐵) → (𝐺𝑦) = (𝐺𝑦))
114, 5, 6, 7, 8, 9, 10offval 5957 . . 3 (𝜑 → (𝐹𝑓 𝑅𝐺) = (𝑦𝐶 ↦ ((𝐹𝑦)𝑅(𝐺𝑦))))
12 fveq2 5389 . . . 4 (𝑦 = (𝐻𝑥) → (𝐹𝑦) = (𝐹‘(𝐻𝑥)))
13 fveq2 5389 . . . 4 (𝑦 = (𝐻𝑥) → (𝐺𝑦) = (𝐺‘(𝐻𝑥)))
1412, 13oveq12d 5760 . . 3 (𝑦 = (𝐻𝑥) → ((𝐹𝑦)𝑅(𝐺𝑦)) = ((𝐹‘(𝐻𝑥))𝑅(𝐺‘(𝐻𝑥))))
152, 3, 11, 14fmptco 5554 . 2 (𝜑 → ((𝐹𝑓 𝑅𝐺) ∘ 𝐻) = (𝑥𝐷 ↦ ((𝐹‘(𝐻𝑥))𝑅(𝐺‘(𝐻𝑥)))))
16 inss1 3266 . . . . . 6 (𝐴𝐵) ⊆ 𝐴
178, 16eqsstrri 3100 . . . . 5 𝐶𝐴
18 fss 5254 . . . . 5 ((𝐻:𝐷𝐶𝐶𝐴) → 𝐻:𝐷𝐴)
191, 17, 18sylancl 409 . . . 4 (𝜑𝐻:𝐷𝐴)
20 fnfco 5267 . . . 4 ((𝐹 Fn 𝐴𝐻:𝐷𝐴) → (𝐹𝐻) Fn 𝐷)
214, 19, 20syl2anc 408 . . 3 (𝜑 → (𝐹𝐻) Fn 𝐷)
22 inss2 3267 . . . . . 6 (𝐴𝐵) ⊆ 𝐵
238, 22eqsstrri 3100 . . . . 5 𝐶𝐵
24 fss 5254 . . . . 5 ((𝐻:𝐷𝐶𝐶𝐵) → 𝐻:𝐷𝐵)
251, 23, 24sylancl 409 . . . 4 (𝜑𝐻:𝐷𝐵)
26 fnfco 5267 . . . 4 ((𝐺 Fn 𝐵𝐻:𝐷𝐵) → (𝐺𝐻) Fn 𝐷)
275, 25, 26syl2anc 408 . . 3 (𝜑 → (𝐺𝐻) Fn 𝐷)
28 ofco.6 . . 3 (𝜑𝐷𝑋)
29 inidm 3255 . . 3 (𝐷𝐷) = 𝐷
30 ffn 5242 . . . . 5 (𝐻:𝐷𝐶𝐻 Fn 𝐷)
311, 30syl 14 . . . 4 (𝜑𝐻 Fn 𝐷)
32 fvco2 5458 . . . 4 ((𝐻 Fn 𝐷𝑥𝐷) → ((𝐹𝐻)‘𝑥) = (𝐹‘(𝐻𝑥)))
3331, 32sylan 281 . . 3 ((𝜑𝑥𝐷) → ((𝐹𝐻)‘𝑥) = (𝐹‘(𝐻𝑥)))
34 fvco2 5458 . . . 4 ((𝐻 Fn 𝐷𝑥𝐷) → ((𝐺𝐻)‘𝑥) = (𝐺‘(𝐻𝑥)))
3531, 34sylan 281 . . 3 ((𝜑𝑥𝐷) → ((𝐺𝐻)‘𝑥) = (𝐺‘(𝐻𝑥)))
3621, 27, 28, 28, 29, 33, 35offval 5957 . 2 (𝜑 → ((𝐹𝐻) ∘𝑓 𝑅(𝐺𝐻)) = (𝑥𝐷 ↦ ((𝐹‘(𝐻𝑥))𝑅(𝐺‘(𝐻𝑥)))))
3715, 36eqtr4d 2153 1 (𝜑 → ((𝐹𝑓 𝑅𝐺) ∘ 𝐻) = ((𝐹𝐻) ∘𝑓 𝑅(𝐺𝐻)))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103   = wceq 1316  wcel 1465  cin 3040  wss 3041  cmpt 3959  ccom 4513   Fn wfn 5088  wf 5089  cfv 5093  (class class class)co 5742  𝑓 cof 5948
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 588  ax-in2 589  ax-io 683  ax-5 1408  ax-7 1409  ax-gen 1410  ax-ie1 1454  ax-ie2 1455  ax-8 1467  ax-10 1468  ax-11 1469  ax-i12 1470  ax-bndl 1471  ax-4 1472  ax-14 1477  ax-17 1491  ax-i9 1495  ax-ial 1499  ax-i5r 1500  ax-ext 2099  ax-coll 4013  ax-sep 4016  ax-pow 4068  ax-pr 4101  ax-setind 4422
This theorem depends on definitions:  df-bi 116  df-3an 949  df-tru 1319  df-fal 1322  df-nf 1422  df-sb 1721  df-eu 1980  df-mo 1981  df-clab 2104  df-cleq 2110  df-clel 2113  df-nfc 2247  df-ne 2286  df-ral 2398  df-rex 2399  df-reu 2400  df-rab 2402  df-v 2662  df-sbc 2883  df-csb 2976  df-dif 3043  df-un 3045  df-in 3047  df-ss 3054  df-pw 3482  df-sn 3503  df-pr 3504  df-op 3506  df-uni 3707  df-iun 3785  df-br 3900  df-opab 3960  df-mpt 3961  df-id 4185  df-xp 4515  df-rel 4516  df-cnv 4517  df-co 4518  df-dm 4519  df-rn 4520  df-res 4521  df-ima 4522  df-iota 5058  df-fun 5095  df-fn 5096  df-f 5097  df-f1 5098  df-fo 5099  df-f1o 5100  df-fv 5101  df-ov 5745  df-oprab 5746  df-mpo 5747  df-of 5950
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator