Proof of Theorem 9, eq. (6) — total augmentations
ProvedEdmondsKarp.Scaling.augmentations_le_telescopeLet , be positive integers with (), let , and let satisfy and for all . Write
for the maximum-flow value of Problem . For every run of the scaling method with phases, making augmentations in Problem ,
This is the counting step of the proof of Theorem 9; the remainder of the proof is an estimate of the right-hand side.
Formalization Note The inequality is stated in with the right-hand form , where .
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, eq. (6) (p. 260): writing `f_p^* = min(∑_i [a_i/2^p], ∑_j [b_j/2^p])` for the
maximum-flow value of Problem `p`, the total number of augmentations of a run of the scaling method
is at most `f_{l-1}^* + ∑_{p=1}^{l-1} (f_{p-1}^* - 2 f_p^*) = f_0^* - ∑_{p=1}^{l-1} f_p^*`. -/
theorem augmentations_le_telescope {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) (l : ℕ)
(hla : ∀ i, a i < 2 ^ l) (hlb : ∀ j, b j < 2 ^ l) (K : ℕ → ℕ) (F : ℕ → ℕ → Flow m n)
(hR : IsScalingRun a b d l K F) :
((∑ p ∈ Finset.range l, K p : ℕ) : ℤ) ≤
((min (∑ i, a i) (∑ j, b j) : ℕ) : ℤ) -
∑ p ∈ Finset.Ico 1 l, ((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 on the data.
- and ;
- ;
- ;
- is a natural number with and for all .
Hypothesis on the run. is a scaling run with phases. That is:
- ;
- for ;
- each (for ) is obtained from by one augmentation, by the path minimum along an augmenting path in Problem ;
- every with is a pseudo-extreme flow in Problem ;
- no augmenting path exists relative to in Problem .
Problem has capacities and and costs .
Conclusion. Writing
the following inequality holds in the integers, so the subtraction is not truncated:
Degenerate cases.
- is impossible under the hypotheses: it would force , contradicting with .
- With , all (so ), the right-hand sum is empty, and the claim is .
- Since , the first minimum equals .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.