Zulip Chat Archive

Stream: lean4

Topic: adding math lib to lake file


Dean Young (May 30 2023 at 00:50):

How do I add Mathlib to my Lakefile.lean?

Mac Malone (May 30 2023 at 00:51):

require mathlib from git
  "https://github.com/leanprover-community/mathlib4.git"

See the Adding Dependencies section of the Lake README for more details on the Lake side.

Mac Malone (May 30 2023 at 00:53):

Also, see the Using mathlib4 as a dependency section from the Mathlib README for more details on the math side.

Dean Young (May 30 2023 at 01:07):

I went ahead an just added it at the very beginning. Is that the way it's supposed to work?

Mac Malone (May 30 2023 at 01:20):

@Kind Bubble It can go on any line after the imports. :smile:

Dean Young (May 30 2023 at 11:08):

thanks Mac


Last updated: Dec 20 2023 at 11:08 UTC