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

Theorem idfuval 17507
Description: Value of the identity functor. (Contributed by Mario Carneiro, 3-Jan-2017.)
Hypotheses
Ref Expression
idfuval.i 𝐼 = (idfunc𝐶)
idfuval.b 𝐵 = (Base‘𝐶)
idfuval.c (𝜑𝐶 ∈ Cat)
idfuval.h 𝐻 = (Hom ‘𝐶)
Assertion
Ref Expression
idfuval (𝜑𝐼 = ⟨( I ↾ 𝐵), (𝑧 ∈ (𝐵 × 𝐵) ↦ ( I ↾ (𝐻𝑧)))⟩)
Distinct variable groups:   𝑧,𝐵   𝑧,𝐶   𝑧,𝐻   𝜑,𝑧
Allowed substitution hint:   𝐼(𝑧)

Proof of Theorem idfuval
Dummy variables 𝑏 𝑐 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 idfuval.i . 2 𝐼 = (idfunc𝐶)
2 idfuval.c . . 3 (𝜑𝐶 ∈ Cat)
3 fvexd 6771 . . . . 5 (𝑐 = 𝐶 → (Base‘𝑐) ∈ V)
4 fveq2 6756 . . . . . 6 (𝑐 = 𝐶 → (Base‘𝑐) = (Base‘𝐶))
5 idfuval.b . . . . . 6 𝐵 = (Base‘𝐶)
64, 5eqtr4di 2797 . . . . 5 (𝑐 = 𝐶 → (Base‘𝑐) = 𝐵)
7 simpr 484 . . . . . . 7 ((𝑐 = 𝐶𝑏 = 𝐵) → 𝑏 = 𝐵)
87reseq2d 5880 . . . . . 6 ((𝑐 = 𝐶𝑏 = 𝐵) → ( I ↾ 𝑏) = ( I ↾ 𝐵))
97sqxpeqd 5612 . . . . . . 7 ((𝑐 = 𝐶𝑏 = 𝐵) → (𝑏 × 𝑏) = (𝐵 × 𝐵))
10 simpl 482 . . . . . . . . . . 11 ((𝑐 = 𝐶𝑏 = 𝐵) → 𝑐 = 𝐶)
1110fveq2d 6760 . . . . . . . . . 10 ((𝑐 = 𝐶𝑏 = 𝐵) → (Hom ‘𝑐) = (Hom ‘𝐶))
12 idfuval.h . . . . . . . . . 10 𝐻 = (Hom ‘𝐶)
1311, 12eqtr4di 2797 . . . . . . . . 9 ((𝑐 = 𝐶𝑏 = 𝐵) → (Hom ‘𝑐) = 𝐻)
1413fveq1d 6758 . . . . . . . 8 ((𝑐 = 𝐶𝑏 = 𝐵) → ((Hom ‘𝑐)‘𝑧) = (𝐻𝑧))
1514reseq2d 5880 . . . . . . 7 ((𝑐 = 𝐶𝑏 = 𝐵) → ( I ↾ ((Hom ‘𝑐)‘𝑧)) = ( I ↾ (𝐻𝑧)))
169, 15mpteq12dv 5161 . . . . . 6 ((𝑐 = 𝐶𝑏 = 𝐵) → (𝑧 ∈ (𝑏 × 𝑏) ↦ ( I ↾ ((Hom ‘𝑐)‘𝑧))) = (𝑧 ∈ (𝐵 × 𝐵) ↦ ( I ↾ (𝐻𝑧))))
178, 16opeq12d 4809 . . . . 5 ((𝑐 = 𝐶𝑏 = 𝐵) → ⟨( I ↾ 𝑏), (𝑧 ∈ (𝑏 × 𝑏) ↦ ( I ↾ ((Hom ‘𝑐)‘𝑧)))⟩ = ⟨( I ↾ 𝐵), (𝑧 ∈ (𝐵 × 𝐵) ↦ ( I ↾ (𝐻𝑧)))⟩)
183, 6, 17csbied2 3868 . . . 4 (𝑐 = 𝐶(Base‘𝑐) / 𝑏⟨( I ↾ 𝑏), (𝑧 ∈ (𝑏 × 𝑏) ↦ ( I ↾ ((Hom ‘𝑐)‘𝑧)))⟩ = ⟨( I ↾ 𝐵), (𝑧 ∈ (𝐵 × 𝐵) ↦ ( I ↾ (𝐻𝑧)))⟩)
19 df-idfu 17490 . . . 4 idfunc = (𝑐 ∈ Cat ↦ (Base‘𝑐) / 𝑏⟨( I ↾ 𝑏), (𝑧 ∈ (𝑏 × 𝑏) ↦ ( I ↾ ((Hom ‘𝑐)‘𝑧)))⟩)
20 opex 5373 . . . 4 ⟨( I ↾ 𝐵), (𝑧 ∈ (𝐵 × 𝐵) ↦ ( I ↾ (𝐻𝑧)))⟩ ∈ V
2118, 19, 20fvmpt 6857 . . 3 (𝐶 ∈ Cat → (idfunc𝐶) = ⟨( I ↾ 𝐵), (𝑧 ∈ (𝐵 × 𝐵) ↦ ( I ↾ (𝐻𝑧)))⟩)
222, 21syl 17 . 2 (𝜑 → (idfunc𝐶) = ⟨( I ↾ 𝐵), (𝑧 ∈ (𝐵 × 𝐵) ↦ ( I ↾ (𝐻𝑧)))⟩)
231, 22eqtrid 2790 1 (𝜑𝐼 = ⟨( I ↾ 𝐵), (𝑧 ∈ (𝐵 × 𝐵) ↦ ( I ↾ (𝐻𝑧)))⟩)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1539  wcel 2108  Vcvv 3422  csb 3828  cop 4564  cmpt 5153   I cid 5479   × cxp 5578  cres 5582  cfv 6418  Basecbs 16840  Hom chom 16899  Catccat 17290  idfunccidfu 17486
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-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-res 5592  df-iota 6376  df-fun 6420  df-fv 6426  df-idfu 17490
This theorem is referenced by:  idfu2nd  17508  idfu1st  17510  idfucl  17512  catcisolem  17741  curf2ndf  17881  idfusubc0  45311
  Copyright terms: Public domain W3C validator