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

Theorem caofass 6891
Description: Transfer an associative law to the function operation. (Contributed by Mario Carneiro, 26-Jul-2014.)
Hypotheses
Ref Expression
caofref.1 (𝜑𝐴𝑉)
caofref.2 (𝜑𝐹:𝐴𝑆)
caofcom.3 (𝜑𝐺:𝐴𝑆)
caofass.4 (𝜑𝐻:𝐴𝑆)
caofass.5 ((𝜑 ∧ (𝑥𝑆𝑦𝑆𝑧𝑆)) → ((𝑥𝑅𝑦)𝑇𝑧) = (𝑥𝑂(𝑦𝑃𝑧)))
Assertion
Ref Expression
caofass (𝜑 → ((𝐹𝑓 𝑅𝐺) ∘𝑓 𝑇𝐻) = (𝐹𝑓 𝑂(𝐺𝑓 𝑃𝐻)))
Distinct variable groups:   𝑥,𝑦,𝑧,𝐹   𝑥,𝐺,𝑦,𝑧   𝑥,𝐻,𝑦,𝑧   𝑥,𝑂,𝑦,𝑧   𝑥,𝑃,𝑦,𝑧   𝜑,𝑥,𝑦,𝑧   𝑥,𝑅,𝑦,𝑧   𝑥,𝑆,𝑦,𝑧   𝑥,𝑇,𝑦,𝑧
Allowed substitution hints:   𝐴(𝑥,𝑦,𝑧)   𝑉(𝑥,𝑦,𝑧)

