Zulip Chat Archive

Stream: mathlib4

Topic: how to include mathlib4 in the lakefile?


Arien Malec (Oct 28 2022 at 21:44):

This line, when uncommented, breaks Lake

--require mathlib4 from git "https://github.com/leanprover-community/mathlib4" @ "main"
stderr:
Error parsing '././lakefile.lean'.  Please restart the lean server after fixing the Lake configuration file.

Arien Malec (Oct 28 2022 at 21:47):

To note, the correct name is mathlib but it breaks either way.

Scott Morrison (Oct 28 2022 at 22:31):

It's @ "master" not @ "main", but hopefully that doesn't cause a parse error... Can you post your entire lakefile?

Arien Malec (Oct 28 2022 at 22:32):

"master" fixes the issue

Arien Malec (Oct 28 2022 at 22:35):

import Lake
open Lake DSL

package complex4

@[default_target]
lean_lib Complex4


require std from git "https://github.com/leanprover/std4" @ "main"
require mathlib from git "https://github.com/leanprover-community/mathlib4" @ "master"

Changing "master" to "main" causes the error above

Gabriel Ebner (Oct 28 2022 at 22:58):

This is https://github.com/leanprover/lake/issues/116


Last updated: Dec 20 2023 at 11:08 UTC