The periodic problem for the Korteweg—de vries equation