On the Extension of the Casimir Trick, I On the Definition of Density Matrix and its Reduction