Open saucisson opened 7 years ago
I don't know about the use of delayed
. I should investigate more about it to give you an answer.
Regarding replace
, the problem is that LogicKit has no idea about the structure of your term. Hence it can't automatically apply the substitutions. It would work out-of-the box if you had use the built-in list type rather than a custom Nat
enum type.
If that kind of pattern becomes the norm, I could setup a protocol that instructs LogicKit how to unfold the recursion.
Didier was trying to get all even naturals. It is possible with the following code, but we had problems.
delayed
is required. Could it be automatic?enum
cases. We had to write our ownreplace
function to correctly print the results. Is there a generic solution?