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

Extra help for 0 * m = m #275

Open
Timmmm opened this issue Dec 26, 2024 · 1 comment
Open

Extra help for 0 * m = m #275

Timmmm opened this issue Dec 26, 2024 · 1 comment

Comments

@Timmmm
Copy link

Timmmm commented Dec 26, 2024

I got a bit stuck on this level. Probably missing something obvious but you might want to add a "show more help" for it. It doesn't seem like there is any way to get the solution if you are stuck at all?

@Timmmm
Copy link
Author

Timmmm commented Dec 26, 2024

Ah I figured it out. There were a couple of minor footguns in the way:

  1. I thought "maybe you solve this with induction", but I tried induction m by d hd and nothing happened. I dunno if that is valid syntax or something, but I took the "nothing" response to mean something like "you can't do that". Of course I didn't realise it's actually with for about 15 minutes. Could this show an error message instead?

  2. I was slightly thrown off the induction scent by the description saying that we want to solve the mul_comm goal by induction, sort of slightly implying that you don't need induction for the 0 * m = m goal.

I would:

  1. If you can, show an error message for induction m by d hd. Even if it's a very hacky regex hint induction\s+\w+\s+by "did you mean induction with?"
  2. Either add a show more help that says "you need to use induction here", or just put in the description something like "note, you can use induction to prove inductive goals".

Fantastic site by the way - I've read a few Lean tutorials and it all seemed pretty incomprehensible until I found this site.

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