Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 7.11 — interchanging two limits

Proved
Rudin.ch07_interchange_limits

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

analysis

Suppose fn→gf_n \to gfn​→g uniformly on EEE, xxx is a limit point of EEE, and lim⁡t→xfn(t)=An\lim_{t \to x} f_n(t) = A_nlimt→x​fn​(t)=An​ for each nnn. Then {An}\{A_n\}{An​} converges and lim⁡t→xg(t)=lim⁡nAn\lim_{t \to x} g(t) = \lim_n A_nlimt→x​g(t)=limn​An​; in other words the two limit operations commute.

Preamble
import Mathlib
import Definitions.Def_Rudin_ch07_families

open Filter Topology
Formal statement
namespace Rudin

/-- Rudin, Theorem 7.11: if `f n → g` uniformly on `E`, `x` is a limit point of `E`, and
`f n t → A n` as `t → x` within `E`, then `A n` converges and `g t → lim A n` as `t → x`;
that is, the two limit operations may be interchanged. -/
theorem ch07_interchange_limits {X : Type*} [MetricSpace X] (E : Set X) (f : ℕ → X → ℂ)
    (g : X → ℂ) (A : ℕ → ℂ) (x : X) (hx : x ∈ closure (E \ {x}))
    (huc : TendstoUniformlyOn f g atTop E)
    (hA : ∀ n, Tendsto (f n) (𝓝[E \ {x}] x) (𝓝 (A n))) :
    ∃ L : ℂ, Tendsto A atTop (𝓝 L) ∧ Tendsto g (𝓝[E \ {x}] x) (𝓝 L) := by sorry

end Rudin
Source
Walter Rudin, Principles of Mathematical Analysis, 3rd edition, McGraw-Hill, 1976, Chapter 7, p. 149, Theorem 7.11
Read-back

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

Let XXX be a metric space, E⊆XE \subseteq XE⊆X, let f0,f1,⋯:X→Cf_0,f_1,\dots : X \to \mathbb{C}f0​,f1​,⋯:X→C, g:X→Cg : X \to \mathbb{C}g:X→C, A:N→CA : \mathbb{N} \to \mathbb{C}A:N→C and x∈Xx \in Xx∈X. Assume:

  • xxx lies in the closure of E∖{x}E \setminus \{x\}E∖{x} (equivalently, xxx is a limit point of EEE);
  • fn→gf_n \to gfn​→g uniformly on EEE;
  • for every nnn, fn(t)→Anf_n(t) \to A_nfn​(t)→An​ as t→xt \to xt→x through the points of EEE other than xxx.

Then there exists L∈CL \in \mathbb{C}L∈C such that both

An→n→∞Landg(t)→t→x, t∈E∖{x}L.A_n \xrightarrow[n\to\infty]{} L \qquad\text{and}\qquad g(t) \xrightarrow[t \to x,\ t \in E\setminus\{x\}]{} L .An​n→∞​Landg(t)t→x, t∈E∖{x}​L.

So the sequence of limit values converges and the limit function has the same limit at xxx along the punctured set. The value g(x)g(x)g(x) itself plays no role.

Human review
  • Endorsed by Shuze Chen · Sep 13, 2026

  • Endorsed by Lucas · Sep 13, 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, licensed under Apache 2.0.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTermsJoin SlackJoin Zulip© 2026 Prove2Me