-
Notifications
You must be signed in to change notification settings - Fork 5
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
More suffices advice stuff #42
Comments
Thank you! I'll look into this today. |
I've fixed the issue with operator +. |
The problem with |
…. This causes some unnecessary verbosity, but I can't think of a better solution right now
I see you made a change that at least fixes the issue, event though it's less concise - would it be worth looking into adding additional logic to reduce, and changing inference there? For example adding this case to
(This is still more verbose than necessary, for example when using This doesn't change any of the existing error messages we test for though, except for the one you added for this foldr example. |
…on the term generated from the case pattern of induction
I just thought of yet another fix and pushed it. For the above example, the result is that |
I think this new fix causes less verbosity in other situations. |
It seems like your fix doesn't work for this scenario
|
An option that can replace what you did, and also catches this length case is setting |
Good, I was vaguely worried about this. This example shows that the "fix" needs to be applied to many more places. Basically, anywhere that we do substitution. |
I see what you're saying about substituting a |
This goes back to the issue we discussed previously about suffices not showing the
@ <>
annotation.The example below prompts:
But I need to provide
0 = foldr(@[]<Nat>, 0, operator+)
. The operator thing is new and I don't see it being an issue for what is covered in the course (and maybe something fixed with a better parser anyway). It's weird though that theTermInst
fix didn't work for this case...The text was updated successfully, but these errors were encountered: