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

Theorem evlfval 17851
Description: Value of the evaluation functor. (Contributed by Mario Carneiro, 12-Jan-2017.)
Hypotheses
Ref Expression
evlfval.e 𝐸 = (𝐶 evalF 𝐷)
evlfval.c (𝜑𝐶 ∈ Cat)
evlfval.d (𝜑𝐷 ∈ Cat)
evlfval.b 𝐵 = (Base‘𝐶)
evlfval.h 𝐻 = (Hom ‘𝐶)
evlfval.o · = (comp‘𝐷)
evlfval.n 𝑁 = (𝐶 Nat 𝐷)
Assertion
Ref Expression
evlfval (𝜑𝐸 = ⟨(𝑓 ∈ (𝐶 Func 𝐷), 𝑥𝐵 ↦ ((1st𝑓)‘𝑥)), (𝑥 ∈ ((𝐶 Func 𝐷) × 𝐵), 𝑦 ∈ ((𝐶 Func 𝐷) × 𝐵) ↦ (1st𝑥) / 𝑚(1st𝑦) / 𝑛(𝑎 ∈ (𝑚𝑁𝑛), 𝑔 ∈ ((2nd𝑥)𝐻(2nd𝑦)) ↦ ((𝑎‘(2nd𝑦))(⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩ · ((1st𝑛)‘(2nd𝑦)))(((2nd𝑥)(2nd𝑚)(2nd𝑦))‘𝑔))))⟩)
Distinct variable groups:   𝑓,𝑎,𝑔,𝑚,𝑛,𝑥,𝑦,𝐶   𝐷,𝑎,𝑓,𝑔,𝑚,𝑛,𝑥,𝑦   𝑔,𝐻,𝑚,𝑛,𝑥,𝑦   𝑁,𝑎,𝑔,𝑚,𝑛,𝑥,𝑦   𝜑,𝑎,𝑓,𝑔,𝑚,𝑛,𝑥,𝑦   · ,𝑎,𝑔,𝑚,𝑛,𝑥,𝑦   𝑥,𝐵,𝑦
Allowed substitution hints:   𝐵(𝑓,𝑔,𝑚,𝑛,𝑎)   · (𝑓)   𝐸(𝑥,𝑦,𝑓,𝑔,𝑚,𝑛,𝑎)   𝐻(𝑓,𝑎)   𝑁(𝑓)

