Skip to content

refactor: eliminate simp +instances uses related to iterators/ranges/slices#12304

Draft
datokrat wants to merge 10 commits intosimp_no_instfrom
paul/simp_no_inst
Draft

refactor: eliminate simp +instances uses related to iterators/ranges/slices#12304
datokrat wants to merge 10 commits intosimp_no_instfrom
paul/simp_no_inst

Conversation

@datokrat
Copy link
Contributor

@datokrat datokrat commented Feb 4, 2026

This PR suitably replaces all simp +instances usages related to iterators, ranges and slices.

leodemoura and others added 10 commits February 3, 2026 20:04
This PR ensures `simp` does not "simplify" instances by default.
The old behavior can be retrieved by using `simp +instances`.
This PR is similar to #12195, but for `dsimp`.
The backward compatibility flag for `dsimp` also deactivates this new feature.

```
set_option backward.dsimp.instances true
```

Applying `simp` (and `dsimp`) to instances creates non-standard
instances, and this creates all sorts of problems in Mathlib.
@datokrat
Copy link
Contributor Author

datokrat commented Feb 4, 2026

!radar

@leanprover-radar
Copy link

leanprover-radar commented Feb 4, 2026

Benchmark results for 17089f2 against fe09431 are in! @datokrat

  • 🟥 build exited with code 2
  • 🟥 other exited with code 2

No significant changes detected.

@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 Feb 4, 2026
@leanprover-bot
Copy link
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI can not be attempted yet, as the nightly-testing-2026-02-03 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-02-04 11:27:13)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

4 participants