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

Theorem ofco 6000
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 5555 . . 3 ((𝜑𝑥𝐷) → (𝐻𝑥) ∈ 𝐶)
31feqmptd 5474 . . 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 2140 . . . 4 ((𝜑𝑦𝐴) → (𝐹𝑦) = (𝐹𝑦))
10 eqidd 2140 . . . 4 ((𝜑𝑦𝐵) → (𝐺𝑦) = (𝐺𝑦))
114, 5, 6, 7, 8, 9, 10offval 5989 . . 3 (𝜑 → (𝐹𝑓 𝑅𝐺) = (𝑦𝐶 ↦ ((𝐹𝑦)𝑅(𝐺𝑦))))
12 fveq2 5421 . . . 4 (𝑦 = (𝐻𝑥) → (𝐹𝑦) = (𝐹‘(𝐻𝑥)))
13 fveq2 5421 . . . 4 (𝑦 = (𝐻𝑥) → (𝐺𝑦) = (𝐺‘(𝐻𝑥)))
1412, 13oveq12d 5792 . . 3 (𝑦 = (𝐻𝑥) → ((𝐹𝑦)𝑅(𝐺𝑦)) = ((𝐹‘(𝐻𝑥))𝑅(𝐺‘(𝐻𝑥))))
152, 3, 11, 14fmptco 5586 . 2 (𝜑 → ((𝐹𝑓 𝑅𝐺) ∘ 𝐻) = (𝑥𝐷 ↦ ((𝐹‘(𝐻𝑥))𝑅(𝐺‘(𝐻𝑥)))))
16 inss1 3296 . . . . . 6 (𝐴𝐵) ⊆ 𝐴
178, 16eqsstrri 3130 . . . . 5 𝐶𝐴
18 fss 5284 . . . . 5 ((𝐻:𝐷𝐶𝐶𝐴) → 𝐻:𝐷𝐴)
191, 17, 18sylancl 409 . . . 4 (𝜑𝐻:𝐷𝐴)
20 fnfco 5297 . . . 4 ((𝐹 Fn 𝐴𝐻:𝐷𝐴) → (𝐹𝐻) Fn 𝐷)
214, 19, 20syl2anc 408 . . 3 (𝜑 → (𝐹𝐻) Fn 𝐷)
22 inss2 3297 . . . . . 6 (𝐴𝐵) ⊆ 𝐵
238, 22eqsstrri 3130 . . . . 5 𝐶𝐵
24 fss 5284 . . . . 5 ((𝐻:𝐷𝐶𝐶𝐵) → 𝐻:𝐷𝐵)
251, 23, 24sylancl 409 . . . 4 (𝜑𝐻:𝐷𝐵)
26 fnfco 5297 . . . 4 ((𝐺 Fn 𝐵𝐻:𝐷𝐵) → (𝐺𝐻) Fn 𝐷)
275, 25, 26syl2anc 408 . . 3 (𝜑 → (𝐺𝐻) Fn 𝐷)
28 ofco.6 . . 3 (𝜑𝐷𝑋)
29 inidm 3285 . . 3 (𝐷𝐷) = 𝐷
30 ffn 5272 . . . . 5 (𝐻:𝐷𝐶𝐻 Fn 𝐷)
311, 30syl 14 . . . 4 (𝜑𝐻 Fn 𝐷)
32 fvco2 5490 . . . 4 ((𝐻 Fn 𝐷𝑥𝐷) → ((𝐹𝐻)‘𝑥) = (𝐹‘(𝐻𝑥)))
3331, 32sylan 281 . . 3 ((𝜑𝑥𝐷) → ((𝐹𝐻)‘𝑥) = (𝐹‘(𝐻𝑥)))
34 fvco2 5490 . . . 4 ((𝐻 Fn 𝐷𝑥𝐷) → ((𝐺𝐻)‘𝑥) = (𝐺‘(𝐻𝑥)))
3531, 34sylan 281 . . 3 ((𝜑𝑥𝐷) → ((𝐺𝐻)‘𝑥) = (𝐺‘(𝐻𝑥)))
3621, 27, 28, 28, 29, 33, 35offval 5989 . 2 (𝜑 → ((𝐹𝐻) ∘𝑓 𝑅(𝐺𝐻)) = (𝑥𝐷 ↦ ((𝐹‘(𝐻𝑥))𝑅(𝐺‘(𝐻𝑥)))))
3715, 36eqtr4d 2175 1 (𝜑 → ((𝐹𝑓 𝑅𝐺) ∘ 𝐻) = ((𝐹𝐻) ∘𝑓 𝑅(𝐺𝐻)))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103   = wceq 1331  wcel 1480  cin 3070  wss 3071  cmpt 3989  ccom 4543   Fn wfn 5118  wf 5119  cfv 5123  (class class class)co 5774  𝑓 cof 5980
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 603  ax-in2 604  ax-io 698  ax-5 1423  ax-7 1424  ax-gen 1425  ax-ie1 1469  ax-ie2 1470  ax-8 1482  ax-10 1483  ax-11 1484  ax-i12 1485  ax-bndl 1486  ax-4 1487  ax-14 1492  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-ext 2121  ax-coll 4043  ax-sep 4046  ax-pow 4098  ax-pr 4131  ax-setind 4452
This theorem depends on definitions:  df-bi 116  df-3an 964  df-tru 1334  df-fal 1337  df-nf 1437  df-sb 1736  df-eu 2002  df-mo 2003  df-clab 2126  df-cleq 2132  df-clel 2135  df-nfc 2270  df-ne 2309  df-ral 2421  df-rex 2422  df-reu 2423  df-rab 2425  df-v 2688  df-sbc 2910  df-csb 3004  df-dif 3073  df-un 3075  df-in 3077  df-ss 3084  df-pw 3512  df-sn 3533  df-pr 3534  df-op 3536  df-uni 3737  df-iun 3815  df-br 3930  df-opab 3990  df-mpt 3991  df-id 4215  df-xp 4545  df-rel 4546  df-cnv 4547  df-co 4548  df-dm 4549  df-rn 4550  df-res 4551  df-ima 4552  df-iota 5088  df-fun 5125  df-fn 5126  df-f 5127  df-f1 5128  df-fo 5129  df-f1o 5130  df-fv 5131  df-ov 5777  df-oprab 5778  df-mpo 5779  df-of 5982
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator