Bench / transport
Gluing the right joint law before applying Minkowski
Statistical Optimal Transport / Log-Concave Sampling · natural-language: L4 / lean: L4 (author-assigned; calibration pending)
Why this difficulty?
Join near-optimal plan selection, probability interfaces, conditional-kernel disintegration, pair-marginal transport identities and extended \(L^{2}\) Minkowski. Diagnose an independent-third-coordinate shortcut with a concrete counterexample. The formal task reconstructs the actual multi-module join; the counterexample explanation is separate from its conclusion.
Editorial review and exact formal-coverage boundary
AI editorial review accepted. This is not canonical theorem publication, full Lean coverage or empirical difficulty calibration.
- The fixed target certifies only the conditional strict endpoint bound. It does not separately formalize the new explanatory Bernoulli construction, its discrepancy probability, edge norm or shortcut-failure diagnosis.
- The proof invokes original gluing, marginal and Minkowski ancestors rather than reproving the conditional-kernel existence theorem, its almost-everywhere uniqueness, or the full measure-theoretic explanation in the prose answer. The relevant interfaces and source obligations were inspected, but these are not separately graded conclusions of this example.
- The exact non-strict triangle inequality belongs to the separate WassersteinTriangleExact consumer. This task neither imports it as a shortcut nor constructs a full Wasserstein metric-space instance, proves optimal-plan attainment, or proves a theorem about all arbitrary metric spaces.
- L4 labels, rubric adequacy and license/family placement are editorial judgments on the inspected frozen slice, not Lean propositions, human consensus, authenticated model execution or empirical difficulty measurements.
- This report supplies independent paired-QA editorial review only. It does not publish a canonical source theorem, approve a repair overlay, advance Registry/frontier status or establish completion of the continuing benchmark Goal.
Content-bound review status and evidence hashes · Independent reports and frozen inputs. Historical rejected wording is audit material, not training gold.
Assumptions and conventions
- \(E\) is a nonempty normed additive commutative group, with its Borel measurable structure, second-countable topology and a standard Borel measurable space. No vector-space or finite-dimensional structure is assumed.
- \(\mu_1,\mu_2,\mu_3\) are probability measures on E. Couplings have exactly the two prescribed coordinate marginals. Define \[C(\gamma)=\left(\int\|x-y\|^2\,d\gamma(x,y)\right)^{1/2}.\] Both costs and \(W_2\) take values in \([0,\infty]\); \(W_2\) is the square root of the infimum of squared coupling costs.
- The external thresholds \(r_{12},r_{23}\in[0,\infty]\) satisfy \[W_2(\mu_1,\mu_2)<r_{12},\qquad W_2(\mu_2,\mu_3)<r_{23}.\] Neither optimal-plan existence nor finite individual second moments is given.
Natural-language question
Prove \(W_2(\mu_1,\mu_3)<r_{12}+r_{23}\) by choosing strictly near-optimal adjacent plans and gluing them over their common middle marginal. Identify the measure used in Minkowski, justify all three pair-marginal cost identities and explain the measurability/conditional-version requirements. Audit the shortcut \(\Gamma'=\gamma_{12}\otimes\mu_3\): use identical Bernoulli marginals and diagonal adjacent plans to show exactly which identification fails. Do not assume optimal-plan attainment or convert extended costs to real numbers.
Reference mathematical proof
Strict near-optimal selection gives actual couplings \(\gamma_{12},\gamma_{23}\) with \[\begin{gathered}C(\gamma_{12})<r_{12},\\ C(\gamma_{23})<r_{23}.\end{gathered}\] These are consequences of the transport infimum and positive square-root order, not an assumption that the infimum is attained. A coupling of a probability marginal has total mass one, so both plans are probability measures.
Disintegrate the second plan with respect to its first coordinate. The finite standard-Borel conditional-kernel theorem supplies a Markov version \(\kappa(y,dz)\) with \[\gamma_{23}(dy,dz)=\mu_2(dy)\kappa(y,dz).\] Define \[\Gamma(d(x,y),dz)=\gamma_{12}(dx,dy)\kappa(y,dz).\] Markov normalization preserves its first pair marginal. Equality \(\gamma_{12}.\mathrm{snd}=\mu_2=\gamma_{23}.\mathrm{fst}\), kernel measurability and the disintegration identity preserve the second pair marginal. Conditional representatives need only have the correct \(\mu_2\)-almost-everywhere meaning; an unsupported pointwise conditional formula is not used.
Write \(\pi_{ij}\) for the measurable pair projections from the same triple space. The identities are \[\begin{gathered}(\pi_{12})_\#\Gamma=\gamma_{12},\\(\pi_{23})_\#\Gamma=\gamma_{23}.\end{gathered}\] Put \(\gamma_{13}=(\pi_{13})_\#\Gamma\). Composing measurable coordinate projections proves that its marginals are \(\mu_1,\mu_3\). The Borel norm and the product/projection measurability justify nonnegative pushforward integration; no subtraction of infinite integrals occurs.
For \(e_{ij}(x,y,z)=\|x_i-x_j\|\), all edge functions are measurable. Nonnegative pushforward integration gives \[\begin{gathered}\|e_{12}\|_{L^2(\Gamma)}=C(\gamma_{12}),\\\|e_{23}\|_{L^2(\Gamma)}=C(\gamma_{23}).\end{gathered}\] The endpoint identity is \[\|e_{13}\|_{L^2(\Gamma)}=C(\gamma_{13}).\] Pointwise \(e_{13}\le e_{12}+e_{23}\) and extended-nonnegative \(L^{2}\) Minkowski apply on this single law \(Γ\), not on two unrelated pair spaces.
Using the endpoint coupling to bound the infimum, then the preceding identities, yields \[\begin{aligned}W_2(\mu_1,\mu_3)&\le C(\gamma_{13})\\&\le C(\gamma_{12})+C(\gamma_{23})\\&<r_{12}+r_{23}.\end{aligned}\] The coefficient is exactly one on each cost. Strict extended-order addition handles the thresholds without an infinity-minus-infinity operation. No optimal plan, density or individual second-moment assumption is added.
For the shortcut audit, take \(E=\mathbb R\) and all three marginals equal to \(\frac12\delta_0+\frac12\delta_1\), with both adjacent plans diagonal. Their costs are zero. Under \(\Gamma'=\gamma_{12}\otimes\mu_3\), Y and Z are independent, so \[\begin{gathered}\mathbb P_{\Gamma'}(Y\ne Z)=\tfrac12,\\\|e_{23}\|_{L^2(\Gamma')}=1/\sqrt2.\end{gathered}\] Its second pair marginal is the independent product, not the diagonal \(\gamma_{23}\), and cannot have cost zero. This refutes the shortcut's cost identification, not the true Wasserstein inequality. Correct conditional gluing makes X=Y=Z in this example.
How the Lean proof follows these steps
The target is the actual strict-threshold composition theorem, not a new wrapper. Its module is not imported: only the original ancestor modules are allowed. Two near-optimal-selection calls produce concrete plans. exists_gluing_of_isCoupling produces one triple law and the two exact marginal identities. The reference explicitly adapts projection encodings, reconstructs the endpoint coupling and rewrites three \(L^{2}\) seminorm/cost bridges before calling l2_edge_triangle and ENNReal.add_lt_add. Its conclusion certifies the strict endpoint bound; the explanatory Bernoulli counterexample is not a separate Lean conclusion. The exact-threshold closure is a later consumer, not silently supplied here.
/- SamplingOptimisationGeometryBench public-dev reference.
Reuses the existing project proof; retain LICENSE and NOTICE. -/
import AutoSamplingTheory.TechnicalLemmas.Measure.TransportGluing
import AutoSamplingTheory.TechnicalLemmas.Measure.WassersteinTriangleMarginals
import Mathlib.Tactic
noncomputable section
open MeasureTheory
open scoped ENNReal
open AutoSamplingTheory.TechnicalLemmas.Measure
open AutoSamplingTheory.TechnicalLemmas.Measure.WassersteinTriangleCore
open AutoSamplingTheory.TechnicalLemmas.Measure.WassersteinTriangleMarginals
variable {E : Type*} [NormedAddCommGroup E]
[MeasurableSpace E] [BorelSpace E] [SecondCountableTopology E]
[StandardBorelSpace E] [Nonempty E]
example
(μ₁ μ₂ μ₃ : Measure E)
[IsProbabilityMeasure μ₁] [IsProbabilityMeasure μ₂] [IsProbabilityMeasure μ₃]
{r₁₂ r₂₃ : ℝ≥0∞}
(hr₁₂ : WassersteinSpace.wassersteinDistance μ₁ μ₂ < r₁₂)
(hr₂₃ : WassersteinSpace.wassersteinDistance μ₂ μ₃ < r₂₃) :
WassersteinSpace.wassersteinDistance μ₁ μ₃ < r₁₂ + r₂₃ := by
rcases
WassersteinSpace.exists_isCoupling_sqrt_lintegral_lt_of_wassersteinDistance_lt
μ₁ μ₂ hr₁₂ with
⟨γ₁₂, hγ₁₂, hcost₁₂⟩
rcases
WassersteinSpace.exists_isCoupling_sqrt_lintegral_lt_of_wassersteinDistance_lt
μ₂ μ₃ hr₂₃ with
⟨γ₂₃, hγ₂₃, hcost₂₃⟩
rcases TransportGluing.exists_gluing_of_isCoupling γ₁₂ γ₂₃ hγ₁₂ hγ₂₃ with
⟨γ₁₂₃, hfst, hmap₂₃⟩
have hmap₁₂ : Measure.map (pair12 (E := E)) γ₁₂₃ = γ₁₂ := by
change Measure.map Prod.fst γ₁₂₃ = γ₁₂
exact hfst
have hmap₂₃' : Measure.map (pair23 (E := E)) γ₁₂₃ = γ₂₃ := by
change Measure.map (fun p : ((E × E) × E) => (p.1.2, p.2)) γ₁₂₃ = γ₂₃
exact hmap₂₃
have hpair₁₂ :
Transport.IsCoupling (Measure.map (pair12 (E := E)) γ₁₂₃) μ₁ μ₂ := by
rw [hmap₁₂]
exact hγ₁₂
have hpair₂₃ :
Transport.IsCoupling (Measure.map (pair23 (E := E)) γ₁₂₃) μ₂ μ₃ := by
rw [hmap₂₃']
exact hγ₂₃
have hpair₁₃ :
Transport.IsCoupling (Measure.map (pair13 (E := E)) γ₁₂₃) μ₁ μ₃ :=
isCoupling_map_pair13_of_pair12_pair23 γ₁₂₃ hpair₁₂ hpair₂₃
have hedge₁₂ :
l2Seminorm γ₁₂₃ (edgeLength12 (E := E)) =
(∫⁻ z, WassersteinSpace.quadraticCost (E := E) z ∂γ₁₂) ^
(1 / (2 : ℝ)) := by
rw [l2Seminorm_edge12_eq_pairCost, hmap₁₂]
have hedge₂₃ :
l2Seminorm γ₁₂₃ (edgeLength23 (E := E)) =
(∫⁻ z, WassersteinSpace.quadraticCost (E := E) z ∂γ₂₃) ^
(1 / (2 : ℝ)) := by
rw [l2Seminorm_edge23_eq_pairCost, hmap₂₃']
have hendpoint :
WassersteinSpace.wassersteinDistance μ₁ μ₃ ≤
l2Seminorm γ₁₂₃ (edgeLength13 (E := E)) := by
calc
WassersteinSpace.wassersteinDistance μ₁ μ₃ ≤
(∫⁻ z, WassersteinSpace.quadraticCost (E := E) z
∂Measure.map (pair13 (E := E)) γ₁₂₃) ^ (1 / (2 : ℝ)) :=
WassersteinSpace.wassersteinDistance_le_sqrt_lintegral_of_isCoupling
μ₁ μ₃ (Measure.map (pair13 (E := E)) γ₁₂₃) hpair₁₃
_ = l2Seminorm γ₁₂₃ (edgeLength13 (E := E)) :=
(l2Seminorm_edge13_eq_pairCost γ₁₂₃).symm
calc
WassersteinSpace.wassersteinDistance μ₁ μ₃ ≤
l2Seminorm γ₁₂₃ (edgeLength13 (E := E)) := hendpoint
_ ≤ l2Seminorm γ₁₂₃ (edgeLength12 (E := E)) +
l2Seminorm γ₁₂₃ (edgeLength23 (E := E)) :=
l2_edge_triangle γ₁₂₃
_ = (∫⁻ z, WassersteinSpace.quadraticCost (E := E) z ∂γ₁₂) ^
(1 / (2 : ℝ)) +
(∫⁻ z, WassersteinSpace.quadraticCost (E := E) z ∂γ₂₃) ^
(1 / (2 : ℝ)) := by rw [hedge₁₂, hedge₂₃]
_ < r₁₂ + r₂₃ := ENNReal.add_lt_add hcost₁₂ hcost₂₃
Assessment rubric · 4 points
- Selects actual strictly near-optimal adjacent couplings and derives their probability interfaces without assuming attainment or individual finite second moments. (1 point)
- Constructs the common-middle conditional gluing with measurable kernels and both pair marginals, respecting the almost-everywhere meaning of conditional versions. (1 point)
- Uses measurable pushforward cost identities and extended \(L^{2}\) Minkowski on one triple law to obtain the endpoint coupling bound and exact strict sum. (1 point)
- Gives the diagonal Bernoulli/independent-third-coordinate counterexample with discrepancy probability 1/2 and edge norm 1/√2, identifying a failed marginal/cost identity rather than claiming the true triangle inequality fails. (1 point)
Lean question
Keep the target and context fixed; replace the comment slot with your proof. Ancestor libraries are allowed, but the target module is not imported directly.
Show fixed Lean task
/- SamplingOptimisationGeometryBench public-dev reference.
Reuses the existing project proof; retain LICENSE and NOTICE. -/
import AutoSamplingTheory.TechnicalLemmas.Measure.TransportGluing
import AutoSamplingTheory.TechnicalLemmas.Measure.WassersteinTriangleMarginals
import Mathlib.Tactic
noncomputable section
open MeasureTheory
open scoped ENNReal
open AutoSamplingTheory.TechnicalLemmas.Measure
open AutoSamplingTheory.TechnicalLemmas.Measure.WassersteinTriangleCore
open AutoSamplingTheory.TechnicalLemmas.Measure.WassersteinTriangleMarginals
variable {E : Type*} [NormedAddCommGroup E]
[MeasurableSpace E] [BorelSpace E] [SecondCountableTopology E]
[StandardBorelSpace E] [Nonempty E]
example
(μ₁ μ₂ μ₃ : Measure E)
[IsProbabilityMeasure μ₁] [IsProbabilityMeasure μ₂] [IsProbabilityMeasure μ₃]
{r₁₂ r₂₃ : ℝ≥0∞}
(hr₁₂ : WassersteinSpace.wassersteinDistance μ₁ μ₂ < r₁₂)
(hr₂₃ : WassersteinSpace.wassersteinDistance μ₂ μ₃ < r₂₃) :
WassersteinSpace.wassersteinDistance μ₁ μ₃ < r₁₂ + r₂₃ := by
-- Replace this comment with your proof.
Reference Lean and explanation
The target is the actual strict-threshold composition theorem, not a new wrapper. Its module is not imported: only the original ancestor modules are allowed. Two near-optimal-selection calls produce concrete plans. exists_gluing_of_isCoupling produces one triple law and the two exact marginal identities. The reference explicitly adapts projection encodings, reconstructs the endpoint coupling and rewrites three \(L^{2}\) seminorm/cost bridges before calling l2_edge_triangle and ENNReal.add_lt_add. Its conclusion certifies the strict endpoint bound; the explanatory Bernoulli counterexample is not a separate Lean conclusion. The exact-threshold closure is a later consumer, not silently supplied here.
/- SamplingOptimisationGeometryBench public-dev reference.
Reuses the existing project proof; retain LICENSE and NOTICE. -/
import AutoSamplingTheory.TechnicalLemmas.Measure.TransportGluing
import AutoSamplingTheory.TechnicalLemmas.Measure.WassersteinTriangleMarginals
import Mathlib.Tactic
noncomputable section
open MeasureTheory
open scoped ENNReal
open AutoSamplingTheory.TechnicalLemmas.Measure
open AutoSamplingTheory.TechnicalLemmas.Measure.WassersteinTriangleCore
open AutoSamplingTheory.TechnicalLemmas.Measure.WassersteinTriangleMarginals
variable {E : Type*} [NormedAddCommGroup E]
[MeasurableSpace E] [BorelSpace E] [SecondCountableTopology E]
[StandardBorelSpace E] [Nonempty E]
example
(μ₁ μ₂ μ₃ : Measure E)
[IsProbabilityMeasure μ₁] [IsProbabilityMeasure μ₂] [IsProbabilityMeasure μ₃]
{r₁₂ r₂₃ : ℝ≥0∞}
(hr₁₂ : WassersteinSpace.wassersteinDistance μ₁ μ₂ < r₁₂)
(hr₂₃ : WassersteinSpace.wassersteinDistance μ₂ μ₃ < r₂₃) :
WassersteinSpace.wassersteinDistance μ₁ μ₃ < r₁₂ + r₂₃ := by
rcases
WassersteinSpace.exists_isCoupling_sqrt_lintegral_lt_of_wassersteinDistance_lt
μ₁ μ₂ hr₁₂ with
⟨γ₁₂, hγ₁₂, hcost₁₂⟩
rcases
WassersteinSpace.exists_isCoupling_sqrt_lintegral_lt_of_wassersteinDistance_lt
μ₂ μ₃ hr₂₃ with
⟨γ₂₃, hγ₂₃, hcost₂₃⟩
rcases TransportGluing.exists_gluing_of_isCoupling γ₁₂ γ₂₃ hγ₁₂ hγ₂₃ with
⟨γ₁₂₃, hfst, hmap₂₃⟩
have hmap₁₂ : Measure.map (pair12 (E := E)) γ₁₂₃ = γ₁₂ := by
change Measure.map Prod.fst γ₁₂₃ = γ₁₂
exact hfst
have hmap₂₃' : Measure.map (pair23 (E := E)) γ₁₂₃ = γ₂₃ := by
change Measure.map (fun p : ((E × E) × E) => (p.1.2, p.2)) γ₁₂₃ = γ₂₃
exact hmap₂₃
have hpair₁₂ :
Transport.IsCoupling (Measure.map (pair12 (E := E)) γ₁₂₃) μ₁ μ₂ := by
rw [hmap₁₂]
exact hγ₁₂
have hpair₂₃ :
Transport.IsCoupling (Measure.map (pair23 (E := E)) γ₁₂₃) μ₂ μ₃ := by
rw [hmap₂₃']
exact hγ₂₃
have hpair₁₃ :
Transport.IsCoupling (Measure.map (pair13 (E := E)) γ₁₂₃) μ₁ μ₃ :=
isCoupling_map_pair13_of_pair12_pair23 γ₁₂₃ hpair₁₂ hpair₂₃
have hedge₁₂ :
l2Seminorm γ₁₂₃ (edgeLength12 (E := E)) =
(∫⁻ z, WassersteinSpace.quadraticCost (E := E) z ∂γ₁₂) ^
(1 / (2 : ℝ)) := by
rw [l2Seminorm_edge12_eq_pairCost, hmap₁₂]
have hedge₂₃ :
l2Seminorm γ₁₂₃ (edgeLength23 (E := E)) =
(∫⁻ z, WassersteinSpace.quadraticCost (E := E) z ∂γ₂₃) ^
(1 / (2 : ℝ)) := by
rw [l2Seminorm_edge23_eq_pairCost, hmap₂₃']
have hendpoint :
WassersteinSpace.wassersteinDistance μ₁ μ₃ ≤
l2Seminorm γ₁₂₃ (edgeLength13 (E := E)) := by
calc
WassersteinSpace.wassersteinDistance μ₁ μ₃ ≤
(∫⁻ z, WassersteinSpace.quadraticCost (E := E) z
∂Measure.map (pair13 (E := E)) γ₁₂₃) ^ (1 / (2 : ℝ)) :=
WassersteinSpace.wassersteinDistance_le_sqrt_lintegral_of_isCoupling
μ₁ μ₃ (Measure.map (pair13 (E := E)) γ₁₂₃) hpair₁₃
_ = l2Seminorm γ₁₂₃ (edgeLength13 (E := E)) :=
(l2Seminorm_edge13_eq_pairCost γ₁₂₃).symm
calc
WassersteinSpace.wassersteinDistance μ₁ μ₃ ≤
l2Seminorm γ₁₂₃ (edgeLength13 (E := E)) := hendpoint
_ ≤ l2Seminorm γ₁₂₃ (edgeLength12 (E := E)) +
l2Seminorm γ₁₂₃ (edgeLength23 (E := E)) :=
l2_edge_triangle γ₁₂₃
_ = (∫⁻ z, WassersteinSpace.quadraticCost (E := E) z ∂γ₁₂) ^
(1 / (2 : ℝ)) +
(∫⁻ z, WassersteinSpace.quadraticCost (E := E) z ∂γ₂₃) ^
(1 / (2 : ℝ)) := by rw [hedge₁₂, hedge₂₃]
_ < r₁₂ + r₂₃ := ENNReal.add_lt_add hcost₁₂ hcost₂₃
No current trusted-reference compiler receipt recorded in this build.
Structural questions about this proof context (not equivalent mathematical tasks): A genuinely shared proof ingredient · Which selected proof branch reaches normalization?
What this does—and does not—verify
The Lean target concludes only the strict-threshold endpoint bound. It does not separately formalize this exercise's Bernoulli shortcut audit, assert optimal-plan existence, or construct a general metric-space instance. The non-strict triangle consumer exists in WassersteinTriangleExact, but is not imported as a shortcut or counted as another QA. The listed disintegration, pushforward and Minkowski Mathlib facts are used in ancestor proofs; the target join calls their ASTIS interfaces.
Existing library mathematics reused; no new mathematical leaf or paper-completion credit. The editorial panel records the exact current review scope and remaining unformalized explanation.
Sources, graph location and dependencies
Original QA and counterexample explanation over the existing ASTIS-owned strict-threshold transport join and its source-present gluing, marginal and \(L^{2}\) components. No textbook passage, paper text, external dataset or restricted index is reproduced. The exact-order consumer is AutoSamplingTheory.TechnicalLemmas.Measure.WassersteinTriangleExact.wassersteinDistance_triangle. This composition family shares probability/coupling foundations with the earlier symmetry questions but is not a relabeled variant; all remain public-dev.
Exact local source and full context · Locate the owning module (declaration not yet indexed in this graph)
AutoSamplingTheory.TechnicalLemmas.Measure.WassersteinTriangle.wassersteinDistance_lt_add_of_lt
ASTIS definitions / proof calls
AutoSamplingTheory.TechnicalLemmas.Measure.WassersteinSpace.exists_isCoupling_sqrt_lintegral_lt_of_wassersteinDistance_ltAutoSamplingTheory.TechnicalLemmas.Measure.TransportGluing.exists_gluing_of_isCouplingAutoSamplingTheory.TechnicalLemmas.Measure.WassersteinTriangleMarginals.isCoupling_map_pair13_of_pair12_pair23AutoSamplingTheory.TechnicalLemmas.Measure.WassersteinTriangleMarginals.l2Seminorm_edge12_eq_pairCostAutoSamplingTheory.TechnicalLemmas.Measure.WassersteinTriangleMarginals.l2Seminorm_edge23_eq_pairCostAutoSamplingTheory.TechnicalLemmas.Measure.WassersteinTriangleMarginals.l2Seminorm_edge13_eq_pairCostAutoSamplingTheory.TechnicalLemmas.Measure.WassersteinSpace.wassersteinDistance_le_sqrt_lintegral_of_isCouplingAutoSamplingTheory.TechnicalLemmas.Measure.WassersteinTriangleCore.l2_edge_triangle
Mathlib facts / definitions
ENNReal.add_lt_addMeasureTheory.Measure.disintegrateMeasureTheory.lintegral_mapENNReal.lintegral_Lp_add_le
Binding SHA-256: 237b6a126e4672415b58ea7f7621fe69ef5d541dac41fb1b42336f828922a1e2