OAI/Analysis/Brenier/Midpoint.lean
40 declarations, 0 contain sorry, 0 declared as axioms
One-dimensional substitution estimates for midpoint-coupling constructions. These lemmas do not assume or assert existence of a triangular quantile map.
- def
OAI.Problem358.IntervalMidpoint.unitLawline 12Source documentation
Lebesgue probability on the unit interval.
def unitLaw : Measure ℝ := volume.restrict (Icc (0 : ℝ) 1)
- instance
OAI.Problem358.IntervalMidpoint.unitLaw_probabilityline 14 - def
OAI.Problem358.IntervalMidpoint.intervalLawline 19Source documentation
Lebesgue probability on a nondegenerate interval.
def intervalLaw (a b : ℝ) : Measure ℝ := …
- lemma
OAI.Problem358.IntervalMidpoint.map_volume_affineline 22 - lemma
OAI.Problem358.IntervalMidpoint.affine_preimage_intervalline 31 - lemma
OAI.Problem358.IntervalMidpoint.map_unitLaw_affineline 41 - def
OAI.Problem358.IntervalMidpoint.couplingline 49Source documentation
The monotone coupling parametrized by the common unit-interval coordinate.
def coupling (a b c d : ℝ) : Measure (ℝ × ℝ) := …
- lemma
OAI.Problem358.IntervalMidpoint.coupling_fstline 52 - lemma
OAI.Problem358.IntervalMidpoint.coupling_sndline 58 - lemma
OAI.Problem358.IntervalMidpoint.coupling_probabilityline 64 - lemma
OAI.Problem358.IntervalMidpoint.midpoint_lawline 69 - lemma
OAI.Problem358.IntervalMidpoint.sqrt_lengthProduct_le_midpoint_lengthline 83 - lemma
OAI.Problem358.IntervalMidpoint.midpoint_dominationline 93Source documentation
The geometric-mean weighted midpoint law is dominated by Lebesgue measure on the midpoint interval. This is the genuine one-dimensional midpoint coupling.
lemma midpoint_domination {a b c d : ℝ} (hab : a < b) (hcd : c < d) : ENNReal.ofReal (Real.sqrt ((b - a) * (d - c))) • Measure.map (fun p : ℝ × ℝ => (p.1 + p.2) / 2) (coupling a b c d) ≤ volume.restrict (Icc ((a + c) / 2) ((b + d) / 2)) := by …Mentions: OAI.Problem358.IntervalMidpoint.coupling
- lemma
OAI.Problem358.IntervalMidpoint.intervalLaw_probabilityline 109 - theorem
OAI.Problem358.IntervalMidpoint.exists_midpoint_couplingline 115Source documentation
Existence formulation, including both exact marginals and probability.
theorem exists_midpoint_coupling {a b c d : ℝ} (hab : a < b) (hcd : c < d) : ∃ π : Measure (ℝ × ℝ), IsProbabilityMeasure π ∧ Measure.map Prod.fst π = intervalLaw a b ∧ Measure.map Prod.snd π = intervalLaw c d ∧ ENNReal.ofReal (Real.sqrt ((b - a) * (d - c))) • Measure.map (fun p : ℝ × ℝ => (p.1 + p.2) / 2) π ≤ volume := by … - theorem
OAI.Problem358.lintegral_jacobian_comp_leline 134Source documentation
Injective one-dimensional substitution followed by enlargement of the image. No measurability assumption on the nonnegative integrand is needed.
theorem lintegral_jacobian_comp_le {s : Set ℝ} {f f' : ℝ → ℝ} (hs : MeasurableSet s) (hderiv : ∀ x ∈ s, HasDerivWithinAt f (f' x) s x) (hinj : InjOn f s) (g : ℝ → ℝ≥0∞) : (∫⁻ x in s, ENNReal.ofReal (|f' x|) * g (f x)) ≤ ∫⁻ y, g y := by … - theorem
OAI.Problem358.lintegral_comp_le_of_deriv_lowerline 143Source documentation
A lower Jacobian bound controls pushforward integrals.
theorem lintegral_comp_le_of_deriv_lower {s : Set ℝ} {f f' : ℝ → ℝ} {c : ℝ} (hs : MeasurableSet s) (hderiv : ∀ x ∈ s, HasDerivWithinAt f (f' x) s x) (hinj : InjOn f s) (hbound : ∀ x ∈ s, c ≤ |f' x|) (g : ℝ → ℝ≥0∞) : ENNReal.ofReal c * (∫⁻ x in s, g (f x)) ≤ ∫⁻ y, g y := by … - theorem
OAI.Problem358.map_restrict_volume_smul_le_of_deriv_lowerline 160Source documentation
Measure-valued form of the lower-Jacobian substitution bound.
theorem map_restrict_volume_smul_le_of_deriv_lower {s : Set ℝ} {f f' : ℝ → ℝ} {c : ℝ} (hs : MeasurableSet s) (hderiv : ∀ x ∈ s, HasDerivWithinAt f (f' x) s x) (hinj : InjOn f s) (hbound : ∀ x ∈ s, c ≤ |f' x|) : ENNReal.ofReal c • Measure.map f (volume.restrict s) ≤ volume := by … - theorem
OAI.Problem358.midpoint_derivative_ge_geometric_meanline 185Source documentation
The derivative of the midpoint exceeds the geometric mean of the two nonnegative derivatives.
theorem midpoint_derivative_ge_geometric_mean {u v : ℝ} (hu : 0 ≤ u) (hv : 0 ≤ v) : Real.sqrt (u * v) ≤ (u + v) / 2 := by … - theorem
OAI.Problem358.lintegral_midpoint_geometric_jacobian_leline 194Source documentation
Midpoint substitution with geometric-mean Jacobian weight. This is the one-dimensional step in the triangular domination argument.
theorem lintegral_midpoint_geometric_jacobian_le {s : Set ℝ} {f f' g g' : ℝ → ℝ} (hs : MeasurableSet s) (hconv : Convex ℝ s) (hf : ∀ x ∈ s, HasDerivWithinAt f (f' x) s x) (hg : ∀ x ∈ s, HasDerivWithinAt g (g' x) s x) (hfpos : ∀ x ∈ s, 0 < f' x) (hgpos : ∀ x ∈ s, 0 < g' x) (w : ℝ → ℝ≥0∞) : (∫⁻ x in s, ENNReal.ofReal (Real.sqrt (f' x * g' x)) * w ((f x + g x) / 2)) ≤ ∫⁻ y, w y := by … - theorem
OAI.Problem358.integral_eq_weighted_sum_of_measure_partitionline 245Source documentation
Integration commutes with a finite weighted partition of a measure.
theorem integral_eq_weighted_sum_of_measure_partition {ι X : Type*} [Fintype ι] [MeasurableSpace X] (ρ : Measure X) (ν : ι → Measure X) (c : ι → ℝ) (hc : ∀ i, 0 ≤ c i) (hpart : (∑ i, ENNReal.ofReal (c i) • ν i) = ρ) (f : X → ℝ) (hf : Integrable f ρ) : (∫ x, f x ∂ρ) = ∑ i, c i * ∫ x, f x ∂ν i := by … - theorem
OAI.Problem358.weighted_integral_sum_le_of_measure_dominationline 264Source documentation
A finite family of dominated measures can be tested against any integrable function which is nonnegative almost everywhere for the dominating total.
theorem weighted_integral_sum_le_of_measure_domination {ι X : Type*} [Fintype ι] [MeasurableSpace X] (ρ : Measure X) (μ ν : ι → Measure X) (c : ι → ℝ) (hc : ∀ i, 0 ≤ c i) (hpart : (∑ i, μ i) = ρ) (hdom : ∀ i, ENNReal.ofReal (c i) • ν i ≤ μ i) (f : X → ℝ) (hf : Integrable f ρ) (hfn : 0 ≤ᵐ[ρ] f) : (∑ i, c i * ∫ x, f x ∂ν i) ≤ ∫ x, f x ∂ρ := by … - theorem
OAI.Problem358.quadratic_midpoint_identityline 287Source documentation
The parallelogram identity, written for the concave quadratic test function.
theorem quadratic_midpoint_identity {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] (R : ℝ) (x z : V) : R ^ 2 - ‖(1 / 2 : ℝ) • (x + z)‖ ^ 2 = ((R ^ 2 - ‖x‖ ^ 2) + (R ^ 2 - ‖z‖ ^ 2)) / 2 + ‖x - z‖ ^ 2 / 4 := by … - theorem
OAI.Problem358.integral_quadratic_midpoint_identityline 297Source documentation
Integrating the midpoint identity requires only the explicit integrability of its endpoint and displacement terms.
theorem integral_quadratic_midpoint_identity {Ω V : Type*} [MeasurableSpace Ω] [NormedAddCommGroup V] [InnerProductSpace ℝ V] (μ : Measure Ω) (X Z : Ω → V) (R : ℝ) (hX : Integrable (fun ω => R ^ 2 - ‖X ω‖ ^ 2) μ) (hZ : Integrable (fun ω => R ^ 2 - ‖Z ω‖ ^ 2) μ) (hD : Integrable (fun ω => ‖X ω - Z ω‖ ^ 2) μ) : (∫ ω, R ^ 2 - ‖(1 / 2 : ℝ) • (X ω + Z ω)‖ ^ 2 ∂μ) = ((∫ ω, R ^ 2 - ‖X ω‖ ^ 2 ∂μ) + (∫ ω, R ^ 2 - ‖Z ω‖ ^ 2 ∂μ)) / 2 + (∫ ω, ‖X ω - Z ω‖ ^ 2 ∂μ) / 4 := by … - theorem
OAI.Problem358.midpoint_partition_balanceline 315Source documentation
Actual dominated midpoint laws and endpoint measure partitions supply the aggregate scalar balance used by
midpoint_aggregate_transport.theorem midpoint_partition_balance {ι X : Type*} [Fintype ι] [MeasurableSpace X] (ρ : Measure X) (cell minus plus mid : ι → Measure X) (α β γ D : ι → ℝ) (hα : ∀ i, 0 ≤ α i) (hβ : ∀ i, 0 ≤ β i) (hγ : ∀ i, 0 ≤ γ i) (hcells : (∑ i, cell i) = ρ) (hminus : (∑ i, ENNReal.ofReal (α i) • minus i) = ρ) (hplus : (∑ i, ENNReal.ofReal (β i) • plus i) = ρ) (hdom : ∀ i, ENNReal.ofReal (γ i) • mid i ≤ cell i) (f : X → ℝ) (hf : Integrable f ρ) (hfn : 0 ≤ᵐ[ρ] f) (hmid : ∀ i, (∫ x, f x ∂mid i) = ((∫ x, f x ∂minus i) + (∫ x, f x ∂plus i)) / 2 + D i / 4) : … - abbrev
OAI.Problem358.MidpointCoordinates.Coordinatesline 356 - def
OAI.Problem358.MidpointCoordinates.coordinateUniformline 358 - lemma
OAI.Problem358.MidpointCoordinates.volume_preimage_toLpline 362 - lemma
OAI.Problem358.MidpointCoordinates.map_coordinateUniformline 368Source documentation
The ordinary coordinate-space normalization maps to the exact source used in the challenge, with no additional volume constants.
lemma map_coordinateUniform {d : ℕ} {K : Set (E d)} (hK : MeasurableSet K) : Measure.map (WithLp.toLp 2) (coordinateUniform K) = uniformMeasure K := by …Mentions: OAI.Problem358.MidpointCoordinates.coordinateUniform
- def
OAI.Problem358.MidpointCoordinates.liftPairline 376 - lemma
OAI.Problem358.MidpointCoordinates.measurable_liftPairline 379 - lemma
OAI.Problem358.MidpointCoordinates.liftPair_midpointline 383 - lemma
OAI.Problem358.MidpointCoordinates.lift_couplingline 389Source documentation
Pushing both coordinates through
toLppreserves both exact marginals.lemma lift_coupling {d : ℕ} {K L : Set (E d)} (hK : MeasurableSet K) (hL : MeasurableSet L) {π : Measure (Coordinates d × Coordinates d)} (hπ : IsProbabilityMeasure π) (hfst : Measure.map Prod.fst π = coordinateUniform K) (hsnd : Measure.map Prod.snd π = coordinateUniform L) : IsCoupling (uniformMeasure K) (uniformMeasure L) (Measure.map liftPair π) := by …Mentions: OAI.Problem358.MidpointCoordinates.Coordinates, OAI.Problem358.MidpointCoordinates.coordinateUniform, OAI.Problem358.MidpointCoordinates.liftPair
- lemma
OAI.Problem358.MidpointCoordinates.lift_midpoint_dominationline 408Source documentation
A weighted midpoint domination inequality survives the coordinate change.
lemma lift_midpoint_domination {d : ℕ} {π : Measure (Coordinates d × Coordinates d)} {c : ℝ≥0∞} (hdom : c • Measure.map (fun p : Coordinates d × Coordinates d => (1 / 2 : ℝ) • (p.1 + p.2)) π ≤ volume) : c • Measure.map (fun p : E d × E d => (1 / 2 : ℝ) • (p.1 + p.2)) (Measure.map liftPair π) ≤ volume := by …Mentions: OAI.Problem358.MidpointCoordinates.Coordinates, OAI.Problem358.MidpointCoordinates.liftPair
- theorem
OAI.Problem358.MidpointCoordinates.exists_lifted_midpoint_couplingline 432Source documentation
Coordinate-space dominated midpoint witnesses give the corresponding Euclidean-space witnesses. No existence assumption is hidden in the change of representation.
theorem exists_lifted_midpoint_coupling {d : ℕ} {K L : Set (E d)} (hK : MeasurableSet K) (hL : MeasurableSet L) (c : ℝ≥0∞) (h : ∃ π : Measure (Coordinates d × Coordinates d), IsProbabilityMeasure π ∧ Measure.map Prod.fst π = coordinateUniform K ∧ Measure.map Prod.snd π = coordinateUniform L ∧ c • Measure.map (fun p : Coordinates d × Coordinates d => (1 / 2 : ℝ) • (p.1 + p.2)) π ≤ volume) : ∃ π : Measure (E d × E d), IsCoupling (uniformMeasure K) (uniformMeasure L) π ∧ c • Measure.map (fun p : E d × E d => (1 / 2 : ℝ) • (p.1 + p.2)) π ≤ volume := by …Mentions: OAI.Problem358.MidpointCoordinates.Coordinates, OAI.Problem358.MidpointCoordinates.coordinateUniform
- lemma
OAI.Problem358.MidpointCoordinates.volume_interiorline 447Source documentation
Passing to the interior of a convex body does not change its volume.
lemma volume_interior {d : ℕ} {K : Set (E d)} (hK : Convex ℝ K) : volume (interior K) = volume K := … - lemma
OAI.Problem358.MidpointCoordinates.uniformMeasure_interiorline 452Source documentation
The normalized law is also unchanged, including degenerate convex sets.
lemma uniformMeasure_interior {d : ℕ} {K : Set (E d)} (hK : Convex ℝ K) : uniformMeasure (interior K) = uniformMeasure K := by … - theorem
OAI.Problem358.MidpointCoordinates.exists_lifted_midpoint_coupling_of_interiorsline 460Source documentation
A construction using open convex interiors in ordinary coordinates supplies the exact closed-body laws required by the Euclidean midpoint argument.
theorem exists_lifted_midpoint_coupling_of_interiors {d : ℕ} {K L : Set (E d)} (hK : Convex ℝ K) (hL : Convex ℝ L) (c : ℝ≥0∞) (h : ∃ π : Measure (Coordinates d × Coordinates d), IsProbabilityMeasure π ∧ Measure.map Prod.fst π = coordinateUniform (interior K) ∧ Measure.map Prod.snd π = coordinateUniform (interior L) ∧ c • Measure.map (fun p : Coordinates d × Coordinates d => (1 / 2 : ℝ) • (p.1 + p.2)) π ≤ volume) : ∃ π : Measure (E d × E d), IsCoupling (uniformMeasure K) (uniformMeasure L) π ∧ c • Measure.map (fun p : E d × E d => (1 / 2 : ℝ) • (p.1 + p.2)) π ≤ volume := by …Mentions: OAI.Problem358.MidpointCoordinates.Coordinates, OAI.Problem358.MidpointCoordinates.coordinateUniform
- theorem
OAI.Problem358.MidpointCoordinates.exists_midpoint_coupling_of_coordinate_samplersline 475Source documentation
The common-source sampler formulation constructs the joint coupling rather than requiring it as a separate input.
theorem exists_midpoint_coupling_of_coordinate_samplers {Ω : Type*} [MeasurableSpace Ω] {ρ : Measure Ω} [IsProbabilityMeasure ρ] {d : ℕ} {K L : Set (E d)} (hK : MeasurableSet K) (hL : MeasurableSet L) (X Y : Ω → Coordinates d) (hX : Measurable X) (hY : Measurable Y) (hXlaw : Measure.map X ρ = coordinateUniform K) (hYlaw : Measure.map Y ρ = coordinateUniform L) (c : ℝ≥0∞) (hdom : c • Measure.map (fun ω => (1 / 2 : ℝ) • (X ω + Y ω)) ρ ≤ volume) : ∃ π : Measure (E d × E d), IsCoupling (uniformMeasure K) (uniformMeasure L) π ∧ c • Measure.map (fun p : E d × E d => (1 / 2 : ℝ) • (p.1 + p.2)) π ≤ volume := by …Mentions: OAI.Problem358.MidpointCoordinates.Coordinates, OAI.Problem358.MidpointCoordinates.coordinateUniform
- theorem
OAI.Problem358.MidpointCoordinates.exists_midpoint_coupling_of_interior_coordinate_samplersline 495Source documentation
Open-interior coordinate samplers suffice for the exact original body laws.
theorem exists_midpoint_coupling_of_interior_coordinate_samplers {Ω : Type*} [MeasurableSpace Ω] {ρ : Measure Ω} [IsProbabilityMeasure ρ] {d : ℕ} {K L : Set (E d)} (hK : Convex ℝ K) (hL : Convex ℝ L) (X Y : Ω → Coordinates d) (hX : Measurable X) (hY : Measurable Y) (hXlaw : Measure.map X ρ = coordinateUniform (interior K)) (hYlaw : Measure.map Y ρ = coordinateUniform (interior L)) (c : ℝ≥0∞) (hdom : c • Measure.map (fun ω => (1 / 2 : ℝ) • (X ω + Y ω)) ρ ≤ volume) : ∃ π : Measure (E d × E d), IsCoupling (uniformMeasure K) (uniformMeasure L) π ∧ c • Measure.map (fun p : E d × E d => (1 / 2 : ℝ) • (p.1 + p.2)) π ≤ volume := by …Mentions: OAI.Problem358.MidpointCoordinates.Coordinates, OAI.Problem358.MidpointCoordinates.coordinateUniform