-
Notifications
You must be signed in to change notification settings - Fork 460
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
Improve calc
user experience
#1342
Comments
cc: @hrmacbeth |
|
Do you have a #mwe for this one? We already had an elaborate for |
The commit above does not fix this one. |
I haven't managed to replicate the elaboration order bug (cc: @hrmacbeth?), and I think this was a lean 3 behavior in the first place so it probably wasn't inherited, but I did notice some issues with errors not being reported in independent calc lines which are regressions relative to the lean 3 behavior: -- lean 3
example (a b : nat) : 1 ≤ 2 :=
calc
1 ≤ a + b : by refl -- error
... ≤ b : by refl -- error
... ≤ 2 : by refl -- error -- lean 4
example (a b : Nat) : 1 ≤ 2 :=
calc
1 ≤ a + b := by rfl -- error
_ ≤ b := by rfl -- error not reported
_ ≤ 2 := by rfl -- error not reported |
It must catch exceptions. See #1342
@digama0 The commit above should address this issue. |
This is a placeholder for a few issues reported by @digama0 and Heather MacBeth.
TODO: list all issues here.
The text was updated successfully, but these errors were encountered: