Lemma 3.3 — under a valid labeling the sink is not reachable from the source in the residual graph
ProvedGoldbergTarjan.Generic.valid_labeling_sink_unreachableLet be a flow network, let be a preflow and let be any valid labeling for . Then
Lemma 3.3 says that the algorithm's preflow never admits an augmenting path; once the preflow has become a flow, Theorem 3.2 makes it a maximum flow.
import Mathlib import Definitions.Def_GoldbergTarjan_Generic_Labeling
namespace GoldbergTarjan.Generic
/-- Lemma 3.3 (Goldberg–Tarjan 1988, p. 926). If `f` is a preflow and `d` is any valid labeling
for `f`, then the sink `t` is not reachable from the source `s` in the residual graph `G_f`. -/
theorem valid_labeling_sink_unreachable {V : Type} [Fintype V]
(N : Network V) (f : V → V → ℝ) (d : V → ℕ∞)
(hf : IsPreflow N f) (hd : IsValidLabeling N f d) :
¬ ResidualReachable N f N.s N.t := 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 , a network , a real function on , and a labeling . Recall that has capacities with , a source , and a sink . Two hypotheses are assumed.
- is a preflow:
- pointwise;
- ;
- for all .
- is a valid labeling for : , , and whenever .
Conclusion. is not reachable from in the residual graph. That is, there is no finite sequence with for every .
Degenerate cases. Because , the empty path does not count. The statement is about every preflow for which some valid labeling exists; if no valid labeling exists for a given , the statement says nothing about that . always.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.