Zulip Chat Archive

Stream: new members

Topic: Natural Number Game: Level 4 / 9 : the simplest approach


Steven Clontz (Nov 16 2023 at 15:17):

:wave: I'm playing through the natural number game for Lean 4, and I'm stuck on https://adam.math.hhu.de/#/g/hhu-adam/NNG4/world/Algorithm/level/4 - the first step is to create a new tactic, but when I do what I'm told and copy-paste the macro line to create a new tactic simp_add, I'm getting the error "no goals left This probably means you solved the level with warnings or Lean encountered a parsing error."

Ruben Van de Velde (Nov 16 2023 at 15:20):

Same here. CC @Kevin Buzzard

Mauricio Collares (Nov 16 2023 at 15:20):

I don't think you're supposed to "try it" by pasting the macro definition. Typing simp_add works to use the macro.

Mauricio Collares (Nov 16 2023 at 15:22):

I agree the explanation is ambiguous, though.

Kevin Buzzard (Nov 16 2023 at 15:56):

Oh thanks for this! Yeah that code is already in Lean, so you can just type simp_add to solve that goal! Thanks a lot for this feedback, I will try and make it much clearer.

Steven Clontz (Nov 16 2023 at 16:57):

Great, thanks. I'm also having trouble with defining the prec function on the next level, but maybe it's already defined there as well? I'm afk but will try again later.

Steven Clontz (Nov 16 2023 at 17:03):

Really enjoyed puzzling through this so far. I remember playing the old version and getting hung up at Proposition world (?), but that seems to be omitted from this version

Steven Clontz (Nov 16 2023 at 21:31):

Steven Clontz said:

Great, thanks. I'm also having trouble with defining the prec function on the next level, but maybe it's already defined there as well? I'm afk but will try again later.

Yep - I read the instructions as "you need to define these things , not, "we defined these things for you".

Steven Clontz (Nov 16 2023 at 22:42):

Has there been a pedagogical discussion of the voicing of "you/we/me" in the NNG? I don't want to retread old ground, but my hot take having just beat the game (less FLT) is that more use of "you" when the player is directed to do something, and "I" when something has been done for the player (e.g. defining simp_add) might add clarity throughout (albiet it only bit me in this last world for whatever reason).

Also if it's not clear I had a lot of fun doing this and would happily take the learning opportunity to pick up more Lean by playtesting/codesigning future worlds, if there's interest.

Kevin Buzzard (Nov 16 2023 at 23:30):

There has been no pedagogical discussion of anything in NNG4, I just threw some stuff together over the last two months. We have waiting on my hard drive: advanced multiplication world (almost readty to go), even/odd world, divisibility world, prime number world and a world full of unsolved problems (where I'll move FLT to).

Jon Eugster (Nov 17 2023 at 09:32):

Thanks @Steven Clontz for the PR NNG4#43 to change the wording of that level! I believe I'm also speaking for @Kevin Buzzard that if you felt inclined to improve any other wording throughout the game, like your suggestion to use "you & I" consistently, that would always be very welcome!

(There might also be lots of places in proofs where you'd like some hint but the hint doesn't exist yet)

Kevin Buzzard (Nov 17 2023 at 13:10):

NNG3 was extensively tested by undergraduates but that testing never happened for NNG4 so I would be very happy to have feedback from users :-)


Last updated: Dec 20 2023 at 11:08 UTC