Additively Separable Grid Transport via Layered Minimum-Cost Flow #
Formalizes the $(d + 1)$-layer minimum-cost network flow reduction for discrete optimal transport between integral histograms on the $d$-dimensional grid $\{0, \dots, L - 1\}^d$ under any additively separable cost $c(a, b) = \sum_{s = 0}^{d - 1} c_s(a_s, b_s)$ .
Instead of forming the dense $L^d \times L^d$ bipartite transportation graph ($L^{2d}$ arcs),
routing coordinates one axis per layer produces a $(d + 1)$-layer directed acyclic CostNetwork
with $(d + 1) L^d$ vertices and $d L^{d + 1}$ positive-capacity arcs. This module establishes the
forward cost-preserving projection from any integral transport plan to a feasible flow
(totalCost_flowOfIntegralPlan) and the conditional lower bound showing that any minimum-cost
flow has cost at most the cost of every real-valued fractional coupling
(totalCost_le_realCoupling_of_isMinCost).
Main definitions #
Cslib.Algorithms.Lean.MaxFlow.IsIntegralTransportPlan: integral transport matrixM : (Fin d → Fin L) → (Fin d → Fin L) → ℕwith prescribed row sumspand column sumsq.Cslib.Algorithms.Lean.MaxFlow.separablePlanCost: total separable cost∑ a, ∑ b, M a b * ∑ s : Fin d, coordCost s (a s) (b s).Cslib.Algorithms.Lean.MaxFlow.separableGridCostNetwork: the $(d + 1)$-layerCslib.Algorithms.Lean.MaxFlow.CostNetworkonFin (d + 1) × (Fin d → Fin L).Cslib.Algorithms.Lean.MaxFlow.flowOfIntegralPlan: canonical projection of an integral transport plan to a feasible flow onseparableGridCostNetwork.
Main results #
Cslib.Algorithms.Lean.MaxFlow.totalCost_flowOfIntegralPlan: projecting an integral transport plan preserves total cost ((flowOfIntegralPlan...).totalCost = separablePlanCost).Cslib.Algorithms.Lean.MaxFlow.flow_le_supply_on_separableGridCostNetwork: cut-conservation bound showing every arc flow onseparableGridCostNetworkis strictly belowk + 1.Cslib.Algorithms.Lean.MaxFlow.totalCost_le_realCoupling_of_isMinCost: complementary slackness optimality against arbitrary real-valued couplings with marginalspandq.
An integral transport plan between nonnegative integer histograms p, q on (Fin d → Fin L)
is a matrix M with row sums p and column sums q.
Row-sum marginal constraint
∑ b, M a b = p a.Column-sum marginal constraint
∑ a, M a b = q b.
The $(d + 1)$-layer CostNetwork on Fin (d + 1) × (Fin d → Fin L) for histograms p, q
of total mass k and 1D coordinate costs coordCost. Valid single-axis arcs carry capacity
k + 1 so every feasible flow of mass k is strictly unsaturated on every valid arc.
Project an integral transport plan M (with total mass k) to a feasible flow on
separableGridCostNetwork k p q coordCost.
Projecting an integral transport plan M onto separableGridCostNetwork preserves total cost
identically: (flowOfIntegralPlan coordCost hM hk).totalCost = separablePlanCost coordCost M.
Cut-conservation bound: on separableGridCostNetwork k p q coordCost with ∑ a, p a = k,
every feasible flow f carries at most k units on every directed pair (u, v), hence is
strictly below cap u v = k + 1 on every valid layer arc.
Exact fractional optimality via complementary slackness: if f is a minimum-cost integral
flow on separableGridCostNetwork k p q coordCost (∑ a, p a = k), then for ANY nonnegative real
matrix W : (Fin d → Fin L) → (Fin d → Fin L) → ℝ with row sums p a and column sums q b,
(f.totalCost : ℝ) ≤ ∑ a, ∑ b, W a b * separablePairCost coordCost a b.