(21)–(22) — LP duality for the SOS function
ProvedSOSInference.Means.eq_22Let (), and let be a finite family of points of that contains every (as the merged sample contains ). Take the target mean and assume that the linear program (21) is feasible, i.e. that lies in the convex hull of the . Then the SOS value equals the optimal value of the simplified dual problem, and the dual maximum is attained:
This is the starting point of the asymptotic analysis: it replaces a minimisation over couplings by a maximisation over a single vector and slacks, each controlled by the distance from to the support points.
Formalization Note The paper reduces to "without loss of generality" and uses strong duality for the event, of probability tending to one, that the LP is feasible; feasibility is a hypothesis here. The hypothesis that every is some is the paper's , .
import Mathlib import Definitions.Def_SOSInference_Means_sos
namespace SOSInference.Means
open scoped RealInnerProductSpace
/-- **(21)–(22)**, §7.1, pp. 35–36 (Blanchet, Kang, Sample Out-of-Sample Inference Based on
Wasserstein Distance, arXiv:1605.01340v4, pp. 35–36, (21), (22)): LP duality for the SOS function.
Let `x_1, …, x_n` (`n ≥ 1`) be points of `ℝ^l` and `z` a finite family containing every `x_i`
(as `Z_{n+m} ⊇ X_n`). Take `θ* = 0` (p. 35: "without loss of generality we assume `θ* = 0`")
and assume the LP (21) is feasible. Then the optimal value `R_n^W(0)` of (21) equals the maximum
of the simplified dual (22):
`max_{λ, γ_i ≥ 0} {−λᵀX̄_n − (1/n) Σ_i γ_i}` subject to
`−λᵀx_i − γ_i ≤ inf_j {−λᵀz_j + ‖x_i − z_j‖₂²}` for all `i`,
and the maximum is attained.
**Formalization Note.** "max" is `IsGreatest` of the set of dual objective values. The paper
invokes strong duality where the LP is feasible ("for all `n` large enough with probability
one", p. 35); feasibility is the hypothesis `hfeas`. The hypothesis `hx` is the paper's
`Z_k = X_k`, `k ≤ n`, which turns the `j = i` constraint into `γ_i ≥ 0`. -/
theorem eq_22 {l n : ℕ} {ι : Type*} [Fintype ι] (hn : 0 < n) (x : Fin n → E l) (z : ι → E l)
(hx : ∀ i, ∃ j, z j = x i) (hfeas : ∃ cpl, IsFeasibleCoupling (n := n) z 0 cpl) :
IsGreatest
{v : ℝ | ∃ (lam : E l) (γ : Fin n → ℝ), (∀ i, 0 ≤ γ i) ∧
(∀ i, -⟪lam, x i⟫ - γ i ≤ ⨅ j, (-⟪lam, z j⟫ + ‖x i - z j‖ ^ 2)) ∧
v = -⟪lam, xbar x⟫ - (1 / (n : ℝ)) * ∑ i, γ i}
(sos x z 0) := by sorry
end SOSInference.Means
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.