Skip to content

[Merged by Bors] - chore(Data/Fin/Tuple/Basic): Fill in the API hole (partly)#13568

Closed
YaelDillies wants to merge 2 commits intomasterfrom
fin_tuple_remove_nth
Closed

[Merged by Bors] - chore(Data/Fin/Tuple/Basic): Fill in the API hole (partly)#13568
YaelDillies wants to merge 2 commits intomasterfrom
fin_tuple_remove_nth

Conversation

@YaelDillies
Copy link
Copy Markdown
Contributor

@YaelDillies YaelDillies commented Jun 6, 2024

As explained by the module doc, we are missing the Fin.succAbove equivalent of Fin.tail/Fin.init. In fact, it already exists as the second projection of extractNth, so this PR deletes extractNth and defines its second projection as a new function removeNth.


Open in Gitpod

@YaelDillies YaelDillies added blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) awaiting-review labels Jun 6, 2024
@YaelDillies YaelDillies changed the title chore(Fin/Tuple/Basic): Fill in the API hole (partly) chore(Data/Fin/Tuple/Basic): Fill in the API hole (partly) Jun 6, 2024
@ghost ghost removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Jun 19, 2024
@ghost
Copy link
Copy Markdown

ghost commented Jun 19, 2024

@YaelDillies YaelDillies force-pushed the fin_tuple_remove_nth branch from 0a77e11 to e6677cc Compare June 19, 2024 10:49
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 19, 2024

PR summary cd19a39d7f

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ insertNth_removeNth
+ insertNth_self_removeNth
+ removeNth
+ removeNth_insertNth
+ removeNth_last
+ removeNth_update
+ removeNth_zero
- extractNth_insertNth
- insertNth_extractNth

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

As explained by the module doc, we are missing the `Fin.succAbove` equivalent of `Fin.tail`/`Fin.init`. In fact, it already exists as the second projection of `extractNth`, so this PR deletes `extractNth` and defines its second projection as a new function `removeNth`.
@YaelDillies YaelDillies force-pushed the fin_tuple_remove_nth branch from cee648d to cd19a39 Compare July 11, 2024 20:00
@eric-wieser
Copy link
Copy Markdown
Member

bors merge

Thanks!

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Jul 11, 2024
mathlib-bors bot pushed a commit that referenced this pull request Jul 11, 2024
As explained by the module doc, we are missing the `Fin.succAbove` equivalent of `Fin.tail`/`Fin.init`. In fact, it already exists as the second projection of `extractNth`, so this PR deletes `extractNth` and defines its second projection as a new function `removeNth`.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jul 11, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore(Data/Fin/Tuple/Basic): Fill in the API hole (partly) [Merged by Bors] - chore(Data/Fin/Tuple/Basic): Fill in the API hole (partly) Jul 11, 2024
@mathlib-bors mathlib-bors bot closed this Jul 11, 2024
@mathlib-bors mathlib-bors bot deleted the fin_tuple_remove_nth branch July 11, 2024 21:21
@adomani adomani mentioned this pull request Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants