Zulip Chat Archive

Stream: lean4

Topic: Lake


Rudolf Meijer (Jan 14 2023 at 09:19):

Do I understand correctly that lake new/init always fills Main.lean with "hello world?". Or is there a way to ask lake to create a "neutral" project, i.e. one with an empty Main?

Mario Carneiro (Jan 14 2023 at 09:33):

Yes, it always puts the hello world in. You can always just delete the content of the file if you are past the hello world stage

Mario Carneiro (Jan 14 2023 at 09:34):

an empty file is kind of hard to use as a starting point, because you could put anything in there, it's not even obviously lean code at that point

James Gallicchio (Jan 14 2023 at 16:20):

(also it's nice to know that your setup is working in the sense you can interact with the hello world definition)

Rudolf Meijer (Jan 14 2023 at 17:09):

Understood. Subsidiary question: the Std that I have pulled in one project's lakefile, is that also valid for other projects, or do I have to pull Std in each project?

Mario Carneiro (Jan 14 2023 at 18:06):

different projects are completely independent, you have to put the dependency in each project you want to use it in

Mario Carneiro (Jan 14 2023 at 18:07):

You can point multiple projects to the same lake-packages directory if you are worried about using too much space, although if you have different versions of dependencies in different projects then you might end up bouncing between the versions

Rudolf Meijer (Jan 14 2023 at 18:53):

Thx


Last updated: Dec 20 2023 at 11:08 UTC