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(linear_algebra/dimension): use rank in lemma names instead of dim #18735

Closed
wants to merge 3 commits into from

Conversation

eric-wieser
Copy link
Member

@eric-wieser eric-wieser commented Apr 4, 2023

The dim name is left from the previous name of the function, vector_space.dim. When that was merged with module.rank in #7322, we left renaming the existing lemmas as future work.

This commit was made by replacing (\b|(?<=_))dim(\b|(?=_)) with rank in the dimension and finite_dimensional files, and then manually fixing downstream breakages; it's important not to rename power_basis.dim at the same time!

Deciding whether to move some of these to the module namespace is left as future work, the diff is already big enough.


Open in Gitpod

It's possible that some of these names are wrong; but if so, they were wrong before too, and I'd rather fix them in a follow-up that isn't just a find-and-replace.

… of `dim`

The `dim` name is left from the previous name of the function.
When that was merged with `module.rank`, we left renaming the existing lemmas as future work.
@eric-wieser eric-wieser added WIP Work in progress t-algebra Algebra (groups, rings, fields etc) labels Apr 4, 2023
@eric-wieser eric-wieser added the awaiting-CI The author would like to see what CI has to say before doing more work. label Apr 4, 2023
@eric-wieser eric-wieser added awaiting-review The author would like community review of the PR and removed WIP Work in progress labels Apr 4, 2023
@github-actions github-actions bot removed the awaiting-CI The author would like to see what CI has to say before doing more work. label Apr 4, 2023
Comment on lines -739 to +741
lemma dim_add_le_dim_add_dim (s t : submodule K V)
lemma rank_add_le_rank_add_rank (s t : submodule K V)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This lemma and a few others still have the wrong name; but I intend to fix rank/finrank confusion in a follow-up. These misnomers will be more obvious after this PR is in.

@semorrison
Copy link
Collaborator

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Apr 5, 2023
bors bot pushed a commit that referenced this pull request Apr 5, 2023
… of `dim` (#18735)

The `dim` name is left from the previous name of the function, `vector_space.dim`. When that was merged with `module.rank` in #7322, we left renaming the existing lemmas as future work.

This commit was made by replacing `(\b|(?<=_))dim(\b|(?=_))` with `rank` in the `dimension` and `finite_dimensional` files, and then manually fixing downstream breakages; it's important not to rename `power_basis.dim` at the same time!

Deciding whether to move some of these to the `module` namespace is left as future work, the diff is already big enough.
@bors
Copy link

bors bot commented Apr 5, 2023

Pull request successfully merged into staging.

Build succeeded:

@bors bors bot changed the title refactor(linear_algebra/dimension): use rank in lemma names instead of dim [Merged by Bors] - refactor(linear_algebra/dimension): use rank in lemma names instead of dim Apr 5, 2023
@bors bors bot closed this Apr 5, 2023
@bors bors bot deleted the eric-wiesser/rename-dim branch April 5, 2023 04:06
@eric-wieser eric-wieser restored the eric-wiesser/rename-dim branch April 5, 2023 07:31
@eric-wieser eric-wieser reopened this Apr 5, 2023
@eric-wieser eric-wieser changed the base branch from staging to master April 5, 2023 07:32
@eric-wieser
Copy link
Member Author

bors merge

@bors
Copy link

bors bot commented Apr 5, 2023

Already running a review

@eric-wieser
Copy link
Member Author

bors r-

bors merge

@bors
Copy link

bors bot commented Apr 5, 2023

Already running a review

@eric-wieser
Copy link
Member Author

bors r-

@eric-wieser
Copy link
Member Author

bors merge

@bors
Copy link

bors bot commented Apr 5, 2023

Already running a review

@eric-wieser eric-wieser changed the title [Merged by Bors] - refactor(linear_algebra/dimension): use rank in lemma names instead of dim refactor(linear_algebra/dimension): use rank in lemma names instead of dim Apr 5, 2023
@eric-wieser
Copy link
Member Author

bors merge

@bors
Copy link

bors bot commented Apr 5, 2023

Already running a review

@eric-wieser
Copy link
Member Author

eric-wieser commented Apr 5, 2023

Duplicate of #18741

@eric-wieser eric-wieser marked this as a duplicate of #18735 Apr 5, 2023
@eric-wieser eric-wieser closed this Apr 5, 2023
@eric-wieser eric-wieser deleted the eric-wiesser/rename-dim branch April 5, 2023 08:35
@eric-wieser eric-wieser marked this as a duplicate of #18741 Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) t-algebra Algebra (groups, rings, fields etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants