The convergence of the Rayleigh-Ritz Method in quantum chemistry: I. the criteria of convergence