New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Equations handles certain overlapping patterns incorrectly. #78
Comments
I have not fully tested it yet, but so far the following version appears to be compiling without errors, so could be a possible workaround:
|
Indeed, for this to work you have to capture the "intermediate" tl value somehow, otherwise it gets expanded to a cons and the recursive call cannot be seen to be guarded anymore. There's not much else one can do I think. |
Wouldn't it be possible for Equations to know not to expand the tl in the first place? Is there a reason why it absolutely needs to get expanded? |
Yes it needs too. Otherwise |
Ah, OK, makes sense. So I guess the only automated solution would effectively be to automate my "workaround" transformation, but just using the manual workaround is probably good enough as well (at least, good enough for me, unless this causes some unexpected difficulties in using the definitions that I am not yet aware of - for now, I am still trying to get the definitions themselves to compile, and have not yet tried actually using them in any theorems/proofs). |
I don't think there is much better we can do for now, hence closing. |
The following example:
results in the following error:
The text was updated successfully, but these errors were encountered: