paper

Representing Nonterminating Rewriting with

arXiv:1706.00746

Abstract

We specify a second-order type system that is tailored for representing nonterminations. The nonterminating trace of a term in a rewrite system corresponds to a productive inhabitant such that in , where is the environment representing the rewrite system. We prove that the productivity checking in is decidable via a mapping to the -Y calculus. We develop a type checking algorithm for based on second-order matching. We implement the type checking algorithm in a proof-of-concept type checker.