Discovering conditional properties of recursive functions in a proof assistant