Skip to content

[Merged by Bors] - chore: Nsmul -> NSMul, Zpow -> ZPow, etc#9067

Closed
winstonyin wants to merge 11 commits intomasterfrom
WY_naming_convention
Closed

[Merged by Bors] - chore: Nsmul -> NSMul, Zpow -> ZPow, etc#9067
winstonyin wants to merge 11 commits intomasterfrom
WY_naming_convention

Conversation

@winstonyin
Copy link
Copy Markdown
Collaborator

Normalising to naming convention rule number 6.


Open in Gitpod

Copy link
Copy Markdown
Contributor

@alreadydone alreadydone left a comment

Choose a reason for hiding this comment

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

Thanks!

@winstonyin winstonyin added awaiting-review awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. labels Dec 15, 2023
@github-actions github-actions bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Dec 15, 2023
@winstonyin
Copy link
Copy Markdown
Collaborator Author

winstonyin commented Dec 15, 2023

Build fails at the Smul -> SMul commit...

/-- `a • b` computes the product of `a` and `b`.
The meaning of this notation is type-dependent, but it is intended to be used for left actions. -/
hSMul : α → β → γ
hsmul : α → β → γ
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
hsmul : α → β → γ
hSMul : α → β → γ

because this matches HMul.hMul, which is not something we have the power to change.

Copy link
Copy Markdown
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

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

Can you do a pass for Vadd -> VAdd too?

@eric-wieser eric-wieser added awaiting-author A reviewer has asked the author a question or requested changes. and removed awaiting-review labels Dec 15, 2023
This reverts commit 210f14c.
@winstonyin
Copy link
Copy Markdown
Collaborator Author

winstonyin commented Dec 15, 2023

@eric-wieser I do not find any instances of Vadd. For vAdd, should there be parity with hSMul as an exception?

@alreadydone
Copy link
Copy Markdown
Contributor

Currently there are some Set.vAddAssocClass that should be renamed to vadd like in Finset.vaddAssocClass. hVAdd should probably stay in parallel to hSMul.

@winstonyin winstonyin added awaiting-review and removed awaiting-author A reviewer has asked the author a question or requested changes. labels Dec 16, 2023
Comment on lines -492 to +497
@[to_additive vAddAssocClass]
@[to_additive vaddAssocClass]
instance isScalarTower [SMul α β] [SMul α γ] [SMul β γ] [IsScalarTower α β γ] :
IsScalarTower α β (Set γ) where
smul_assoc a b T := by simp only [← image_smul, image_image, smul_assoc]
#align set.is_scalar_tower Set.isScalarTower
#align set.vadd_assoc_class Set.vAddAssocClass
#align set.vadd_assoc_class Set.vaddAssocClass
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.

Shouldn't we teach to_additive about this rule? What's the current auto-generated name? (You can find out using to_additive?.)

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.

Let's worry about that later.
maintainer merge

## Main definitions

- `ZMod.quotientZmultiplesNatEquivZMod` and `ZMod.quotientZmultiplesEquivZMod`:
- `ZMod.quotientZMultiplesNatEquivZMod` and `ZMod.quotientZMultiplesEquivZMod`:
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.

So we're capitalizing AddSubgroup.zmultiples as ZMultiples. Looks good to me.

@github-actions
Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by alreadydone.

Copy link
Copy Markdown
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

Thanks 🎉

bors merge

@ghost ghost added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Dec 16, 2023
mathlib-bors bot pushed a commit that referenced this pull request Dec 16, 2023
Normalising to naming convention rule number 6.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Dec 16, 2023

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: Nsmul -> NSMul, Zpow -> ZPow, etc [Merged by Bors] - chore: Nsmul -> NSMul, Zpow -> ZPow, etc Dec 16, 2023
@mathlib-bors mathlib-bors bot closed this Dec 16, 2023
@mathlib-bors mathlib-bors bot deleted the WY_naming_convention branch December 16, 2023 08:47
awueth pushed a commit that referenced this pull request Dec 19, 2023
Normalising to naming convention rule number 6.
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