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] - chore(algebra/quaternion): generalize the algebra instance #18382

Closed
wants to merge 25 commits into from

Conversation

eric-wieser
Copy link
Member

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

To prevent this generalization forming diamonds, we have to now populate the nsmul, zsmul, and qsmul fields.

I use this in another PR to talk about the R algebra structure of quaternion (dual_number R).
Even without that motivation, this change means that the existing smul lemmas now apply to nsmul, zsmul, and rat_smul where previously they did not.


Open in Gitpod

@eric-wieser eric-wieser added awaiting-review The author would like community review of the PR awaiting-CI The author would like to see what CI has to say before doing more work. labels Feb 4, 2023
@eric-wieser eric-wieser added t-algebra Algebra (groups, rings, fields etc) and removed t-algebra Algebra (groups, rings, fields etc) labels Feb 4, 2023
@eric-wieser eric-wieser force-pushed the eric-wieser/quaternion-algebra-generalize branch from ecaf4ba to e7a90ef Compare February 4, 2023 02:21
@eric-wieser eric-wieser force-pushed the eric-wieser/quaternion-algebra-generalize branch from e7a90ef to fadbbb6 Compare February 4, 2023 02:22
@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 Feb 4, 2023
@mathlib-dependent-issues-bot mathlib-dependent-issues-bot added the blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. label Feb 9, 2023
@eric-wieser eric-wieser changed the base branch from master to eric-wieser/quaternion-norm-cast February 9, 2023 23:53
@eric-wieser eric-wieser requested review from a team as code owners February 9, 2023 23:53
Copy link
Collaborator

@YaelDillies YaelDillies left a comment

Choose a reason for hiding this comment

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

Clean overall!

src/algebra/quaternion.lean Outdated Show resolved Hide resolved
src/algebra/quaternion.lean Outdated Show resolved Hide resolved
src/algebra/quaternion.lean Show resolved Hide resolved
src/algebra/quaternion.lean Show resolved Hide resolved
src/algebra/quaternion.lean Outdated Show resolved Hide resolved
@bors bors bot changed the base branch from eric-wieser/quaternion-norm-cast to master February 10, 2023 13:29
@mathlib-dependent-issues-bot mathlib-dependent-issues-bot removed the blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. label Feb 10, 2023
@mathlib-dependent-issues-bot
Copy link
Collaborator

This PR/issue depends on:

Copy link
Collaborator

@YaelDillies YaelDillies left a comment

Choose a reason for hiding this comment

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

I am now happy with it. Thanks!

maintainer merge

@eric-wieser
Copy link
Member Author

maintainer merge

(since it didn't seem to post in the Zulip thread)

@github-actions
Copy link

🚀 Pull request has been placed on the maintainer queue by eric-wieser.

@fpvandoorn
Copy link
Member

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 Feb 13, 2023
bors bot pushed a commit that referenced this pull request Feb 13, 2023
To prevent this generalization forming diamonds, we have to now populate the `nsmul`, `zsmul`, and `qsmul` fields.

I use this in another PR to talk about the `R` algebra structure of `quaternion (dual_number R)`.
Even without that motivation, this change means that the existing `smul` lemmas now apply to `nsmul`, `zsmul`, and `rat_smul` where previously they did not.
@bors
Copy link

bors bot commented Feb 13, 2023

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title chore(algebra/quaternion): generalize the algebra instance [Merged by Bors] - chore(algebra/quaternion): generalize the algebra instance Feb 13, 2023
@bors bors bot closed this Feb 13, 2023
@bors bors bot deleted the eric-wieser/quaternion-algebra-generalize branch February 13, 2023 20:27
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

4 participants