A formal proof system for infinitary rational expressions