Zulip Chat Archive

Stream: general

Topic: natural number game solution


Joseph O (Apr 21 2022 at 22:54):

For level 6 of Addition World, I came up with

rw add_assoc,
rw add_assoc,
rw add_comm c b,
refl,

and it works, but in the solutions, it had

rw add_assoc,
rw add_comm b c,
rw add_assoc,
refl,

is there anything different or better about the latter rather than the first?

Joseph O (Apr 21 2022 at 22:55):

It seems to be the same as mine, but just switching around the order. Is the latter solution more readable though?

Eric Rodriguez (Apr 21 2022 at 23:00):

no, they're both reasonable!

Joseph O (Apr 21 2022 at 23:05):

Which would you prefer?

Arthur Paulino (Apr 21 2022 at 23:09):

You should be able to say rw [add_assoc, add_assoc, add_comm c b], refl,

Arthur Paulino (Apr 21 2022 at 23:09):

(just to explore the syntax)

Joseph O (Apr 21 2022 at 23:11):

Arthur Paulino said:

You should be able to say rw [add_assoc, add_assoc, add_comm c b], refl,

they didn't show us that in the nat number game yet


Last updated: Dec 20 2023 at 11:08 UTC