Lemma 3.10 — at most nonsaturating pushes (with )
ProvedGoldbergTarjan.Generic.nonsaturating_push_count_leLet be a flow network with vertices and edges, satisfying the standing assumption of §2, and let be an execution of the generic algorithm, started from the initial state of Fig. 2 with the simple labeling. Then the number of nonsaturating pushes among its steps (pushes Push after which ) satisfies
This is the dominant term of the operation count of Theorem 3.11.
Formalization Note. The paper states once, at the start of §2, "for ease in stating time bounds"; its proof of Lemma 3.10 uses it in the last inequality, so it is a hypothesis here.
import Mathlib import Definitions.Def_GoldbergTarjan_Generic_Run
namespace GoldbergTarjan.Generic
/-- Lemma 3.10 (Goldberg–Tarjan 1988, p. 928). Under the standing assumption `m ≥ n - 1`
(§2, p. 923), the number of nonsaturating pushing operations is at most `4n²m`, where
`n = |V|` and `m = |E|`. -/
theorem nonsaturating_push_count_le {V : Type} [Fintype V] [DecidableEq V]
(N : Network V) (hm : Fintype.card V - 1 ≤ N.numEdges)
(σ : ℕ → State V) (K : ℕ) (hrun : IsRun N σ K) :
nonsaturatingPushCount N σ K ≤ 4 * Fintype.card V ^ 2 * N.numEdges := by sorry
end GoldbergTarjan.Generic
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement concerns an arbitrary finite type with decidable equality, , a network with capacities , a sequence of states , and . Let be the number of ordered pairs with . Two hypotheses are assumed.
- , with natural-number subtraction.
- is a run of length from the initial state, each step being an applicable push or relabel.
Conclusion. Count the indices for which some pair satisfies both of the following:
- the step from to is an applicable ;
- afterwards .
This number is at most .
Degenerate cases. Since forces , the subtraction in hypothesis 1 does not truncate, and the hypothesis forces . Networks with fewer than positive-capacity ordered pairs are excluded from the statement. For , the count is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.