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

refactor: add List.finRange and Array.finRange #1055

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

fgdorais
Copy link
Collaborator

Harmonize with Mathlib, renaming Fin.list to List.finRange and Fin.enum to Array.finRange.

@github-actions github-actions bot added the WIP work in progress label Nov 19, 2024
@fgdorais fgdorais force-pushed the finrange branch 2 times, most recently from ca0078b to 5c2a552 Compare November 19, 2024 08:51
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Nov 19, 2024
@leanprover-community-bot
Copy link
Collaborator

leanprover-community-bot commented Nov 19, 2024

Mathlib CI status (docs):

Harmonize with Mathlib, renaming Fin.list to List.finRange and Fin.enum to Array.finRange.
@fgdorais
Copy link
Collaborator Author

This is a second attempt at #899. The Mathlib breakages are too much for now. On hiatus.

@kim-em
Copy link
Collaborator

kim-em commented Nov 24, 2024

Perhaps it would be easier to change the definition in Mathlib first? I appreciate that this situation is super annoying.

We could also just rename Mathlib's definition to finRange' and then gradually switch it over.

(I am quite keen to have finRange fixed soon, so I am happy to help work on this.)

@fgdorais
Copy link
Collaborator Author

fgdorais commented Nov 25, 2024

Help is more than welcome! Looks like you've already done quite a lot. I'm just catching up... Thanks!

mathlib-bors bot pushed a commit to leanprover-community/mathlib4 that referenced this pull request Nov 25, 2024
François Dorais has been [working](leanprover-community/batteries#1055) on upstreaming `List.finRange`, but wants to change the definition at the same time. That was running into difficulties, which hopefully are resolved here.
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Nov 25, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Nov 25, 2024
@kim-em
Copy link
Collaborator

kim-em commented Nov 25, 2024

@fgdorais, the Mathlib PR changing the definition of finRange has landed (note that it uses ofFn fun x => x, not ofFn id!).

Would you like to try again here? I'm very keen to have this in.

@fgdorais
Copy link
Collaborator Author

fgdorais commented Nov 25, 2024

In progress... Should build Mathlib on the next run... Ready!

@fgdorais fgdorais added awaiting-review This PR is ready for review; the author thinks it is ready to be merged. and removed WIP work in progress labels Nov 25, 2024
@fgdorais fgdorais marked this pull request as ready for review November 25, 2024 23:02
@fgdorais
Copy link
Collaborator Author

Mathlib PR#19487

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-review This PR is ready for review; the author thinks it is ready to be merged. builds-mathlib
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants