math / data /lean /OAI /Probability /ContinuumTransition /CompactSequences.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
1.16 kB
import OAI.Probability.ContinuumTransition.ConvexUniform
namespace OAI
universe u_1
section
open scoped Topology
open Set Filter
namespace ContinuumTemperature
lemma eventually_of_subseq (P : β„• β†’ Prop)
(h : βˆ€ Ο† : β„• β†’ β„•, StrictMono Ο† β†’ βˆƒ ψ : β„• β†’ β„•, StrictMono ψ ∧ βˆ€αΆ  n in atTop, P (Ο† (ψ n))) :
βˆ€αΆ  n in atTop, P n := by
by_contra hh
obtain βŸ¨Ο†,hΟ†,hbad⟩ := extraction_of_frequently_atTop (not_eventually.mp hh)
obtain ⟨ψ,_,hgood⟩ := h Ο† hΟ†
obtain ⟨n,hn⟩ := hgood.exists
exact hbad (ψ n) hn
lemma metric_tendsto_of_subseq {E : Type u_1} [PseudoMetricSpace E] {u : β„• β†’ E} {x : E}
(h : βˆ€ Ο† : β„• β†’ β„•, StrictMono Ο† β†’ βˆƒ ψ : β„• β†’ β„•, StrictMono ψ ∧
Tendsto (fun n => u (Ο† (ψ n))) atTop (𝓝 x)) : Tendsto u atTop (𝓝 x) := by
apply Metric.tendsto_atTop.mpr
intro Ξ΅ hΞ΅
have hh : βˆ€αΆ  n in atTop, dist (u n) x < Ξ΅ := by
apply eventually_of_subseq
intro φ hφ
obtain ⟨ψ,hψ,ht⟩ := h Ο† hΟ†
exact ⟨ψ,hψ,ht.eventually (Metric.ball_mem_nhds x hΡ)⟩
exact eventually_atTop.mp hh
end ContinuumTemperature
end
end OAI