Skip to content

Commit 656cef1

Browse files
committed
feat: Simple lemmas about convergence in WithTop (leanprover-community#33374)
1 parent 16635ad commit 656cef1

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Mathlib/Topology/Order/WithTop.lean

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,4 +255,21 @@ def sumHomeomorph [OrderTop ι] : WithTop ι ≃ₜ ι ⊕ Unit where
255255
exact Continuous.comp_continuousOn (by fun_prop) continuousOn_untopA
256256
continuous_invFun := continuous_sum_dom.mpr ⟨by fun_prop, by fun_prop⟩
257257

258+
lemma tendsto_nhds_top_iff {α : Type*} {f : Filter α} (x : α → WithTop ι) :
259+
Tendsto x f (𝓝 ⊤) ↔ ∀ (i : ι), ∀ᶠ (a : α) in f, i < x a := by
260+
obtain (h | h) := isEmpty_or_nonempty ι
261+
· simpa using .of_forall fun _ ↦ Subsingleton.elim ..
262+
refine nhds_top_basis.tendsto_right_iff.trans ?_
263+
rw [← Set.forall_mem_range (p := (∀ᶠ a in f, · < x a)), WithTop.range_coe]
264+
simp
265+
266+
lemma tendsto_coe_atTop [NoMaxOrder ι] :
267+
Tendsto ((↑) : ι → WithTop ι) atTop (𝓝 ⊤) := by
268+
obtain (h | h) := isEmpty_or_nonempty ι
269+
· simpa using Subsingleton.elim ..
270+
rw [tendsto_nhds_top_iff]
271+
intro i
272+
filter_upwards [atTop_basis_Ioi.mem_of_mem (i := i) trivial]
273+
simp
274+
258275
end WithTop

0 commit comments

Comments
 (0)