Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Egorov's theorem: closed set of uniform convergence on Rn\mathbb{R}^nRn

Proved
EgorovsTheorem.egorov_closed_refinement

by LG · Nov 18, 2026 · Mathlib 0df444a (Lean v4.33.1)

measure-theoryreal-analysis

Egorov's theorem on Rn\mathbb R^nRn with a closed set of uniform convergence — the refinement stated in the MathWorld entry. Let n∈Nn\in\mathbb Nn∈N, let E⊆RnE\subseteq\mathbb R^nE⊆Rn be measurable for the Borel or the Lebesgue σ-algebra, with Lebesgue measure vol(E)<∞\mathrm{vol}(E)<\inftyvol(E)<∞, and let (fk)(f_k)(fk​) be extended-real-valued functions on EEE, each measurable (for the corresponding σ-algebra) and finite almost everywhere on EEE, converging almost everywhere on EEE to a finite limit ggg. Then for every ε>0\varepsilon>0ε>0 there exists a closed set A⊆EA\subseteq EA⊆E with

vol(E∖A)<ε\mathrm{vol}(E\setminus A)<\varepsilonvol(E∖A)<ε

such that (fk)(f_k)(fk​) converges uniformly to ggg on AAA, in the same ε\varepsilonε-NNN sense as the main theorem: for every δ>0\delta>0δ>0 there is NNN with g(x)−δ<fk(x)<g(x)+δg(x)-\delta<f_k(x)<g(x)+\deltag(x)−δ<fk​(x)<g(x)+δ for all k≥Nk\ge Nk≥N and all x∈Ax\in Ax∈A.

This is the second assertion of the MathWorld entry: when X=RnX=\mathbb R^nX=Rn and the σ-algebra is the class of Borel sets or the class of Lebesgue measurable sets, the set AAA of the main theorem can be chosen closed. It strengthens the general theorem by adding topological regularity of the retained set, while specializing to Lebesgue measure on Rn\mathbb R^nRn.

Formalization Note. Rn\mathbb R^nRn is EuclideanSpace ℝ (Fin n) and the measure is volume (Lebesgue measure), the standard reading of the entry. NullMeasurableSet E volume covers both σ-algebra cases (Borel sets and sets in the Lebesgue completion); AEMeasurable (f k) (volume.restrict E) expresses Lebesgue measurability of the functions, which every Borel-measurable function satisfies. The conclusion asserts IsClosed A; closed sets are Borel, so no separate measurability conjunct is needed. The case n=0n=0n=0 is allowed.

Preamble
import Mathlib

open MeasureTheory Filter Topology Set
Formal statement
namespace EgorovsTheorem

theorem egorov_closed_refinement
    (n : ℕ)
    (E : Set (EuclideanSpace ℝ (Fin n)))
    (hE : NullMeasurableSet E volume)
    (hμE : volume E < ⊤)
    (f : ℕ → EuclideanSpace ℝ (Fin n) → EReal)
    (hf : ∀ k, AEMeasurable (f k) (volume.restrict E))
    (hf_fin : ∀ k, ∀ᵐ x ∂(volume.restrict E), f k x ≠ ⊥ ∧ f k x ≠ ⊤)
    (g : EuclideanSpace ℝ (Fin n) → EReal)
    (hconv : ∀ᵐ x ∂(volume.restrict E), g x ≠ ⊥ ∧ g x ≠ ⊤ ∧
      Tendsto (fun k => f k x) atTop (𝓝 (g x))) :
    ∀ ε : ℝ, 0 < ε → ∃ A : Set (EuclideanSpace ℝ (Fin n)), A ⊆ E ∧ IsClosed A ∧
      volume (E \ A) < ENNReal.ofReal ε ∧
      ∀ δ : ℝ, 0 < δ → ∃ N : ℕ, ∀ k ≥ N, ∀ x ∈ A,
        g x - (δ : EReal) < f k x ∧ f k x < g x + (δ : EReal) := by sorry

