Never Reset Again: A Mathematical Framework for Continual Inference in Recurrent Neural Networks