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] - feat(algebra/quaternion): add quaternion.im for the skew-adjoint part #18456

Closed
wants to merge 6 commits into from

Conversation

eric-wieser
Copy link
Member

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

As requested by @YaelDillies, as prework for #18349 where I need to split the quaternion into real and imaginary parts.

Only one marginally interesting lemma is included, im_sq which says q.im^2 = -norm_sq q.im


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. t-algebra Algebra (groups, rings, fields etc) labels Feb 16, 2023
src/algebra/quaternion.lean Outdated Show resolved Hide resolved
Comment on lines +90 to +93
@[simp] lemma im_re : a.im.re = 0 := rfl
@[simp] lemma im_im_i : a.im.im_i = a.im_i := rfl
@[simp] lemma im_im_j : a.im.im_j = a.im_j := rfl
@[simp] lemma im_im_k : a.im.im_k = a.im_k := rfl
Copy link
Collaborator

Choose a reason for hiding this comment

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

All those names look backward to me. Is that the naming convention for quaternions?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, unfortunately the names in this file are all over the place WRT naming order for dot notation. I can fix the names in a follow-up PR.

@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 16, 2023
src/algebra/quaternion.lean Show resolved Hide resolved
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.

Thanks! Looking good.

maintainer merge

@github-actions
Copy link

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

@ocfnash
Copy link
Collaborator

ocfnash commented Feb 24, 2023

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 24, 2023
bors bot pushed a commit that referenced this pull request Feb 24, 2023
…rt (#18456)

As requested by @YaelDillies, as prework for #18349 where I need to split the quaternion into real and imaginary parts.

Only one marginally interesting lemma is included, `im_sq` which says `q.im^2 = -norm_sq q.im`
@bors
Copy link

bors bot commented Feb 24, 2023

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(algebra/quaternion): add quaternion.im for the skew-adjoint part [Merged by Bors] - feat(algebra/quaternion): add quaternion.im for the skew-adjoint part Feb 24, 2023
@bors bors bot closed this Feb 24, 2023
@bors bors bot deleted the eric-wieser/quaternion.im branch February 24, 2023 13:53
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

3 participants