Theory of the quantized Hall effect (I)