Zulip Chat Archive

Stream: mathlib4

Topic: What happened to `set_option maxHeartbeats` in v4.25.0?


Nick_adfor (Nov 10 2025 at 10:20):

In the earlier version, set_option maxHeartbeats can be used, but I've tried to use it in the latest one, it gives me

Unscoped option maxHeartbeats is not allowed:
Please scope this to individual declarations, as in

set_option maxHeartbeats in
-- comment explaining why this is necessary
example : ... := ...


Note: This linter can be disabled with `set_option linter.style.setOption false`

Eric Wieser (Nov 10 2025 at 10:21):

This is a linter warning from mathlib, and as a warning you can ignore it

Eric Wieser (Nov 10 2025 at 10:21):

But it is telling you that it is bad practice to use anything other than the set_option maxHeartbeats ... in form, as that version makes clear which parts of your code are slow

Eric Wieser (Nov 10 2025 at 10:21):

The warning message probably could benefit from an extra ...


Last updated: Dec 20 2025 at 21:32 UTC