Quantum Statistical Mechanics of Electron-Phonon System