feat: exprDependsOn follows delayed assignments - #2484
Open
kim-em wants to merge 2 commits into
Open
Conversation
kim-em
force-pushed
the
exprDependsOn
branch
4 times, most recently
from
September 1, 2023 00:42
0a5e1c3 to
a97449d
Compare
ghost
pushed a commit
to leanprover-community/mathlib4
that referenced
this pull request
Sep 1, 2023
|
kim-em
force-pushed
the
exprDependsOn
branch
2 times, most recently
from
September 1, 2023 06:49
5228e51 to
bcc0c41
Compare
ghost
pushed a commit
to leanprover-community/mathlib4
that referenced
this pull request
Sep 1, 2023
ghost
pushed a commit
to leanprover-community/mathlib4
that referenced
this pull request
Sep 1, 2023
|
kim-em
marked this pull request as ready for review
September 4, 2023 00:21
kim-em
force-pushed
the
exprDependsOn
branch
from
December 12, 2023 00:02
bcc0c41 to
9949b12
Compare
ghost
pushed a commit
to leanprover-community/mathlib4
that referenced
this pull request
Dec 12, 2023
kim-em
force-pushed
the
exprDependsOn
branch
from
February 12, 2026 05:32
9949b12 to
397caba
Compare
Collaborator
|
Reference manual CI status:
|
mathlib-nightly-testing Bot
pushed a commit
to leanprover-community/batteries
that referenced
this pull request
Feb 12, 2026
mathlib-nightly-testing Bot
pushed a commit
to leanprover-community/mathlib4-nightly-testing
that referenced
this pull request
Feb 12, 2026
|
Mathlib CI status (docs):
|
The only red on this PR is a `check-pr-body` run from February that GitHub will no longer let us re-run; the same workflow has since passed on this SHA. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGQ4cXuC9bBbZQ3psYLZUA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes
Lean.dependsOn.visitMainto follow delayed metavariable assignments when checking expression dependencies. Previously, when a metavariable had a delayed assignment,exprDependsOn'would only inspect the local context of the original metavariable declaration, missing the dependency through the pending metavariable. Now it recursively visits the pending metavariable from the delayed assignment before falling back to the local context check.Fixes #2483