Zulip Chat Archive

Stream: new members

Topic: how to import additional theorems and notation available in


AnduinHS (Apr 27 2021 at 07:21):

I don't know how to import additional theorems and notation available in auxiliary library by loading with the command import data. as in the following figure. I have followed "Installing Lean and mathlib on Windows"(https://leanprover-community.github.io/install/windows.html). The symobol ᶜ for complementation does not work as well. What should I do? Thank you in advance! 360截图184307077911387.png

Eric Wieser (Apr 27 2021 at 07:33):

Your import problem is real, but the syntax for is Aᶜ not ᶜA

Scott Morrison (Apr 27 2021 at 07:47):

Have you opened a folder (not just a single file)? Does that folder have a leanpkg.toml file in the root directory, with your .lean file under src/?

Scott Morrison (Apr 27 2021 at 07:48):

Have you also read https://leanprover-community.github.io/install/project.html?

Kevin Buzzard (Apr 27 2021 at 07:54):

Yes, you can't import mathlib files with a standalone file, it needs to be part of a project which has mathlib as a dependency, for example a project made with leanproject new

AnduinHS (Apr 28 2021 at 08:34):

I have tried to following this. However, after I created my project in the

lib

file , my lean in VS-Code became like this:
360截图18750813536580.png .
What should I do?
I then removed my project folder to Desktop.

Eric Wieser (Apr 28 2021 at 08:41):

Can you paste the log message from the "Output" pane?

Shing Tak Lam (Apr 28 2021 at 08:42):

AnduinHS said:

I have tried to following this. However, after I created my project in the

lib

file , my lean in VS-Code became like this:
360截图18750813536580.png .
What should I do?
I then removed my project folder to Desktop.

I'm guessing from the name of the screenshots and the error you're getting, but are you in China? That might be causing the issues that you're seeing.

Kevin Buzzard (Apr 28 2021 at 08:46):

right -- the error seems to say "you cannot access github.com".

AnduinHS (May 07 2021 at 07:26):

Yes.
Being busy with couples of days, I have tried again to follow the instrction.
And I don't gain the expected results. It seems that the problem is in my version.
1233222.PNG 1233444.PNG

Eric Wieser (May 07 2021 at 07:40):

Now it looks like your version of git is too old

Eric Wieser (May 07 2021 at 07:41):

Or perhaps your version of python

Eric Wieser (May 07 2021 at 07:49):

It's also possible something is trying to man-in-the-middle your HTTPS requests, either a local tool as described here or possibly something more malicious.


Last updated: Dec 20 2023 at 11:08 UTC