Skip to content

Conversation

@JovanGerb
Copy link
Contributor

This PR changes Alternative to not extend Applicative. As a result, it is possible to have [Alternative m] and [Monad m] arguments without having multiple non-defEq Applicative m instances.

@JovanGerb JovanGerb requested review from kim-em and tydeu as code owners January 7, 2026 08:06
@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 Jan 7, 2026
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Jan 7, 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 Jan 7, 2026
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Jan 7, 2026
leanprover-bot added a commit to leanprover/reference-manual that referenced this pull request Jan 7, 2026
@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 Jan 7, 2026
@leanprover-community-bot
Copy link
Collaborator

Mathlib CI status (docs):

@leanprover-bot leanprover-bot added the builds-manual CI has verified that the Lean Language Reference builds against this PR label Jan 7, 2026
@leanprover-bot
Copy link
Collaborator

leanprover-bot commented Jan 7, 2026

Reference manual CI status:

@JovanGerb
Copy link
Contributor Author

I didn't realize that ApplicativeFunctor already exists in Batteries. It's probably better to upstream that instead of doing this refactor.

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 builds-manual CI has verified that the Lean Language Reference builds against this PR 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