Samplinglib
Lean gate passed 2026-08-19T06:32:39.895922+00:00 · 7bcd37294df1
production module

AutoSamplingTheory.TechnicalLemmas.Measure.Transport

7 named declarations scanned from AutoSamplingTheory/TechnicalLemmas/Measure/Transport.lean.

Imports
Imported by
Placeholder scan
0 declaration(s) flagged
Gate status
Compiled

Declarations

def AutoSamplingTheory.TechnicalLemmas.Measure.Transport.IsCoupling Compiled Not mapped

- A measure on a product space couples two marginals when its first and second marginals are the specified measures. Probability normalization remains visible through the marginal measures' typeclass assumptions at consumers.

def IsCoupling {α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
    (γ : Measure (α × β)) (μ : Measure α) (ν : Measure β) : Prop :=
  γ.fst = μ ∧ γ.snd = ν

/-- The feasible set of couplings with prescribed marginals. -/
def AutoSamplingTheory.TechnicalLemmas.Measure.Transport.couplingSet Compiled Not mapped

- The feasible set of couplings with prescribed marginals.

def couplingSet {α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
    (μ : Measure α) (ν : Measure β) : Set (Measure (α × β)) :=
  {γ | IsCoupling γ μ ν}

/-- Chewi Definition 1.3.1 and display (1.3.2): the Kantorovich
transport cost for an extended nonnegative cost function.

Measurability and lower semicontinuity of `c` are not needed to state the
extended-real infimum.  They enter the later existence theorem. -/
def AutoSamplingTheory.TechnicalLemmas.Measure.Transport.transportCost Compiled Compiled

- Chewi Definition 1.3.1 and display (1.3.2): the Kantorovich transport cost for an extended nonnegative cost function. Measurability and lower semicontinuity of `c` are not needed to state the extended-real infimum. They enter the later existence theorem.

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). -/
theorem AutoSamplingTheory.TechnicalLemmas.Measure.Transport.transportCost_eq_sInf Compiled Compiled

- Source-facing expansion of the Kantorovich value in display (1.3.2).

theorem transportCost_eq_sInf
    {α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
    (c : α × β → ℝ≥0∞) (μ : Measure α) (ν : Measure β) :
    transportCost c μ ν =
      sInf {r : ℝ≥0∞ | ∃ γ ∈ couplingSet μ ν, r = ∫⁻ z, c z ∂γ} :=
  rfl

/-- A prescribed probability marginal forces the joint coupling measure to
have total mass one. This recovers the probability-measure interface required
by expectations and transport costs from the marginal contract. -/
theorem AutoSamplingTheory.TechnicalLemmas.Measure.Transport.isProbabilityMeasure_of_isCoupling_left Compiled Not mapped

- A prescribed probability marginal forces the joint coupling measure to have total mass one. This recovers the probability-measure interface required by expectations and transport costs from the marginal contract.

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. -/
theorem AutoSamplingTheory.TechnicalLemmas.Measure.Transport.isCoupling_prod Compiled Not mapped

- 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.

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. -/
theorem AutoSamplingTheory.TechnicalLemmas.Measure.Transport.couplingSet_nonempty Compiled Not mapped

- The feasible set in the Kantorovich problem is nonempty for probability marginals.

theorem couplingSet_nonempty
    {α β : Type*} [MeasurableSpace α] [MeasurableSpace β]
    (μ : Measure α) (ν : Measure β) [IsProbabilityMeasure μ] [IsProbabilityMeasure ν] :
    (couplingSet μ ν).Nonempty :=
  ⟨μ.prod ν, isCoupling_prod μ ν⟩

end Transport
end Measure
end TechnicalLemmas
end AutoSamplingTheory