Distances along arrows of positive capacity #
For capacities c on an arrow family Q, the positive distance positiveEDist c s t is the
least length of a walk from s to t that traverses only arrows of positive capacity, and ⊤
when there is no such walk. For the residual capacities of a flow it is the length of a shortest
augmenting walk, the quantity that controls shortest-path augmentation.
The definition follows Mathlib's SimpleGraph.edist, the infimum in ℕ∞ of the lengths of
walks.
Along every arrow of positive capacity the distance from s rises by at most one, and conversely
every function vanishing at s with this property is a lower bound for the distance from s.
Along a shortest walk the distance rises by exactly one at every arrow, so a shortest walk is a
path, and a finite positive distance is less than the number of vertices.
Main definitions #
TauCeti.positiveEDist c s t: the positive distance fromstotfor the capacitiesc.
Main results #
TauCeti.positiveEDist_ne_top_iff: the positive distance is finite exactly for positively reachable vertices, andTauCeti.PositiveReachable.exists_length_eq_positiveEDistgives a walk attaining it.TauCeti.positiveEDist_le_add_oneandTauCeti.le_positiveEDist: the positive distance fromsis the largest function vanishing atsthat rises by at most one along every arrow of positive capacity.TauCeti.positiveEDist_eq_add_one_of_mem_arrowsandTauCeti.positiveEDist_lt_of_mem_arrows: every arrow of a shortest walk raises the distance by one.TauCeti.ArrowWalk.isPath_of_length_eq_positiveEDist: a shortest walk is a path.TauCeti.positiveEDist_lt_card: finite positive distances are less than the number of vertices.
The positive distance from s to t for the capacities c: the least length of a walk from
s to t that traverses only arrows of positive capacity, or ⊤ if t is not positively
reachable from s. For residual capacities it is the length of a shortest augmenting walk.
Instances For
A positively reachable vertex is reached by a walk of shortest length along arrows of positive capacity.
Following an arrow of positive capacity raises the positive distance by at most one.
A lower bound for positive distances: a function vanishing at s that rises by at most one
along every arrow of positive capacity is at most the positive distance from s.
Shortest walks. Every arrow of a shortest walk along arrows of positive capacity from s
raises the positive distance from s by one.
The positive distance from s strictly increases along every arrow of a shortest walk along
arrows of positive capacity from s.
A shortest walk along arrows of positive capacity is a path.
A positively reachable vertex is at positive distance less than the number of vertices.