@@ -3,10 +3,12 @@ Copyright (c) 2017 Johannes Hölzl. All rights reserved.
33Released under Apache 2.0 license as described in the file LICENSE.
44Authors: Johannes Hölzl, Jeremy Avigad, Yury Kudryashov, Patrick Massot
55-/
6+ import Mathlib.Data.Finset.Order
67import Mathlib.Data.Finset.Preimage
78import Mathlib.Order.Filter.AtTopBot.Tendsto
89import Mathlib.Order.Filter.AtTopBot.Basic
910import Mathlib.Order.Filter.Finite
11+ import Mathlib.Order.Interval.Finset.Defs
1012
1113/-!
1214# `Filter.atTop` and `Filter.atBot` filters and finite sets.
@@ -70,4 +72,19 @@ theorem tendsto_finset_powerset_atTop_atTop : Tendsto (Finset.powerset (α := α
7072 refine tendsto_atTop_atTop.mpr fun t ↦ ⟨t.sup id, fun _ hu _ hv ↦ ?_⟩
7173 exact Finset.mem_powerset.mpr <| (Finset.le_sup_of_le hv fun _ h ↦ h).trans hu
7274
75+ theorem tendsto_finset_Iic_atTop_atTop [Preorder α] [LocallyFiniteOrderBot α] :
76+ Tendsto (Finset.Iic (α := α)) atTop atTop := by
77+ rcases isEmpty_or_nonempty α with _ | _
78+ · exact tendsto_of_isEmpty
79+ by_cases h : IsDirected α (· ≤ ·)
80+ · refine tendsto_atTop_atTop.mpr fun s ↦ ?_
81+ obtain ⟨a, ha⟩ := Finset.exists_le s
82+ exact ⟨a, fun b hb c hc ↦ by simpa using (ha c hc).trans hb⟩
83+ · obtain h := Filter.atTop_neBot_iff.not.mpr (fun h' ↦ h h'.2 )
84+ simp [not_ne_iff.mp <| Filter.neBot_iff.not.mp h]
85+
86+ theorem tendsto_finset_Ici_atBot_atTop [Preorder α] [LocallyFiniteOrderTop α] :
87+ Tendsto (Finset.Ici (α := α)) atBot atTop :=
88+ tendsto_finset_Iic_atTop_atTop (α := αᵒᵈ)
89+
7390end Filter
0 commit comments