Zulip Chat Archive
Stream: Is there code for X?
Topic: Complex.arg_pow_coe_angle?
Weiyi Wang (Mar 09 2025 at 04:42):
Maybe I just missed it but is there a theorem like the following?
theorem Complex.arg_pow_coe_angle {x : ℂ} {n: ℕ} : ((x ^ n).arg : Real.Angle) = n • (x.arg : Real.Angle)
I see there is Complex.arg_mul_coe_angle but I am surprised there is no pow version
Ruben Van de Velde (Mar 09 2025 at 06:12):
Seems like something reasonable to add
Eric Wieser (Mar 09 2025 at 09:53):
For zpow too
Weiyi Wang (Mar 09 2025 at 15:50):
Guess it is time for me to try making some contribution https://github.com/leanprover-community/mathlib4/pull/22738
Ruben Van de Velde (Mar 09 2025 at 16:26):
Unfortunately we cannot accept pull requests from a fork; you'll need to request write access to the main repository
Weiyi Wang (Mar 09 2025 at 16:28):
I see. Where do I do that?
Jeremy Tan (Mar 09 2025 at 16:30):
#mathlib4 > github permission @Weiyi Wang
Kevin Buzzard (Mar 09 2025 at 16:30):
A detailed description of the workflow is here. You could start by adding your github userid to your Zulip profile.
Weiyi Wang (Mar 09 2025 at 17:09):
Thanks! Let me fix it
Kevin Buzzard (Mar 09 2025 at 17:12):
OK I sent you an invitation so you don't need to post in the thread linked to above. When you re-make the PR from a branch can you write {n : ℕ}
instead of {n: ℕ}
and similarly with the integer version? We don't yet have a linter to pick up on these things.
Last updated: May 02 2025 at 03:31 UTC