Proof of Theorem caofass
Dummy variable 𝑤 is distinct from all other variables.
StepHypRef Expression
1 caofass.5 . . . . . 6 ((𝜑 ∧ (𝑥𝑆𝑦𝑆𝑧𝑆)) → ((𝑥𝑅𝑦)𝑇𝑧) = (𝑥𝑂(𝑦𝑃𝑧)))
21ralrimivvva 2967 . . . . 5 (𝜑 → ∀𝑥𝑆𝑦𝑆𝑧𝑆 ((𝑥𝑅𝑦)𝑇𝑧) = (𝑥𝑂(𝑦𝑃𝑧)))
32adantr 481 . . . 4 ((𝜑𝑤𝐴) → ∀𝑥𝑆𝑦𝑆𝑧𝑆 ((𝑥𝑅𝑦)𝑇𝑧) = (𝑥𝑂(𝑦𝑃𝑧)))
4 caofref.2 . . . . . 6 (𝜑𝐹:𝐴𝑆)
54ffvelrnda 6320 . . . . 5 ((𝜑𝑤𝐴) → (𝐹𝑤) ∈ 𝑆)
6 caofcom.3 . . . . . 6 (𝜑𝐺:𝐴𝑆)
76ffvelrnda 6320 . . . . 5 ((𝜑𝑤𝐴) → (𝐺𝑤) ∈ 𝑆)
8 caofass.4 . . . . . 6 (𝜑𝐻:𝐴𝑆)
98ffvelrnda 6320 . . . . 5 ((𝜑𝑤𝐴) → (𝐻𝑤) ∈ 𝑆)
10 oveq1 6617 . . . . . . . 8 (𝑥 = (𝐹𝑤) → (𝑥𝑅𝑦) = ((𝐹𝑤)𝑅𝑦))
1110oveq1d 6625 . . . . . . 7 (𝑥 = (𝐹𝑤) → ((𝑥𝑅𝑦)𝑇𝑧) = (((𝐹𝑤)𝑅𝑦)𝑇𝑧))
12 oveq1 6617 . . . . . . 7 (𝑥 = (𝐹𝑤) → (𝑥𝑂(𝑦𝑃𝑧)) = ((𝐹𝑤)𝑂(𝑦𝑃𝑧)))
1311, 12eqeq12d 2636 . . . . . 6 (𝑥 = (𝐹𝑤) → (((𝑥𝑅𝑦)𝑇𝑧) = (𝑥𝑂(𝑦𝑃𝑧)) ↔ (((𝐹𝑤)𝑅𝑦)𝑇𝑧) = ((𝐹𝑤)𝑂(𝑦𝑃𝑧))))
14 oveq2 6618 . . . . . . . 8 (𝑦 = (𝐺𝑤) → ((𝐹𝑤)𝑅𝑦) = ((𝐹𝑤)𝑅(𝐺𝑤)))
1514oveq1d 6625 . . . . . . 7 (𝑦 = (𝐺𝑤) → (((𝐹𝑤)𝑅𝑦)𝑇𝑧) = (((𝐹𝑤)𝑅(𝐺𝑤))𝑇𝑧))
16 oveq1 6617 . . . . . . . 8 (𝑦 = (𝐺𝑤) → (𝑦𝑃𝑧) = ((𝐺𝑤)𝑃𝑧))
1716oveq2d 6626 . . . . . . 7 (𝑦 = (𝐺𝑤) → ((𝐹𝑤)𝑂(𝑦𝑃𝑧)) = ((𝐹𝑤)𝑂((𝐺𝑤)𝑃𝑧)))
1815, 17eqeq12d 2636 . . . . . 6 (𝑦 = (𝐺𝑤) → ((((𝐹𝑤)𝑅𝑦)𝑇𝑧) = ((𝐹𝑤)𝑂(𝑦𝑃𝑧)) ↔ (((𝐹𝑤)𝑅(𝐺𝑤))𝑇𝑧) = ((𝐹𝑤)𝑂((𝐺𝑤)𝑃𝑧))))
19 oveq2 6618 . . . . . . 7 (𝑧 = (𝐻𝑤) → (((𝐹𝑤)𝑅(𝐺𝑤))𝑇𝑧) = (((𝐹𝑤)𝑅(𝐺𝑤))𝑇(𝐻𝑤)))
20 oveq2 6618 . . . . . . . 8 (𝑧 = (𝐻𝑤) → ((𝐺𝑤)𝑃𝑧) = ((𝐺𝑤)𝑃(𝐻𝑤)))
2120oveq2d 6626 . . . . . . 7 (𝑧 = (𝐻𝑤) → ((𝐹𝑤)𝑂((𝐺𝑤)𝑃𝑧)) = ((𝐹𝑤)𝑂((𝐺𝑤)𝑃(𝐻𝑤))))
2219, 21eqeq12d 2636 . . . . . 6 (𝑧 = (𝐻𝑤) → ((((𝐹𝑤)𝑅(𝐺𝑤))𝑇𝑧) = ((𝐹𝑤)𝑂((𝐺𝑤)𝑃𝑧)) ↔ (((𝐹𝑤)𝑅(𝐺𝑤))𝑇(𝐻𝑤)) = ((𝐹𝑤)𝑂((𝐺𝑤)𝑃(𝐻𝑤)))))
2313, 18, 22rspc3v 3313 . . . . 5 (((𝐹𝑤) ∈ 𝑆 ∧ (𝐺𝑤) ∈ 𝑆 ∧ (𝐻𝑤) ∈ 𝑆) → (∀𝑥𝑆𝑦𝑆𝑧𝑆 ((𝑥𝑅𝑦)𝑇𝑧) = (𝑥𝑂(𝑦𝑃𝑧)) → (((𝐹𝑤)𝑅(𝐺𝑤))𝑇(𝐻𝑤)) = ((𝐹𝑤)𝑂((𝐺𝑤)𝑃(𝐻𝑤)))))
245, 7, 9, 23syl3anc 1323 . . . 4 ((𝜑𝑤𝐴) → (∀𝑥𝑆𝑦𝑆𝑧𝑆 ((𝑥𝑅𝑦)𝑇𝑧) = (𝑥𝑂(𝑦𝑃𝑧)) → (((𝐹𝑤)𝑅(𝐺𝑤))𝑇(𝐻𝑤)) = ((𝐹𝑤)𝑂((𝐺𝑤)𝑃(𝐻𝑤)))))
253, 24mpd 15 . . 3 ((𝜑𝑤𝐴) → (((𝐹𝑤)𝑅(𝐺𝑤))𝑇(𝐻𝑤)) = ((𝐹𝑤)𝑂((𝐺𝑤)𝑃(𝐻𝑤))))
2625mpteq2dva 4709 . 2 (𝜑 → (𝑤𝐴 ↦ (((𝐹𝑤)𝑅(𝐺𝑤))𝑇(𝐻𝑤))) = (𝑤𝐴 ↦ ((𝐹𝑤)𝑂((𝐺𝑤)𝑃(𝐻𝑤)))))
27 caofref.1 . . 3 (𝜑𝐴𝑉)
28 ovexd 6640 . . 3 ((𝜑𝑤𝐴) → ((𝐹𝑤)𝑅(𝐺𝑤)) ∈ V)
294feqmptd 6211 . . . 4 (𝜑𝐹 = (𝑤𝐴 ↦ (𝐹𝑤)))
306feqmptd 6211 . . . 4 (𝜑𝐺 = (𝑤𝐴 ↦ (𝐺𝑤)))
3127, 5, 7, 29, 30offval2 6874 . . 3 (𝜑 → (𝐹𝑓 𝑅𝐺) = (𝑤𝐴 ↦ ((𝐹𝑤)𝑅(𝐺𝑤))))
328feqmptd 6211 . . 3 (𝜑𝐻 = (𝑤𝐴 ↦ (𝐻𝑤)))
3327, 28, 9, 31, 32offval2 6874 . 2 (𝜑 → ((𝐹𝑓 𝑅𝐺) ∘𝑓 𝑇𝐻) = (𝑤𝐴 ↦ (((𝐹𝑤)𝑅(𝐺𝑤))𝑇(𝐻𝑤))))
34 ovexd 6640 . . 3 ((𝜑𝑤𝐴) → ((𝐺𝑤)𝑃(𝐻𝑤)) ∈ V)
3527, 7, 9, 30, 32offval2 6874 . . 3 (𝜑 → (𝐺𝑓 𝑃𝐻) = (𝑤𝐴 ↦ ((𝐺𝑤)𝑃(𝐻𝑤))))
3627, 5, 34, 29, 35offval2 6874 . 2 (𝜑 → (𝐹𝑓 𝑂(𝐺𝑓 𝑃𝐻)) = (𝑤𝐴 ↦ ((𝐹𝑤)𝑂((𝐺𝑤)𝑃(𝐻𝑤)))))
3726, 33, 363eqtr4d 2665 1 (𝜑 → ((𝐹𝑓 𝑅𝐺) ∘𝑓 𝑇𝐻) = (𝐹𝑓 𝑂(𝐺𝑓 𝑃𝐻)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 384  w3a 1036   = wceq 1480  wcel 1987  wral 2907  Vcvv 3189  cmpt 4678  wf 5848  cfv 5852  (class class class)co 6610  𝑓 cof 6855
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-rep 4736  ax-sep 4746  ax-nul 4754  ax-pow 4808  ax-pr 4872
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-ral 2912  df-rex 2913  df-reu 2914  df-rab 2916  df-v 3191  df-sbc 3422  df-csb 3519  df-dif 3562  df-un 3564  df-in 3566  df-ss 3573  df-nul 3897  df-if 4064  df-sn 4154  df-pr 4156  df-op 4160  df-uni 4408  df-iun 4492  df-br 4619  df-opab 4679  df-mpt 4680  df-id 4994  df-xp 5085  df-rel 5086  df-cnv 5087  df-co 5088  df-dm 5089  df-rn 5090  df-res 5091  df-ima 5092  df-iota 5815  df-fun 5854  df-fn 5855  df-f 5856  df-f1 5857  df-fo 5858  df-f1o 5859  df-fv 5860  df-ov 6613  df-oprab 6614  df-mpt2 6615  df-of 6857
This theorem is referenced by:  psrgrp  19330  psrlmod  19333  mndvass  20130  itg2mulc  23437  plydivlem4  23972  dchrabl  24896  lfladdass  33875  lflvsass  33883  expgrowth  38051
  Copyright terms: Public domain W3C validator