Theorem: Monotone.tendsto_nhdsWithin_Iio
File: Mathlib/Topology/Order/Monotone.lean

tactic: rcases eq_empty_or_nonempty (Iio x) with (h | h)
state_before: α✝ : Type u_1
β✝ : Type u_2
γ : Type u_3
inst✝¹² : ConditionallyCompleteLinearOrder α✝
inst✝¹¹ : TopologicalSpace α✝
inst✝¹⁰ : OrderTopology α✝
inst✝⁹ : ConditionallyCompleteLinearOrder β✝
inst✝⁸ : TopologicalSpace β✝
inst✝⁷ : OrderClosedTopology β✝
inst✝⁶ : Nonempty γ
α : Type u_4
β : Type u_5
inst✝⁵ : LinearOrder α
inst✝⁴ : TopologicalSpace α
inst✝³ : OrderTopology α
inst✝² : ConditionallyCompleteLinearOrder β
inst✝¹ : TopologicalSpace β
inst✝ : OrderTopology β
f : α → β
Mf : Monotone f
x : α
⊢ Tendsto f (𝓝[<] x) (𝓝 (sSup (f '' Iio x)))
state_after: case inl
α✝ : Type u_1
β✝ : Type u_2
γ : Type u_3
inst✝¹² : ConditionallyCompleteLinearOrder α✝
inst✝¹¹ : TopologicalSpace α✝
inst✝¹⁰ : OrderTopology α✝
inst✝⁹ : ConditionallyCompleteLinearOrder β✝
inst✝⁸ : TopologicalSpace β✝
inst✝⁷ : OrderClosedTopology β✝
inst✝⁶ : Nonempty γ
α : Type u_4
β : Type u_5
inst✝⁵ : LinearOrder α
inst✝⁴ : TopologicalSpace α
inst✝³ : OrderTopology α
inst✝² : ConditionallyCompleteLinearOrder β
inst✝¹ : TopologicalSpace β
inst✝ : OrderTopology β
f : α → β
Mf : Monotone f
x : α
h : Iio x = ∅
⊢ Tendsto f (𝓝[<] x) (𝓝 (sSup (f '' Iio x)))

case inr
α✝ : Type u_1
β✝ : Type u_2
γ : Type u_3
inst✝¹² : ConditionallyCompleteLinearOrder α✝
inst✝¹¹ : TopologicalSpace α✝
inst✝¹⁰ : OrderTopology α✝
inst✝⁹ : ConditionallyCompleteLinearOrder β✝
inst✝⁸ : TopologicalSpace β✝
inst✝⁷ : OrderClosedTopology β✝
inst✝⁶ : Nonempty γ
α : Type u_4
β : Type u_5
inst✝⁵ : LinearOrder α
inst✝⁴ : TopologicalSpace α
inst✝³ : OrderTopology α
inst✝² : ConditionallyCompleteLinearOrder β
inst✝¹ : TopologicalSpace β
inst✝ : OrderTopology β
f : α → β
Mf : Monotone f
x : α
h : (Iio x).Nonempty
⊢ Tendsto f (𝓝[<] x) (𝓝 (sSup (f '' Iio x)))

tactic: refine tendsto_order.2 ⟨fun l hl => ?_, fun m hm => ?_⟩
state_before: case inr
α✝ : Type u_1
β✝ : Type u_2
γ : Type u_3
inst✝¹² : ConditionallyCompleteLinearOrder α✝
inst✝¹¹ : TopologicalSpace α✝
inst✝¹⁰ : OrderTopology α✝
inst✝⁹ : ConditionallyCompleteLinearOrder β✝
inst✝⁸ : TopologicalSpace β✝
inst✝⁷ : OrderClosedTopology β✝
inst✝⁶ : Nonempty γ
α : Type u_4
β : Type u_5
inst✝⁵ : LinearOrder α
inst✝⁴ : TopologicalSpace α
inst✝³ : OrderTopology α
inst✝² : ConditionallyCompleteLinearOrder β
inst✝¹ : TopologicalSpace β
inst✝ : OrderTopology β
f : α → β
Mf : Monotone f
x : α
h : (Iio x).Nonempty
⊢ Tendsto f (𝓝[<] x) (𝓝 (sSup (f '' Iio x)))
state_after: case inr.refine_1
α✝ : Type u_1
β✝ : Type u_2
γ : Type u_3
inst✝¹² : ConditionallyCompleteLinearOrder α✝
inst✝¹¹ : TopologicalSpace α✝
inst✝¹⁰ : OrderTopology α✝
inst✝⁹ : ConditionallyCompleteLinearOrder β✝
inst✝⁸ : TopologicalSpace β✝
inst✝⁷ : OrderClosedTopology β✝
inst✝⁶ : Nonempty γ
α : Type u_4
β : Type u_5
inst✝⁵ : LinearOrder α
inst✝⁴ : TopologicalSpace α
inst✝³ : OrderTopology α
inst✝² : ConditionallyCompleteLinearOrder β
inst✝¹ : TopologicalSpace β
inst✝ : OrderTopology β
f : α → β
Mf : Monotone f
x : α
h : (Iio x).Nonempty
l : β
hl : l < sSup (f '' Iio x)
⊢ ∀ᶠ (b : α) in 𝓝[<] x, l < f b

case inr.refine_2
α✝ : Type u_1
β✝ : Type u_2
γ : Type u_3
inst✝¹² : ConditionallyCompleteLinearOrder α✝
inst✝¹¹ : TopologicalSpace α✝
inst✝¹⁰ : OrderTopology α✝
inst✝⁹ : ConditionallyCompleteLinearOrder β✝
inst✝⁸ : TopologicalSpace β✝
inst✝⁷ : OrderClosedTopology β✝
inst✝⁶ : Nonempty γ
α : Type u_4
β : Type u_5
inst✝⁵ : LinearOrder α
inst✝⁴ : TopologicalSpace α
inst✝³ : OrderTopology α
inst✝² : ConditionallyCompleteLinearOrder β
inst✝¹ : TopologicalSpace β
inst✝ : OrderTopology β
f : α → β
Mf : Monotone f
x : α
h : (Iio x).Nonempty
m : β
hm : m > sSup (f '' Iio x)
⊢ ∀ᶠ (b : α) in 𝓝[<] x, f b < m

tactic: simp [h]
state_before: case inl
α✝ : Type u_1
β✝ : Type u_2
γ : Type u_3
inst✝¹² : ConditionallyCompleteLinearOrder α✝
inst✝¹¹ : TopologicalSpace α✝
inst✝¹⁰ : OrderTopology α✝
inst✝⁹ : ConditionallyCompleteLinearOrder β✝
inst✝⁸ : TopologicalSpace β✝
inst✝⁷ : OrderClosedTopology β✝
inst✝⁶ : Nonempty γ
α : Type u_4
β : Type u_5
inst✝⁵ : LinearOrder α
inst✝⁴ : TopologicalSpace α
inst✝³ : OrderTopology α
inst✝² : ConditionallyCompleteLinearOrder β
inst✝¹ : TopologicalSpace β
inst✝ : OrderTopology β
f : α → β
Mf : Monotone f
x : α
h : Iio x = ∅
⊢ Tendsto f (𝓝[<] x) (𝓝 (sSup (f '' Iio x)))
state_after: no goals

tactic: obtain ⟨z, zx, lz⟩ : ∃ a : α, a < x ∧ l < f a := by
  simpa only [mem_image, exists_prop, exists_exists_and_eq_and] using
    exists_lt_of_lt_csSup (h.image _) hl
state_before: case inr.refine_1
α✝ : Type u_1
β✝ : Type u_2
γ : Type u_3
inst✝¹² : ConditionallyCompleteLinearOrder α✝
inst✝¹¹ : TopologicalSpace α✝
inst✝¹⁰ : OrderTopology α✝
inst✝⁹ : ConditionallyCompleteLinearOrder β✝
inst✝⁸ : TopologicalSpace β✝
inst✝⁷ : OrderClosedTopology β✝
inst✝⁶ : Nonempty γ
α : Type u_4
β : Type u_5
inst✝⁵ : LinearOrder α
inst✝⁴ : TopologicalSpace α
inst✝³ : OrderTopology α
inst✝² : ConditionallyCompleteLinearOrder β
inst✝¹ : TopologicalSpace β
inst✝ : OrderTopology β
f : α → β
Mf : Monotone f
x : α
h : (Iio x).Nonempty
l : β
hl : l < sSup (f '' Iio x)
⊢ ∀ᶠ (b : α) in 𝓝[<] x, l < f b
state_after: case inr.refine_1.intro.intro
α✝ : Type u_1
β✝ : Type u_2
γ : Type u_3
inst✝¹² : ConditionallyCompleteLinearOrder α✝
inst✝¹¹ : TopologicalSpace α✝
inst✝¹⁰ : OrderTopology α✝
inst✝⁹ : ConditionallyCompleteLinearOrder β✝
inst✝⁸ : TopologicalSpace β✝
inst✝⁷ : OrderClosedTopology β✝
inst✝⁶ : Nonempty γ
α : Type u_4
β : Type u_5
inst✝⁵ : LinearOrder α
inst✝⁴ : TopologicalSpace α
inst✝³ : OrderTopology α
inst✝² : ConditionallyCompleteLinearOrder β
inst✝¹ : TopologicalSpace β
inst✝ : OrderTopology β
f : α → β
Mf : Monotone f
x : α
h : (Iio x).Nonempty
l : β
hl : l < sSup (f '' Iio x)
z : α
zx : z < x
lz : l < f z
⊢ ∀ᶠ (b : α) in 𝓝[<] x, l < f b

