The Geometry of Optimal Transport
Develops couplings and Wasserstein distance as geometry on probability laws, preparing metric contraction arguments for diffusions.
Open this section in the canonical August 9 source ↗Statement
Informally, a curve is absolutely continuous when its finite metric derivative exists almost everywhere.
Lean statement · IsAbsolutelyContinuousMetricCurve
Compare this exact declaration with the source statement and explicit hypotheses on this card. A formal premise is not proved merely because Lean accepts a conditional theorem.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
def IsAbsolutelyContinuousMetricCurve
{M : Type*} [PseudoMetricSpace M]
(curve : ℝ → M) : PropAssumptions and implicit prerequisites
Source-level assumptions
- a curve in Wasserstein P2ac
- the informal metric derivative criterion
Conditions made explicit by ASTIS
a PseudoMetricSpacea real-time curvea.e. existence of HasMetricDerivativeAt
ASTIS rigorous LaTeX formalization
This packet records the strict ASTIS statement. No additional proof is attributed to the source.
Lean construction · IsAbsolutelyContinuousMetricCurve
This is the complete declaration source underlying this mathematical step. Follow the named parent results, distinguishing the hypotheses supplied to the theorem from conclusions actually derived. Source correspondence and compilation are separate statuses.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
def IsAbsolutelyContinuousMetricCurve
{M : Type*} [PseudoMetricSpace M]
(curve : ℝ → M) : Prop :=
∀ᵐ t ∂(by volume_tac : Measure ℝ),
∃ speed : ℝ, HasMetricDerivativeAt curve speed t
end MetricCurve
end Geometry
end TechnicalLemmas
end AutoSamplingTheorySource mapping and supporting declarations
Final declaration
Underlying proof leaves
IsAbsolutelyContinuousMetricCurve
Why is this valid?
The a.e. time quantifier, punctured neighborhood, nonnegative finite speed, and real Lebesgue measure are explicit.
Source assumptions
- a curve in Wasserstein P2ac
- the informal metric derivative criterion
Formal assumptions
- a PseudoMetricSpace
- a real-time curve
- a.e. existence of HasMetricDerivativeAt
View Lean formalization
ASTIS formalizes exactly the source's informal criterion on a generic pseudometric space without introducing a tangent vector.
AutoSamplingTheory.TechnicalLemmas.Geometry.MetricCurve.IsAbsolutelyContinuousMetricCurve
def IsAbsolutelyContinuousMetricCurve
{M : Type*} [PseudoMetricSpace M]
(curve : ℝ → M) : Prop :=
∀ᵐ t ∂(by volume_tac : Measure ℝ),
∃ speed : ℝ, HasMetricDerivativeAt curve speed t
end MetricCurve
end Geometry
end TechnicalLemmas
end AutoSamplingTheoryImports
- Mathlib.MeasureTheory.Measure.Lebesgue.Basic
- Mathlib.Topology.MetricSpace.Basic
Local dependencies
Downstream consumers
- continuity equation
- kinetic action
- Wasserstein geodesics
Statement
A functional is alpha-geodesically convex when its value along each geodesic lies below endpoint interpolation minus the alpha quadratic distance correction.
Lean statement · IsAlphaGeodesicallyConvex
Compare this exact declaration with the source statement and explicit hypotheses on this card. A formal premise is not proved merely because Lean accepts a conditional theorem.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
def IsAlphaGeodesicallyConvex
{M : Type*} [MetricSpace M]
(isGeodesic : (ℝ → M) → Prop) (F : M → ℝ) (alpha : ℝ) : PropAssumptions and implicit prerequisites
Source-level assumptions
- a Riemannian manifold
- smooth functional
- all geodesics
Conditions made explicit by ASTIS
a MetricSpacean explicit geodesic predicatereal-valued functional
ASTIS rigorous LaTeX formalization
This packet records the strict ASTIS statement. No additional proof is attributed to the source.
Lean construction · IsAlphaGeodesicallyConvex
This is the complete declaration source underlying this mathematical step. Follow the named parent results, distinguishing the hypotheses supplied to the theorem from conclusions actually derived. Source correspondence and compilation are separate statuses.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
def IsAlphaGeodesicallyConvex
{M : Type*} [MetricSpace M]
(isGeodesic : (ℝ → M) → Prop) (F : M → ℝ) (alpha : ℝ) : Prop :=
∀ path : ℝ → M, isGeodesic path →
∀ t : ℝ, t ∈ Icc (0 : ℝ) 1 →
F (path t) ≤
(1 - t) * F (path 0) + t * F (path 1) -
(alpha * t * (1 - t) / 2) * dist (path 0) (path 1) ^ 2
/-- The chord formulation of geodesic alpha-convexity implies its first-order
form along a differentiable selected geodesic. The scalar
`gradientPairing` is the derivative of `F` along the path at its initial
point; identifying it with the Riemannian or Wasserstein gradient pairing is
a separate geometric theorem.
This is the one-dimensional limiting argument behind Chewi display
(1.4.7). -/Source mapping and supporting declarations
Final declaration
Underlying proof leaves
IsAlphaGeodesicallyConvex
Why is this valid?
The ambient metric, complete path, geodesic selection, interval membership, coefficient normalization, and endpoint distance are explicit.
Source assumptions
- a Riemannian manifold
- smooth functional
- all geodesics
Formal assumptions
- a MetricSpace
- an explicit geodesic predicate
- real-valued functional
View Lean formalization
ASTIS chooses the first of the source's equivalent conditions and parameterizes the predicate selecting geodesics.
AutoSamplingTheory.TechnicalLemmas.Geometry.GeodesicConvexity.IsAlphaGeodesicallyConvex
def IsAlphaGeodesicallyConvex
{M : Type*} [MetricSpace M]
(isGeodesic : (ℝ → M) → Prop) (F : M → ℝ) (alpha : ℝ) : Prop :=
∀ path : ℝ → M, isGeodesic path →
∀ t : ℝ, t ∈ Icc (0 : ℝ) 1 →
F (path t) ≤
(1 - t) * F (path 0) + t * F (path 1) -
(alpha * t * (1 - t) / 2) * dist (path 0) (path 1) ^ 2
/-- The chord formulation of geodesic alpha-convexity implies its first-order
form along a differentiable selected geodesic. The scalar
`gradientPairing` is the derivative of `F` along the path at its initial
point; identifying it with the Riemannian or Wasserstein gradient pairing is
a separate geometric theorem.
This is the one-dimensional limiting argument behind Chewi display
(1.4.7). -/Imports
- Mathlib.Analysis.Calculus.Deriv.Slope
- Mathlib.Topology.MetricSpace.Basic
Local dependencies
Downstream consumers
- Wasserstein KL convexity
- gradient-flow convergence
Statement
The dual optimal transport value is the supremum of the two potential integrals over feasible integrable potential pairs.
Lean statement · dualTransportValue
Compare this exact declaration with the source statement and explicit hypotheses on this card. A formal premise is not proved merely because Lean accepts a conditional theorem.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
noncomputable def dualTransportValue
{E F : Type*} [MeasurableSpace E] [MeasurableSpace F]
(cost : E × F → ℝ) (mu : Measure E) (nu : Measure F) : ℝAssumptions and implicit prerequisites
Source-level assumptions
- finite-second-moment probability marginals
- quadratic cost
Conditions made explicit by ASTIS
measurable spaces and measuresintegrable real potentialsproduct-a.e. dual constraint
ASTIS rigorous LaTeX formalization
This packet records the strict ASTIS statement. No additional proof is attributed to the source.
Lean construction · dualTransportValue
This is the complete declaration source underlying this mathematical step. Follow the named parent results, distinguishing the hypotheses supplied to the theorem from conclusions actually derived. Source correspondence and compilation are separate statuses.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
noncomputable def dualTransportValue
{E F : Type*} [MeasurableSpace E] [MeasurableSpace F]
(cost : E × F → ℝ) (mu : Measure E) (nu : Measure F) : ℝ :=
sSup {r : ℝ | ∃ (f : E → ℝ) (g : F → ℝ),
DualFeasible cost mu nu f g ∧
r = (∫ x, f x ∂mu) + ∫ y, g y ∂nu}
/-- Chewi display (1.3.7): source-facing expansion of the dual value. -/Source mapping and supporting declarations
Final declaration
Underlying proof leaves
dualTransportValue
Why is this valid?
The generic real-cost definition does not silently assume strong duality, boundedness, or attainment.
Source assumptions
- finite-second-moment probability marginals
- quadratic cost
Formal assumptions
- measurable spaces and measures
- integrable real potentials
- product-a.e. dual constraint
View Lean formalization
ASTIS keeps both integrability requirements and the product-measure a.e. constraint in the feasible predicate.
AutoSamplingTheory.TechnicalLemmas.Measure.KantorovichDual.dualTransportValue
noncomputable def dualTransportValue
{E F : Type*} [MeasurableSpace E] [MeasurableSpace F]
(cost : E × F → ℝ) (mu : Measure E) (nu : Measure F) : ℝ :=
sSup {r : ℝ | ∃ (f : E → ℝ) (g : F → ℝ),
DualFeasible cost mu nu f g ∧
r = (∫ x, f x ∂mu) + ∫ y, g y ∂nu}
/-- Chewi display (1.3.7): source-facing expansion of the dual value. -/Imports
- Mathlib.MeasureTheory.Integral.Bochner.Basic
- Mathlib.MeasureTheory.Measure.Prod
Local dependencies
Downstream consumers
- Kantorovich strong duality
- optimal maps
Statement
The dual value is the supremum of integral f dmu plus integral g dnu over dual-feasible potentials.
Lean statement · dualTransportValue_eq_sSup
Compare this exact declaration with the source statement and explicit hypotheses on this card. A formal premise is not proved merely because Lean accepts a conditional theorem.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem dualTransportValue_eq_sSup
{E F : Type*} [MeasurableSpace E] [MeasurableSpace F]
(cost : E × F → ℝ) (mu : Measure E) (nu : Measure F) :
dualTransportValue cost mu nu =
sSup {r : ℝ | ∃ (f : E → ℝ) (g : F → ℝ),
DualFeasible cost mu nu f g ∧
r = (∫ x, f x ∂mu) + ∫ y, g y ∂nu}Assumptions and implicit prerequisites
Source-level assumptions
- Definition 1.3.6
Conditions made explicit by ASTIS
dualTransportValue and DualFeasible
ASTIS rigorous LaTeX formalization
This packet records the strict ASTIS statement. No additional proof is attributed to the source.
Lean proof · dualTransportValue_eq_sSup
This is the complete declaration source underlying this mathematical step. Follow the named parent results, distinguishing the hypotheses supplied to the theorem from conclusions actually derived. Source correspondence and compilation are separate statuses.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem dualTransportValue_eq_sSup
{E F : Type*} [MeasurableSpace E] [MeasurableSpace F]
(cost : E × F → ℝ) (mu : Measure E) (nu : Measure F) :
dualTransportValue cost mu nu =
sSup {r : ℝ | ∃ (f : E → ℝ) (g : F → ℝ),
DualFeasible cost mu nu f g ∧
r = (∫ x, f x ∂mu) + ∫ y, g y ∂nu} :=
rfl
end KantorovichDual
end Measure
end TechnicalLemmas
end AutoSamplingTheorySource mapping and supporting declarations
Final declaration
Underlying proof leaves
dualTransportValue_eq_sSup
Why is this valid?
Only the dual value is expanded; equality to one half W2 squared is not claimed here.
Source assumptions
- Definition 1.3.6
Formal assumptions
- dualTransportValue and DualFeasible
View Lean formalization
The source display is a proved definitional expansion rather than an assumed primal-dual theorem.
AutoSamplingTheory.TechnicalLemmas.Measure.KantorovichDual.dualTransportValue_eq_sSup
theorem dualTransportValue_eq_sSup
{E F : Type*} [MeasurableSpace E] [MeasurableSpace F]
(cost : E × F → ℝ) (mu : Measure E) (nu : Measure F) :
dualTransportValue cost mu nu =
sSup {r : ℝ | ∃ (f : E → ℝ) (g : F → ℝ),
DualFeasible cost mu nu f g ∧
r = (∫ x, f x ∂mu) + ∫ y, g y ∂nu} :=
rfl
end KantorovichDual
end Measure
end TechnicalLemmas
end AutoSamplingTheoryImports
- Mathlib.MeasureTheory.Integral.Bochner.Basic
- Mathlib.MeasureTheory.Measure.Prod
Local dependencies
Downstream consumers
- weak duality
- strong duality
Statement
The 2-Wasserstein distance is the positive square root of the optimal quadratic coupling cost.
Lean statement · wassersteinDistance
Compare this exact declaration with the source statement and explicit hypotheses on this card. A formal premise is not proved merely because Lean accepts a conditional theorem.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
noncomputable def wassersteinDistance
{E : Type*} [NormedAddCommGroup E] [MeasurableSpace E]
(μ ν : Measure E) : ℝ≥0∞Assumptions and implicit prerequisites
Source-level assumptions
- probability measures on Euclidean space
- quadratic transport cost
Conditions made explicit by ASTIS
measurable normed additive state spacecompiled Kantorovich transportCost
ASTIS rigorous LaTeX formalization
This packet records the strict ASTIS statement. No additional proof is attributed to the source.
Lean construction · wassersteinDistance
This is the complete declaration source underlying this mathematical step. Follow the named parent results, distinguishing the hypotheses supplied to the theorem from conclusions actually derived. Source correspondence and compilation are separate statuses.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
noncomputable def wassersteinDistance
{E : Type*} [NormedAddCommGroup E] [MeasurableSpace E]
(μ ν : Measure E) : ℝ≥0∞ :=
(Transport.transportCost (quadraticCost (E := E)) μ ν) ^ (1 / 2 : ℝ)
/-- Chewi display (1.3.5): the square of `W₂` is the infimum of the
quadratic costs over all couplings. -/Source mapping and supporting declarations
Final declaration
Underlying proof leaves
wassersteinDistance
Why is this valid?
The state space is a measurable real normed additive group, the cost is ENNReal.ofReal of squared norm, and infinite values remain representable.
Source assumptions
- probability measures on Euclidean space
- quadratic transport cost
Formal assumptions
- measurable normed additive state space
- compiled Kantorovich transportCost
View Lean formalization
ASTIS specializes the compiled Kantorovich value to an ENNReal squared-norm cost and takes its positive ENNReal rpow one half.
AutoSamplingTheory.TechnicalLemmas.Measure.WassersteinSpace.wassersteinDistance
noncomputable def wassersteinDistance
{E : Type*} [NormedAddCommGroup E] [MeasurableSpace E]
(μ ν : Measure E) : ℝ≥0∞ :=
(Transport.transportCost (quadraticCost (E := E)) μ ν) ^ (1 / 2 : ℝ)
/-- Chewi display (1.3.5): the square of `W₂` is the infimum of the
quadratic costs over all couplings. -/Imports
- AutoSamplingTheory.TechnicalLemmas.Measure.Transport
- Mathlib.Analysis.SpecialFunctions.Pow.NNReal
- Mathlib.MeasureTheory.Measure.Haar.InnerProductSpace
- Mathlib.MeasureTheory.Integral.Bochner.Basic
Local dependencies
Downstream consumers
- Wasserstein metric
- geodesics
- Langevin coupling
Statement
The square of W2 equals the infimum of integrated squared distance over all couplings.
Lean statement · wassersteinDistance_sq
Compare this exact declaration with the source statement and explicit hypotheses on this card. A formal premise is not proved merely because Lean accepts a conditional theorem.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem wassersteinDistance_sq
{E : Type*} [NormedAddCommGroup E] [MeasurableSpace E]
(μ ν : Measure E) :
wassersteinDistance μ ν ^ 2 =
Transport.transportCost (quadraticCost (E := E)) μ νAssumptions and implicit prerequisites
Source-level assumptions
- the W2 and quadratic cost of Definition 1.3.4
Conditions made explicit by ASTIS
ENNReal rpow algebra
ASTIS rigorous LaTeX formalization
This packet records the strict ASTIS statement. No additional proof is attributed to the source.
Lean proof · wassersteinDistance_sq
This is the complete declaration source underlying this mathematical step. Follow the named parent results, distinguishing the hypotheses supplied to the theorem from conclusions actually derived. Source correspondence and compilation are separate statuses.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem wassersteinDistance_sq
{E : Type*} [NormedAddCommGroup E] [MeasurableSpace E]
(μ ν : Measure E) :
wassersteinDistance μ ν ^ 2 =
Transport.transportCost (quadraticCost (E := E)) μ ν := by
rw [wassersteinDistance, ← ENNReal.rpow_two, ← ENNReal.rpow_mul]
norm_num
/-- Every concrete coupling bounds the squared Wasserstein distance from
above by its quadratic transport cost.
This is the source-facing bridge used before proving optimal-plan existence or
constant-speed displacement geodesics. -/Source mapping and supporting declarations
Final declaration
Underlying proof leaves
wassersteinDistance_sq
Why is this valid?
The theorem remains valid at infinite transport cost and does not require an optimal coupling witness.
Source assumptions
- the W2 and quadratic cost of Definition 1.3.4
Formal assumptions
- ENNReal rpow algebra
View Lean formalization
The equality is proved by ENNReal rpow multiplication, not stored as an axiom.
AutoSamplingTheory.TechnicalLemmas.Measure.WassersteinSpace.wassersteinDistance_sq
theorem wassersteinDistance_sq
{E : Type*} [NormedAddCommGroup E] [MeasurableSpace E]
(μ ν : Measure E) :
wassersteinDistance μ ν ^ 2 =
Transport.transportCost (quadraticCost (E := E)) μ ν := by
rw [wassersteinDistance, ← ENNReal.rpow_two, ← ENNReal.rpow_mul]
norm_num
/-- Every concrete coupling bounds the squared Wasserstein distance from
above by its quadratic transport cost.
This is the source-facing bridge used before proving optimal-plan existence or
constant-speed displacement geodesics. -/Imports
- AutoSamplingTheory.TechnicalLemmas.Measure.Transport
- Mathlib.Analysis.SpecialFunctions.Pow.NNReal
- Mathlib.MeasureTheory.Measure.Haar.InnerProductSpace
- Mathlib.MeasureTheory.Integral.Bochner.Basic
Local dependencies
Downstream consumers
- Wasserstein estimates
- metric-space route
Statement
P2,ac consists of Euclidean probability laws with finite second moment that are absolutely continuous with respect to Lebesgue measure.
Lean statement · IsAbsolutelyContinuousFiniteSecondMoment
Compare this exact declaration with the source statement and explicit hypotheses on this card. A formal premise is not proved merely because Lean accepts a conditional theorem.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
def IsAbsolutelyContinuousFiniteSecondMoment
{E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
[FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E]
(μ : Measure E) : PropAssumptions and implicit prerequisites
Source-level assumptions
- a probability measure on Euclidean space
- finite second moment
- absolute continuity with respect to Lebesgue measure
Conditions made explicit by ASTIS
finite-dimensional real inner-product spaceBorel measurable structureIsProbabilityMeasure, absolute continuity, and Integrable squared norm
ASTIS rigorous LaTeX formalization
This packet records the strict ASTIS statement. No additional proof is attributed to the source.
Lean construction · IsAbsolutelyContinuousFiniteSecondMoment
This is the complete declaration source underlying this mathematical step. Follow the named parent results, distinguishing the hypotheses supplied to the theorem from conclusions actually derived. Source correspondence and compilation are separate statuses.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
def IsAbsolutelyContinuousFiniteSecondMoment
{E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
[FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E]
(μ : Measure E) : Prop :=
IsProbabilityMeasure μ ∧
μ ≪ (volume : Measure E) ∧
Integrable (fun x : E => ‖x‖ ^ 2) μ
/-- Expansion of the three conditions in the `P₂,ac` definition. -/Source mapping and supporting declarations
Final declaration
AutoSamplingTheory.TechnicalLemmas.Measure.WassersteinSpace.IsAbsolutelyContinuousFiniteSecondMoment
Underlying proof leaves
IsAbsolutelyContinuousFiniteSecondMoment
Why is this valid?
The ambient space is a finite-dimensional real inner-product Borel space, so Mathlib volume represents Lebesgue measure and the real squared norm defines the second moment.
Source assumptions
- a probability measure on Euclidean space
- finite second moment
- absolute continuity with respect to Lebesgue measure
Formal assumptions
- finite-dimensional real inner-product space
- Borel measurable structure
- IsProbabilityMeasure, absolute continuity, and Integrable squared norm
View Lean formalization
ASTIS packages the three measure-theoretic conditions without importing any optimal-map or Wasserstein metric conclusion.
AutoSamplingTheory.TechnicalLemmas.Measure.WassersteinSpace.IsAbsolutelyContinuousFiniteSecondMoment
def IsAbsolutelyContinuousFiniteSecondMoment
{E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
[FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E]
(μ : Measure E) : Prop :=
IsProbabilityMeasure μ ∧
μ ≪ (volume : Measure E) ∧
Integrable (fun x : E => ‖x‖ ^ 2) μ
/-- Expansion of the three conditions in the `P₂,ac` definition. -/Imports
- AutoSamplingTheory.TechnicalLemmas.Measure.Transport
- Mathlib.Analysis.SpecialFunctions.Pow.NNReal
- Mathlib.MeasureTheory.Measure.Haar.InnerProductSpace
- Mathlib.MeasureTheory.Integral.Bochner.Basic
Local dependencies
Downstream consumers
- Brenier optimal maps
- Wasserstein tangent-space calculus
- Langevin gradient-flow route
Statement
The Wasserstein geodesic between two P2,ac laws is the law of the affine interpolation of an optimally coupled endpoint pair; it is also called displacement or McCann interpolation.
Lean statement · IsWassersteinGeodesic
Compare this exact declaration with the source statement and explicit hypotheses on this card. A formal premise is not proved merely because Lean accepts a conditional theorem.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
def IsWassersteinGeodesic
(μ₀ μ₁ : Measure E) (curve : ℝ → Measure E) : PropAssumptions and implicit prerequisites
Source-level assumptions
- two P2,ac probability laws
- an optimally coupled endpoint pair
Conditions made explicit by ASTIS
a finite-dimensional real inner-product Borel spaceP2,ac endpoint predicatesa coupling attaining the quadratic transport costthe affine pushforward identity on [0,1]
ASTIS rigorous LaTeX formalization
This packet records the strict ASTIS statement. No additional proof is attributed to the source.
Lean construction · IsWassersteinGeodesic
This is the complete declaration source underlying this mathematical step. Follow the named parent results, distinguishing the hypotheses supplied to the theorem from conclusions actually derived. Source correspondence and compilation are separate statuses.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
def IsWassersteinGeodesic
(μ₀ μ₁ : Measure E) (curve : ℝ → Measure E) : Prop :=
WassersteinSpace.IsAbsolutelyContinuousFiniteSecondMoment μ₀ ∧
WassersteinSpace.IsAbsolutelyContinuousFiniteSecondMoment μ₁ ∧
∃ γ : Measure (E × E),
IsQuadraticOptimalCoupling γ μ₀ μ₁ ∧
∀ t ∈ Icc (0 : ℝ) 1,
curve t = displacementInterpolation γ t
/-- An optimal coupling and two `P₂,ac` endpoints generate the source
displacement-interpolation predicate. -/Source mapping and supporting declarations
Final declaration
Underlying proof leaves
IsWassersteinGeodesic
Why is this valid?
Both endpoints satisfy the compiled P2,ac predicate. The coupling has the requested marginals and attains the quadratic Kantorovich infimum. The curve agrees with its measurable affine pushforward throughout [0,1].
Source assumptions
- two P2,ac probability laws
- an optimally coupled endpoint pair
Formal assumptions
- a finite-dimensional real inner-product Borel space
- P2,ac endpoint predicates
- a coupling attaining the quadratic transport cost
- the affine pushforward identity on [0,1]
View Lean formalization
ASTIS represents the joint endpoint law directly as a coupling measure, avoiding an unnecessary auxiliary probability space while preserving the exact law construction.
AutoSamplingTheory.TechnicalLemmas.Measure.DisplacementInterpolation.IsWassersteinGeodesic
def IsWassersteinGeodesic
(μ₀ μ₁ : Measure E) (curve : ℝ → Measure E) : Prop :=
WassersteinSpace.IsAbsolutelyContinuousFiniteSecondMoment μ₀ ∧
WassersteinSpace.IsAbsolutelyContinuousFiniteSecondMoment μ₁ ∧
∃ γ : Measure (E × E),
IsQuadraticOptimalCoupling γ μ₀ μ₁ ∧
∀ t ∈ Icc (0 : ℝ) 1,
curve t = displacementInterpolation γ t
/-- An optimal coupling and two `P₂,ac` endpoints generate the source
displacement-interpolation predicate. -/Imports
- AutoSamplingTheory.TechnicalLemmas.Measure.WassersteinSpace
Local dependencies
Downstream consumers
- geodesic convexity
- Wasserstein gradient flows
- McCann interpolation arguments
Statement
The Kantorovich transport cost is the infimum of expected cost over all joint probability laws with the prescribed marginals.
Lean statement · transportCost
Compare this exact declaration with the source statement and explicit hypotheses on this card. A formal premise is not proved merely because Lean accepts a conditional theorem.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
noncomputable def transportCost {α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
(c : α × β → ℝ≥0∞) (μ : Measure α) (ν : Measure β) : ℝ≥0∞Assumptions and implicit prerequisites
Source-level assumptions
- probability measures on complete separable metric spaces
- an extended nonnegative transport cost
Conditions made explicit by ASTIS
measurable state spacesan ENNReal-valued costthe exact coupling marginal predicate
ASTIS rigorous LaTeX formalization
This packet records the strict ASTIS statement. No additional proof is attributed to the source.
Lean construction · transportCost
This is the complete declaration source underlying this mathematical step. Follow the named parent results, distinguishing the hypotheses supplied to the theorem from conclusions actually derived. Source correspondence and compilation are separate statuses.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
noncomputable def transportCost {α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
(c : α × β → ℝ≥0∞) (μ : Measure α) (ν : Measure β) : ℝ≥0∞ :=
sInf {r : ℝ≥0∞ | ∃ γ ∈ couplingSet μ ν, r = ∫⁻ z, c z ∂γ}
/-- Source-facing expansion of the Kantorovich value in display (1.3.2). -/Source mapping and supporting declarations
Final declaration
Underlying proof leaves
transportCost
Why is this valid?
The two state spaces are measurable, the cost is ENNReal-valued, and the feasible measures have exactly the requested marginals. Probability normalization follows from probability marginals.
Source assumptions
- probability measures on complete separable metric spaces
- an extended nonnegative transport cost
Formal assumptions
- measurable state spaces
- an ENNReal-valued cost
- the exact coupling marginal predicate
View Lean formalization
ASTIS defines the coupling feasible set and its ENNReal infimum directly; lower semicontinuity is reserved for the later minimizer-existence theorem.
AutoSamplingTheory.TechnicalLemmas.Measure.Transport.transportCost
noncomputable def transportCost {α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
(c : α × β → ℝ≥0∞) (μ : Measure α) (ν : Measure β) : ℝ≥0∞ :=
sInf {r : ℝ≥0∞ | ∃ γ ∈ couplingSet μ ν, r = ∫⁻ z, c z ∂γ}
/-- Source-facing expansion of the Kantorovich value in display (1.3.2). -/Imports
- Mathlib.MeasureTheory.Measure.Prod
Local dependencies
Downstream consumers
- optimal-plan existence
- 2-Wasserstein distance
- Kantorovich duality
Statement
The transport value expands as the infimum of the coupling lintegrals of the cost.
Lean statement · transportCost_eq_sInf
Compare this exact declaration with the source statement and explicit hypotheses on this card. A formal premise is not proved merely because Lean accepts a conditional theorem.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem transportCost_eq_sInf
{α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
(c : α × β → ℝ≥0∞) (μ : Measure α) (ν : Measure β) :
transportCost c μ ν =
sInf {r : ℝ≥0∞ | ∃ γ ∈ couplingSet μ ν, r = ∫⁻ z, c z ∂γ}Assumptions and implicit prerequisites
Source-level assumptions
- the Kantorovich feasible set and cost of Definition 1.3.1
Conditions made explicit by ASTIS
the compiled transportCost and couplingSet definitions
ASTIS rigorous LaTeX formalization
This packet records the strict ASTIS statement. No additional proof is attributed to the source.
Lean proof · transportCost_eq_sInf
This is the complete declaration source underlying this mathematical step. Follow the named parent results, distinguishing the hypotheses supplied to the theorem from conclusions actually derived. Source correspondence and compilation are separate statuses.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem transportCost_eq_sInf
{α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
(c : α × β → ℝ≥0∞) (μ : Measure α) (ν : Measure β) :
transportCost c μ ν =
sInf {r : ℝ≥0∞ | ∃ γ ∈ couplingSet μ ν, r = ∫⁻ z, c z ∂γ} :=
rfl
/-- Every feasible coupling gives an upper bound on the Kantorovich optimum.
This is the basic `sInf <= candidate` edge used repeatedly when a concrete
coupling is constructed (for example from a displacement interpolation or a
Markovian coupling). It does not require existence of an optimizer. -/Source mapping and supporting declarations
Final declaration
Underlying proof leaves
transportCost_eq_sInf
Why is this valid?
The equality uses an ENNReal sInf and an ENNReal lintegral over the exact coupling set.
Source assumptions
- the Kantorovich feasible set and cost of Definition 1.3.1
Formal assumptions
- the compiled transportCost and couplingSet definitions
View Lean formalization
The source-facing theorem unfolds the ASTIS definition without claiming that the infimum is attained.
AutoSamplingTheory.TechnicalLemmas.Measure.Transport.transportCost_eq_sInf
theorem transportCost_eq_sInf
{α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
(c : α × β → ℝ≥0∞) (μ : Measure α) (ν : Measure β) :
transportCost c μ ν =
sInf {r : ℝ≥0∞ | ∃ γ ∈ couplingSet μ ν, r = ∫⁻ z, c z ∂γ} :=
rfl
/-- Every feasible coupling gives an upper bound on the Kantorovich optimum.
This is the basic `sInf <= candidate` edge used repeatedly when a concrete
coupling is constructed (for example from a displacement interpolation or a
Markovian coupling). It does not require existence of an optimizer. -/Imports
- Mathlib.MeasureTheory.Measure.Prod
Local dependencies
Downstream consumers
- optimal transport comparison arguments
- Wasserstein cost specialization
Statement
A coupling is a joint probability law with two prescribed marginals.
Lean statement · isProbabilityMeasure_of_isCoupling_left
Compare this exact declaration with the source statement and explicit hypotheses on this card. A formal premise is not proved merely because Lean accepts a conditional theorem.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem isProbabilityMeasure_of_isCoupling_left
{α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
{γ : Measure (α × β)} {μ : Measure α} {ν : Measure β}
[IsProbabilityMeasure μ] (hγ : IsCoupling γ μ ν) :
IsProbabilityMeasure γLean statement · isCoupling_prod
Compare this exact declaration with the source statement and explicit hypotheses on this card. A formal premise is not proved merely because Lean accepts a conditional theorem.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem isCoupling_prod {α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
(μ : Measure α) (ν : Measure β) [IsProbabilityMeasure μ] [IsProbabilityMeasure ν] :
IsCoupling (μ.prod ν) μ νAssumptions and implicit prerequisites
Source-level assumptions
- probability measures on the two state spaces
Conditions made explicit by ASTIS
measurable spacesprobability-measure instances for both marginals
ASTIS rigorous LaTeX formalization
This packet records the strict ASTIS statement. No additional proof is attributed to the source.
Lean proof · isProbabilityMeasure_of_isCoupling_left
This is the complete declaration source underlying this mathematical step. Follow the named parent results, distinguishing the hypotheses supplied to the theorem from conclusions actually derived. Source correspondence and compilation are separate statuses.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem isProbabilityMeasure_of_isCoupling_left
{α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
{γ : Measure (α × β)} {μ : Measure α} {ν : Measure β}
[IsProbabilityMeasure μ] (hγ : IsCoupling γ μ ν) :
IsProbabilityMeasure γ := by
constructor
rw [← Measure.fst_univ, hγ.1, measure_univ]
/-- The independent product measure is a coupling of two probability measures.
This supplies the canonical nonemptiness witness for the Kantorovich feasible
set in Chewi, Definition 1.3.1. -/Lean proof · isCoupling_prod
This is the complete declaration source underlying this mathematical step. Follow the named parent results, distinguishing the hypotheses supplied to the theorem from conclusions actually derived. Source correspondence and compilation are separate statuses.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem isCoupling_prod {α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
(μ : Measure α) (ν : Measure β) [IsProbabilityMeasure μ] [IsProbabilityMeasure ν] :
IsCoupling (μ.prod ν) μ ν := by
constructor <;> simp
/-- The feasible set in the Kantorovich problem is nonempty for probability
marginals. -/Source mapping and supporting declarations
Final declaration
AutoSamplingTheory.TechnicalLemmas.Measure.Transport.isProbabilityMeasure_of_isCoupling_leftAutoSamplingTheory.TechnicalLemmas.Measure.Transport.isCoupling_prod
Underlying proof leaves
IsCouplingisProbabilityMeasure_of_isCoupling_leftisCoupling_prod
Why is this valid?
The source works with probability measures on complete separable metric spaces. The coupling contract itself is measure-theoretic; topology and cost measurability enter only when defining and minimizing the transport objective.
Source assumptions
- probability measures on the two state spaces
Formal assumptions
- measurable spaces
- probability-measure instances for both marginals
View Lean formalization
Samplinglib isolates the marginal contract from transport costs and proves the independent-product witness using Mathlib's product-measure marginal identities.
AutoSamplingTheory.TechnicalLemmas.Measure.Transport.isProbabilityMeasure_of_isCoupling_left
theorem isProbabilityMeasure_of_isCoupling_left
{α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
{γ : Measure (α × β)} {μ : Measure α} {ν : Measure β}
[IsProbabilityMeasure μ] (hγ : IsCoupling γ μ ν) :
IsProbabilityMeasure γ := by
constructor
rw [← Measure.fst_univ, hγ.1, measure_univ]
/-- The independent product measure is a coupling of two probability measures.
This supplies the canonical nonemptiness witness for the Kantorovich feasible
set in Chewi, Definition 1.3.1. -/Imports
- Mathlib.MeasureTheory.Measure.Prod
Local dependencies
AutoSamplingTheory.TechnicalLemmas.Measure.Transport.isCoupling_prod
theorem isCoupling_prod {α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
(μ : Measure α) (ν : Measure β) [IsProbabilityMeasure μ] [IsProbabilityMeasure ν] :
IsCoupling (μ.prod ν) μ ν := by
constructor <;> simp
/-- The feasible set in the Kantorovich problem is nonempty for probability
marginals. -/Imports
- Mathlib.MeasureTheory.Measure.Prod
Local dependencies
Downstream consumers
- optimal transport cost
- Wasserstein distance
- synchronous Langevin coupling
- LMC coupling analysis