Resolution lies at the foundation of both logic programming and type class context reduction in functional languages. Terminating derivations by resolution have well-defined inductive meaning, whereas some non-terminating derivations can be understood coinductively. Cycle detection is a popular method to capture a small subset of such derivations. We show that in fact cycle detection is a restricted form of coinductive proof, in which the atomic formula forming the cycle plays the role of coinductive hypothesis. This paper introduces a heuristic method for obtaining richer coinductive hypotheses in the form of Horn formulas. Our approach subsumes cycle detection and gives coinductive meaning to a larger class of derivations. For this purpose we extend resolution with Horn formula resolvents and corecursive evidence generation. We illustrate our method on non-terminating type class resolution problems.
@inproceedings{flops2016,
title = {Proof Relevant Corecursive Resolution},
author = {Peng Fu and Ekaterina Komendantskaya and Tom Schrijvers and Andrew Pond},
editor = {Oleg Kiselyov and Andy King},
year = {2016},
series = {FLOPS 2016},
booktitle = {Functional and Logic Programming: 13th International Symposium, Proceedings},
pages = {126--143},
publisher = {Springer International Publishing},
doi = {10.1007/978-3-319-29604-3_9},
url = {/Research/papers/flops2016.pdf},
abstract = {Resolution lies at the foundation of both logic programming and type class
context reduction in functional languages.
Terminating derivations by resolution have well-defined inductive meaning,
whereas some non-terminating derivations can be understood coinductively.
Cycle detection is a popular method to capture a small subset of such
derivations. We show that in fact cycle detection is a restricted form of
coinductive proof, in which the atomic formula forming the cycle plays the
role of coinductive hypothesis.
This paper introduces a heuristic method for obtaining richer coinductive
hypotheses in the form of Horn formulas. Our approach subsumes cycle detection
and gives coinductive meaning to a larger class of derivations. For this
purpose we extend resolution with Horn formula resolvents and corecursive
evidence generation. We illustrate our method on non-terminating type class
resolution problems.
},
}