With integer capacities, is a positive integer and augmentation preserves integrality
ProvedEdmondsKarp.MaxCapacity.augment_integralLet be a network in which every capacity is an integer, let be an integer-valued flow in , and let be an augmenting path relative to . Then the augmentation of is a positive integer,
and the augmented flow is again integer-valued on every arc of .
By induction, a run of the labeling method started from an integer-valued flow consists of integer-valued flows only. This is what turns the geometric decrease of the gap into a bound on the number of augmentations in Theorem 2.
Formalization Note Integer-valued means on the arcs of and on the return arc; values of f off the arcs of are not constrained.
import Mathlib import Definitions.Def_EdmondsKarp_MaxCapacity_Network import Definitions.Def_EdmondsKarp_MaxCapacity_Augmentation
namespace EdmondsKarp.MaxCapacity
/-- §1.1, p. 250: if all capacities are integers, then for any augmenting path `P` relative to any
integer-valued flow `f`, `ε` is a positive integer, and the augmented flow is again integer-valued. -/
theorem augment_integral {V : Type} [Fintype V] [DecidableEq V] (N : Network V)
(hcap : IntegralCaps N) (f : V → V → ℝ) (P : List V) (hf : IsFlow N f)
(hfint : IsIntegralOn N f) (hP : IsAugPath N f P) :
(∃ z : ℤ, 0 < z ∧ pathEps N f P = z) ∧ IsIntegralOn N (augment N f P) := by sorry
end EdmondsKarp.MaxCapacity
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be any finite type with decidable equality, and let be any network on . It has source , sink with , a loop-free finite arc set not containing , and capacities on . Its arcs are .
Hypotheses.
- for every .
- is a flow: on the arcs of ; on ; and conservation holds over the arcs of at every node.
- for every arc of , including .
- is an augmenting path for : pairwise distinct nodes from to , each consecutive pair having ( and ) or ( and ).
Definitions used in the conclusion.
- is the minimum step value along . The step value of is:
- if both and are in ;
- if only ;
- if .
- is the augmented function:
- ;
- on each , , where
- is or when is a step (according as or not), and otherwise;
- is or when is a step (according as or not), and otherwise;
- elsewhere.
Conclusion.
Degenerate cases. The statement is vacuous when has no augmenting path, for example when is empty. The integer-capacity hypothesis is vacuous when is empty. The conclusion says nothing about values of off the arcs of .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.