-
Notifications
You must be signed in to change notification settings - Fork 297
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
Conversation
… 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.
lemma dim_add_le_dim_add_dim (s t : submodule K V) | ||
lemma rank_add_le_rank_add_rank (s t : submodule K V) |
There was a problem hiding this comment.
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.
bors merge |
… 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.
Pull request successfully merged into staging. Build succeeded: |
rank
in lemma names instead of dim
rank
in lemma names instead of dim
bors merge |
Already running a review |
bors r- bors merge |
Already running a review |
bors r- |
bors merge |
Already running a review |
rank
in lemma names instead of dim
rank
in lemma names instead of dim
bors merge |
Already running a review |
Duplicate of #18741 |
The
dim
name is left from the previous name of the function,vector_space.dim
. When that was merged withmodule.rank
in #7322, we left renaming the existing lemmas as future work.This commit was made by replacing
(\b|(?<=_))dim(\b|(?=_))
withrank
in thedimension
andfinite_dimensional
files, and then manually fixing downstream breakages; it's important not to renamepower_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.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.