Inequality (10) — the shortest-path flow is bounded by cost_s(S) + cost_s(O) + cost_f(O)
ProvedLocalSearchFL.CFL.shortest_path_flow_bound_10Let be a finite set of clients and a set of facilities in a metric instance with distances , integer capacities and facility costs . Let and be CFL solutions, with at least one open copy. Then there is a map from the copies of to the copies of such that
- for every copy of , minimizes over the copies of (so is a shortest path), and
- writing ,
This is inequality (10) of the paper: routing all flow of along its shortest path gives a minimum-cost flow, whose cost is at most that of the flow of Lemma 5.4. The sets are then used in inequality (11).
Formalization Note Every copy of , including copies serving no client, is assigned to some ; this requires to have a copy, which holds whenever there is a client. Ties in the minimization are broken arbitrarily (the statement asserts existence of one such ).
import Mathlib import Definitions.Def_LocalSearchFL_CFL_IsCFLLocalOpt
namespace LocalSearchFL.CFL
/-- **Inequality (10)**, p. 560: for any two CFL solutions `X` and `O` (with `O` opening at
least one copy), route the flow of every `v_s` along a shortest path `v_s → w_{τ(s)} → sink`,
i.e. `τ(s)` minimizes `c_{so} + f_o/u_o` over the copies `o` of `O` (ties broken arbitrarily);
writing `T_o = τ⁻¹(o)`, this flow satisfies
`cost_s(X) + cost_s(O) + cost_f(O) ≥ ∑_{o ∈ O} ∑_{s ∈ T_o} |N_X(s)| (c_{so} + f_o/u_o)`. -/
theorem shortest_path_flow_bound_10 {Cl Fa : Type} [Fintype Cl]
(I : MetricInstance Cl Fa) (u : Fa → ℕ) (hu : ∀ i, 0 < u i) (f : Fa → ℝ) (hf : ∀ i, 0 ≤ f i)
(X O : CFLSol Cl Fa u) (hO : 0 < O.n) :
∃ τ : Fin X.n → Fin O.n,
(∀ s o, I.cf (X.loc s) (O.loc (τ s)) + f (O.loc (τ s)) / (u (O.loc (τ s)) : ℝ) ≤
I.cf (X.loc s) (O.loc o) + f (O.loc o) / (u (O.loc o) : ℝ)) ∧
∑ o, ∑ s ∈ Finset.univ.filter (fun s => τ s = o),
((X.nbhd s).card : ℝ) * (I.cf (X.loc s) (O.loc o) + f (O.loc o) / (u (O.loc o) : ℝ)) ≤
costS I X + costS I O + costF f O := by sorry
end LocalSearchFL.CFL
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting:
- Clients and facilities. A finite type of clients (possibly empty) and an arbitrary type of facilities.
- Metric instance . A real distance on that is nonnegative, symmetric and satisfies the triangle inequality, with not required. Write and .
- Capacities. with all .
- Facility costs. with all .
Solutions. and are arbitrary solutions. No local optimality is assumed. For a solution :
- the copies are indexed , and each copy is a copy of facility ;
- the assignment is , with and ;
- the costs are
Hypothesis. has at least one copy: .
Weight notation. For a copy of and a copy of , write
Conclusion. There is a map from the copies of to the copies of such that:
- Minimality. For every copy of and every copy of , . In words, minimizes .
- Cost bound.
The double sum on the left equals .
Degenerate cases:
- Empty . The left side of the cost bound is and the right side is . The substance is then only the existence of a minimizing .
- has no copies. is the empty map and both conditions hold trivially.
- The hypothesis . It is automatic when is nonempty. It excludes the case where is empty and opens nothing.
- Positive self-distances. need not be .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.