Mathematical foundations of simple recurrent networks in language processing