Skip to content

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

Merged
kim-em merged 3 commits intomainfrom
finrange
Nov 26, 2024
Merged

refactor: add List.finRange and Array.finRange#1055
kim-em merged 3 commits intomainfrom
finrange

Conversation

@fgdorais
Copy link
Copy Markdown
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
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request Nov 19, 2024
@ghost ghost added the breaks-mathlib label Nov 19, 2024
@ghost
Copy link
Copy Markdown

ghost commented Nov 19, 2024

Mathlib CI status (docs):

Harmonize with Mathlib, renaming Fin.list to List.finRange and Fin.enum to Array.finRange.
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request Nov 19, 2024
@fgdorais
Copy link
Copy Markdown
Collaborator Author

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

@kim-em
Copy link
Copy Markdown
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
Copy Markdown
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.
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request Nov 25, 2024
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request Nov 25, 2024
@kim-em
Copy link
Copy Markdown
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
Copy Markdown
Collaborator Author

fgdorais commented Nov 25, 2024

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

@ghost ghost added builds-mathlib and removed breaks-mathlib labels Nov 25, 2024
@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
Copy Markdown
Collaborator Author

Mathlib PR#19487

@kim-em kim-em added this pull request to the merge queue Nov 26, 2024
Merged via the queue into main with commit f6d16c2 Nov 26, 2024
@github-actions github-actions bot removed the awaiting-review This PR is ready for review; the author thinks it is ready to be merged. label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants