Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: change Array.set to take a Nat and a tactic provided bound #5988

Merged
merged 5 commits into from
Nov 11, 2024

Conversation

kim-em
Copy link
Collaborator

@kim-em kim-em commented Nov 7, 2024

This PR changes the signature of Array.set to take a Nat, and a tactic-provided bound, rather than a Fin.

Corresponding changes (but without the auto-param) for Array.get will arrive shortly, after which I'll go more pervasively through the Array API.

@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 Nov 7, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Nov 7, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Nov 7, 2024
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc November 7, 2024 09:19 Inactive
@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 Nov 7, 2024
kim-em added a commit to leanprover-community/batteries that referenced this pull request Nov 11, 2024
kim-em added a commit to leanprover-community/aesop that referenced this pull request Nov 11, 2024
kim-em added a commit to leanprover-community/mathlib4 that referenced this pull request Nov 11, 2024
@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 Nov 11, 2024
@kim-em kim-em marked this pull request as ready for review November 11, 2024 02:33
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc November 11, 2024 04:16 Inactive
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Nov 11, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Nov 11, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Nov 11, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Nov 11, 2024
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc November 11, 2024 04:46 Inactive
@kim-em kim-em added the changelog-library Library label Nov 11, 2024
@kim-em kim-em added this pull request to the merge queue Nov 11, 2024
Merged via the queue into master with commit 258d372 Nov 11, 2024
21 of 23 checks passed
@digama0
Copy link
Collaborator

digama0 commented Nov 11, 2024

Why?

@kim-em
Copy link
Collaborator Author

kim-em commented Nov 11, 2024

We decided that for most users it is more ergonomic to have the autoparam tactic provide the proof, rather than requiring the anonymous constructor notation to build a Fin.

Certainly it is useful sometimes to have Fin based indexing (particularly in conjunction with Array/List.ofFn, or for some combinatorial arguments), but we don't want these as the main interface.

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.

3 participants