Skip to content

== and div on a recursive type #502

Answered by TimWhiting
mccraigmccraig asked this question in Q&A
Discussion options

You must be logged in to vote

By the way your datastructure isn't actually rec, you can just use a plain type here.

But yes, it is known that mutual indirect recursion breaks pretend-decreasing.

Note that I think direct mutual-recursion doesn't break with pretend-decreasing (if they are both named top level functions that refer to each other directly, and not via higher order functions).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@TimWhiting
Comment options

@TimWhiting
Comment options

Answer selected by mccraigmccraig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants