MAYBE Consider the applicative ATRS: fold ?f nil ?x -> ?x fold ?f (cons ?h ?t) ?x -> fold ?f ?t (?f ?x ?h) sum ?l -> fold add ?l |0| fold mul ?l |1| -> prod ?l Failed to analyze termination.