tactic: exact mem_of_superset (Ioo_mem_nhdsWithin_Iio' zx) fun y hy => lz.trans_le (Mf hy.1.le)
state_before: case inr.refine_1.intro.intro
α✝ : Type u_1
β✝ : Type u_2
γ : Type u_3
inst✝¹² : ConditionallyCompleteLinearOrder α✝
inst✝¹¹ : TopologicalSpace α✝
inst✝¹⁰ : OrderTopology α✝
inst✝⁹ : ConditionallyCompleteLinearOrder β✝
inst✝⁸ : TopologicalSpace β✝
inst✝⁷ : OrderClosedTopology β✝
inst✝⁶ : Nonempty γ
α : Type u_4
β : Type u_5
inst✝⁵ : LinearOrder α
inst✝⁴ : TopologicalSpace α
inst✝³ : OrderTopology α
inst✝² : ConditionallyCompleteLinearOrder β
inst✝¹ : TopologicalSpace β
inst✝ : OrderTopology β
f : α → β
Mf : Monotone f
x : α
h : (Iio x).Nonempty
l : β
hl : l < sSup (f '' Iio x)
z : α
zx : z < x
lz : l < f z
⊢ ∀ᶠ (b : α) in 𝓝[<] x, l < f b
state_after: no goals

tactic: simpa only [mem_image, exists_prop, exists_exists_and_eq_and] using
  exists_lt_of_lt_csSup (h.image _) hl
state_before: α✝ : Type u_1
β✝ : Type u_2
γ : Type u_3
inst✝¹² : ConditionallyCompleteLinearOrder α✝
inst✝¹¹ : TopologicalSpace α✝
inst✝¹⁰ : OrderTopology α✝
inst✝⁹ : ConditionallyCompleteLinearOrder β✝
inst✝⁸ : TopologicalSpace β✝
inst✝⁷ : OrderClosedTopology β✝
inst✝⁶ : Nonempty γ
α : Type u_4
β : Type u_5
inst✝⁵ : LinearOrder α
inst✝⁴ : TopologicalSpace α
inst✝³ : OrderTopology α
inst✝² : ConditionallyCompleteLinearOrder β
inst✝¹ : TopologicalSpace β
inst✝ : OrderTopology β
f : α → β
Mf : Monotone f
x : α
h : (Iio x).Nonempty
l : β
hl : l < sSup (f '' Iio x)
⊢ ∃ a < x, l < f a
state_after: no goals

tactic: refine mem_of_superset self_mem_nhdsWithin fun _ hy => lt_of_le_of_lt ?_ hm
state_before: case inr.refine_2
α✝ : Type u_1
β✝ : Type u_2
γ : Type u_3
inst✝¹² : ConditionallyCompleteLinearOrder α✝
inst✝¹¹ : TopologicalSpace α✝
inst✝¹⁰ : OrderTopology α✝
inst✝⁹ : ConditionallyCompleteLinearOrder β✝
inst✝⁸ : TopologicalSpace β✝
inst✝⁷ : OrderClosedTopology β✝
inst✝⁶ : Nonempty γ
α : Type u_4
β : Type u_5
inst✝⁵ : LinearOrder α
inst✝⁴ : TopologicalSpace α
inst✝³ : OrderTopology α
inst✝² : ConditionallyCompleteLinearOrder β
inst✝¹ : TopologicalSpace β
inst✝ : OrderTopology β
f : α → β
Mf : Monotone f
x : α
h : (Iio x).Nonempty
m : β
hm : m > sSup (f '' Iio x)
⊢ ∀ᶠ (b : α) in 𝓝[<] x, f b < m
state_after: case inr.refine_2
α✝ : Type u_1
β✝ : Type u_2
γ : Type u_3
inst✝¹² : ConditionallyCompleteLinearOrder α✝
inst✝¹¹ : TopologicalSpace α✝
inst✝¹⁰ : OrderTopology α✝
inst✝⁹ : ConditionallyCompleteLinearOrder β✝
inst✝⁸ : TopologicalSpace β✝
inst✝⁷ : OrderClosedTopology β✝
inst✝⁶ : Nonempty γ
α : Type u_4
β : Type u_5
inst✝⁵ : LinearOrder α
inst✝⁴ : TopologicalSpace α
inst✝³ : OrderTopology α
inst✝² : ConditionallyCompleteLinearOrder β
inst✝¹ : TopologicalSpace β
inst✝ : OrderTopology β
f : α → β
Mf : Monotone f
x : α
h : (Iio x).Nonempty
m : β
hm : m > sSup (f '' Iio x)
x✝ : α
hy : x✝ ∈ Iio x
⊢ f x✝ ≤ sSup (f '' Iio x)

tactic: exact le_csSup (Mf.map_bddAbove bddAbove_Iio) (mem_image_of_mem _ hy)
state_before: case inr.refine_2
α✝ : Type u_1
β✝ : Type u_2
γ : Type u_3
inst✝¹² : ConditionallyCompleteLinearOrder α✝
inst✝¹¹ : TopologicalSpace α✝
inst✝¹⁰ : OrderTopology α✝
inst✝⁹ : ConditionallyCompleteLinearOrder β✝
inst✝⁸ : TopologicalSpace β✝
inst✝⁷ : OrderClosedTopology β✝
inst✝⁶ : Nonempty γ
α : Type u_4
β : Type u_5
inst✝⁵ : LinearOrder α
inst✝⁴ : TopologicalSpace α
inst✝³ : OrderTopology α
inst✝² : ConditionallyCompleteLinearOrder β
inst✝¹ : TopologicalSpace β
inst✝ : OrderTopology β
f : α → β
Mf : Monotone f
x : α
h : (Iio x).Nonempty
m : β
hm : m > sSup (f '' Iio x)
x✝ : α
hy : x✝ ∈ Iio x
⊢ f x✝ ≤ sSup (f '' Iio x)
state_after: no goals