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

Theorem comfffval 17922
Description: Value of the functionalized composition operation. (Contributed by Mario Carneiro, 4-Jan-2017.) (Proof shortened by AV, 1-Mar-2024.)
Hypotheses
Ref Expression
comfffval.o 𝑂 = (compf‘𝐶)
comfffval.b 𝐵 = (Base‘𝐶)
comfffval.h 𝐻 = (Hom ‘𝐶)
comfffval.x · = (comp‘𝐶)
Assertion
Ref Expression
comfffval 𝑂 = (𝑥 ∈ (𝐵 × 𝐵), 𝑦 ∈ 𝐵 ↦ (𝑔 ∈ ((2nd ‘𝑥)𝐻𝑦), 𝑓 ∈ (𝐻‘𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓)))
Distinct variable groups:   𝑥,𝑦,𝐵   𝑓,𝑔,𝑥,𝑦,𝐶   · ,𝑓,𝑔,𝑥   𝑓,𝐻,𝑔,𝑥
Allowed substitution hints:   𝐵(𝑓, 𝑔)   · (𝑦)   𝐻(𝑦)   𝑂(𝑥, 𝑦, 𝑓, 𝑔)

Proof of Theorem comfffval
Dummy variable 𝑐 is distinct from all other variables.
StepHypRef Expression
1 comfffval.o . 2 𝑂 = (compf‘𝐶)
2 fveq2 6916 . . . . . . 7 (𝑐 = 𝐶 → (Base‘𝑐) = (Base‘𝐶))
3 comfffval.b . . . . . . 7 𝐵 = (Base‘𝐶)
42, 3eqtr4di 2816 . . . . . 6 (𝑐 = 𝐶 → (Base‘𝑐) = 𝐵)
54sqxpeqd 5690 . . . . 5 (𝑐 = 𝐶 → ((Base‘𝑐) × (Base‘𝑐)) = (𝐵 × 𝐵))
6 fveq2 6916 . . . . . . . 8 (𝑐 = 𝐶 → (Hom ‘𝑐) = (Hom ‘𝐶))
7 comfffval.h . . . . . . . 8 𝐻 = (Hom ‘𝐶)
86, 7eqtr4di 2816 . . . . . . 7 (𝑐 = 𝐶 → (Hom ‘𝑐) = 𝐻)
98oveqd 7468 . . . . . 6 (𝑐 = 𝐶 → ((2nd ‘𝑥)(Hom ‘𝑐)𝑦) = ((2nd ‘𝑥)𝐻𝑦))
108fveq1d 6918 . . . . . 6 (𝑐 = 𝐶 → ((Hom ‘𝑐)‘𝑥) = (𝐻‘𝑥))
11 fveq2 6916 . . . . . . . . 9 (𝑐 = 𝐶 → (comp‘𝑐) = (comp‘𝐶))
12 comfffval.x . . . . . . . . 9 · = (comp‘𝐶)
1311, 12eqtr4di 2816 . . . . . . . 8 (𝑐 = 𝐶 → (comp‘𝑐) = · )
1413oveqd 7468 . . . . . . 7 (𝑐 = 𝐶 → (𝑥(comp‘𝑐)𝑦) = (𝑥 · 𝑦))
1514oveqd 7468 . . . . . 6 (𝑐 = 𝐶 → (𝑔(𝑥(comp‘𝑐)𝑦)𝑓) = (𝑔(𝑥 · 𝑦)𝑓))
169, 10, 15mpoeq123dv 7526 . . . . 5 (𝑐 = 𝐶 → (𝑔 ∈ ((2nd ‘𝑥)(Hom ‘𝑐)𝑦), 𝑓 ∈ ((Hom ‘𝑐)‘𝑥) ↦ (𝑔(𝑥(comp‘𝑐)𝑦)𝑓)) = (𝑔 ∈ ((2nd ‘𝑥)𝐻𝑦), 𝑓 ∈ (𝐻‘𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓)))
175, 4, 16mpoeq123dv 7526 . . . 4 (𝑐 = 𝐶 → (𝑥 ∈ ((Base‘𝑐) × (Base‘𝑐)), 𝑦 ∈ (Base‘𝑐) ↦ (𝑔 ∈ ((2nd ‘𝑥)(Hom ‘𝑐)𝑦), 𝑓 ∈ ((Hom ‘𝑐)‘𝑥) ↦ (𝑔(𝑥(comp‘𝑐)𝑦)𝑓))) = (𝑥 ∈ (𝐵 × 𝐵), 𝑦 ∈ 𝐵 ↦ (𝑔 ∈ ((2nd ‘𝑥)𝐻𝑦), 𝑓 ∈ (𝐻‘𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓))))
18 df-comf 17895 . . . 4 compf = (𝑐 ∈ V ↦ (𝑥 ∈ ((Base‘𝑐) × (Base‘𝑐)), 𝑦 ∈ (Base‘𝑐) ↦ (𝑔 ∈ ((2nd ‘𝑥)(Hom ‘𝑐)𝑦), 𝑓 ∈ ((Hom ‘𝑐)‘𝑥) ↦ (𝑔(𝑥(comp‘𝑐)𝑦)𝑓))))
193fvexi 6930 . . . . . 6 𝐵 ∈ V
2019, 19xpex 7799 . . . . 5 (𝐵 × 𝐵) ∈ V
2120, 19mpoex 8127 . . . 4 (𝑥 ∈ (𝐵 × 𝐵), 𝑦 ∈ 𝐵 ↦ (𝑔 ∈ ((2nd ‘𝑥)𝐻𝑦), 𝑓 ∈ (𝐻‘𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓))) ∈ V
2217, 18, 21fvmpt 7024 . . 3 (𝐶 ∈ V → (compf‘𝐶) = (𝑥 ∈ (𝐵 × 𝐵), 𝑦 ∈ 𝐵 ↦ (𝑔 ∈ ((2nd ‘𝑥)𝐻𝑦), 𝑓 ∈ (𝐻‘𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓))))
23 fvprc 6908 . . . 4 (¬ 𝐶 ∈ V → (compf‘𝐶) = ∅)
24 fvprc 6908 . . . . . . 7 (¬ 𝐶 ∈ V → (Base‘𝐶) = ∅)
253, 24eqtrid 2810 . . . . . 6 (¬ 𝐶 ∈ V → 𝐵 = ∅)
2625olcd 888 . . . . 5 (¬ 𝐶 ∈ V → ((𝐵 × 𝐵) = ∅ ∨ 𝐵 = ∅))
27 0mpo0 7534 . . . . 5 (((𝐵 × 𝐵) = ∅ ∨ 𝐵 = ∅) → (𝑥 ∈ (𝐵 × 𝐵), 𝑦 ∈ 𝐵 ↦ (𝑔 ∈ ((2nd ‘𝑥)𝐻𝑦), 𝑓 ∈ (𝐻‘𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓))) = ∅)
2826, 27syl 18 . . . 4 (¬ 𝐶 ∈ V → (𝑥 ∈ (𝐵 × 𝐵), 𝑦 ∈ 𝐵 ↦ (𝑔 ∈ ((2nd ‘𝑥)𝐻𝑦), 𝑓 ∈ (𝐻‘𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓))) = ∅)
2923, 28eqtr4d 2801 . . 3 (¬ 𝐶 ∈ V → (compf‘𝐶) = (𝑥 ∈ (𝐵 × 𝐵), 𝑦 ∈ 𝐵 ↦ (𝑔 ∈ ((2nd ‘𝑥)𝐻𝑦), 𝑓 ∈ (𝐻‘𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓))))
3022, 29pm2.61i 184 . 2 (compf‘𝐶) = (𝑥 ∈ (𝐵 × 𝐵), 𝑦 ∈ 𝐵 ↦ (𝑔 ∈ ((2nd ‘𝑥)𝐻𝑦), 𝑓 ∈ (𝐻‘𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓)))
311, 30eqtri 2786 1 𝑂 = (𝑥 ∈ (𝐵 × 𝐵), 𝑦 ∈ 𝐵 ↦ (𝑔 ∈ ((2nd ‘𝑥)𝐻𝑦), 𝑓 ∈ (𝐻‘𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   ∨ wo 861   = wceq 1570   ∈ wcel 2147  Vcvv 3454  ∅c0 4281   × cxp 5656  ‘cfv 6566  (class class class)co 7451   ∈ cmpo 7453  2nd c2nd 8034  Basecbs 17431  Hom chom 17483  compcco 17484  compfccomf 17891
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5238  ax-sep 5255  ax-nul 5266  ax-pow 5334  ax-pr 5398  ax-un 7783
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4841  df-uni 4873  df-iun 4958  df-br 5109  df-opab 5174  df-mpt 5193  df-id 5553  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-f1 6571  df-fo 6572  df-f1o 6573  df-fv 6574  df-ov 7454  df-oprab 7455  df-mpo 7456  df-1st 8035  df-2nd 8036  df-comf 17895
This theorem is used by:  comffval  17923  comfffval2  17925  comfffn  17928  comfeq  17930
  Copyright terms: Public domain W3C validator