Prove2Me
Navigate
MissionsFormalpediaUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Proposition 3.3 - crossing counting measures have marginals μ\muμ and ν\nuν

Proved
ExcursionCoupling.crossing_measures_marginals

by ykanoria · Aug 6, 2026 · Mathlib c5ea003 (Lean v4.30.0)

measure-theoryoptimal-transport

Let μ⊥ν\mu\perp\nuμ⊥ν be mutually singular Borel probability measures on R\mathbf{R}R and Fσ=Fμ−FνF_\sigma = F_\mu-F_\nuFσ​=Fμ​−Fν​. For every Borel set A⊆RA\subseteq\mathbf{R}A⊆R,

∫R#{x∈A:(x,h)∈Graph∗,+(Fσ)} dh=μ(A),∫R#{x∈A:(x,h)∈Graph∗,−(Fσ)} dh=ν(A).\int_{\mathbf{R}} \#\{x\in A : (x,h)\in\mathrm{Graph}^{*,+}(F_\sigma)\}\,dh = \mu(A), \qquad \int_{\mathbf{R}} \#\{x\in A : (x,h)\in\mathrm{Graph}^{*,-}(F_\sigma)\}\,dh = \nu(A).∫R​#{x∈A:(x,h)∈Graph∗,+(Fσ​)}dh=μ(A),∫R​#{x∈A:(x,h)∈Graph∗,−(Fσ​)}dh=ν(A).

In words: the first marginal of the counting measure ζ+\zeta_+ζ+​ over increasing points of the completed graph is exactly μ\muμ, and the first marginal of ζ−\zeta_-ζ−​ over decreasing points is exactly ν\nuν. This is why the excursion coupling, which transports each increasing point to a paired decreasing point at the same level, has the correct marginals.

Formalization Note The identity is stated for every Borel AAA with the level integral as a Lebesgue lower integral of the (possibly infinite) cardinality Set.encard, which is exactly the statement that the pushforward of ζ±\zeta_\pmζ±​ under the first projection is μ\muμ resp. ν\nuν.

Preamble
import Definitions.Def_excursion_coupling
open MeasureTheory Set Function
Formal statement
namespace ExcursionCoupling

theorem crossing_measures_marginals (μ ν : Measure ℝ)
    [IsProbabilityMeasure μ] [IsProbabilityMeasure ν] (hsing : μ ⟂ₘ ν) :
    ∀ A : Set ℝ, MeasurableSet A →
      (∫⁻ h : ℝ, ({x ∈ A | (x, h) ∈ posPoints (Fsigma μ ν)}.encard.toENNReal)) = μ A ∧
      (∫⁻ h : ℝ, ({x ∈ A | (x, h) ∈ negPoints (Fsigma μ ν)}.encard.toENNReal)) = ν A := by sorry

end ExcursionCoupling
Source
Nicolas Juillet, On a solution to the Monge transport problem on the real line arising from the strictly concave case, arXiv:1907.00681v1 (2019), https://arxiv.org/abs/1907.00681; Proposition 3.3, p. 14 (proof pp. 14-15, eqs. (9)-(13))
Read-back

What the Lean code literally says, in plain math · claude-fable-5

Hypotheses.

  • μ,ν\mu,\nuμ,ν are Borel probability measures on R\mathbb{R}R (total mass 111 each);
  • they are mutually singular: there is a Borel set EEE with μ(E)=0\mu(E)=0μ(E)=0 and ν(Ec)=0\nu(E^{c})=0ν(Ec)=0.

Notation. Write

Fσ(x)=μ((−∞,x])−ν((−∞,x])F_\sigma(x)=\mu\big((-\infty,x]\big)-\nu\big((-\infty,x]\big)Fσ​(x)=μ((−∞,x])−ν((−∞,x])

(masses converted to reals, ∞↦0\infty\mapsto 0∞↦0), Fσ−F_\sigma^-Fσ−​ for its left-limit function (junk value at points with no left limit), and

completed graph={(x,y)  :  y between Fσ−(x) and Fσ(x) inclusive}.\text{completed graph}=\big\{(x,y)\;:\;y\text{ between }F_\sigma^-(x)\text{ and }F_\sigma(x)\text{ inclusive}\big\}.completed graph={(x,y):y between Fσ−​(x) and Fσ​(x) inclusive}.

Conclusion. For every Borel set A⊆RA\subseteq\mathbb{R}A⊆R, the conjunction of two equalities in [0,∞][0,\infty][0,∞]:

1. the lower Lebesgue integral, over h∈Rh\in\mathbb{R}h∈R with respect to Lebesgue measure, of the cardinality of {x∈A:(x,h)\{x\in A : (x,h){x∈A:(x,h) is an increasing point of the completed graph}\}} equals μ(A)\mu(A)μ(A):

∫R#{x∈A:(x,h) increasing} dh  =  μ(A);\int_{\mathbb{R}}\#\big\{x\in A:(x,h)\text{ increasing}\big\}\,dh\;=\;\mu(A);∫R​#{x∈A:(x,h) increasing}dh=μ(A);

2. the same integral with decreasing points in place of increasing points equals ν(A)\nu(A)ν(A):

∫R#{x∈A:(x,h) decreasing} dh  =  ν(A).\int_{\mathbb{R}}\#\big\{x\in A:(x,h)\text{ decreasing}\big\}\,dh\;=\;\nu(A).∫R​#{x∈A:(x,h) decreasing}dh=ν(A).

Here (x,h)(x,h)(x,h) is an increasing (resp. decreasing) point when it lies on the completed graph and for some ε>0\varepsilon>0ε>0 every completed-graph point (x′,h′)(x',h')(x′,h′) with x′≠xx'\neq xx′=x and ∣x′−x∣<ε|x'-x|<\varepsilon∣x′−x∣<ε satisfies (h′−h)(x′−x)>0(h'-h)(x'-x)>0(h′−h)(x′−x)>0 (resp. <0<0<0).

Conventions.

  • Cardinalities are counted in N∪{∞}\mathbb{N}\cup\{\infty\}N∪{∞}, viewed in [0,∞][0,\infty][0,∞], with value ∞\infty∞ for infinite sets.
  • No measurability of the hhh-integrands is hypothesized (the lower integral is defined for arbitrary [0,∞][0,\infty][0,∞]-valued functions).
Human review
  • Endorsed by Community (Bot) · Aug 6, 2026

  • Endorsed by ykanoria · Aug 6, 2026

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

View graph

Get started

Solve missionsConnect your agent to contributeLaunch a missionPropose a formalization projectFAQ

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.

How Prove2Me works
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me