Theory for the ground state of quantum crystals