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

Theorem diag2 17575
 Description: Value of the diagonal functor at a morphism. (Contributed by Mario Carneiro, 7-Jan-2017.)
Hypotheses
Ref Expression
diag2.l 𝐿 = (𝐶Δfunc𝐷)
diag2.a 𝐴 = (Base‘𝐶)
diag2.b 𝐵 = (Base‘𝐷)
diag2.h 𝐻 = (Hom ‘𝐶)
diag2.c (𝜑𝐶 ∈ Cat)
diag2.d (𝜑𝐷 ∈ Cat)
diag2.x (𝜑𝑋𝐴)
diag2.y (𝜑𝑌𝐴)
diag2.f (𝜑𝐹 ∈ (𝑋𝐻𝑌))
Assertion
Ref Expression
diag2 (𝜑 → ((𝑋(2nd𝐿)𝑌)‘𝐹) = (𝐵 × {𝐹}))

Proof of Theorem diag2
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 diag2.l . . . . . 6 𝐿 = (𝐶Δfunc𝐷)
2 diag2.c . . . . . 6 (𝜑𝐶 ∈ Cat)
3 diag2.d . . . . . 6 (𝜑𝐷 ∈ Cat)
41, 2, 3diagval 17570 . . . . 5 (𝜑𝐿 = (⟨𝐶, 𝐷⟩ curryF (𝐶 1stF 𝐷)))
54fveq2d 6667 . . . 4 (𝜑 → (2nd𝐿) = (2nd ‘(⟨𝐶, 𝐷⟩ curryF (𝐶 1stF 𝐷))))
65oveqd 7173 . . 3 (𝜑 → (𝑋(2nd𝐿)𝑌) = (𝑋(2nd ‘(⟨𝐶, 𝐷⟩ curryF (𝐶 1stF 𝐷)))𝑌))
76fveq1d 6665 . 2 (𝜑 → ((𝑋(2nd𝐿)𝑌)‘𝐹) = ((𝑋(2nd ‘(⟨𝐶, 𝐷⟩ curryF (𝐶 1stF 𝐷)))𝑌)‘𝐹))
8 eqid 2758 . . 3 (⟨𝐶, 𝐷⟩ curryF (𝐶 1stF 𝐷)) = (⟨𝐶, 𝐷⟩ curryF (𝐶 1stF 𝐷))
9 diag2.a . . 3 𝐴 = (Base‘𝐶)
10 eqid 2758 . . . 4 (𝐶 ×c 𝐷) = (𝐶 ×c 𝐷)
11 eqid 2758 . . . 4 (𝐶 1stF 𝐷) = (𝐶 1stF 𝐷)
1210, 2, 3, 111stfcl 17527 . . 3 (𝜑 → (𝐶 1stF 𝐷) ∈ ((𝐶 ×c 𝐷) Func 𝐶))
13 diag2.b . . 3 𝐵 = (Base‘𝐷)
14 diag2.h . . 3 𝐻 = (Hom ‘𝐶)
15 eqid 2758 . . 3 (Id‘𝐷) = (Id‘𝐷)
16 diag2.x . . 3 (𝜑𝑋𝐴)
17 diag2.y . . 3 (𝜑𝑌𝐴)
18 diag2.f . . 3 (𝜑𝐹 ∈ (𝑋𝐻𝑌))
19 eqid 2758 . . 3 ((𝑋(2nd ‘(⟨𝐶, 𝐷⟩ curryF (𝐶 1stF 𝐷)))𝑌)‘𝐹) = ((𝑋(2nd ‘(⟨𝐶, 𝐷⟩ curryF (𝐶 1stF 𝐷)))𝑌)‘𝐹)
208, 9, 2, 3, 12, 13, 14, 15, 16, 17, 18, 19curf2 17559 . 2 (𝜑 → ((𝑋(2nd ‘(⟨𝐶, 𝐷⟩ curryF (𝐶 1stF 𝐷)))𝑌)‘𝐹) = (𝑥𝐵 ↦ (𝐹(⟨𝑋, 𝑥⟩(2nd ‘(𝐶 1stF 𝐷))⟨𝑌, 𝑥⟩)((Id‘𝐷)‘𝑥))))
2110, 9, 13xpcbas 17508 . . . . . . 7 (𝐴 × 𝐵) = (Base‘(𝐶 ×c 𝐷))
22 eqid 2758 . . . . . . 7 (Hom ‘(𝐶 ×c 𝐷)) = (Hom ‘(𝐶 ×c 𝐷))
232adantr 484 . . . . . . 7 ((𝜑𝑥𝐵) → 𝐶 ∈ Cat)
243adantr 484 . . . . . . 7 ((𝜑𝑥𝐵) → 𝐷 ∈ Cat)
25 opelxpi 5565 . . . . . . . 8 ((𝑋𝐴𝑥𝐵) → ⟨𝑋, 𝑥⟩ ∈ (𝐴 × 𝐵))
2616, 25sylan 583 . . . . . . 7 ((𝜑𝑥𝐵) → ⟨𝑋, 𝑥⟩ ∈ (𝐴 × 𝐵))
27 opelxpi 5565 . . . . . . . 8 ((𝑌𝐴𝑥𝐵) → ⟨𝑌, 𝑥⟩ ∈ (𝐴 × 𝐵))
2817, 27sylan 583 . . . . . . 7 ((𝜑𝑥𝐵) → ⟨𝑌, 𝑥⟩ ∈ (𝐴 × 𝐵))
2910, 21, 22, 23, 24, 11, 26, 281stf2 17523 . . . . . 6 ((𝜑𝑥𝐵) → (⟨𝑋, 𝑥⟩(2nd ‘(𝐶 1stF 𝐷))⟨𝑌, 𝑥⟩) = (1st ↾ (⟨𝑋, 𝑥⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑌, 𝑥⟩)))
3029oveqd 7173 . . . . 5 ((𝜑𝑥𝐵) → (𝐹(⟨𝑋, 𝑥⟩(2nd ‘(𝐶 1stF 𝐷))⟨𝑌, 𝑥⟩)((Id‘𝐷)‘𝑥)) = (𝐹(1st ↾ (⟨𝑋, 𝑥⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑌, 𝑥⟩))((Id‘𝐷)‘𝑥)))
31 df-ov 7159 . . . . . 6 (𝐹(1st ↾ (⟨𝑋, 𝑥⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑌, 𝑥⟩))((Id‘𝐷)‘𝑥)) = ((1st ↾ (⟨𝑋, 𝑥⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑌, 𝑥⟩))‘⟨𝐹, ((Id‘𝐷)‘𝑥)⟩)
3218adantr 484 . . . . . . . . 9 ((𝜑𝑥𝐵) → 𝐹 ∈ (𝑋𝐻𝑌))
33 eqid 2758 . . . . . . . . . 10 (Hom ‘𝐷) = (Hom ‘𝐷)
34 simpr 488 . . . . . . . . . 10 ((𝜑𝑥𝐵) → 𝑥𝐵)
3513, 33, 15, 24, 34catidcl 17025 . . . . . . . . 9 ((𝜑𝑥𝐵) → ((Id‘𝐷)‘𝑥) ∈ (𝑥(Hom ‘𝐷)𝑥))
3632, 35opelxpd 5566 . . . . . . . 8 ((𝜑𝑥𝐵) → ⟨𝐹, ((Id‘𝐷)‘𝑥)⟩ ∈ ((𝑋𝐻𝑌) × (𝑥(Hom ‘𝐷)𝑥)))
3716adantr 484 . . . . . . . . 9 ((𝜑𝑥𝐵) → 𝑋𝐴)
3817adantr 484 . . . . . . . . 9 ((𝜑𝑥𝐵) → 𝑌𝐴)
3910, 9, 13, 14, 33, 37, 34, 38, 34, 22xpchom2 17516 . . . . . . . 8 ((𝜑𝑥𝐵) → (⟨𝑋, 𝑥⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑌, 𝑥⟩) = ((𝑋𝐻𝑌) × (𝑥(Hom ‘𝐷)𝑥)))
4036, 39eleqtrrd 2855 . . . . . . 7 ((𝜑𝑥𝐵) → ⟨𝐹, ((Id‘𝐷)‘𝑥)⟩ ∈ (⟨𝑋, 𝑥⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑌, 𝑥⟩))
4140fvresd 6683 . . . . . 6 ((𝜑𝑥𝐵) → ((1st ↾ (⟨𝑋, 𝑥⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑌, 𝑥⟩))‘⟨𝐹, ((Id‘𝐷)‘𝑥)⟩) = (1st ‘⟨𝐹, ((Id‘𝐷)‘𝑥)⟩))
4231, 41syl5eq 2805 . . . . 5 ((𝜑𝑥𝐵) → (𝐹(1st ↾ (⟨𝑋, 𝑥⟩(Hom ‘(𝐶 ×c 𝐷))⟨𝑌, 𝑥⟩))((Id‘𝐷)‘𝑥)) = (1st ‘⟨𝐹, ((Id‘𝐷)‘𝑥)⟩))
43 op1stg 7711 . . . . . 6 ((𝐹 ∈ (𝑋𝐻𝑌) ∧ ((Id‘𝐷)‘𝑥) ∈ (𝑥(Hom ‘𝐷)𝑥)) → (1st ‘⟨𝐹, ((Id‘𝐷)‘𝑥)⟩) = 𝐹)
4418, 35, 43syl2an2r 684 . . . . 5 ((𝜑𝑥𝐵) → (1st ‘⟨𝐹, ((Id‘𝐷)‘𝑥)⟩) = 𝐹)
4530, 42, 443eqtrd 2797 . . . 4 ((𝜑𝑥𝐵) → (𝐹(⟨𝑋, 𝑥⟩(2nd ‘(𝐶 1stF 𝐷))⟨𝑌, 𝑥⟩)((Id‘𝐷)‘𝑥)) = 𝐹)
4645mpteq2dva 5131 . . 3 (𝜑 → (𝑥𝐵 ↦ (𝐹(⟨𝑋, 𝑥⟩(2nd ‘(𝐶 1stF 𝐷))⟨𝑌, 𝑥⟩)((Id‘𝐷)‘𝑥))) = (𝑥𝐵𝐹))
47 fconstmpt 5588 . . 3 (𝐵 × {𝐹}) = (𝑥𝐵𝐹)
4846, 47eqtr4di 2811 . 2 (𝜑 → (𝑥𝐵 ↦ (𝐹(⟨𝑋, 𝑥⟩(2nd ‘(𝐶 1stF 𝐷))⟨𝑌, 𝑥⟩)((Id‘𝐷)‘𝑥))) = (𝐵 × {𝐹}))
497, 20, 483eqtrd 2797 1 (𝜑 → ((𝑋(2nd𝐿)𝑌)‘𝐹) = (𝐵 × {𝐹}))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ∧ wa 399   = wceq 1538   ∈ wcel 2111  {csn 4525  ⟨cop 4531   ↦ cmpt 5116   × cxp 5526   ↾ cres 5530  ‘cfv 6340  (class class class)co 7156  1st c1st 7697  2nd c2nd 7698  Basecbs 16555  Hom chom 16648  Catccat 17007  Idccid 17008   ×c cxpc 17498   1stF c1stf 17499   curryF ccurf 17540  Δfunccdiag 17542 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2729  ax-rep 5160  ax-sep 5173  ax-nul 5180  ax-pow 5238  ax-pr 5302  ax-un 7465  ax-cnex 10644  ax-resscn 10645  ax-1cn 10646  ax-icn 10647  ax-addcl 10648  ax-addrcl 10649  ax-mulcl 10650  ax-mulrcl 10651  ax-mulcom 10652  ax-addass 10653  ax-mulass 10654  ax-distr 10655  ax-i2m1 10656  ax-1ne0 10657  ax-1rid 10658  ax-rnegex 10659  ax-rrecex 10660  ax-cnre 10661  ax-pre-lttri 10662  ax-pre-lttrn 10663  ax-pre-ltadd 10664  ax-pre-mulgt0 10665 This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-fal 1551  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2557  df-eu 2588  df-clab 2736  df-cleq 2750  df-clel 2830  df-nfc 2901  df-ne 2952  df-nel 3056  df-ral 3075  df-rex 3076  df-reu 3077  df-rmo 3078  df-rab 3079  df-v 3411  df-sbc 3699  df-csb 3808  df-dif 3863  df-un 3865  df-in 3867  df-ss 3877  df-pss 3879  df-nul 4228  df-if 4424  df-pw 4499  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4802  df-iun 4888  df-br 5037  df-opab 5099  df-mpt 5117  df-tr 5143  df-id 5434  df-eprel 5439  df-po 5447  df-so 5448  df-fr 5487  df-we 5489  df-xp 5534  df-rel 5535  df-cnv 5536  df-co 5537  df-dm 5538  df-rn 5539  df-res 5540  df-ima 5541  df-pred 6131  df-ord 6177  df-on 6178  df-lim 6179  df-suc 6180  df-iota 6299  df-fun 6342  df-fn 6343  df-f 6344  df-f1 6345  df-fo 6346  df-f1o 6347  df-fv 6348  df-riota 7114  df-ov 7159  df-oprab 7160  df-mpo 7161  df-om 7586  df-1st 7699  df-2nd 7700  df-wrecs 7963  df-recs 8024  df-rdg 8062  df-1o 8118  df-er 8305  df-map 8424  df-ixp 8493  df-en 8541  df-dom 8542  df-sdom 8543  df-fin 8544  df-pnf 10728  df-mnf 10729  df-xr 10730  df-ltxr 10731  df-le 10732  df-sub 10923  df-neg 10924  df-nn 11688  df-2 11750  df-3 11751  df-4 11752  df-5 11753  df-6 11754  df-7 11755  df-8 11756  df-9 11757  df-n0 11948  df-z 12034  df-dec 12151  df-uz 12296  df-fz 12953  df-struct 16557  df-ndx 16558  df-slot 16559  df-base 16561  df-hom 16661  df-cco 16662  df-cat 17011  df-cid 17012  df-func 17201  df-xpc 17502  df-1stf 17503  df-curf 17544  df-diag 17546 This theorem is referenced by:  diag2cl  17576
 Copyright terms: Public domain W3C validator