MAYBE Consider the applicative ATRS: max |0| ?x -> ?x max ?x |0| -> ?x max (s ?x) (s ?y) -> max ?x ?y min |0| ?x -> |0| min ?x |0| -> |0| min (s ?x) (s ?y) -> min ?x ?y insert ?f ?g nil ?x -> cons ?x nil insert ?f ?g (cons ?h ?t) ?x -> cons (?f ?x ?h) (insert ?f ?g ?t (?g ?x ?h)) |sort| ?f ?g nil -> nil |sort| ?f ?g (cons ?h ?t) -> insert ?f ?g (|sort| ?f ?g ?t) ?h ascending_sort ?l -> |sort| min max ?l descending_sort ?l -> |sort| max min ?l Failed to analyze termination.