Metamath Proof Explorer


Theorem setcval

Description: Value of the category of sets (in a universe). (Contributed by Mario Carneiro, 3-Jan-2017)

Ref Expression
Hypotheses setcval.c C=SetCatU
setcval.u φUV
setcval.h φH=xU,yUyx
setcval.o φ·˙=vU×U,zUgz2ndv,f2ndv1stvgf
Assertion setcval φC=BasendxUHomndxHcompndx·˙

Proof

Step Hyp Ref Expression
1 setcval.c C=SetCatU
2 setcval.u φUV
3 setcval.h φH=xU,yUyx
4 setcval.o φ·˙=vU×U,zUgz2ndv,f2ndv1stvgf
5 df-setc SetCat=uVBasendxuHomndxxu,yuyxcompndxvu×u,zugz2ndv,f2ndv1stvgf
6 simpr φu=Uu=U
7 6 opeq2d φu=UBasendxu=BasendxU
8 eqidd φu=Uyx=yx
9 6 6 8 mpoeq123dv φu=Uxu,yuyx=xU,yUyx
10 3 adantr φu=UH=xU,yUyx
11 9 10 eqtr4d φu=Uxu,yuyx=H
12 11 opeq2d φu=UHomndxxu,yuyx=HomndxH
13 6 sqxpeqd φu=Uu×u=U×U
14 eqidd φu=Ugz2ndv,f2ndv1stvgf=gz2ndv,f2ndv1stvgf
15 13 6 14 mpoeq123dv φu=Uvu×u,zugz2ndv,f2ndv1stvgf=vU×U,zUgz2ndv,f2ndv1stvgf
16 4 adantr φu=U·˙=vU×U,zUgz2ndv,f2ndv1stvgf
17 15 16 eqtr4d φu=Uvu×u,zugz2ndv,f2ndv1stvgf=·˙
18 17 opeq2d φu=Ucompndxvu×u,zugz2ndv,f2ndv1stvgf=compndx·˙
19 7 12 18 tpeq123d φu=UBasendxuHomndxxu,yuyxcompndxvu×u,zugz2ndv,f2ndv1stvgf=BasendxUHomndxHcompndx·˙
20 2 elexd φUV
21 tpex BasendxUHomndxHcompndx·˙V
22 21 a1i φBasendxUHomndxHcompndx·˙V
23 5 19 20 22 fvmptd2 φSetCatU=BasendxUHomndxHcompndx·˙
24 1 23 eqtrid φC=BasendxUHomndxHcompndx·˙