Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3.17 — characterization of the upper limit

Proved
Rudin.ch03_limsup_characterization

by LG · Sep 12, 2026 · Mathlib 0df444a (Lean v4.33.1)

analysis

Let {sn}\{s_n\}{sn​} be a sequence of real numbers and let s∗s^{*}s∗ be its upper limit in [−∞,+∞][-\infty, +\infty][−∞,+∞]. Then (a) s∗s^{*}s∗ is a subsequential limit of {sn}\{s_n\}{sn​}, and (b) if x>s∗x > s^{*}x>s∗ then there is an NNN with sn<xs_n < xsn​<x for all n≥Nn \ge Nn≥N. Moreover s∗s^{*}s∗ is the only extended real number with properties (a) and (b).

Preamble
import Mathlib
import Definitions.Def_Rudin_ch03_series

open Filter Topology
Formal statement
namespace Rudin

/-- Rudin, Theorem 3.17: let `s` be a sequence of real numbers and let `s*` be its upper limit
in the extended real number system.  Then (a) `s*` is a subsequential limit of `s`, and (b) if
`x > s*` then `s n < x` for all large `n`; moreover `s*` is the only extended real number with
these two properties. -/
theorem ch03_limsup_characterization (s : ℕ → ℝ) :
    (∃ φ : ℕ → ℕ, StrictMono φ ∧
        Tendsto (fun k => ((s (φ k) : ℝ) : EReal)) atTop
          (𝓝 (limsup (fun n => ((s n : ℝ) : EReal)) atTop))) ∧
    (∀ x : EReal, limsup (fun n => ((s n : ℝ) : EReal)) atTop < x →
        ∃ N, ∀ n ≥ N, ((s n : ℝ) : EReal) < x) ∧
    (∀ y : EReal,
        ((∃ φ : ℕ → ℕ, StrictMono φ ∧ Tendsto (fun k => ((s (φ k) : ℝ) : EReal)) atTop (𝓝 y)) ∧
          (∀ x : EReal, y < x → ∃ N, ∀ n ≥ N, ((s n : ℝ) : EReal) < x)) →
        y = limsup (fun n => ((s n : ℝ) : EReal)) atTop) := by sorry

end Rudin
Source
Walter Rudin, Principles of Mathematical Analysis, 3rd edition, McGraw-Hill, 1976, Chapter 3, p. 54, Definition 3.16 and Theorem 3.17
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic)

Let s:N→Rs : \mathbb{N} \to \mathbb{R}s:N→R be any sequence of real numbers. Each sns_nsn​ is regarded as an element of the extended reals R‾=[−∞,+∞]\overline{\mathbb{R}} = [-\infty, +\infty]R=[−∞,+∞], and L=lim sup⁡n→∞snL = \limsup_{n\to\infty} s_nL=limsupn→∞​sn​ is computed there (so LLL always exists, possibly ±∞\pm\infty±∞). Three assertions are made together:

  1. LLL is attained along a subsequence. There is a strictly increasing map φ:N→N\varphi : \mathbb{N} \to \mathbb{N}φ:N→N such that sφ(k)→Ls_{\varphi(k)} \to Lsφ(k)​→L in R‾\overline{\mathbb{R}}R as k→∞k \to \inftyk→∞.

  2. Nothing exceeds LLL eventually. For every x∈R‾x \in \overline{\mathbb{R}}x∈R with L<xL < xL<x, there is an NNN such that sn<xs_n < xsn​<x for all n≥Nn \ge Nn≥N.

  3. Only LLL has both properties. For every y∈R‾y \in \overline{\mathbb{R}}y∈R: if there is a strictly increasing φ\varphiφ with sφ(k)→ys_{\varphi(k)} \to ysφ(k)​→y, and for every x∈R‾x \in \overline{\mathbb{R}}x∈R with y<xy < xy<x there is NNN with sn<xs_n < xsn​<x for all n≥Nn \ge Nn≥N, then y=Ly = Ly=L.

Convergence in 1 and 3 is convergence in the order topology of the extended reals, so it includes divergence to ±∞\pm\infty±∞. The sequence sss is arbitrary: unbounded and non-convergent sequences are covered.

Human review
  • Endorsed by Community (Bot) · Sep 14, 2026

  • Endorsed by LG · Sep 14, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me