Proof of Theorem 9 — the maximum-flow value of Problem is
ProvedEdmondsKarp.Scaling.maxFlow_value_problemLet and be positive integers with (), let , and let . Problem has a maximum flow, and every maximum flow of Problem has value
The number of augmentations in a phase of the scaling method is bounded by the gap between this value and the value of the phase's initial flow.
import Mathlib import Definitions.Def_EdmondsKarp_Scaling_Transport import Definitions.Def_EdmondsKarp_Scaling_Augmentation import Definitions.Def_EdmondsKarp_Scaling_Run
namespace EdmondsKarp.Scaling
/-- Proof of Theorem 9 (p. 260): Problem `p` has a maximum flow, and the value `f_p^*` of every
maximum flow of Problem `p` is `min(∑_i [a_i/2^p], ∑_j [b_j/2^p])`. -/
theorem maxFlow_value_problem {m n : ℕ} (hm : 1 ≤ m) (hn : 1 ≤ n) (a : Fin m → ℕ)
(b : Fin n → ℕ) (d : Fin m → Fin n → ℝ) (ha : ∀ i, 0 < a i) (hb : ∀ j, 0 < b j)
(hsum : ∑ i, a i = ∑ j, b j) (hd : ∀ i j, 0 ≤ d i j) (p : ℕ) :
(∃ x : Flow m n, IsMaxFlow (problem a b d p) x) ∧
∀ x : Flow m n, IsMaxFlow (problem a b d p) x →
x.ret = ((min (∑ i, a i / 2 ^ p) (∑ j, b j / 2 ^ p) : ℕ) : ℝ) := by sorry
end EdmondsKarp.Scaling
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let and . Take natural numbers and , and reals .
Hypotheses.
- and ;
- ;
- ;
- is any natural number.
Conclusion. Consider Problem : capacities on , on , and costs . The statement asserts two things:
- Problem has at least one maximum flow.
- Every maximum flow of Problem has return value
Each term is floored separately before summing.
A maximum flow here means a flow (nonnegative, within the capacities, conserving at every node) whose return value is at least that of every flow.
Degenerate cases.
- For the value is .
- Once exceeds every and , all capacities are and the asserted value is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.