Zulip Chat Archive

Stream: lean4

Topic: Per-folder leanOptions


Yaël Dillies (Jan 08 2026 at 06:11):

Over at formal-conjectures in FC#1507, I am trying to disable warn.sorry in the conjecture files (which are full of them because, well , conjectures), while keeping it on in the prerequisite files (which are meant to move towards mathlib mid-term). What is the preferred way to achieve this?

Yaël Dillies (Jan 08 2026 at 06:15):

My current approach is to declare a new Prereqs library in the lakefile:

[[lean_lib]]
name = "Prereqs"
reservoir = false

However, @Eric Wieser pointed out that this was possibly claiming the name Prereqs too widely.

Kim Morrison (Jan 08 2026 at 06:29):

So just name it FormalConjecturesPrereqs?

Eric Wieser (Jan 08 2026 at 07:30):

Adding reservoir = false seems harmful here, since reservoir tracks packages not libraries anyway

Yaël Dillies (Jan 08 2026 at 07:48):

May I take the opportunity to complain that the valid leanOptions are not documented where the lakefile formats are?

Kim Morrison (Jan 08 2026 at 08:15):

Could you open an issue against the reference manual (or wherever you were expecting to see such docs)?

Yaël Dillies (Jan 08 2026 at 08:40):

leanprover/reference-manual#743


Last updated: Feb 28 2026 at 14:05 UTC