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

Theorem comfffval 16971
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 6673 . . . . . . 7 (𝑐 = 𝐶 → (Base‘𝑐) = (Base‘𝐶))
3 comfffval.b . . . . . . 7 𝐵 = (Base‘𝐶)
42, 3syl6eqr 2877 . . . . . 6 (𝑐 = 𝐶 → (Base‘𝑐) = 𝐵)
54sqxpeqd 5590 . . . . 5 (𝑐 = 𝐶 → ((Base‘𝑐) × (Base‘𝑐)) = (𝐵 × 𝐵))
6 fveq2 6673 . . . . . . . 8 (𝑐 = 𝐶 → (Hom ‘𝑐) = (Hom ‘𝐶))
7 comfffval.h . . . . . . . 8 𝐻 = (Hom ‘𝐶)
86, 7syl6eqr 2877 . . . . . . 7 (𝑐 = 𝐶 → (Hom ‘𝑐) = 𝐻)
98oveqd 7176 . . . . . 6 (𝑐 = 𝐶 → ((2nd𝑥)(Hom ‘𝑐)𝑦) = ((2nd𝑥)𝐻𝑦))
108fveq1d 6675 . . . . . 6 (𝑐 = 𝐶 → ((Hom ‘𝑐)‘𝑥) = (𝐻𝑥))
11 fveq2 6673 . . . . . . . . 9 (𝑐 = 𝐶 → (comp‘𝑐) = (comp‘𝐶))
12 comfffval.x . . . . . . . . 9 · = (comp‘𝐶)
1311, 12syl6eqr 2877 . . . . . . . 8 (𝑐 = 𝐶 → (comp‘𝑐) = · )
1413oveqd 7176 . . . . . . 7 (𝑐 = 𝐶 → (𝑥(comp‘𝑐)𝑦) = (𝑥 · 𝑦))
1514oveqd 7176 . . . . . 6 (𝑐 = 𝐶 → (𝑔(𝑥(comp‘𝑐)𝑦)𝑓) = (𝑔(𝑥 · 𝑦)𝑓))
169, 10, 15mpoeq123dv 7232 . . . . 5 (𝑐 = 𝐶 → (𝑔 ∈ ((2nd𝑥)(Hom ‘𝑐)𝑦), 𝑓 ∈ ((Hom ‘𝑐)‘𝑥) ↦ (𝑔(𝑥(comp‘𝑐)𝑦)𝑓)) = (𝑔 ∈ ((2nd𝑥)𝐻𝑦), 𝑓 ∈ (𝐻𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓)))
175, 4, 16mpoeq123dv 7232 . . . 4 (𝑐 = 𝐶 → (𝑥 ∈ ((Base‘𝑐) × (Base‘𝑐)), 𝑦 ∈ (Base‘𝑐) ↦ (𝑔 ∈ ((2nd𝑥)(Hom ‘𝑐)𝑦), 𝑓 ∈ ((Hom ‘𝑐)‘𝑥) ↦ (𝑔(𝑥(comp‘𝑐)𝑦)𝑓))) = (𝑥 ∈ (𝐵 × 𝐵), 𝑦𝐵 ↦ (𝑔 ∈ ((2nd𝑥)𝐻𝑦), 𝑓 ∈ (𝐻𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓))))
18 df-comf 16945 . . . 4 compf = (𝑐 ∈ V ↦ (𝑥 ∈ ((Base‘𝑐) × (Base‘𝑐)), 𝑦 ∈ (Base‘𝑐) ↦ (𝑔 ∈ ((2nd𝑥)(Hom ‘𝑐)𝑦), 𝑓 ∈ ((Hom ‘𝑐)‘𝑥) ↦ (𝑔(𝑥(comp‘𝑐)𝑦)𝑓))))
193fvexi 6687 . . . . . 6 𝐵 ∈ V
2019, 19xpex 7479 . . . . 5 (𝐵 × 𝐵) ∈ V
2120, 19mpoex 7780 . . . 4 (𝑥 ∈ (𝐵 × 𝐵), 𝑦𝐵 ↦ (𝑔 ∈ ((2nd𝑥)𝐻𝑦), 𝑓 ∈ (𝐻𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓))) ∈ V
2217, 18, 21fvmpt 6771 . . 3 (𝐶 ∈ V → (compf𝐶) = (𝑥 ∈ (𝐵 × 𝐵), 𝑦𝐵 ↦ (𝑔 ∈ ((2nd𝑥)𝐻𝑦), 𝑓 ∈ (𝐻𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓))))
23 fvprc 6666 . . . 4 𝐶 ∈ V → (compf𝐶) = ∅)
24 fvprc 6666 . . . . . . 7 𝐶 ∈ V → (Base‘𝐶) = ∅)
253, 24syl5eq 2871 . . . . . 6 𝐶 ∈ V → 𝐵 = ∅)
2625olcd 870 . . . . 5 𝐶 ∈ V → ((𝐵 × 𝐵) = ∅ ∨ 𝐵 = ∅))
27 0mpo0 7240 . . . . 5 (((𝐵 × 𝐵) = ∅ ∨ 𝐵 = ∅) → (𝑥 ∈ (𝐵 × 𝐵), 𝑦𝐵 ↦ (𝑔 ∈ ((2nd𝑥)𝐻𝑦), 𝑓 ∈ (𝐻𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓))) = ∅)
2826, 27syl 17 . . . 4 𝐶 ∈ V → (𝑥 ∈ (𝐵 × 𝐵), 𝑦𝐵 ↦ (𝑔 ∈ ((2nd𝑥)𝐻𝑦), 𝑓 ∈ (𝐻𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓))) = ∅)
2923, 28eqtr4d 2862 . . 3 𝐶 ∈ V → (compf𝐶) = (𝑥 ∈ (𝐵 × 𝐵), 𝑦𝐵 ↦ (𝑔 ∈ ((2nd𝑥)𝐻𝑦), 𝑓 ∈ (𝐻𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓))))
3022, 29pm2.61i 184 . 2 (compf𝐶) = (𝑥 ∈ (𝐵 × 𝐵), 𝑦𝐵 ↦ (𝑔 ∈ ((2nd𝑥)𝐻𝑦), 𝑓 ∈ (𝐻𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓)))
311, 30eqtri 2847 1 𝑂 = (𝑥 ∈ (𝐵 × 𝐵), 𝑦𝐵 ↦ (𝑔 ∈ ((2nd𝑥)𝐻𝑦), 𝑓 ∈ (𝐻𝑥) ↦ (𝑔(𝑥 · 𝑦)𝑓)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wo 843   = wceq 1536  wcel 2113  Vcvv 3497  c0 4294   × cxp 5556  cfv 6358  (class class class)co 7159  cmpo 7161  2nd c2nd 7691  Basecbs 16486  Hom chom 16579  compcco 16580  compfccomf 16941
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1969  ax-7 2014  ax-8 2115  ax-9 2123  ax-10 2144  ax-11 2160  ax-12 2176  ax-ext 2796  ax-rep 5193  ax-sep 5206  ax-nul 5213  ax-pow 5269  ax-pr 5333  ax-un 7464
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1539  df-ex 1780  df-nf 1784  df-sb 2069  df-mo 2621  df-eu 2653  df-clab 2803  df-cleq 2817  df-clel 2896  df-nfc 2966  df-ne 3020  df-ral 3146  df-rex 3147  df-reu 3148  df-rab 3150  df-v 3499  df-sbc 3776  df-csb 3887  df-dif 3942  df-un 3944  df-in 3946  df-ss 3955  df-nul 4295  df-if 4471  df-pw 4544  df-sn 4571  df-pr 4573  df-op 4577  df-uni 4842  df-iun 4924  df-br 5070  df-opab 5132  df-mpt 5150  df-id 5463  df-xp 5564  df-rel 5565  df-cnv 5566  df-co 5567  df-dm 5568  df-rn 5569  df-res 5570  df-ima 5571  df-iota 6317  df-fun 6360  df-fn 6361  df-f 6362  df-f1 6363  df-fo 6364  df-f1o 6365  df-fv 6366  df-ov 7162  df-oprab 7163  df-mpo 7164  df-1st 7692  df-2nd 7693  df-comf 16945
This theorem is referenced by:  comffval  16972  comfffval2  16974  comfffn  16977  comfeq  16979
  Copyright terms: Public domain W3C validator