end EgorovsTheorem
Source
https://mathworld.wolfram.com/EgorovsTheorem.html — MathWorld, "Egorov's Theorem" (entry contributed by Alexis Humphreys), second paragraph (closed-set refinement); the entry cites Wheeden & Zygmund, Measure and Integral: An Introduction to Real Analysis (Dekker, 1977).
Read-back

What the Lean code literally says, in plain math · Qwen (captain model, blind code-only pass; no independent sub-agent available in this environment)

Fix a natural number nnn (zero allowed). The ambient space is Rn\mathbb R^nRn realized as EuclideanSpace ℝ (Fin n), with its Euclidean topology, Borel σ-algebra, and Lebesgue measure volume (for n=0n=0n=0 this is a one-point space). Fix a set E⊆RnE\subseteq\mathbb R^nE⊆Rn with:

  1. NullMeasurableSet E volume: EEE is a union T∪NT\cup NT∪N where TTT is Borel-measurable and NNN is contained in a Borel set of volume-measure zero — equivalently, EEE is measurable in the completion of the Borel σ-algebra under Lebesgue measure (a Lebesgue-measurable set; every Borel set satisfies this).
  2. volume E < ⊤: the Lebesgue measure of EEE is strictly finite.

Fix f:N→(Rn→R‾)f:\mathbb N\to(\mathbb R^n\to\overline{\mathbb R})f:N→(Rn→R) and g:Rn→R‾g:\mathbb R^n\to\overline{\mathbb R}g:Rn→R (with R‾=[−∞,+∞]\overline{\mathbb R}=[-\infty,+\infty]R=[−∞,+∞], Lean's EReal, in its order topology) such that:

  1. for every kkk, AEMeasurable (f k) (volume.restrict E): fkf_kfk​ agrees, almost everywhere with respect to Lebesgue measure restricted to EEE, with some Borel-measurable function Rn→R‾\mathbb R^n\to\overline{\mathbb R}Rn→R (Lebesgue measurability on EEE; every Borel-measurable function satisfies this);
  2. for every kkk, for almost every xxx with respect to volume.restrict E, fk(x)≠−∞f_k(x)\neq-\inftyfk​(x)=−∞ and fk(x)≠+∞f_k(x)\neq+\inftyfk​(x)=+∞;
  3. for almost every xxx with respect to volume.restrict E: g(x)≠±∞g(x)\neq\pm\inftyg(x)=±∞ and fk(x)→g(x)f_k(x)\to g(x)fk​(x)→g(x) in the order topology of R‾\overline{\mathbb R}R.

The conclusion asserts that for every real ε>0\varepsilon>0ε>0 there exists a set A⊆RnA\subseteq\mathbb R^nA⊆Rn such that:

  • A⊆EA\subseteq EA⊆E;
  • AAA is closed in the Euclidean topology (IsClosed A); no separate measurability conjunct is stated (closed sets are Borel);
  • volume (E \ A) < ENNReal.ofReal ε, a strict inequality with the real ε\varepsilonε embedded into [0,∞][0,\infty][0,∞];
  • for every real δ>0\delta>0δ>0 there exists N∈NN\in\mathbb NN∈N such that for all k≥Nk\ge Nk≥N and all x∈Ax\in Ax∈A: g(x)−δ<fk(x)<g(x)+δg(x)-\delta<f_k(x)<g(x)+\deltag(x)−δ<fk​(x)<g(x)+δ in R‾\overline{\mathbb R}R, with δ\deltaδ coerced to a finite extended real.

Edge cases: n=0n=0n=0 is included; E=∅E=\emptysetE=∅ or volume E = 0 are allowed — then the almost-everywhere hypotheses are vacuous and the closed set A=∅A=\emptysetA=∅ satisfies the conclusion. As in the general statement, the final inequalities force ggg to be finite at every point of AAA and fkf_kfk​ to be finite on AAA for k≥Nk\ge Nk≥N; earlier terms are unconstrained. No measurability of ggg is assumed. The measure is specifically Lebesgue measure (volume), not an arbitrary measure; the measurability hypotheses use the Borel σ-algebra with the completion-based relaxations described above.

Human review
  • Endorsed by Shuze Chen · Nov 18, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Nov 18, 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