Zulip Chat Archive
Stream: lean4
Topic: pass options to the whole project in lakefile
MangoIV (Aug 26 2023 at 11:06):
Hi, can I somehow pass set_option autoImplicit false
to the entire project?
Scott Morrison (Aug 26 2023 at 11:08):
Check the Mathlib lakefile for examples!
Kevin Buzzard (Aug 26 2023 at 11:08):
The answer is surely yes because I believe that mathlib is doing something like this, so I would look there!
Martin Dvořák (Aug 26 2023 at 11:10):
https://github.com/madvorak/chomsky/blob/main/lakefile.lean
MangoIV (Aug 26 2023 at 11:20):
thank you so much, sorry for not looking by myself :D
Martin Dvořák (Aug 26 2023 at 11:30):
It's good you asked; this info isn't trivial to find.
Marcus Rossel (Jun 13 2024 at 14:46):
Is there a way to also make this work for options introduced by packages? I require a package X
and want to set its option x.y
to true
globally. But if I use the leanOptions
approach I get invalid -D parameter, unknown configuration option 'x.y'
on all files which don't import X
.
Jon Eugster (Jun 13 2024 at 15:08):
I think that still is not possible and is tracked here: lean4#3403
Last updated: May 02 2025 at 03:31 UTC