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

[Merged by Bors] - style: fix references to DenselyOrdered #11897

Closed
wants to merge 4 commits into from

Conversation

sven-manthe
Copy link
Collaborator

Rename occurrences of "densely_ordered" to "denselyOrdered"


Open in Gitpod

@sven-manthe sven-manthe added awaiting-review The author would like community review of the PR easy < 20s of review time. See the lifecycle page for guidelines. labels Apr 4, 2024
@github-actions github-actions bot added the new-contributor This PR was made by a contributor with fewer than 5 merged PRs. Welcome to the community! label Apr 4, 2024
Copy link
Collaborator

@grunweg grunweg left a comment

Choose a reason for hiding this comment

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

Thank you for doing this; good find! I have two follow-up suggestions which should be quick to address.

@@ -153,15 +153,15 @@ instance denselyOrdered_of_noMaxOrder [Preorder ι] [∀ i, Preorder (α i)]
exact ⟨⟨i, c⟩, right _ ha, right _ hb⟩⟩
#align psigma.lex.densely_ordered_of_no_max_order PSigma.Lex.denselyOrdered_of_noMaxOrder

instance densely_ordered_of_noMinOrder [Preorder ι] [∀ i, Preorder (α i)]
instance denselyOrdered_of_noMinOrder [Preorder ι] [∀ i, Preorder (α i)]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe the naming convention is that manual instance names should start with "inst", i.e.

Suggested change
instance denselyOrdered_of_noMinOrder [Preorder ι] [∀ i, Preorder (α i)]
instance instDenselyOrdered_of_noMinOrder [Preorder ι] [∀ i, Preorder (α i)]

(I'm not 100% sure on the casing; you may want to compare with other names/wait for another pair of eyes.)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If I do this, there will be many more examples of such instances in this file alone

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sure; mathlib is not always consistent (and I think a fix for that would be welcome - to be sure, I'd ask on zulip first).

I'm not asking you to change any other instances! But when you're renaming this one, I'd rather rename it to a "right" than a "less wrong" name.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Personally, I would find the resulting inconsistency with e.g. denselyOrdered_of_noMaxOrder even more confusing

Mathlib/Order/CountableDenseLinearOrder.lean Outdated Show resolved Hide resolved
Mathlib/Order/Cover.lean Show resolved Hide resolved
sven-manthe and others added 3 commits April 4, 2024 20:28
@ocfnash
Copy link
Contributor

ocfnash commented Apr 4, 2024

Thanks!

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Apr 4, 2024
mathlib-bors bot pushed a commit that referenced this pull request Apr 4, 2024
Rename occurrences of "densely_ordered" to "denselyOrdered"



Co-authored-by: sven-manthe <147848313+sven-manthe@users.noreply.github.com>
@mathlib-bors
Copy link

mathlib-bors bot commented Apr 4, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title style: fix references to DenselyOrdered [Merged by Bors] - style: fix references to DenselyOrdered Apr 4, 2024
@mathlib-bors mathlib-bors bot closed this Apr 4, 2024
@mathlib-bors mathlib-bors bot deleted the sven-naming-densely_ordered branch April 4, 2024 22:42
Louddy pushed a commit that referenced this pull request Apr 15, 2024
Rename occurrences of "densely_ordered" to "denselyOrdered"



Co-authored-by: sven-manthe <147848313+sven-manthe@users.noreply.github.com>
atarnoam pushed a commit that referenced this pull request Apr 16, 2024
Rename occurrences of "densely_ordered" to "denselyOrdered"



Co-authored-by: sven-manthe <147848313+sven-manthe@users.noreply.github.com>
uniwuni pushed a commit that referenced this pull request Apr 19, 2024
Rename occurrences of "densely_ordered" to "denselyOrdered"



Co-authored-by: sven-manthe <147848313+sven-manthe@users.noreply.github.com>
callesonne pushed a commit that referenced this pull request Apr 22, 2024
Rename occurrences of "densely_ordered" to "denselyOrdered"



Co-authored-by: sven-manthe <147848313+sven-manthe@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy < 20s of review time. See the lifecycle page for guidelines. new-contributor This PR was made by a contributor with fewer than 5 merged PRs. Welcome to the community! ready-to-merge This PR has been sent to bors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants