Zulip Chat Archive

Stream: lean4

Topic: Digits in Project Name


Filippo A. E. Nuccio (Aug 27 2024 at 07:35):

I am giving a talk next week and I created a new project called 04Sep24 and everything seemed to work fine until I decided to create a file myfile.lean and import it. The line

import 04Sep24.myfile

seems to create problems (unexpected token; expected identifier). Is there a way out (importing only myfile does not work and I do not know how to tell " it is in your very same directory") or is it a known issue that project names should not contain/begin with digits?

Damiano Testa (Aug 27 2024 at 07:36):

Does using \f<<>> help?

Kevin Buzzard (Aug 27 2024 at 07:36):

I think that beginning with a digit is the problem, and you can probably quote your way around it if you can remember how to do the double french quotes

Filippo A. E. Nuccio (Aug 27 2024 at 07:37):

Let me try

Kevin Buzzard (Aug 27 2024 at 07:37):

Fortunately Damiano just reminded us

Damiano Testa (Aug 27 2024 at 07:37):

(And yes, identifiers cannot start with a digit and the guillemets should be a workaround.)

Filippo A. E. Nuccio (Aug 27 2024 at 07:39):

Great, thanks! It worked, I guess the \f has something to do with "French", right?

Damiano Testa (Aug 27 2024 at 07:39):

I think so...

Damiano Testa (Aug 27 2024 at 07:43):

I can trace the f for French in \f<> to this section of #tpil. I imagine that \f<<>> has the same origin.


Last updated: May 02 2025 at 03:31 UTC