-
Notifications
You must be signed in to change notification settings - Fork 298
[Merged by Bors] - feat(data/zsqrtd/to_real): Add to_real
#5640
Conversation
17ff118
to
bb37ae9
Compare
to_real
to_real
Hah, you just beat me on |
Well, thanks for golfing it anyway! |
Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
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.
Can we replace the coe_injective
by a [char_zero R]
assumption?
Probably, but then we need to translate between injectivity of |
I'll try to find some time for it soon. |
Soon being 9 days... sorry |
Thanks @jcommelin, looks good to me. I have a small comment suggestion, but fine with or without it. |
@eric-wieser It's still your PR! Feel free to edit it as you like! |
Well at this point it barely resembles my initial attempt, and the whole thing was motivated by trying to help Lars on Zulip! I've committed the comment change. |
99fa892
to
13d5fa0
Compare
@digama0 any final comments? |
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.
Looks good to me. Since @digama0 hasn't objected, I think this should be fine to merge.
bors r+
Oops! LGTM |
Pull request successfully merged into master. Build succeeded: |
to_real
to_real
Also adds
norm_eq_zero
, and replaces some calls to simp with direct lemma applications