Skip to content

Conversation

@datokrat
Copy link
Contributor

@datokrat datokrat commented Jan 8, 2026

This PR provides Array operations analogous to List.min(?) and List.max(?).

I had to prove a few auxiliary lemmas. Downstream in Batteries, which already had List.min and List.max, I renamed their variants to List.rangeMin and List.rangeMax in the PR testing branch. Their version is more general in the sense that it has start and stop autoParams, like Array.foldl has, but I think the futore belongs to Subarray.min instead (which I haven't implemented yet).

@datokrat datokrat added the changelog-library Library label Jan 8, 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 Jan 8, 2026
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Jan 8, 2026
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Jan 8, 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 8, 2026
leanprover-bot added a commit to leanprover/reference-manual that referenced this pull request Jan 8, 2026
@leanprover-bot
Copy link
Collaborator

leanprover-bot commented Jan 8, 2026

Reference manual CI status:

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

leanprover-community-bot commented Jan 8, 2026

Mathlib CI status (docs):

leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Jan 8, 2026
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Jan 8, 2026
leanprover-bot added a commit to leanprover/reference-manual that referenced this pull request Jan 8, 2026
@leanprover-bot leanprover-bot added the builds-manual CI has verified that the Lean Language Reference builds against this PR label Jan 8, 2026
datokrat added a commit to datokrat/aesop that referenced this pull request Jan 12, 2026
@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 Jan 12, 2026
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Jan 12, 2026
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Jan 12, 2026
leanprover-bot added a commit to leanprover/reference-manual that referenced this pull request Jan 12, 2026
@datokrat datokrat marked this pull request as ready for review January 12, 2026 22:42
@datokrat datokrat requested a review from kim-em as a code owner January 12, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

4 participants