Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing initHeartbeats #1037

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eric-wieser
Copy link
Member

In only one case a Core.Context is created from within CoreM, and we inherit from the parent Context the initHeartbeats. Otherwise, we get the current heartbeats from IO.

It's not entirely clear to me what the intended semantics of lintCore are; should they inherit the outer heartbeat count (as with this patch), or get a new heartbeat budget for each declaration (prior to it)?

In only one case a `Core.Context` is created from within CoreM, and we inherit from the parent Context the `initHeartbeats`. Otherwise, we get the current heartbeats from IO.

Co-authored-by: Laurent Sartran <[email protected]>
@github-actions github-actions bot added the awaiting-review This PR is ready for review; the author thinks it is ready to be merged. label Nov 11, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Nov 11, 2024
@leanprover-community-bot
Copy link
Collaborator

Mathlib CI status (docs):

@fgdorais
Copy link
Collaborator

LGTM Could you explain, for documentation purposes, why this isn't something Lean core could do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review This PR is ready for review; the author thinks it is ready to be merged. builds-mathlib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants