-
Notifications
You must be signed in to change notification settings - Fork 384
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: add Repr instance for quaternions #13940
Conversation
PR summary 1495383ce1Import changesNo significant changes to the import graph Declarations diff
You can run this locally as follows## summary with just the declaration names:
./scripts/no_lost_declarations.sh short <optional_commit>
## more verbose report:
./scripts/no_lost_declarations.sh <optional_commit> |
Mathlib/Algebra/Quaternion.lean
Outdated
For the typical case of quaternions over ℝ, each component will show as a Cauchy sequence due to | ||
the way Real numbers are represented. | ||
-/ | ||
unsafe instance [Repr R] {a b : R} : Repr ℍ[R, a, b] where |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unsafe instance [Repr R] {a b : R} : Repr ℍ[R, a, b] where | |
instance [Repr R] {a b : R} : Repr ℍ[R, a, b] where |
Could you add a test? There should be one somewhere that already tests complex numbers that you can copy. If you can't find it, I can have a look in a day or two. |
@eric-wieser it seems like this might have fallen through the cracks. Are you happy? bors d=eric-wieser |
✌️ eric-wieser can now approve this pull request. To approve and merge a pull request, simply reply with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
bors merge
Adds a Repr instance for QuaternionAlgebra. A quaternion <w, x, y, z> is shown as "{ re := w, imI := x, imJ := y, imK := z }". The components are displayed as Cauchy sequences for quaternions over the Reals.
Pull request successfully merged into master. Build succeeded: |
Adds a Repr instance for QuaternionAlgebra. A quaternion <w, x, y, z> is shown as "{ re := w, imI := x, imJ := y, imK := z }". The components are displayed as Cauchy sequences for quaternions over the Reals.
Adds a Repr instance for QuaternionAlgebra. A quaternion <w, x, y, z> is shown as "{ re := w, imI := x, imJ := y, imK := z }". The components are displayed as Cauchy sequences for quaternions over the Reals.
Adds a Repr instance for QuaternionAlgebra. A quaternion <w, x, y, z> is shown as "{ re := w, imI := x, imJ := y, imK := z }". The components are displayed as Cauchy sequences for quaternions over the Reals.