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

Theorem comfffval 17877
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 6885 . . . . . . 7 (𝑐 = 𝐶 → (Base‘𝑐) = (Base‘𝐶))
3 comfffval.b . . . . . . 7 𝐵 = (Base‘𝐶)
42, 3eqtr4di 2813 . . . . . 6 (𝑐 = 𝐶 → (Base‘𝑐) = 𝐵)
54sqxpeqd 5682 . . . . 5 (𝑐 = 𝐶 → ((Base‘𝑐) × (Base‘𝑐)) = (𝐵 × 𝐵))
6 fveq2 6885 . . . . . . . 8 (𝑐 = 𝐶 → (Hom ‘𝑐) = (Hom ‘𝐶))
7 comfffval.h . . . . . . . 8 𝐻 = (Hom ‘𝐶)
86, 7eqtr4di 2813 . . . . . . 7 (𝑐 = 𝐶 → (Hom ‘𝑐) = 𝐻)
98oveqd 7437 . . . . . 6 (𝑐 = 𝐶 → ((2nd ‘𝑥)(Hom ‘𝑐)𝑦) = ((2nd ‘𝑥)𝐻𝑦))
108fveq1d 6887 . . . . . 6 (𝑐 = 𝐶 → ((Hom ‘𝑐)‘𝑥) = (𝐻‘𝑥))
11 fveq2 6885 . . . . . . . . 9 (𝑐 = 𝐶 → (comp‘𝑐) = (comp‘𝐶))
12 comfffval.x . . . . . . . . 9 · = (comp‘𝐶)
1311, 12eqtr4di 2813 . . . . . . . 8 (𝑐 = 𝐶 → (comp‘𝑐) = · )
1413oveqd 7437 . . . . . . 7 (𝑐 = 𝐶 → (𝑥(comp‘𝑐)𝑦) = (𝑥 · 𝑦))
1514oveqd 7437 . . . . . 6 (𝑐 = 𝐶 → (𝑔(𝑥(comp‘𝑐)𝑦)𝑓) = (𝑔(𝑥 · 𝑦)𝑓))
169, 10, 15mpoeq123dv 7495 . . . . 5 (𝑐 = 𝐶 → (𝑔 ∈ ((2nd ‘𝑥)(Hom ‘𝑐)𝑦), 𝑓 ∈ ((Hom ‘𝑐)‘𝑥) ↦ (𝑔(𝑥(comp‘𝑐)𝑦)𝑓)) = (𝑔 ∈ ((2nd ‘𝑥)𝐻𝑦), 𝑓 ∈ (𝐻‘𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓)))
175, 4, 16mpoeq123dv 7495 . . . 4 (𝑐 = 𝐶 → (𝑥 ∈ ((Base‘𝑐) × (Base‘𝑐)), 𝑦 ∈ (Base‘𝑐) ↦ (𝑔 ∈ ((2nd ‘𝑥)(Hom ‘𝑐)𝑦), 𝑓 ∈ ((Hom ‘𝑐)‘𝑥) ↦ (𝑔(𝑥(comp‘𝑐)𝑦)𝑓))) = (𝑥 ∈ (𝐵 × 𝐵), 𝑦 ∈ 𝐵 ↦ (𝑔 ∈ ((2nd ‘𝑥)𝐻𝑦), 𝑓 ∈ (𝐻‘𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓))))
18 df-comf 17850 . . . 4 compf = (𝑐 ∈ V ↦ (𝑥 ∈ ((Base‘𝑐) × (Base‘𝑐)), 𝑦 ∈ (Base‘𝑐) ↦ (𝑔 ∈ ((2nd ‘𝑥)(Hom ‘𝑐)𝑦), 𝑓 ∈ ((Hom ‘𝑐)‘𝑥) ↦ (𝑔(𝑥(comp‘𝑐)𝑦)𝑓))))
193fvexi 6899 . . . . . 6 𝐵 ∈ V
2019, 19xpex 7767 . . . . 5 (𝐵 × 𝐵) ∈ V
2120, 19mpoex 8092 . . . 4 (𝑥 ∈ (𝐵 × 𝐵), 𝑦 ∈ 𝐵 ↦ (𝑔 ∈ ((2nd ‘𝑥)𝐻𝑦), 𝑓 ∈ (𝐻‘𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓))) ∈ V
2217, 18, 21fvmpt 6993 . . 3 (𝐶 ∈ V → (compf‘𝐶) = (𝑥 ∈ (𝐵 × 𝐵), 𝑦 ∈ 𝐵 ↦ (𝑔 ∈ ((2nd ‘𝑥)𝐻𝑦), 𝑓 ∈ (𝐻‘𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓))))
23 fvprc 6877 . . . 4 (¬ 𝐶 ∈ V → (compf‘𝐶) = ∅)
24 fvprc 6877 . . . . . . 7 (¬ 𝐶 ∈ V → (Base‘𝐶) = ∅)
253, 24eqtrid 2807 . . . . . 6 (¬ 𝐶 ∈ V → 𝐵 = ∅)
2625olcd 888 . . . . 5 (¬ 𝐶 ∈ V → ((𝐵 × 𝐵) = ∅ ∨ 𝐵 = ∅))
27 0mpo0 7503 . . . . 5 (((𝐵 × 𝐵) = ∅ ∨ 𝐵 = ∅) → (𝑥 ∈ (𝐵 × 𝐵), 𝑦 ∈ 𝐵 ↦ (𝑔 ∈ ((2nd ‘𝑥)𝐻𝑦), 𝑓 ∈ (𝐻‘𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓))) = ∅)
2826, 27syl 18 . . . 4 (¬ 𝐶 ∈ V → (𝑥 ∈ (𝐵 × 𝐵), 𝑦 ∈ 𝐵 ↦ (𝑔 ∈ ((2nd ‘𝑥)𝐻𝑦), 𝑓 ∈ (𝐻‘𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓))) = ∅)
2923, 28eqtr4d 2798 . . 3 (¬ 𝐶 ∈ V → (compf‘𝐶) = (𝑥 ∈ (𝐵 × 𝐵), 𝑦 ∈ 𝐵 ↦ (𝑔 ∈ ((2nd ‘𝑥)𝐻𝑦), 𝑓 ∈ (𝐻‘𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓))))
3022, 29pm2.61i 184 . 2 (compf‘𝐶) = (𝑥 ∈ (𝐵 × 𝐵), 𝑦 ∈ 𝐵 ↦ (𝑔 ∈ ((2nd ‘𝑥)𝐻𝑦), 𝑓 ∈ (𝐻‘𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓)))
311, 30eqtri 2783 1 𝑂 = (𝑥 ∈ (𝐵 × 𝐵), 𝑦 ∈ 𝐵 ↦ (𝑔 ∈ ((2nd ‘𝑥)𝐻𝑦), 𝑓 ∈ (𝐻‘𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   ∨ wo 861   = wceq 1569   ∈ wcel 2144  Vcvv 3450  ∅c0 4278   × cxp 5648  ‘cfv 6538  (class class class)co 7420   ∈ cmpo 7422  2nd c2nd 8000  Basecbs 17392  Hom chom 17444  compcco 17445  compfccomf 17846
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-rep 5231  ax-sep 5248  ax-nul 5259  ax-pow 5326  ax-pr 5390  ax-un 7751
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-id 5545  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546  df-ov 7423  df-oprab 7424  df-mpo 7425  df-1st 8001  df-2nd 8002  df-comf 17850
This theorem is used by:  comffval  17878  comfffval2  17880  comfffn  17883  comfeq  17885
  Copyright terms: Public domain W3C validator