Skip to content

Commit 7a05698

Browse files
committed
feat: x ↦ x / a tendsto to infinity in (#6914)
and a few lemmas missing from `Order.Filter.AtTopBot`.
1 parent 80b90ea commit 7a05698

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Mathlib/Analysis/SpecificLimits/Basic.lean

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,4 +638,8 @@ theorem tendsto_nat_ceil_div_atTop : Tendsto (fun x => (⌈x⌉₊ : R) / x) atT
638638
simpa using tendsto_nat_ceil_mul_div_atTop (zero_le_one' R)
639639
#align tendsto_nat_ceil_div_at_top tendsto_nat_ceil_div_atTop
640640

641+
lemma Nat.tendsto_div_const_atTop {n : ℕ} (hn : n ≠ 0) : Tendsto (λ x ↦ x / n) atTop atTop := by
642+
simp_rw [←@Nat.floor_div_eq_div ℚ]
643+
exact tendsto_nat_floor_atTop.comp (tendsto_nat_cast_atTop_atTop.atTop_div_const $ by positivity)
644+
641645
end

Mathlib/Order/Filter/AtTopBot.lean

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,6 +1059,12 @@ theorem tendsto_mul_const_atTop_of_pos (hr : 0 < r) :
10591059
simpa only [mul_comm] using tendsto_const_mul_atTop_of_pos hr
10601060
#align filter.tendsto_mul_const_at_top_of_pos Filter.tendsto_mul_const_atTop_of_pos
10611061

1062+
/-- If `r` is a positive constant, then `x ↦ f x * r` tends to infinity along a filter if and only
1063+
if `f` tends to infinity along the same filter. -/
1064+
lemma tendsto_div_const_atTop_of_pos (hr : 0 < r) :
1065+
Tendsto (λ x ↦ f x / r) l atTop ↔ Tendsto f l atTop := by
1066+
simpa only [div_eq_mul_inv] using tendsto_mul_const_atTop_of_pos (inv_pos.2 hr)
1067+
10621068
/-- If `f` tends to infinity along a nontrivial filter `l`, then `fun x ↦ r * f x` tends to infinity
10631069
if and only if `0 < r. `-/
10641070
theorem tendsto_const_mul_atTop_iff_pos [NeBot l] (h : Tendsto f l atTop) :
@@ -1075,6 +1081,12 @@ theorem tendsto_mul_const_atTop_iff_pos [NeBot l] (h : Tendsto f l atTop) :
10751081
simp only [mul_comm _ r, tendsto_const_mul_atTop_iff_pos h]
10761082
#align filter.tendsto_mul_const_at_top_iff_pos Filter.tendsto_mul_const_atTop_iff_pos
10771083

1084+
/-- If `f` tends to infinity along a nontrivial filter `l`, then `x ↦ f x * r` tends to infinity
1085+
if and only if `0 < r. `-/
1086+
lemma tendsto_div_const_atTop_iff_pos [NeBot l] (h : Tendsto f l atTop) :
1087+
Tendsto (λ x ↦ f x / r) l atTop ↔ 0 < r := by
1088+
simp only [div_eq_mul_inv, tendsto_mul_const_atTop_iff_pos h, inv_pos]
1089+
10781090
/-- If a function tends to infinity along a filter, then this function multiplied by a positive
10791091
constant (on the left) also tends to infinity. For a version working in `ℕ` or `ℤ`, use
10801092
`filter.tendsto.const_mul_atTop'` instead. -/

0 commit comments

Comments
 (0)