Metamath Proof Explorer


Theorem hashgval

Description: The value of the # function in terms of the mapping G from _om to NN0 . The proof avoids the use of ax-ac . (Contributed by Paul Chapman, 22-Jun-2011) (Revised by Mario Carneiro, 26-Dec-2014)

Ref Expression
Hypothesis hashgval.1 G=recxVx+10ω
Assertion hashgval AFinGcardA=A

Proof

Step Hyp Ref Expression
1 hashgval.1 G=recxVx+10ω
2 resundir recxVx+10ωcardVFin×+∞Fin=recxVx+10ωcardFinVFin×+∞Fin
3 eqid recxVx+10ω=recxVx+10ω
4 eqid recxVx+10ωcard=recxVx+10ωcard
5 3 4 hashkf recxVx+10ωcard:Fin0
6 ffn recxVx+10ωcard:Fin0recxVx+10ωcardFnFin
7 fnresdm recxVx+10ωcardFnFinrecxVx+10ωcardFin=recxVx+10ωcard
8 5 6 7 mp2b recxVx+10ωcardFin=recxVx+10ωcard
9 disjdifr VFinFin=
10 pnfex +∞V
11 10 fconst VFin×+∞:VFin+∞
12 ffn VFin×+∞:VFin+∞VFin×+∞FnVFin
13 fnresdisj VFin×+∞FnVFinVFinFin=VFin×+∞Fin=
14 11 12 13 mp2b VFinFin=VFin×+∞Fin=
15 9 14 mpbi VFin×+∞Fin=
16 8 15 uneq12i recxVx+10ωcardFinVFin×+∞Fin=recxVx+10ωcard
17 un0 recxVx+10ωcard=recxVx+10ωcard
18 16 17 eqtri recxVx+10ωcardFinVFin×+∞Fin=recxVx+10ωcard
19 2 18 eqtri recxVx+10ωcardVFin×+∞Fin=recxVx+10ωcard
20 df-hash .=recxVx+10ωcardVFin×+∞
21 20 reseq1i .Fin=recxVx+10ωcardVFin×+∞Fin
22 1 coeq1i Gcard=recxVx+10ωcard
23 19 21 22 3eqtr4i .Fin=Gcard
24 23 fveq1i .FinA=GcardA
25 cardf2 card:x|yOnyxOn
26 ffun card:x|yOnyxOnFuncard
27 25 26 ax-mp Funcard
28 finnum AFinAdomcard
29 fvco FuncardAdomcardGcardA=GcardA
30 27 28 29 sylancr AFinGcardA=GcardA
31 24 30 eqtrid AFin.FinA=GcardA
32 fvres AFin.FinA=A
33 31 32 eqtr3d AFinGcardA=A