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(analysis/special_functions/complex/arg): arg_neg lemmas #11503

Closed
wants to merge 1 commit into from

Conversation

jsm28
Copy link
Collaborator

@jsm28 jsm28 commented Jan 17, 2022

Add lemmas about the value of arg (-x): one each for positive and
negative sign of x.im, two iff lemmas saying exactly when it's
equal to arg x - π or arg x + π, and a simpler lemma giving the
value of (arg (-x) : real.angle) for any nonzero x.

These replace the previous lemmas
arg_eq_arg_neg_add_pi_of_im_nonneg_of_re_neg and
arg_eq_arg_neg_sub_pi_of_im_neg_of_re_neg, which are strictly less
general (they have a hypothesis x.re < 0 that's not needed unless
the imaginary part is 0). Those two lemmas are unused in current
mathlib (they were used in the proof of cos_arg before the golfing
in #10365) and it seems reasonable to me to replace them with the more
general lemmas.


Open in Gitpod

Add lemmas about the value of `arg (-x)`: one each for positive and
negative sign of `x.im`, two `iff` lemmas saying exactly when it's
equal to `arg x - π` or `arg x + π`, and a simpler lemma giving the
value of `(arg (-x) : real.angle)` for any nonzero `x`.

These replace the previous lemmas
`arg_eq_arg_neg_add_pi_of_im_nonneg_of_re_neg` and
`arg_eq_arg_neg_sub_pi_of_im_neg_of_re_neg`, which are strictly less
general (they have a hypothesis `x.re < 0` that's not needed unless
the imaginary part is 0).  Those two lemmas are unused in current
mathlib (they were used in the proof of `cos_arg` before the golfing
in #10365) and it seems reasonable to me to replace them with the more
general lemmas.
@jsm28 jsm28 added the awaiting-review The author would like community review of the PR label Jan 17, 2022
@ocfnash
Copy link
Collaborator

ocfnash commented Jan 17, 2022

Thanks!

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 Jan 17, 2022
bors bot pushed a commit that referenced this pull request Jan 17, 2022
Add lemmas about the value of `arg (-x)`: one each for positive and
negative sign of `x.im`, two `iff` lemmas saying exactly when it's
equal to `arg x - π` or `arg x + π`, and a simpler lemma giving the
value of `(arg (-x) : real.angle)` for any nonzero `x`.

These replace the previous lemmas
`arg_eq_arg_neg_add_pi_of_im_nonneg_of_re_neg` and
`arg_eq_arg_neg_sub_pi_of_im_neg_of_re_neg`, which are strictly less
general (they have a hypothesis `x.re < 0` that's not needed unless
the imaginary part is 0).  Those two lemmas are unused in current
mathlib (they were used in the proof of `cos_arg` before the golfing
in #10365) and it seems reasonable to me to replace them with the more
general lemmas.
@bors
Copy link

bors bot commented Jan 17, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(analysis/special_functions/complex/arg): arg_neg lemmas [Merged by Bors] - feat(analysis/special_functions/complex/arg): arg_neg lemmas Jan 17, 2022
@bors bors bot closed this Jan 17, 2022
@bors bors bot deleted the jsm28/arg_neg branch January 17, 2022 11:46
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+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants