On rigorous mathematical definitions of correlation dimension and generalized spectrum for dimensions