Skip to content

feat: injectivity lemmas for getElem(?) on List and Option#12435

Merged
datokrat merged 2 commits intomasterfrom
paul/humanevup5
Mar 2, 2026
Merged

feat: injectivity lemmas for getElem(?) on List and Option#12435
datokrat merged 2 commits intomasterfrom
paul/humanevup5

Conversation

@datokrat
Copy link
Contributor

@datokrat datokrat commented Feb 11, 2026

This PR provides injectivity lemmas for List.getElem, List.getElem?, List.getElem! and List.getD as well as for Option. Note: This introduces a breaking change, changing the signature of Option.getElem?_inj.

@datokrat datokrat added the changelog-library Library label Feb 11, 2026
@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 11, 2026
@leanprover-bot
Copy link
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI can not be attempted yet, as the nightly-testing-2026-02-10 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-11 14:09:50)

mathlib-nightly-testing bot pushed a commit to leanprover-community/batteries that referenced this pull request Feb 11, 2026
@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 Feb 11, 2026
mathlib-nightly-testing bot pushed a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Feb 11, 2026
@mathlib-lean-pr-testing mathlib-lean-pr-testing bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Feb 11, 2026
@mathlib-lean-pr-testing
Copy link

Mathlib CI status (docs):

mathlib-nightly-testing bot pushed a commit to leanprover-community/batteries that referenced this pull request Feb 16, 2026
mathlib-nightly-testing bot pushed a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Feb 16, 2026
@mathlib-lean-pr-testing mathlib-lean-pr-testing 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 Feb 16, 2026
@mathlib-lean-pr-testing
Copy link

Mathlib CI status (docs):

@mathlib-lean-pr-testing mathlib-lean-pr-testing 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 Feb 18, 2026
@mathlib-lean-pr-testing
Copy link

Mathlib CI status (docs):

@datokrat datokrat changed the title feat: injectivity lemmas for List.getElem, List.getElem?, List.getElem! and List.getD feat: injectivity lemmas for getElem(?) on List and Option Feb 20, 2026
@datokrat datokrat marked this pull request as ready for review February 20, 2026 08:25
@datokrat datokrat requested a review from kim-em as a code owner February 20, 2026 08:25
@datokrat datokrat added this pull request to the merge queue Mar 2, 2026
Merged via the queue into master with commit 292b423 Mar 2, 2026
45 checks passed
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 changelog-library Library 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.

3 participants