Skip to content
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

Level completed with warnings? #276

Open
Timmmm opened this issue Dec 27, 2024 · 0 comments
Open

Level completed with warnings? #276

Timmmm opened this issue Dec 27, 2024 · 0 comments

Comments

@Timmmm
Copy link

Timmmm commented Dec 27, 2024

On this level I somehow managed to complete it, but it says "Level completed with warnings".

image

cases hxy with a ha
cases hyx with b hb
rw [ha] at hb
rw [← add_zero x] at hb
rw [add_comm] at hb
rw [add_comm (x 0)] at hb

Took me a few seconds but I found the underlined warning which says:

image

As far as I understand it that shouldn't really be an issue (I guess there's some reason for using sorry in that declaration), although it's weird that cases never gave me that warning before.

But also, I don't really understand how I can have solved the level... I was aiming for

0 + x = 0 + x + a + b
rw [add_comm, ...]
0 + x = a + b + 0 + x
apply add_right_cancel
0 = a + b + 0
rw [add_zero]
0 = a + b
(then I'm not sure but I guess it's possible to prove a = b = 0 from here)

But I didn't actually do any of that - Lean never did that many steps for me automatically before..

The thing that is definitely a bug though, is that it says Level complete but Next is still greyed out.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant