Users' Mathboxes Mathbox for BJ < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  bj-endval Structured version   Visualization version   GIF version

Theorem bj-endval 35225
Description: Value of the monoid of endomorphisms on an object of a category. (Contributed by BJ, 5-Apr-2024.)
Hypotheses
Ref Expression
bj-endval.c (𝜑𝐶 ∈ Cat)
bj-endval.x (𝜑𝑋 ∈ (Base‘𝐶))
Assertion
Ref Expression
bj-endval (𝜑 → ((End ‘𝐶)‘𝑋) = {⟨(Base‘ndx), (𝑋(Hom ‘𝐶)𝑋)⟩, ⟨(+g‘ndx), (⟨𝑋, 𝑋⟩(comp‘𝐶)𝑋)⟩})

Proof of Theorem bj-endval
Dummy variables 𝑐 𝑥 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-bj-end 35224 . . 3 End = (𝑐 ∈ Cat ↦ (𝑥 ∈ (Base‘𝑐) ↦ {⟨(Base‘ndx), (𝑥(Hom ‘𝑐)𝑥)⟩, ⟨(+g‘ndx), (⟨𝑥, 𝑥⟩(comp‘𝑐)𝑥)⟩}))
2 fveq2 6722 . . . 4 (𝑐 = 𝐶 → (Base‘𝑐) = (Base‘𝐶))
3 fveq2 6722 . . . . . . 7 (𝑐 = 𝐶 → (Hom ‘𝑐) = (Hom ‘𝐶))
43oveqd 7235 . . . . . 6 (𝑐 = 𝐶 → (𝑥(Hom ‘𝑐)𝑥) = (𝑥(Hom ‘𝐶)𝑥))
54opeq2d 4796 . . . . 5 (𝑐 = 𝐶 → ⟨(Base‘ndx), (𝑥(Hom ‘𝑐)𝑥)⟩ = ⟨(Base‘ndx), (𝑥(Hom ‘𝐶)𝑥)⟩)
6 fveq2 6722 . . . . . . 7 (𝑐 = 𝐶 → (comp‘𝑐) = (comp‘𝐶))
76oveqd 7235 . . . . . 6 (𝑐 = 𝐶 → (⟨𝑥, 𝑥⟩(comp‘𝑐)𝑥) = (⟨𝑥, 𝑥⟩(comp‘𝐶)𝑥))
87opeq2d 4796 . . . . 5 (𝑐 = 𝐶 → ⟨(+g‘ndx), (⟨𝑥, 𝑥⟩(comp‘𝑐)𝑥)⟩ = ⟨(+g‘ndx), (⟨𝑥, 𝑥⟩(comp‘𝐶)𝑥)⟩)
95, 8preq12d 4662 . . . 4 (𝑐 = 𝐶 → {⟨(Base‘ndx), (𝑥(Hom ‘𝑐)𝑥)⟩, ⟨(+g‘ndx), (⟨𝑥, 𝑥⟩(comp‘𝑐)𝑥)⟩} = {⟨(Base‘ndx), (𝑥(Hom ‘𝐶)𝑥)⟩, ⟨(+g‘ndx), (⟨𝑥, 𝑥⟩(comp‘𝐶)𝑥)⟩})
102, 9mpteq12dv 5145 . . 3 (𝑐 = 𝐶 → (𝑥 ∈ (Base‘𝑐) ↦ {⟨(Base‘ndx), (𝑥(Hom ‘𝑐)𝑥)⟩, ⟨(+g‘ndx), (⟨𝑥, 𝑥⟩(comp‘𝑐)𝑥)⟩}) = (𝑥 ∈ (Base‘𝐶) ↦ {⟨(Base‘ndx), (𝑥(Hom ‘𝐶)𝑥)⟩, ⟨(+g‘ndx), (⟨𝑥, 𝑥⟩(comp‘𝐶)𝑥)⟩}))
11 bj-endval.c . . 3 (𝜑𝐶 ∈ Cat)
12 fvex 6735 . . . . 5 (Base‘𝐶) ∈ V
1312mptex 7044 . . . 4 (𝑥 ∈ (Base‘𝐶) ↦ {⟨(Base‘ndx), (𝑥(Hom ‘𝐶)𝑥)⟩, ⟨(+g‘ndx), (⟨𝑥, 𝑥⟩(comp‘𝐶)𝑥)⟩}) ∈ V
1413a1i 11 . . 3 (𝜑 → (𝑥 ∈ (Base‘𝐶) ↦ {⟨(Base‘ndx), (𝑥(Hom ‘𝐶)𝑥)⟩, ⟨(+g‘ndx), (⟨𝑥, 𝑥⟩(comp‘𝐶)𝑥)⟩}) ∈ V)
151, 10, 11, 14fvmptd3 6846 . 2 (𝜑 → (End ‘𝐶) = (𝑥 ∈ (Base‘𝐶) ↦ {⟨(Base‘ndx), (𝑥(Hom ‘𝐶)𝑥)⟩, ⟨(+g‘ndx), (⟨𝑥, 𝑥⟩(comp‘𝐶)𝑥)⟩}))
16 id 22 . . . . . 6 (𝑥 = 𝑋𝑥 = 𝑋)
1716, 16oveq12d 7236 . . . . 5 (𝑥 = 𝑋 → (𝑥(Hom ‘𝐶)𝑥) = (𝑋(Hom ‘𝐶)𝑋))
1817opeq2d 4796 . . . 4 (𝑥 = 𝑋 → ⟨(Base‘ndx), (𝑥(Hom ‘𝐶)𝑥)⟩ = ⟨(Base‘ndx), (𝑋(Hom ‘𝐶)𝑋)⟩)
1916, 16opeq12d 4797 . . . . . 6 (𝑥 = 𝑋 → ⟨𝑥, 𝑥⟩ = ⟨𝑋, 𝑋⟩)
2019, 16oveq12d 7236 . . . . 5 (𝑥 = 𝑋 → (⟨𝑥, 𝑥⟩(comp‘𝐶)𝑥) = (⟨𝑋, 𝑋⟩(comp‘𝐶)𝑋))
2120opeq2d 4796 . . . 4 (𝑥 = 𝑋 → ⟨(+g‘ndx), (⟨𝑥, 𝑥⟩(comp‘𝐶)𝑥)⟩ = ⟨(+g‘ndx), (⟨𝑋, 𝑋⟩(comp‘𝐶)𝑋)⟩)
2218, 21preq12d 4662 . . 3 (𝑥 = 𝑋 → {⟨(Base‘ndx), (𝑥(Hom ‘𝐶)𝑥)⟩, ⟨(+g‘ndx), (⟨𝑥, 𝑥⟩(comp‘𝐶)𝑥)⟩} = {⟨(Base‘ndx), (𝑋(Hom ‘𝐶)𝑋)⟩, ⟨(+g‘ndx), (⟨𝑋, 𝑋⟩(comp‘𝐶)𝑋)⟩})
2322adantl 485 . 2 ((𝜑𝑥 = 𝑋) → {⟨(Base‘ndx), (𝑥(Hom ‘𝐶)𝑥)⟩, ⟨(+g‘ndx), (⟨𝑥, 𝑥⟩(comp‘𝐶)𝑥)⟩} = {⟨(Base‘ndx), (𝑋(Hom ‘𝐶)𝑋)⟩, ⟨(+g‘ndx), (⟨𝑋, 𝑋⟩(comp‘𝐶)𝑋)⟩})
24 bj-endval.x . 2 (𝜑𝑋 ∈ (Base‘𝐶))
25 prex 5330 . . 3 {⟨(Base‘ndx), (𝑋(Hom ‘𝐶)𝑋)⟩, ⟨(+g‘ndx), (⟨𝑋, 𝑋⟩(comp‘𝐶)𝑋)⟩} ∈ V
2625a1i 11 . 2 (𝜑 → {⟨(Base‘ndx), (𝑋(Hom ‘𝐶)𝑋)⟩, ⟨(+g‘ndx), (⟨𝑋, 𝑋⟩(comp‘𝐶)𝑋)⟩} ∈ V)
2715, 23, 24, 26fvmptd 6830 1 (𝜑 → ((End ‘𝐶)‘𝑋) = {⟨(Base‘ndx), (𝑋(Hom ‘𝐶)𝑋)⟩, ⟨(+g‘ndx), (⟨𝑋, 𝑋⟩(comp‘𝐶)𝑋)⟩})
Colors of variables: wff setvar class
Syntax hints:  wi 4   = wceq 1543  wcel 2110  Vcvv 3413  {cpr 4548  cop 4552  cmpt 5140  cfv 6385  (class class class)co 7218  ndxcnx 16749  Basecbs 16765  +gcplusg 16807  Hom chom 16818  compcco 16819  Catccat 17172  End cend 35223
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2708  ax-rep 5184  ax-sep 5197  ax-nul 5204  ax-pr 5327
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2071  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2729  df-clel 2816  df-nfc 2886  df-ne 2941  df-ral 3066  df-rex 3067  df-reu 3068  df-rab 3070  df-v 3415  df-sbc 3700  df-csb 3817  df-dif 3874  df-un 3876  df-in 3878  df-ss 3888  df-nul 4243  df-if 4445  df-sn 4547  df-pr 4549  df-op 4553  df-uni 4825  df-iun 4911  df-br 5059  df-opab 5121  df-mpt 5141  df-id 5460  df-xp 5562  df-rel 5563  df-cnv 5564  df-co 5565  df-dm 5566  df-rn 5567  df-res 5568  df-ima 5569  df-iota 6343  df-fun 6387  df-fn 6388  df-f 6389  df-f1 6390  df-fo 6391  df-f1o 6392  df-fv 6393  df-ov 7221  df-bj-end 35224
This theorem is referenced by:  bj-endbase  35226  bj-endcomp  35227
  Copyright terms: Public domain W3C validator