|
|
|
|
Quelle IndicatorConstPointwise.lean
Sprache: Lean
|
|
/-
Copyright (c) 2023 Kalle Kytölä. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kalle Kytölä
-/
module
public import Mathlib.Algebra.Notation.Indicator
public import Mathlib.Topology.Separation.Basic
/-!
# Pointwise convergence of indicator functions
In this file, we prove the equivalence of three different ways to phrase that the indicator
functions of sets converge pointwise.
## Main results
For `A` a set, `(Asᵢ)` an indexed collection of sets, under mild conditions, the following are
equivalent:
(a) the indicator functions of `Asᵢ` tend to the indicator function of `A` pointwise;
(b) for every `x`, we eventually have that `x ∈ Asᵢ` holds iff `x ∈ A` holds;
(c) `Tendsto As _ <| Filter.pi (pure <| · ∈ A)`.
The results stating these in the case when the indicators take values in a Fréchet space are:
* `tendsto_indicator_const_iff_forall_eventually` is the equivalence (a) ↔ (b);
* `tendsto_indicator_const_iff_tendsto_pi_pure` is the equivalence (a) ↔ (c).
-/
public section
open Filter
open scoped Topology
variable {α : Type*} {A : Set α}
variable {β : Type*} [Zero β] [TopologicalSpace β]
variable {ι : Type*} (L : Filter ι) {As : ι → Set α}
lemma tendsto_ite {β : Type*} {p : ι → Prop} [DecidablePred p] {q : Prop} [Decidable q]
{a b : β} {F G : Filter β}
(haG : {a}ᶜ ∈ G) (hbF : {b}ᶜ ∈ F) (haF : principal {a} ≤ F) (hbG : principal {b} ≤ G) :
Tendsto (fun i ↦ if p i then a else b) L (if q then F else G) ↔ ∀ᶠ i in L, p i ↔ q := by
constructor <;> intro h
· by_cases hq : q
· simp only [hq, ite_true] at h
filter_upwards [mem_map.mp (h hbF)] with i hi
simp only [Set.preimage_compl, Set.mem_compl_iff, Set.mem_preimage, Set.mem_singleton_iff,
ite_eq_right_iff, not_forall, exists_prop] at hi
tauto
· simp only [hq, ite_false] at h
filter_upwards [mem_map.mp (h haG)] with i hi
simp only [Set.preimage_compl, Set.mem_compl_iff, Set.mem_preimage, Set.mem_singleton_iff,
ite_eq_left_iff, not_forall, exists_prop] at hi
tauto
· have obs : (fun _ ↦ if q then a else b) =ᶠ[L] (fun i ↦ if p i then a else b) := by
filter_upwards [h] with i hi
simp only [hi]
apply Tendsto.congr' obs
by_cases hq : q
· simp only [hq, ite_true]
apply le_trans _ haF
simp
· simp only [hq, ite_false]
apply le_trans _ hbG
simp only [principal_singleton, le_pure_iff, mem_map, Set.mem_singleton_iff,
Set.preimage_const_of_mem, univ_mem]
lemma tendsto_indicator_const_apply_iff_eventually' (b : β)
(nhds_b : {0}ᶜ ∈ b) (nhds_o : {b}ᶜ ∈ 0) (x : α) :
Tendsto (fun i ↦ (As i).indicator (fun (_ : α) ↦ b) x) L ( (A.indicator (fun (_ : α) ↦ b) x))
↔ ∀ᶠ i in L, (x ∈ As i ↔ x ∈ A) := by
classical
have heart := @tendsto_ite ι L β (fun i ↦ x ∈ As i) _ (x ∈ A) _ b 0 ( b) ( (0 : β))
nhds_o nhds_b ?_ ?_
· convert! heart
by_cases hxA : x ∈ A <;> simp [hxA]
· simp only [principal_singleton, le_def, mem_pure]
exact fun s s_nhds ↦ mem_of_mem_nhds s_nhds
· simp only [principal_singleton, le_def, mem_pure]
exact fun s s_nhds ↦ mem_of_mem_nhds s_nhds
lemma tendsto_indicator_const_iff_forall_eventually'
(b : β) (nhds_b : {0}ᶜ ∈ b) (nhds_o : {b}ᶜ ∈ 0) :
Tendsto (fun i ↦ (As i).indicator (fun (_ : α) ↦ b)) L ( (A.indicator (fun (_ : α) ↦ b)))
↔ ∀ x, ∀ᶠ i in L, (x ∈ As i ↔ x ∈ A) := by
simp_rw [tendsto_pi_nhds]
apply forall_congr'
exact tendsto_indicator_const_apply_iff_eventually' L b nhds_b nhds_o
/-- The indicator functions of `Asᵢ` evaluated at `x` tend to the indicator function of `A`
evaluated at `x` if and only if we eventually have the equivalence `x ∈ Asᵢ ↔ x ∈ A`. -/
@[simp] lemma tendsto_indicator_const_apply_iff_eventually [T1Space β] (b : β) [NeZero b]
(x : α) :
Tendsto (fun i ↦ (As i).indicator (fun (_ : α) ↦ b) x) L ( (A.indicator (fun (_ : α) ↦ b) x))
↔ ∀ᶠ i in L, (x ∈ As i ↔ x ∈ A) := by
apply tendsto_indicator_const_apply_iff_eventually' _ b
· simp only [compl_singleton_mem_nhds_iff, ne_eq, NeZero.ne, not_false_eq_true]
· simp only [compl_singleton_mem_nhds_iff, ne_eq, (NeZero.ne b).symm, not_false_eq_true]
/-- The indicator functions of `Asᵢ` tend to the indicator function of `A` pointwise if and only if
for every `x`, we eventually have the equivalence `x ∈ Asᵢ ↔ x ∈ A`. -/
@[simp] lemma tendsto_indicator_const_iff_forall_eventually [T1Space β] (b : β) [NeZero b] :
Tendsto (fun i ↦ (As i).indicator (fun (_ : α) ↦ b)) L ( (A.indicator (fun (_ : α) ↦ b)))
↔ ∀ x, ∀ᶠ i in L, (x ∈ As i ↔ x ∈ A) := by
apply tendsto_indicator_const_iff_forall_eventually' _ b
· simp only [compl_singleton_mem_nhds_iff, ne_eq, NeZero.ne, not_false_eq_true]
· simp only [compl_singleton_mem_nhds_iff, ne_eq, (NeZero.ne b).symm, not_false_eq_true]
lemma tendsto_indicator_const_iff_tendsto_pi_pure'
(b : β) (nhds_b : {0}ᶜ ∈ b) (nhds_o : {b}ᶜ ∈ 0) :
Tendsto (fun i ↦ (As i).indicator (fun (_ : α) ↦ b)) L ( (A.indicator (fun (_ : α) ↦ b)))
↔ (Tendsto (fun i x ↦ x ∈ As i) L <| Filter.pi (pure <| · ∈ A)) := by
rw [tendsto_indicator_const_iff_forall_eventually' _ b nhds_b nhds_o, tendsto_pi]
simp_rw [tendsto_pure]
aesop
lemma tendsto_indicator_const_iff_tendsto_pi_pure [T1Space β] (b : β) [NeZero b] :
Tendsto (fun i ↦ (As i).indicator (fun (_ : α) ↦ b)) L ( (A.indicator (fun (_ : α) ↦ b)))
↔ (Tendsto (fun i x ↦ x ∈ As i) L <| Filter.pi (pure <| · ∈ A)) := by
rw [tendsto_indicator_const_iff_forall_eventually _ b, tendsto_pi]
simp_rw [tendsto_pure]
aesop
¤ Dauer der Verarbeitung: 0.9 Sekunden
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|
|
|
|
|