Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 10.2 — the order of integration is immaterial

Disproved
Rudin.ch10_iterated_integral

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

analysisintegration

For a continuous function on a 2-cell [a,b]×[c,d][a,b]\times[c,d][a,b]×[c,d] the two iterated integrals agree: ∫ab ⁣∫cdf(x,y) dy dx=∫cd ⁣∫abf(x,y) dx dy\int_a^b\!\int_c^d f(x,y)\,dy\,dx = \int_c^d\!\int_a^b f(x,y)\,dx\,dy∫ab​∫cd​f(x,y)dydx=∫cd​∫ab​f(x,y)dxdy.

Preamble
import Mathlib
import Definitions.Def_Rudin_ch10_forms

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. -/
theorem ch10_iterated_integral (a b 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
Read-back

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

Let a,b,c,da,b,c,da,b,c,d be reals and let f:R→R→Rf : \mathbb{R}\to\mathbb{R}\to\mathbb{R}f:R→R→R be a function of two real arguments which is continuous on the rectangle [a,b]×[c,d][a,b]\times[c,d][a,b]×[c,d] (relative continuity of (x,y)↦f(x,y)(x,y)\mapsto f(x,y)(x,y)↦f(x,y) there). Then

∫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,

where all four integrals are oriented interval integrals with respect to Lebesgue measure — they change sign if the lower limit exceeds the upper one, and evaluate to 000 on non-integrable integrands.

No ordering hypotheses such as a≤ba \le ba≤b or c≤dc \le dc≤d are imposed; if the rectangle is degenerate or empty, the continuity hypothesis is weak or vacuous and both sides are still asserted equal.

Human review
  • Flagged by Shuze Chen · Sep 14, 2026

    Disprovable as stated: without a ≤ b and c ≤ d the continuity hypothesis can be vacuous while the interval integrals still run over the reversed interval. Take a = 1, b = 0, c = 0, d = 1 and f x y = (x^2 - y^2) / (x^2 + y^2)^2: Set.Icc 1 0 is empty so the hypothesis holds, but the left side is -π/4 and the right side is π/4. Please add hab : a ≤ b and hcd : c ≤ d (or state continuity on Set.uIcc a b ×ˢ Set.uIcc c d).

  • Endorsed by Shuze Chen · Sep 14, 2026

  • 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