Time Dependent Hartree-Fock Polarizability and Random Phase Approximation Sum Rules. I. Theory