Notes on the valuative criterion for K-stability