Theory of thermal conductivity of the lattice for high-Tc superconductors