Proof of Theorem evlfval
Dummy variables 𝑐 𝑑 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 evlfval.e . 2 𝐸 = (𝐶 evalF 𝐷)
2 df-evlf 17847 . . . 4 evalF = (𝑐 ∈ Cat, 𝑑 ∈ Cat ↦ ⟨(𝑓 ∈ (𝑐 Func 𝑑), 𝑥 ∈ (Base‘𝑐) ↦ ((1st𝑓)‘𝑥)), (𝑥 ∈ ((𝑐 Func 𝑑) × (Base‘𝑐)), 𝑦 ∈ ((𝑐 Func 𝑑) × (Base‘𝑐)) ↦ (1st𝑥) / 𝑚(1st𝑦) / 𝑛(𝑎 ∈ (𝑚(𝑐 Nat 𝑑)𝑛), 𝑔 ∈ ((2nd𝑥)(Hom ‘𝑐)(2nd𝑦)) ↦ ((𝑎‘(2nd𝑦))(⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩(comp‘𝑑)((1st𝑛)‘(2nd𝑦)))(((2nd𝑥)(2nd𝑚)(2nd𝑦))‘𝑔))))⟩)
32a1i 11 . . 3 (𝜑 → evalF = (𝑐 ∈ Cat, 𝑑 ∈ Cat ↦ ⟨(𝑓 ∈ (𝑐 Func 𝑑), 𝑥 ∈ (Base‘𝑐) ↦ ((1st𝑓)‘𝑥)), (𝑥 ∈ ((𝑐 Func 𝑑) × (Base‘𝑐)), 𝑦 ∈ ((𝑐 Func 𝑑) × (Base‘𝑐)) ↦ (1st𝑥) / 𝑚(1st𝑦) / 𝑛(𝑎 ∈ (𝑚(𝑐 Nat 𝑑)𝑛), 𝑔 ∈ ((2nd𝑥)(Hom ‘𝑐)(2nd𝑦)) ↦ ((𝑎‘(2nd𝑦))(⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩(comp‘𝑑)((1st𝑛)‘(2nd𝑦)))(((2nd𝑥)(2nd𝑚)(2nd𝑦))‘𝑔))))⟩))
4 simprl 767 . . . . . 6 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → 𝑐 = 𝐶)
5 simprr 769 . . . . . 6 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → 𝑑 = 𝐷)
64, 5oveq12d 7273 . . . . 5 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → (𝑐 Func 𝑑) = (𝐶 Func 𝐷))
74fveq2d 6760 . . . . . 6 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → (Base‘𝑐) = (Base‘𝐶))
8 evlfval.b . . . . . 6 𝐵 = (Base‘𝐶)
97, 8eqtr4di 2797 . . . . 5 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → (Base‘𝑐) = 𝐵)
10 eqidd 2739 . . . . 5 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → ((1st𝑓)‘𝑥) = ((1st𝑓)‘𝑥))
116, 9, 10mpoeq123dv 7328 . . . 4 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → (𝑓 ∈ (𝑐 Func 𝑑), 𝑥 ∈ (Base‘𝑐) ↦ ((1st𝑓)‘𝑥)) = (𝑓 ∈ (𝐶 Func 𝐷), 𝑥𝐵 ↦ ((1st𝑓)‘𝑥)))
126, 9xpeq12d 5611 . . . . 5 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → ((𝑐 Func 𝑑) × (Base‘𝑐)) = ((𝐶 Func 𝐷) × 𝐵))
134, 5oveq12d 7273 . . . . . . . . . 10 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → (𝑐 Nat 𝑑) = (𝐶 Nat 𝐷))
14 evlfval.n . . . . . . . . . 10 𝑁 = (𝐶 Nat 𝐷)
1513, 14eqtr4di 2797 . . . . . . . . 9 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → (𝑐 Nat 𝑑) = 𝑁)
1615oveqd 7272 . . . . . . . 8 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → (𝑚(𝑐 Nat 𝑑)𝑛) = (𝑚𝑁𝑛))
174fveq2d 6760 . . . . . . . . . 10 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → (Hom ‘𝑐) = (Hom ‘𝐶))
18 evlfval.h . . . . . . . . . 10 𝐻 = (Hom ‘𝐶)
1917, 18eqtr4di 2797 . . . . . . . . 9 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → (Hom ‘𝑐) = 𝐻)
2019oveqd 7272 . . . . . . . 8 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → ((2nd𝑥)(Hom ‘𝑐)(2nd𝑦)) = ((2nd𝑥)𝐻(2nd𝑦)))
215fveq2d 6760 . . . . . . . . . . 11 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → (comp‘𝑑) = (comp‘𝐷))
22 evlfval.o . . . . . . . . . . 11 · = (comp‘𝐷)
2321, 22eqtr4di 2797 . . . . . . . . . 10 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → (comp‘𝑑) = · )
2423oveqd 7272 . . . . . . . . 9 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → (⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩(comp‘𝑑)((1st𝑛)‘(2nd𝑦))) = (⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩ · ((1st𝑛)‘(2nd𝑦))))
2524oveqd 7272 . . . . . . . 8 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → ((𝑎‘(2nd𝑦))(⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩(comp‘𝑑)((1st𝑛)‘(2nd𝑦)))(((2nd𝑥)(2nd𝑚)(2nd𝑦))‘𝑔)) = ((𝑎‘(2nd𝑦))(⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩ · ((1st𝑛)‘(2nd𝑦)))(((2nd𝑥)(2nd𝑚)(2nd𝑦))‘𝑔)))
2616, 20, 25mpoeq123dv 7328 . . . . . . 7 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → (𝑎 ∈ (𝑚(𝑐 Nat 𝑑)𝑛), 𝑔 ∈ ((2nd𝑥)(Hom ‘𝑐)(2nd𝑦)) ↦ ((𝑎‘(2nd𝑦))(⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩(comp‘𝑑)((1st𝑛)‘(2nd𝑦)))(((2nd𝑥)(2nd𝑚)(2nd𝑦))‘𝑔))) = (𝑎 ∈ (𝑚𝑁𝑛), 𝑔 ∈ ((2nd𝑥)𝐻(2nd𝑦)) ↦ ((𝑎‘(2nd𝑦))(⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩ · ((1st𝑛)‘(2nd𝑦)))(((2nd𝑥)(2nd𝑚)(2nd𝑦))‘𝑔))))
2726csbeq2dv 3835 . . . . . 6 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → (1st𝑦) / 𝑛(𝑎 ∈ (𝑚(𝑐 Nat 𝑑)𝑛), 𝑔 ∈ ((2nd𝑥)(Hom ‘𝑐)(2nd𝑦)) ↦ ((𝑎‘(2nd𝑦))(⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩(comp‘𝑑)((1st𝑛)‘(2nd𝑦)))(((2nd𝑥)(2nd𝑚)(2nd𝑦))‘𝑔))) = (1st𝑦) / 𝑛(𝑎 ∈ (𝑚𝑁𝑛), 𝑔 ∈ ((2nd𝑥)𝐻(2nd𝑦)) ↦ ((𝑎‘(2nd𝑦))(⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩ · ((1st𝑛)‘(2nd𝑦)))(((2nd𝑥)(2nd𝑚)(2nd𝑦))‘𝑔))))
2827csbeq2dv 3835 . . . . 5 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → (1st𝑥) / 𝑚(1st𝑦) / 𝑛(𝑎 ∈ (𝑚(𝑐 Nat 𝑑)𝑛), 𝑔 ∈ ((2nd𝑥)(Hom ‘𝑐)(2nd𝑦)) ↦ ((𝑎‘(2nd𝑦))(⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩(comp‘𝑑)((1st𝑛)‘(2nd𝑦)))(((2nd𝑥)(2nd𝑚)(2nd𝑦))‘𝑔))) = (1st𝑥) / 𝑚(1st𝑦) / 𝑛(𝑎 ∈ (𝑚𝑁𝑛), 𝑔 ∈ ((2nd𝑥)𝐻(2nd𝑦)) ↦ ((𝑎‘(2nd𝑦))(⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩ · ((1st𝑛)‘(2nd𝑦)))(((2nd𝑥)(2nd𝑚)(2nd𝑦))‘𝑔))))
2912, 12, 28mpoeq123dv 7328 . . . 4 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → (𝑥 ∈ ((𝑐 Func 𝑑) × (Base‘𝑐)), 𝑦 ∈ ((𝑐 Func 𝑑) × (Base‘𝑐)) ↦ (1st𝑥) / 𝑚(1st𝑦) / 𝑛(𝑎 ∈ (𝑚(𝑐 Nat 𝑑)𝑛), 𝑔 ∈ ((2nd𝑥)(Hom ‘𝑐)(2nd𝑦)) ↦ ((𝑎‘(2nd𝑦))(⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩(comp‘𝑑)((1st𝑛)‘(2nd𝑦)))(((2nd𝑥)(2nd𝑚)(2nd𝑦))‘𝑔)))) = (𝑥 ∈ ((𝐶 Func 𝐷) × 𝐵), 𝑦 ∈ ((𝐶 Func 𝐷) × 𝐵) ↦ (1st𝑥) / 𝑚(1st𝑦) / 𝑛(𝑎 ∈ (𝑚𝑁𝑛), 𝑔 ∈ ((2nd𝑥)𝐻(2nd𝑦)) ↦ ((𝑎‘(2nd𝑦))(⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩ · ((1st𝑛)‘(2nd𝑦)))(((2nd𝑥)(2nd𝑚)(2nd𝑦))‘𝑔)))))
3011, 29opeq12d 4809 . . 3 ((𝜑 ∧ (𝑐 = 𝐶𝑑 = 𝐷)) → ⟨(𝑓 ∈ (𝑐 Func 𝑑), 𝑥 ∈ (Base‘𝑐) ↦ ((1st𝑓)‘𝑥)), (𝑥 ∈ ((𝑐 Func 𝑑) × (Base‘𝑐)), 𝑦 ∈ ((𝑐 Func 𝑑) × (Base‘𝑐)) ↦ (1st𝑥) / 𝑚(1st𝑦) / 𝑛(𝑎 ∈ (𝑚(𝑐 Nat 𝑑)𝑛), 𝑔 ∈ ((2nd𝑥)(Hom ‘𝑐)(2nd𝑦)) ↦ ((𝑎‘(2nd𝑦))(⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩(comp‘𝑑)((1st𝑛)‘(2nd𝑦)))(((2nd𝑥)(2nd𝑚)(2nd𝑦))‘𝑔))))⟩ = ⟨(𝑓 ∈ (𝐶 Func 𝐷), 𝑥𝐵 ↦ ((1st𝑓)‘𝑥)), (𝑥 ∈ ((𝐶 Func 𝐷) × 𝐵), 𝑦 ∈ ((𝐶 Func 𝐷) × 𝐵) ↦ (1st𝑥) / 𝑚(1st𝑦) / 𝑛(𝑎 ∈ (𝑚𝑁𝑛), 𝑔 ∈ ((2nd𝑥)𝐻(2nd𝑦)) ↦ ((𝑎‘(2nd𝑦))(⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩ · ((1st𝑛)‘(2nd𝑦)))(((2nd𝑥)(2nd𝑚)(2nd𝑦))‘𝑔))))⟩)
31 evlfval.c . . 3 (𝜑𝐶 ∈ Cat)
32 evlfval.d . . 3 (𝜑𝐷 ∈ Cat)
33 opex 5373 . . . 4 ⟨(𝑓 ∈ (𝐶 Func 𝐷), 𝑥𝐵 ↦ ((1st𝑓)‘𝑥)), (𝑥 ∈ ((𝐶 Func 𝐷) × 𝐵), 𝑦 ∈ ((𝐶 Func 𝐷) × 𝐵) ↦ (1st𝑥) / 𝑚(1st𝑦) / 𝑛(𝑎 ∈ (𝑚𝑁𝑛), 𝑔 ∈ ((2nd𝑥)𝐻(2nd𝑦)) ↦ ((𝑎‘(2nd𝑦))(⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩ · ((1st𝑛)‘(2nd𝑦)))(((2nd𝑥)(2nd𝑚)(2nd𝑦))‘𝑔))))⟩ ∈ V
3433a1i 11 . . 3 (𝜑 → ⟨(𝑓 ∈ (𝐶 Func 𝐷), 𝑥𝐵 ↦ ((1st𝑓)‘𝑥)), (𝑥 ∈ ((𝐶 Func 𝐷) × 𝐵), 𝑦 ∈ ((𝐶 Func 𝐷) × 𝐵) ↦ (1st𝑥) / 𝑚(1st𝑦) / 𝑛(𝑎 ∈ (𝑚𝑁𝑛), 𝑔 ∈ ((2nd𝑥)𝐻(2nd𝑦)) ↦ ((𝑎‘(2nd𝑦))(⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩ · ((1st𝑛)‘(2nd𝑦)))(((2nd𝑥)(2nd𝑚)(2nd𝑦))‘𝑔))))⟩ ∈ V)
353, 30, 31, 32, 34ovmpod 7403 . 2 (𝜑 → (𝐶 evalF 𝐷) = ⟨(𝑓 ∈ (𝐶 Func 𝐷), 𝑥𝐵 ↦ ((1st𝑓)‘𝑥)), (𝑥 ∈ ((𝐶 Func 𝐷) × 𝐵), 𝑦 ∈ ((𝐶 Func 𝐷) × 𝐵) ↦ (1st𝑥) / 𝑚(1st𝑦) / 𝑛(𝑎 ∈ (𝑚𝑁𝑛), 𝑔 ∈ ((2nd𝑥)𝐻(2nd𝑦)) ↦ ((𝑎‘(2nd𝑦))(⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩ · ((1st𝑛)‘(2nd𝑦)))(((2nd𝑥)(2nd𝑚)(2nd𝑦))‘𝑔))))⟩)
361, 35eqtrid 2790 1 (𝜑𝐸 = ⟨(𝑓 ∈ (𝐶 Func 𝐷), 𝑥𝐵 ↦ ((1st𝑓)‘𝑥)), (𝑥 ∈ ((𝐶 Func 𝐷) × 𝐵), 𝑦 ∈ ((𝐶 Func 𝐷) × 𝐵) ↦ (1st𝑥) / 𝑚(1st𝑦) / 𝑛(𝑎 ∈ (𝑚𝑁𝑛), 𝑔 ∈ ((2nd𝑥)𝐻(2nd𝑦)) ↦ ((𝑎‘(2nd𝑦))(⟨((1st𝑚)‘(2nd𝑥)), ((1st𝑚)‘(2nd𝑦))⟩ · ((1st𝑛)‘(2nd𝑦)))(((2nd𝑥)(2nd𝑚)(2nd𝑦))‘𝑔))))⟩)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1539  wcel 2108  Vcvv 3422  csb 3828  cop 4564   × cxp 5578  cfv 6418  (class class class)co 7255  cmpo 7257  1st c1st 7802  2nd c2nd 7803  Basecbs 16840  Hom chom 16899  compcco 16900  Catccat 17290   Func cfunc 17485   Nat cnat 17573   evalF cevlf 17843
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-iota 6376  df-fun 6420  df-fv 6426  df-ov 7258  df-oprab 7259  df-mpo 7260  df-evlf 17847
This theorem is referenced by:  evlf2  17852  evlf1  17854  evlfcl  17856
  Copyright terms: Public domain W3C validator