Lemma 3.8 — at most relabelings per vertex and overall (first-in, first-out algorithm)
ProvedGoldbergTarjan.FIFO.relabel_count_lefifonetwork-flowsp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1push-relabel
Let . In every run of the first-in, first-out algorithm, the number of relabeling operations is at most for each vertex, and in total
A relabeling is a push/relabel operation that takes the relabeling branch of Fig. 3. The bound caps the total increase of the labels, which is the budget used to count passes in Lemma 4.3.
Preamble
import Mathlib import Definitions.Def_GoldbergTarjan_FIFO_Network import Definitions.Def_GoldbergTarjan_FIFO_PushRelabel import Definitions.Def_GoldbergTarjan_FIFO_Algorithm import Definitions.Def_GoldbergTarjan_FIFO_Counts
Formal statement
namespace GoldbergTarjan.FIFO
/-- Lemma 3.8 (Goldberg–Tarjan 1988, p. 927), for the first-in, first-out algorithm: the number of
relabeling operations is at most `2n − 1` per vertex and at most `(2n − 1)(n − 2) < 2n²`
overall, where `n = |V|`. The relabelings counted are the push/relabel operations of all
discharges of the run that take the relabeling branch of Fig. 3. -/
theorem relabel_count_le {V : Type} [Fintype V] [DecidableEq V]
(N : Network V) (L : V → List V) (K : ℕ) (S : ℕ → State V) (J : ℕ → ℕ)
(hrun : IsFIFORun N L K S J) :
(∀ x, relabelCountAt N L K S J x ≤ 2 * Fintype.card V - 1) ∧
relabelCount N L K S J ≤ (2 * Fintype.card V - 1) * (Fintype.card V - 2) ∧
(2 * Fintype.card V - 1) * (Fintype.card V - 2) < 2 * Fintype.card V ^ 2 := by sorry
end GoldbergTarjan.FIFO
Source
Goldberg, Tarjan, A New Approach to the Maximum-Flow Problem, J. ACM 35(4), 1988, p. 927, Lemma 3.8
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. The theorem fixes:
- a finite type with and decidable equality;
- a network with nonnegative real capacities (with ), source and sink ;
- a list assignment , a natural number , and sequences of states and of natural numbers.
Hypothesis. is a first-in, first-out run of discharges. That is:
- is an edge list: lists without repetition exactly the with or ;
- has the initial flow, the labels and elsewhere, and current positions ;
- the queue of contains each with once, tagged ;
- for each , results from one discharge of the front vertex of using push/relabel operations.
Relabel count at . For each vertex , is the number of pairs such that:
- ;
- is the front vertex of ;
- ;
- at the configuration , the current entry of exists, is not applicable, and the current position is the last one of .
Claim. The theorem asserts three things, in natural-number arithmetic:
- for every , including and ;
- ;
- .
Part 3 is a pure arithmetic fact about .
Degenerate cases.
- Since , neither nor is truncated.
- For , part 2 asserts that there are no relabel operations at all.
- With , all counts are and parts 1–2 hold trivially.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.