-
Notifications
You must be signed in to change notification settings - Fork 406
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
invalid projection
from Meta.reduce
#2975
Comments
The failure occurs at |
I just ran into something similar. It’s not quite the same, but while debugging I think we can fix this issue by setting the transparency to
In the example above, it is the call
that one should wrap in However, that didn't quite work, due to #5562. The fix for that, in #5563, can also be considered a fix for this issue, and includes it as a test case. |
Prerequisites
Description
The following code snippet (thanks @kmill) unexpectedly produces the error
invalid projection s.1
:Context
This issue has been discussed on Zulip. The problem originally arose in the following code snippet:
The intent was to get the type of
SimplicialObject.Splitting.πSummand_comp_ιSummand_comp_PInfty_eq_PInfty
, extract its underlying equality, and reduce the type of each side of the equality. This produces an error that is hard to understand as it references a termg
whose origin isn't immediately clear.Steps to Reproduce
Run the code snippet shown in the description using Lean version
4.3.0-rc2
.Expected behavior: The command
#reduce' s.x
prints the typeNat
.Actual behavior: The command
#reduce' s.x
fails with the errorinvalid projection s.1
.Versions
Impact
Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.
The text was updated successfully, but these errors were encountered: