Formalized sequences