Skip to content

feat: standalone List.extract lemmas, don't normalize extract into drop/take#12703

Draft
datokrat wants to merge 13 commits intomasterfrom
paul/extractdroptakenf
Draft

feat: standalone List.extract lemmas, don't normalize extract into drop/take#12703
datokrat wants to merge 13 commits intomasterfrom
paul/extractdroptakenf

Conversation

@datokrat
Copy link
Contributor

This PR contains a significant breaking change regarding the simp behavior of List.extract and Array.extract. Previously, simp rewrote both automatically (and suboptimally) into a combination of take and drop. Now, extract keeps being extract. The change introduces lemmas for List.extract that are needed now that we don't normalize to take/drop anymore.

@datokrat datokrat added the changelog-library Library label Feb 26, 2026
@datokrat datokrat force-pushed the paul/extractdroptakenf branch from 3ec5e9f to 6a8b460 Compare March 1, 2026 15:48
@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 Mar 1, 2026
@mathlib-lean-pr-testing
Copy link

Mathlib CI status (docs):

  • ❗ Mathlib CI can not be attempted yet, as the nightly-testing-2026-03-01 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-mathlib, Mathlib CI should run now. You can force Mathlib CI using the force-mathlib-ci label. (2026-03-01 16:37:19)

@leanprover-bot
Copy link
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI can not be attempted yet, as the nightly-testing-2026-03-01 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-03-01 16:37:21)

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

Labels

changelog-library Library 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.

2 participants