-
Notifications
You must be signed in to change notification settings - Fork 432
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
feat: per-function termination hints #3040
Merged
Merged
Conversation
This file contains 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
nomeata
changed the title
joachim/per function hints
feat: Per-function termination hints
Dec 8, 2023
nomeata
changed the title
feat: Per-function termination hints
feat: per-function termination hints
Dec 8, 2023
github-actions
bot
added
the
toolchain-available
A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
label
Dec 8, 2023
leanprover-community-mathlib4-bot
added a commit
to leanprover-community/mathlib4
that referenced
this pull request
Dec 8, 2023
leanprover-community-mathlib4-bot
added
the
breaks-mathlib
This is not necessarily a blocker for merging: but there needs to be a plan
label
Dec 8, 2023
|
leanprover-community-mathlib4-bot
added a commit
to leanprover-community/mathlib4
that referenced
this pull request
Dec 8, 2023
leanprover-community-mathlib4-bot
added a commit
to leanprover-community/mathlib4
that referenced
this pull request
Dec 9, 2023
nomeata
force-pushed
the
joachim/per-function-hints
branch
from
December 11, 2023 11:57
6cd5349
to
31d5ba7
Compare
leanprover-community-mathlib4-bot
added a commit
to leanprover-community/mathlib4
that referenced
this pull request
Dec 11, 2023
leanprover-community-mathlib4-bot
added a commit
to leanprover-community/mathlib4
that referenced
this pull request
Dec 11, 2023
kim-em
reviewed
Dec 12, 2023
nomeata
added a commit
to nomeata/batteries
that referenced
this pull request
Dec 13, 2023
this makes the necessary changes to compile with the `termination_by` syntax refactoring in leanprover/lean4#3040
leanprover-community-mathlib4-bot
added a commit
to leanprover-community/mathlib4
that referenced
this pull request
Dec 13, 2023
leanprover-community-mathlib4-bot
added
builds-mathlib
CI has verified that Mathlib builds against this PR
and removed
breaks-mathlib
This is not necessarily a blocker for merging: but there needs to be a plan
labels
Dec 13, 2023
leanprover-community-mathlib4-bot
added a commit
to leanprover-community/mathlib4
that referenced
this pull request
Dec 13, 2023
kim-em
reviewed
Dec 14, 2023
nomeata
added a commit
that referenced
this pull request
Dec 15, 2023
extracted from #3040 to keep the diff smaller
nomeata
commented
Dec 15, 2023
github-merge-queue bot
pushed a commit
that referenced
this pull request
Dec 18, 2023
extracted from #3040 to keep the diff smaller
leanprover-community-mathlib4-bot
added a commit
to leanprover-community/mathlib4
that referenced
this pull request
Dec 20, 2023
leanprover-community-mathlib4-bot
added
breaks-mathlib
This is not necessarily a blocker for merging: but there needs to be a plan
and removed
builds-mathlib
CI has verified that Mathlib builds against this PR
labels
Dec 20, 2023
leodemoura
approved these changes
Jan 6, 2024
kim-em
added
awaiting-author
Waiting for PR author to address issues
and removed
will-merge-soon
…unless someone speaks up
labels
Jan 8, 2024
leanprover-community-mathlib4-bot
added a commit
to leanprover-community/mathlib4
that referenced
this pull request
Jan 8, 2024
leanprover-community-mathlib4-bot
added a commit
to leanprover-community/mathlib4
that referenced
this pull request
Jan 8, 2024
nomeata
force-pushed
the
joachim/per-function-hints
branch
from
January 8, 2024 11:30
8278b00
to
f2bc037
Compare
leanprover-community-mathlib4-bot
added a commit
to leanprover-community/mathlib4
that referenced
this pull request
Jan 8, 2024
nomeata
added
will-merge-soon
…unless someone speaks up
and removed
awaiting-author
Waiting for PR author to address issues
labels
Jan 8, 2024
leanprover-community-mathlib4-bot
added a commit
to leanprover-community/mathlib4
that referenced
this pull request
Jan 8, 2024
nomeata
force-pushed
the
joachim/per-function-hints
branch
from
January 9, 2024 09:46
f2bc037
to
77da1f2
Compare
nomeata
force-pushed
the
joachim/per-function-hints
branch
2 times, most recently
from
January 9, 2024 14:48
44db469
to
6818314
Compare
nomeata
force-pushed
the
joachim/per-function-hints
branch
from
January 10, 2024 14:58
6818314
to
1e4eefb
Compare
This change * moves `termination_by` and `decreasing_by` next to the function they apply to * simplify the syntax of `termination_by` * apply the `decreasing_by` goal to all goals at once, for better interactive use. See the section in `RELEASES.md` for more details and migration advise. This is a hard breaking change, requiring developers to touch every `termination_by` in their code base. We decided to still do it as a hard-breaking change, because supporting both old and new syntax at the same time would be non-trivial, and not save that much. Moreover, this requires changes to some metaprograms that developers might have written, and supporting both syntaxes at the same time would make _their_ migration harder.
nomeata
force-pushed
the
joachim/per-function-hints
branch
from
January 10, 2024 14:59
1e4eefb
to
b93cd98
Compare
This was referenced Jan 11, 2024
kim-em
added a commit
to leanprover-community/aesop
that referenced
this pull request
Jan 13, 2024
kim-em
added a commit
to leanprover-community/aesop
that referenced
this pull request
Jan 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
builds-mathlib
CI has verified that Mathlib builds against this PR
language
Lean language issue or PR
toolchain-available
A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN
will-merge-soon
…unless someone speaks up
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 change
termination_by
anddecreasing_by
next to the function they apply totermination_by
decreasing_by
goal to all goals at once, for better interactive use.See the section in
RELEASES.md
for more details and migration advise.This is a hard breaking change, requiring developers to touch every
termination_by
in their code base. We decided to still do it as a hard-breaking change, because supporting both old and new syntax at the same time would be non-trivial, and not save that much. Moreover, this requires changes to some metaprograms that developers might have written, and supporting both syntaxes at the same time would make their migration harder.Std and mathlib updates are prepared at
Fixes #2921 and #3081.