hhu-adam / Robo

A game for learning lean 4 where a cute little Robo joins you on your exploration of the Mathiverse. The game is in German 🇩🇪
https://adam.math.hhu.de
Apache License 2.0
16 stars 9 forks source link

Implis, Level 13: explain why 'by_cases a : A' does not work #20

Closed TentativeConvert closed 4 months ago

TentativeConvert commented 4 months ago

Add branches with these commands, and add hints to these branches.

joneugster commented 4 months ago
TentativeConvert commented 4 months ago

Ah, I forgot that branches catch different proof states and not different commands/tactics.

But two students made a mistake in this step, out of a very small sample size. So at least there should be a hint saying not to use by_cases a : A after intro a. OR, perhaps there should be some explanation earlier about naming assumptions and possible pitfalls.

joneugster commented 4 months ago

I added a fixed by_cases tactic to the game that deals with both cases:

I'm trying to get this upstreamed, but since by_cases is now in Core Lean, PR's might not be as welcome as in Mathlib/Std.

(but even if we keep the modified tactic in the game, besides better naming, it should be the same as the original one, so that should be no issue to the player)