Skip to content

fix: preserve cases params in grind? suggestions#13835

Open
raphael-solace wants to merge 1 commit into
leanprover:masterfrom
raphael-solace:rc/grind-suggest-cases
Open

fix: preserve cases params in grind? suggestions#13835
raphael-solace wants to merge 1 commit into
leanprover:masterfrom
raphael-solace:rc/grind-suggest-cases

Conversation

@raphael-solace
Copy link
Copy Markdown

@raphael-solace raphael-solace commented May 25, 2026

This PR preserves explicit cases parameters in grind? suggestions.

grind? already preserves non-ident term parameters when reconstructing grind only suggestions because they are not tracked through E-matching. Explicit cases parameters are another non-E-matching input: they update the case-split configuration.

The added regression tests check that grind? suggestions contain the required cases Bool and cases Option parameters.

Fixes #13828.

Tests: git diff --check locally. I did not run the Lean test suite locally because this workspace is a shallow sparse checkout without a local Lean toolchain.

@raphael-solace raphael-solace requested a review from kim-em as a code owner May 25, 2026 11:52
@raphael-solace
Copy link
Copy Markdown
Author

I do not have permission to add labels on this repo. This should get \ (or another maintainer-preferred changelog label) to satisfy the PR body check.

@raphael-solace
Copy link
Copy Markdown
Author

Correction: the needed label is changelog-tactics (or another maintainer-preferred changelog label).

@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label May 25, 2026
@leanprover-bot
Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI can not be attempted yet, as the nightly-testing-2026-05-25 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-manual, reference manual CI should run now. You can force reference manual CI using the force-manual-ci label. (2026-05-25 12:44:01)

@github-actions github-actions Bot added the mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN label May 25, 2026
@mathlib-lean-pr-testing mathlib-lean-pr-testing Bot added the builds-mathlib CI has verified that Mathlib builds against this PR label May 25, 2026
@mathlib-lean-pr-testing
Copy link
Copy Markdown

Mathlib CI status (docs):

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 mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

grind? suggestions remove cases

2 participants