Skip to content

[Merged by Bors] - chore: fix casing per naming scheme#1183

Closed
winstonyin wants to merge 9 commits intomasterfrom
winstonyin_typos
Closed

[Merged by Bors] - chore: fix casing per naming scheme#1183
winstonyin wants to merge 9 commits intomasterfrom
winstonyin_typos

Conversation

@winstonyin
Copy link
Copy Markdown
Collaborator

@winstonyin winstonyin commented Dec 23, 2022

Fix a lot of wrong casing mostly in the docstrings but also sometimes in def/theorem names. E.g. fin 2 --> Fin 2, add_monoid_hom --> AddMonoidHom

Remove \n from to_additive docstrings that were inserted by mathport.

Move files and directories with Gcd and Smul to GCD and SMul

Copy link
Copy Markdown
Contributor

@rwbarton rwbarton left a comment

Choose a reason for hiding this comment

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

lgtm aside from some questions about removed \ns from to_additive docstrings.

`Mᵐᵒᵖ →ₙ* Nᵐᵒᵖ`. This is the action of the (fully faithful) `ᵐᵒᵖ`-functor on morphisms. -/
@[to_additive
"An additive semigroup homomorphism `add_hom M N` can equivalently be viewed as an\n
additive semigroup homomorphism `add_hom Mᵃᵒᵖ Nᵃᵒᵖ`. This is the action of the\n
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are you sure these \ns should be removed?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think so. The \ns were added in by mathport. See the (original mathlib3 file)[https://github.com/leanprover-community/mathlib/blob/master/src/algebra/group/opposite.lean], where new lines are inserted simply to keep the lines to within 100 characters long.

`Mᵐᵒᵖ →* Nᵐᵒᵖ`. This is the action of the (fully faithful) `ᵐᵒᵖ`-functor on morphisms. -/
@[to_additive
"An additive monoid homomorphism `M →+ N` can equivalently be viewed as an\n
additive monoid homomorphism `Mᵃᵒᵖ →+ Nᵃᵒᵖ`. This is the action of the (fully faithful)\n
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ditto these

@rwbarton
Copy link
Copy Markdown
Contributor

Thanks for these fixes. Could I ask that if (or when) you have any more fixes, to please make a new PR for them? Otherwise, reviewing becomes increasingly difficult.

@rwbarton
Copy link
Copy Markdown
Contributor

bors merge

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Dec 23, 2022
bors bot pushed a commit that referenced this pull request Dec 23, 2022
Fix a lot of wrong casing mostly in the docstrings but also sometimes in def/theorem names. E.g. `fin 2 --> Fin 2`, `add_monoid_hom --> AddMonoidHom`

Remove `\n` from `to_additive` docstrings that were inserted by mathport.

Move files and directories with `Gcd` and `Smul` to `GCD` and `SMul`
@bors
Copy link
Copy Markdown

bors bot commented Dec 23, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore: fix casing per naming scheme [Merged by Bors] - chore: fix casing per naming scheme Dec 23, 2022
@bors bors bot closed this Dec 23, 2022
@bors bors bot deleted the winstonyin_typos branch December 23, 2022 14:14
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.

2 participants