Skip to content

fix: ensure simp and dsimp do not unfold too much#6397

Merged
kim-em merged 7 commits intomasterfrom
dsimp_issue2
Dec 21, 2024
Merged

fix: ensure simp and dsimp do not unfold too much#6397
kim-em merged 7 commits intomasterfrom
dsimp_issue2

Conversation

@leodemoura
Copy link
Copy Markdown
Member

This PR ensures that simp and dsimp do not unfold definitions that are not intended to be unfolded by the user. See issue #5755 for an example affected by this issue.

Closes #5755

This PR ensures that `simp` and `dsimp` do not unfold definitions that are
not intended to be unfolded by the user. See issue #5755 for an
example affected by this issue.

Closes #5755
@leodemoura leodemoura added the changelog-language Language features and metaprograms label Dec 16, 2024
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc December 16, 2024 03:38 Inactive
@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 Dec 16, 2024
ghost pushed a commit to leanprover-community/batteries that referenced this pull request Dec 16, 2024
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request Dec 16, 2024
@ghost ghost added the breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan label Dec 16, 2024
@ghost
Copy link
Copy Markdown

ghost commented Dec 16, 2024

Mathlib CI status (docs):

If `foo` is tagged as `[irreducible]`, `simp [foo]` must not delta
reduce `foo`, and should rely exclusively on the equation lemmas for `foo`.
Mathlib relies on this behavior to implement the command `irreducible_def`.
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc December 20, 2024 01:29 Inactive
ghost pushed a commit to leanprover-community/batteries that referenced this pull request Dec 20, 2024
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request Dec 20, 2024
mathlib-bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Dec 20, 2024
These fixes are all of the form "a terminal simp only which was unnecessarily fragile", i.e., can be replaced by a `simp` that works both on `v4.15.0-rc1` and under leanprover/lean4#6397.
mathlib-bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Dec 20, 2024
Co-authored-by: Johan Commelin <johan@commelin.net>
mathlib-bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Dec 20, 2024
Co-authored-by: Johan Commelin <johan@commelin.net>
mathlib-bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Dec 20, 2024
Co-authored-by: Johan Commelin <johan@commelin.net>
mathlib-bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Dec 20, 2024
Co-authored-by: Johan Commelin <johan@commelin.net>
mathlib-bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Dec 20, 2024
Co-authored-by: Johan Commelin <johan@commelin.net>
@kim-em kim-em added this pull request to the merge queue Dec 20, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 20, 2024
@kim-em kim-em added the merge-ci Enable merge queue CI checks for PR. In particular, produce artifacts for all major platforms. label Dec 21, 2024
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc December 21, 2024 01:36 Inactive
@kim-em kim-em enabled auto-merge December 21, 2024 03:51
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc December 21, 2024 04:02 Inactive
@kim-em kim-em added this pull request to the merge queue Dec 21, 2024
Merged via the queue into master with commit 16bc6eb Dec 21, 2024
luisacicolini pushed a commit to opencompl/lean4 that referenced this pull request Jan 21, 2025
This PR ensures that `simp` and `dsimp` do not unfold definitions that
are not intended to be unfolded by the user. See issue leanprover#5755 for an
example affected by this issue.

Closes leanprover#5755

---------

Co-authored-by: Kim Morrison <kim@tqft.net>
JovanGerb pushed a commit to JovanGerb/lean4 that referenced this pull request Jan 21, 2025
This PR ensures that `simp` and `dsimp` do not unfold definitions that
are not intended to be unfolded by the user. See issue leanprover#5755 for an
example affected by this issue.

Closes leanprover#5755

---------

Co-authored-by: Kim Morrison <kim@tqft.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan changelog-language Language features and metaprograms merge-ci Enable merge queue CI checks for PR. In particular, produce artifacts for all major platforms. 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.

dsimp simplifies too much

2 participants