-
Notifications
You must be signed in to change notification settings - Fork 297
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
set
tactic gives wrong type to variable
#3111
Comments
Why would you expect Lean to infer |
Because we explicitly give the type |
Ah, I completely missed that part. This is definitely a bug in But I wonder if the matrix notation should have |
That's true! (if you write I think the notation should stay the same, since the type |
…nity#3126) closes leanprover-community#3111 Co-authored-by: Rob Lewis <rob.y.lewis@gmail.com>
Noticed in this Zulip thread. The following code attempts to define 6 matrices:
I'd expect that all the variables above would have type
matrix (fin 2) (fin 2) ℕ
, or at least thatX2
,Y2
andZ2
would. Instead,Y2
has typefin 1.succ → fin 2 → ℕ
. This is not just confusing to the user, but also resulted in the wronghas_mul.mul
instance being inferred.The text was updated successfully, but these errors were encountered: