Documentation

TauCeti.MeasureTheory.OptimalTransport.Wasserstein.EulerLagrange

The Euler–Lagrange equation of the Jordan–Kinderlehrer–Otto step #

Let E be a separable Hilbert space, φ an energy on the quadratic Wasserstein space P₂(E) and τ > 0 a time step. A step of the Jordan–Kinderlehrer–Otto scheme (JKO scheme) from a law μ is a law ν minimizing

ρ ↦ φ ρ + W₂ (μ, ρ) ^ 2 / (2τ),

that is, a point of the resolvent TauCeti.moreauYosidaResolvent φ τ μ. This file derives the first-order condition satisfied by such a minimizer, by perturbing ν along vector fields.

For a vector field ξ ∈ L²(ν; E) and h : ℝ, the map x ↦ x + h • ξ x lies in L²(ν; E), so its law ν_h under ν lies in P₂(E) (TauCeti.exists_coe_eq_map_of_memLp). If γ is a coupling of ν and μ, then (x, y) ↦ (x + h • ξ x, y) carries it to a coupling of ν_h and μ, whence

W₂ (ν_h, μ) ^ 2 ≤ ∫ ‖x - y‖² dγ + 2h ∫ ⟪x - y, ξ x⟫ dγ + h² ∫ ‖ξ‖² dν

(TauCeti.wassersteinEDist_map_add_smul_sq_le). When γ is an optimal coupling, the first integral is W₂ (ν, μ) ^ 2 (TauCeti.WassersteinSpace.dist_sq_eq_integral), and comparing the minimizer ν with ν_h gives the variational inequality

φ ν ≤ φ ν_h + (h ∫ ⟪x - y, ξ x⟫ dγ + (h² / 2) ∫ ‖ξ‖² dν) / τ

for every h (TauCeti.apply_le_apply_add_of_mem_moreauYosidaResolvent). If the energy has a derivative D along the perturbation, that is φ ν_h = f h near h = 0 for a function f differentiable at 0 with f' 0 = D, then the right side minus the left has a local minimum at h = 0, and its derivative there vanishes. This is the Euler–Lagrange equation of the JKO step:

∫ ⟪x - y, ξ x⟫ dγ(x, y) = -τ D

(TauCeti.integral_inner_eq_neg_mul_of_mem_moreauYosidaResolvent). Heuristically D = ∫ ⟪∇ (δφ/δν), ξ⟫ dν for the first variation δφ/δν of the energy, and the equation is the weak form of (x - y) / τ = -∇ (δφ/δν)(x), the displacement of the step being averaged over the conditional law of y given x under γ.

For the potential energy ρ ↦ ∫ V dρ of a differentiable potential whose gradient grows at most linearly, ‖∇V x‖ ≤ C (1 + ‖x‖), the potential is integrable against every law of finite second moment (TauCeti.integrable_comp_of_norm_gradient_le), and differentiating under the integral sign gives the derivative ∫ ⟪∇V x, ξ x⟫ dν along the perturbation (TauCeti.hasDerivAt_integral_comp_add_smul). The Euler–Lagrange equation then reads

∫ ⟪x - y, ξ x⟫ dγ(x, y) = -τ ∫ ⟪∇V x, ξ x⟫ dν(x)

(TauCeti.integral_inner_eq_neg_mul_integral_inner_gradient_of_mem_moreauYosidaResolvent). This is the drift part of the discrete Euler–Lagrange equation of Jordan, Kinderlehrer and Otto for the Fokker–Planck equation.

Main results #

References #

theorem TauCeti.IsCoupling.integrable_inner_sub_comp_fst {E : Type u_1} [NormedAddCommGroup E] [MeasurableSpace E] [BorelSpace E] [SecondCountableTopology E] {ξ : E → E} [InnerProductSpace ℝ E] {ν μ : MeasureTheory.Measure E} {γ : MeasureTheory.Measure (E × E)} (hγ : IsCoupling γ ν μ) (hγ₂ : MeasureTheory.Integrable (fun (z : E × E) => ‖z.1 - z.2‖ ^ 2) γ) (hξ : MeasureTheory.MemLp ξ 2 ν) :
MeasureTheory.Integrable (fun (z : E × E) => inner ℝ (z.1 - z.2) (ξ z.1)) γ

The pairing ⟪x - y, ξ x⟫ of the displacement of a coupling of finite quadratic cost with a vector field of L²(ν) is integrable.

theorem TauCeti.wassersteinEDist_map_add_smul_sq_le {E : Type u_1} [NormedAddCommGroup E] [MeasurableSpace E] [BorelSpace E] [SecondCountableTopology E] {ξ : E → E} [InnerProductSpace ℝ E] {ν μ : MeasureTheory.Measure E} {γ : MeasureTheory.Measure (E × E)} (hγ : IsCoupling γ ν μ) (hγ₂ : MeasureTheory.Integrable (fun (z : E × E) => ‖z.1 - z.2‖ ^ 2) γ) (hξ : MeasureTheory.MemLp ξ 2 ν) (h : ℝ) :
wassersteinEDist 2 (MeasureTheory.Measure.map (fun (x : E) => x + h • ξ x) ν) μ ^ 2 ≤ ENNReal.ofReal (∫ (z : E × E), ‖z.1 - z.2‖ ^ 2 ∂γ + 2 * h * ∫ (z : E × E), inner ℝ (z.1 - z.2) (ξ z.1) ∂γ + h ^ 2 * ∫ (x : E), ‖ξ x‖ ^ 2 ∂ν)

The squared Wasserstein distance along a perturbation. Let γ couple ν and μ with finite quadratic cost and let ξ ∈ L²(ν; E). The law ν_h of x + h • ξ x under ν satisfies W₂ (ν_h, μ) ^ 2 ≤ ∫ ‖x - y‖² dγ + 2h ∫ ⟪x - y, ξ x⟫ dγ + h² ∫ ‖ξ‖² dν, the right side being the quadratic cost of the coupling (x, y) ↦ (x + h • ξ x, y) of ν_h and μ carried by γ.

theorem TauCeti.IsCoupling.integral_inner_eq_inner {E : Type u_1} [NormedAddCommGroup E] [MeasurableSpace E] [InnerProductSpace ℝ E] {μ ν : MeasureTheory.Measure E} {γ : MeasureTheory.Measure (E × E)} (hγ : IsCoupling γ μ ν) (hd : MeasureTheory.MemLp (fun (z : E × E) => z.2 - z.1) 2 γ) (ξ : ↥(MeasureTheory.Lp E 2 μ)) :
∫ (z : E × E), inner ℝ (↑↑ξ z.1) (z.2 - z.1) ∂γ = inner ℝ ((MeasureTheory.Lp.compMeasurePreservingₗᵢ ℝ Prod.fst ⋯) ξ) (MeasureTheory.MemLp.toLp (fun (z : E × E) => z.2 - z.1) hd)

The pairing ∫ ⟪ξ x, y - x⟫ dγ of a field ξ ∈ L²(μ; E) with the displacement of a coupling γ out of μ is the L²(γ) inner product of ξ ∘ Prod.fst with the displacement.

theorem TauCeti.IsCoupling.integral_inner_sub {E : Type u_1} [NormedAddCommGroup E] [MeasurableSpace E] [InnerProductSpace ℝ E] {μ ν : MeasureTheory.Measure E} {γ : MeasureTheory.Measure (E × E)} (hγ : IsCoupling γ μ ν) (hd : MeasureTheory.MemLp (fun (z : E × E) => z.2 - z.1) 2 γ) (ξ ζ : ↥(MeasureTheory.Lp E 2 μ)) :
∫ (z : E × E), inner ℝ (↑↑(ξ - ζ) z.1) (z.2 - z.1) ∂γ = ∫ (z : E × E), inner ℝ (↑↑ξ z.1) (z.2 - z.1) ∂γ - ∫ (z : E × E), inner ℝ (↑↑ζ z.1) (z.2 - z.1) ∂γ

The pairing with the square integrable displacement of a coupling is additive in the field.

theorem TauCeti.IsCoupling.integral_inner_smul_add_smul {E : Type u_1} [NormedAddCommGroup E] [MeasurableSpace E] [InnerProductSpace ℝ E] {μ ν : MeasureTheory.Measure E} {γ : MeasureTheory.Measure (E × E)} (hγ : IsCoupling γ μ ν) (hd : MeasureTheory.MemLp (fun (z : E × E) => z.2 - z.1) 2 γ) (ξ ζ : ↥(MeasureTheory.Lp E 2 μ)) (a b : ℝ) :
∫ (z : E × E), inner ℝ (↑↑(a • ξ + b • ζ) z.1) (z.2 - z.1) ∂γ = a * ∫ (z : E × E), inner ℝ (↑↑ξ z.1) (z.2 - z.1) ∂γ + b * ∫ (z : E × E), inner ℝ (↑↑ζ z.1) (z.2 - z.1) ∂γ

The pairing with the square integrable displacement of a coupling is linear in the field.

theorem TauCeti.IsCoupling.integral_inner_map_smul_add_smul {E : Type u_1} [NormedAddCommGroup E] [MeasurableSpace E] [BorelSpace E] [SecondCountableTopology E] [InnerProductSpace ℝ E] {μ ν : MeasureTheory.Measure E} {γ : MeasureTheory.Measure (E × E)} {t : ℝ} (hγt : IsCoupling (MeasureTheory.Measure.map (fun (z : E × E) => (z.1, (1 - t) • z.1 + t • z.2)) γ) μ ν) (ξ : ↥(MeasureTheory.Lp E 2 μ)) :
∫ (z : E × E), inner ℝ (↑↑ξ z.1) (z.2 - z.1) ∂MeasureTheory.Measure.map (fun (z : E × E) => (z.1, (1 - t) • z.1 + t • z.2)) γ = t * ∫ (z : E × E), inner ℝ (↑↑ξ z.1) (z.2 - z.1) ∂γ

Along the coupling (x, (1 - t) • x + t • y)₊ γ of μ with an interpolated law, the pairing of a field ξ ∈ L²(μ; E) with the displacement is t times its pairing with the displacement of γ.

theorem TauCeti.IsOptimalCoupling.abs_integral_inner_le {E : Type u_1} [NormedAddCommGroup E] [MeasurableSpace E] [BorelSpace E] [SecondCountableTopology E] [InnerProductSpace ℝ E] {γ : MeasureTheory.Measure (E × E)} [CompleteSpace E] {μ ν : WassersteinSpace 2 E} (hγ : IsOptimalCoupling (fun (z : E × E) => edist z.1 z.2 ^ 2) γ ↑↑μ ↑↑ν) (ξ : ↥(MeasureTheory.Lp E 2 ↑↑μ)) :
|∫ (z : E × E), inner ℝ (↑↑ξ z.1) (z.2 - z.1) ∂γ| ≤ ‖ξ‖ * dist μ ν

Cauchy–Schwarz for the pairing. For an optimal coupling γ of two laws μ and ν of P₂(E) for the quadratic cost and ξ ∈ L²(μ; E), |∫ ⟪ξ x, y - x⟫ dγ| ≤ ‖ξ‖ W₂(μ, ν).

theorem TauCeti.apply_le_apply_add_of_mem_moreauYosidaResolvent {E : Type u_1} [NormedAddCommGroup E] [MeasurableSpace E] [BorelSpace E] [SecondCountableTopology E] {ξ : E → E} [CompleteSpace E] {φ : WassersteinSpace 2 E → EReal} {τ : NNReal} {μ ν : WassersteinSpace 2 E} {γ : MeasureTheory.Measure (E × E)} [InnerProductSpace ℝ E] (hτ : 0 < τ) (hν : ν ∈ moreauYosidaResolvent φ τ μ) (hγ : IsOptimalCoupling (fun (z : E × E) => edist z.1 z.2 ^ 2) γ ↑↑ν ↑↑μ) (hξ : MeasureTheory.MemLp ξ 2 ↑↑ν) (h : ℝ) {ν' : WassersteinSpace 2 E} (hν' : ↑↑ν' = MeasureTheory.Measure.map (fun (x : E) => x + h • ξ x) ↑↑ν) :
φ ν ≤ φ ν' + ↑((h * ∫ (z : E × E), inner ℝ (z.1 - z.2) (ξ z.1) ∂γ + h ^ 2 / 2 * ∫ (x : E), ‖ξ x‖ ^ 2 ∂↑↑ν) / ↑τ)

The variational inequality of the JKO step. Let ν be a JKO step of time step τ > 0 from μ for the energy φ, let γ be an optimal coupling of ν and μ, and let ξ ∈ L²(ν; E). For every h : ℝ, the law ν' of x + h • ξ x under ν satisfies φ ν ≤ φ ν' + (h ∫ ⟪x - y, ξ x⟫ dγ + (h² / 2) ∫ ‖ξ‖² dν) / τ.

theorem TauCeti.integral_inner_eq_neg_mul_of_mem_moreauYosidaResolvent {E : Type u_1} [NormedAddCommGroup E] [MeasurableSpace E] [BorelSpace E] [SecondCountableTopology E] {ξ : E → E} [CompleteSpace E] {φ : WassersteinSpace 2 E → EReal} {τ : NNReal} {μ ν : WassersteinSpace 2 E} {γ : MeasureTheory.Measure (E × E)} [InnerProductSpace ℝ E] (hτ : 0 < τ) (hν : ν ∈ moreauYosidaResolvent φ τ μ) (hγ : IsOptimalCoupling (fun (z : E × E) => edist z.1 z.2 ^ 2) γ ↑↑ν ↑↑μ) (hξ : MeasureTheory.MemLp ξ 2 ↑↑ν) {f : ℝ → ℝ} {D : ℝ} (hf : ∀ᶠ (h : ℝ) in nhds 0, ∀ (ν' : WassersteinSpace 2 E), ↑↑ν' = MeasureTheory.Measure.map (fun (x : E) => x + h • ξ x) ↑↑ν → φ ν' = ↑(f h)) (hD : HasDerivAt f D 0) :
∫ (z : E × E), inner ℝ (z.1 - z.2) (ξ z.1) ∂γ = -(↑τ * D)

The Euler–Lagrange equation of the JKO step. Let ν be a JKO step of time step τ > 0 from μ for the energy φ, let γ be an optimal coupling of ν and μ, and let ξ ∈ L²(ν; E). Suppose that the energy is differentiable along the perturbation of ν by ξ: for h near 0, the law of x + h • ξ x under ν has energy f h, where f has derivative D at 0. Then ∫ ⟪x - y, ξ x⟫ dγ(x, y) = -τ D.

theorem TauCeti.integral_inner_eq_neg_mul_integral_inner_gradient_of_mem_moreauYosidaResolvent {E : Type u_1} [NormedAddCommGroup E] [MeasurableSpace E] [BorelSpace E] [SecondCountableTopology E] {ξ : E → E} [InnerProductSpace ℝ E] [CompleteSpace E] {V : E → ℝ} {C : ℝ} {τ : NNReal} {μ ν : WassersteinSpace 2 E} {γ : MeasureTheory.Measure (E × E)} (hV : Differentiable ℝ V) (hV' : ∀ (x : E), ‖gradient V x‖ ≤ C * (1 + ‖x‖)) (hτ : 0 < τ) (hν : ν ∈ moreauYosidaResolvent (fun (ρ : WassersteinSpace 2 E) => potentialEnergy V ↑↑ρ) τ μ) (hγ : IsOptimalCoupling (fun (z : E × E) => edist z.1 z.2 ^ 2) γ ↑↑ν ↑↑μ) (hξ : MeasureTheory.MemLp ξ 2 ↑↑ν) :
∫ (z : E × E), inner ℝ (z.1 - z.2) (ξ z.1) ∂γ = -(↑τ * ∫ (x : E), inner ℝ (gradient V x) (ξ x) ∂↑↑ν)

The Euler–Lagrange equation of the JKO step for the potential energy. Let V be a differentiable potential whose gradient grows at most linearly, ‖∇V x‖ ≤ C (1 + ‖x‖). Let ν be a JKO step of time step τ > 0 from μ for the potential energy ρ ↦ ∫ V dρ, and γ an optimal coupling of ν and μ. Then for every vector field ξ ∈ L²(ν; E), ∫ ⟪x - y, ξ x⟫ dγ(x, y) = -τ ∫ ⟪∇V x, ξ x⟫ dν(x).