Skip to content

Commit

Permalink
chore(analysis/normed_space/ordered): minor golfing (#5356)
Browse files Browse the repository at this point in the history
  • Loading branch information
urkud committed Dec 14, 2020
1 parent 2245cfb commit 91e5b8a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/analysis/normed_space/ordered.lean
Expand Up @@ -48,19 +48,17 @@ lemma tendsto_pow_div_pow_at_top_of_lt {α : Type*} [normed_linear_ordered_field
tendsto (λ (x : α), x^p / x^q) at_top (𝓝 0) :=
begin
suffices h : tendsto (λ (x : α), x ^ ((p : ℤ) - q)) at_top (𝓝 0),
{ refine (tendsto_congr' ((eventually_gt_at_top (0 : α)).mono (λ x hx, _))).mp h,
simp [fpow_sub hx.ne.symm] },
rw ← neg_sub,
rw ← int.coe_nat_sub hpq.le,
{ refine h.congr' ((eventually_gt_at_top (0 : α)).mono (λ x hx, _)),
simp [fpow_sub hx.ne'] },
rw [← neg_sub, ← int.coe_nat_sub hpq.le],
have : 1 ≤ q - p := nat.sub_pos_of_lt hpq,
exact @tendsto_pow_neg_at_top α _ _ (by apply_instance) _ this,
exact tendsto_pow_neg_at_top this
end

lemma is_o_pow_pow_at_top_of_lt {α : Type} [normed_linear_ordered_field α]
[order_topology α] {p q : ℕ} (hpq : p < q) :
is_o (λ (x : α), x^p) (λ (x : α), x^q) at_top :=
begin
refine (is_o_iff_tendsto' _).mpr (tendsto_pow_div_pow_at_top_of_lt hpq),
rw eventually_iff_exists_mem,
exact ⟨Ioi 0, Ioi_mem_at_top 0, λ x (hx : 0 < x) hxq, (pow_ne_zero q hx.ne.symm hxq).elim⟩,
exact (eventually_gt_at_top 0).mono (λ x hx hxq, (pow_ne_zero q hx.ne' hxq).elim),
end

0 comments on commit 91e5b8a

Please sign in to comment.