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): review, golf, lemmas #10365

Closed
wants to merge 8 commits into from

Conversation

urkud
Copy link
Member

@urkud urkud commented Nov 17, 2021

  • add |z| * exp (arg z * I) = z;
  • reorder theorems to help golfing;
  • prove formulas for arg z in terms of arccos (re z / abs z) in cases 0 < im z and im z < 0;
  • use them to golf continuity of arg.

Open in Gitpod

@urkud urkud 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. labels Nov 17, 2021
Copy link
Collaborator

@RemyDegenne RemyDegenne left a comment

Choose a reason for hiding this comment

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

I am glad to see that the ugly continuous_at_arg_of_re_zero is gone! Thanks.
bors d+

src/analysis/special_functions/complex/arg.lean Outdated Show resolved Hide resolved
@bors
Copy link

bors bot commented Nov 17, 2021

✌️ 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 The PR author may merge after reviewing final suggestions. and removed awaiting-review The author would like community review of the PR labels Nov 17, 2021
@RemyDegenne
Copy link
Collaborator

Looks like a lemma you used does not exist? My review was too hasty.
bors d-

@RemyDegenne RemyDegenne added the awaiting-review The author would like community review of the PR label Nov 17, 2021
@github-actions github-actions bot removed the awaiting-review The author would like community review of the PR label Nov 17, 2021
@RemyDegenne RemyDegenne added awaiting-author A reviewer has asked the author a question or requested changes and removed delegated The PR author may merge after reviewing final suggestions. labels Nov 17, 2021
@urkud
Copy link
Member Author

urkud commented Nov 17, 2021

@RemyDegenne It exists in master.

@urkud urkud added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Nov 18, 2021
@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 Nov 18, 2021
@RemyDegenne
Copy link
Collaborator

bors r+

@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 Nov 20, 2021
bors bot pushed a commit that referenced this pull request Nov 20, 2021
…10365)

* add `|z| * exp (arg z * I) = z`;
* reorder theorems to help golfing;
* prove formulas for `arg z` in terms of `arccos (re z / abs z)` in cases `0 < im z` and `im z < 0`;
* use them to golf continuity of `arg`.
@bors
Copy link

bors bot commented Nov 20, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(analysis/special_functions/complex/arg): review, golf, lemmas [Merged by Bors] - feat(analysis/special_functions/complex/arg): review, golf, lemmas Nov 20, 2021
@bors bors bot closed this Nov 20, 2021
@bors bors bot deleted the YK-arg-review branch November 20, 2021 13:22
ocornoc pushed a commit that referenced this pull request Nov 22, 2021
…10365)

* add `|z| * exp (arg z * I) = z`;
* reorder theorems to help golfing;
* prove formulas for `arg z` in terms of `arccos (re z / abs z)` in cases `0 < im z` and `im z < 0`;
* use them to golf continuity of `arg`.
ocornoc pushed a commit that referenced this pull request Nov 22, 2021
…10365)

* add `|z| * exp (arg z * I) = z`;
* reorder theorems to help golfing;
* prove formulas for `arg z` in terms of `arccos (re z / abs z)` in cases `0 < im z` and `im z < 0`;
* use them to golf continuity of `arg`.
ericrbg pushed a commit that referenced this pull request Nov 24, 2021
…10365)

* add `|z| * exp (arg z * I) = z`;
* reorder theorems to help golfing;
* prove formulas for `arg z` in terms of `arccos (re z / abs z)` in cases `0 < im z` and `im z < 0`;
* use them to golf continuity of `arg`.
jsm28 added 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 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.
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