Zulip Chat Archive
Stream: new members
Topic: command expected_choose
Marianne (Aug 01 2023 at 06:13):
Here I want lean to commute "8! / (8-4)! ". The Lean Infoview reports that command expected at line 5, and it doesn't work out the result as well at line 7, but I don't really know how I should correct it. Is the definition not enough?
Marianne (Aug 01 2023 at 06:14):
Kevin Buzzard (Aug 01 2023 at 06:17):
Is this lean 3? Why don't you upgrade?
Damiano Testa (Aug 01 2023 at 06:18):
Also, you probably need to add open_locale nat
.
Marianne (Aug 01 2023 at 06:20):
Kevin Buzzard said:
Is this lean 3? Why don't you upgrade?
Yeah this is lean 3...I work together with a group and they told me to maintain Lean 3.51.1
Marianne (Aug 01 2023 at 06:21):
Damiano Testa said:
Also, you probably need to add
open_locale nat
.
Oh, this really help! May I ask what's the difference here?
Damiano Testa (Aug 01 2023 at 06:33):
It instructs lean to use special notation, open namespaces, possibly add instances...
Damiano Testa (Aug 01 2023 at 06:34):
In this specific case, the notation !
is not globally available, but it is inside the locale nat
.
Marianne (Aug 01 2023 at 06:39):
I see...open_locale nat seems to denote what "!" functions in the local context.
Marianne (Aug 01 2023 at 06:39):
Thank you!
Last updated: Dec 20 2023 at 11:08 UTC