Skip to content

Commit

Permalink
feat(analysis/special_functions/complex/arg): review, golf, lemmas (#…
Browse files Browse the repository at this point in the history
…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`.
  • Loading branch information
urkud committed Nov 20, 2021
1 parent bd6c6d5 commit 618447f
Show file tree
Hide file tree
Showing 6 changed files with 209 additions and 361 deletions.
8 changes: 6 additions & 2 deletions src/algebra/order/ring.lean
Expand Up @@ -701,9 +701,13 @@ lemma lt_mul_iff_one_lt_right (hb : 0 < b) : b < b * a ↔ 1 < a :=
suffices b * 1 < b * a ↔ 1 < a, by rwa mul_one at this,
mul_lt_mul_left hb

theorem mul_nonneg_iff_right_nonneg_of_pos (ha : 0 < a) : 0b * a0 ≤ b :=
theorem mul_nonneg_iff_right_nonneg_of_pos (ha : 0 < a) : 0a * b0 ≤ b :=
by haveI := @linear_order.decidable_le α _; exact
⟨λ h, nonneg_of_mul_nonneg_right h ha, λ h, decidable.mul_nonneg h ha.le⟩
⟨λ h, nonneg_of_mul_nonneg_left h ha, λ h, decidable.mul_nonneg ha.le h⟩

theorem mul_nonneg_iff_left_nonneg_of_pos (hb : 0 < b) : 0 ≤ a * b ↔ 0 ≤ a :=
by haveI := @linear_order.decidable_le α _; exact
⟨λ h, nonneg_of_mul_nonneg_right h hb, λ h, decidable.mul_nonneg h hb.le⟩

lemma mul_le_iff_le_one_left (hb : 0 < b) : a * b ≤ b ↔ a ≤ 1 :=
⟨ λ h, le_of_not_lt (mt (lt_mul_iff_one_lt_left hb).2 h.not_lt),
Expand Down

0 comments on commit 618447f

Please sign in to comment.