Skip to content

Conversation

@datokrat
Copy link
Contributor

This PR upstreams the LawfulMonadLift(T) classes, lemmas and instances from Batteries into Core because the iterator library needs them in order to prove lemmas about the mapM operator, which relies on MonadLiftT.

@datokrat datokrat added the changelog-library Library label May 21, 2025
@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 21, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request May 21, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request May 21, 2025
@leanprover-community-bot leanprover-community-bot added the breaks-mathlib This is not necessarily a blocker for merging: but there needs to be a plan label May 21, 2025
@leanprover-community-bot
Copy link
Collaborator

leanprover-community-bot commented May 21, 2025

Mathlib CI status (docs):

@datokrat
Copy link
Contributor Author

leanprover-community/batteries#1235 deletes the now-duplicated file from Batteries.

leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request May 21, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request May 21, 2025
@datokrat datokrat marked this pull request as ready for review May 21, 2025 22:11
@datokrat
Copy link
Contributor Author

@quangvdao FYI, I'm upstreaming LawfulMonadLift(T) because some lemmas rely on a well-behaved MonadLift instance. I only had to make a few small changes because Init uses the new module system.

@quangvdao
Copy link

@quangvdao FYI, I'm upstreaming LawfulMonadLift(T) because some lemmas rely on a well-behaved MonadLift instance. I only had to make a few small changes because Init uses the new module system.

Sounds good to me!

leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request May 22, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request May 22, 2025
@leanprover-community-bot leanprover-community-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 May 22, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request May 26, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request May 26, 2025
@datokrat datokrat added this pull request to the merge queue May 30, 2025
Merged via the queue into master with commit 2d5e8ca May 30, 2025
15 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 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.

6 participants