Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 10.2 — the order of integration is immaterial (ordered endpoints)

Proved
Rudin.ch10_iterated_integral_ordered

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

analysisintegration

Let [a,b]×[c,d]⊆R2[a,b]\times[c,d]\subseteq\mathbb{R}^2[a,b]×[c,d]⊆R2 be a 2-cell, so that a≤ba\le ba≤b and c≤dc\le dc≤d, and let fff be a real function that is continuous on this rectangle. Then the two iterated integrals of fff agree:

∫ab ⁣ ⁣(∫cdf(x,y) dy)dx  =  ∫cd ⁣ ⁣(∫abf(x,y) dx)dy.\int_a^b\!\!\left(\int_c^d f(x,y)\,dy\right)dx\;=\;\int_c^d\!\!\left(\int_a^b f(x,y)\,dx\right)dy .∫ab​(∫cd​f(x,y)dy)dx=∫cd​(∫ab​f(x,y)dx)dy.

This is Rudin's Theorem 10.2, which he states for 2-cells; in his Definition 10.1 a kkk-cell carries the ordering conditions ai≤bia_i\le b_iai​≤bi​ on its edges. The ordering hypotheses are essential for the formalized version above, because the interval integrals are oriented: if a>ba>ba>b the rectangle [a,b]×[c,d][a,b]\times[c,d][a,b]×[c,d] is empty, the continuity hypothesis becomes vacuous, and the resulting statement — an unrestricted interchange of iterated integrals for arbitrary functions — is false.

Preamble
import Mathlib

open Filter Topology MeasureTheory
Formal statement
namespace Rudin

/-- Rudin, Theorem 10.2: for a continuous function on a 2-cell the two iterated integrals agree;
the order of integration is immaterial.  The ordering hypotheses `a ≤ b` and `c ≤ d` are part of
Rudin's definition of a 2-cell and are needed here: without them the continuity hypothesis is
vacuous while the oriented interval integrals still range over a nondegenerate interval. -/
theorem ch10_iterated_integral_ordered (a b c d : ℝ) (hab : a ≤ b) (hcd : c ≤ d)
    (f : ℝ → ℝ → ℝ)
    (hf : ContinuousOn (fun p : ℝ × ℝ => f p.1 p.2) (Set.Icc a b ×ˢ Set.Icc c d)) :
    (∫ x in a..b, ∫ y in c..d, f x y) = ∫ y in c..d, ∫ x in a..b, f x y := by sorry

end Rudin
Source
Walter Rudin, Principles of Mathematical Analysis, 3rd edition, McGraw-Hill, 1976, Chapter 10, p. 246, Definition 10.1 and Theorem 10.2

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