Skip to content

[Merged by Bors] - feat(Data/Complex): add lemmas like re_eq_abs#8025

Closed
urkud wants to merge 3 commits intomasterfrom
YK-re-eq-abs
Closed

[Merged by Bors] - feat(Data/Complex): add lemmas like re_eq_abs#8025
urkud wants to merge 3 commits intomasterfrom
YK-re-eq-abs

Conversation

@urkud
Copy link
Copy Markdown
Member

@urkud urkud commented Oct 30, 2023


Open in Gitpod

@urkud urkud added awaiting-review t-algebra Algebra (groups, rings, fields, etc) t-order Order theory labels Oct 30, 2023
not_iff_not.1 <| (abs_im_le_abs z).lt_iff_ne.symm.trans abs_im_lt_abs

@[simp]
lemma re_eq_abs {z : ℂ} : z.re = abs z ↔ 0 ≤ z.re ∧ z.im = 0 :=
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

RHS of this lemma can be formulated as 0 ≤ z but that makes sense only if you open the ComplexOrder locale. Which form should I use? Similarly for the next two lemmas and z ≤ 0.

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.

My preference would be to open the ComplexOrder locale, and that we should do this whenever it allows use to phrase things naturally. If we have enough examples of it throughout the library, maybe people will see the value of having this as a global instance.

@j-loreaux
Copy link
Copy Markdown
Contributor

bors d+

@bors
Copy link
Copy Markdown

bors bot commented Oct 30, 2023

✌️ urkud can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@github-actions github-actions bot added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels Oct 30, 2023
@urkud
Copy link
Copy Markdown
Member Author

urkud commented Oct 31, 2023

bors merge

@github-actions github-actions bot added the ready-to-merge This PR has been sent to bors. label Oct 31, 2023
bors bot pushed a commit that referenced this pull request Oct 31, 2023
@bors
Copy link
Copy Markdown

bors bot commented Oct 31, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title feat(Data/Complex): add lemmas like re_eq_abs [Merged by Bors] - feat(Data/Complex): add lemmas like re_eq_abs Oct 31, 2023
@bors bors bot closed this Oct 31, 2023
@bors bors bot deleted the YK-re-eq-abs branch October 31, 2023 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). ready-to-merge This PR has been sent to bors. t-algebra Algebra (groups, rings, fields, etc) t-order Order theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants