Concurrent flow on short paths
Lax455465.ShortPathFlow · concepts/Lax455465/ShortPathFlow.lean · lax-455465
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
The length of a path is its number of edges. A fractional flow has path length at most if every path carrying positive flow has at most edges. For an undirected network, is the largest total capacity incident to a single vertex.
Concept map
Lean source view on GitHub
| 1 | import Lax455465.ConcurrentFlow |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Concurrent flow on short paths |
| 6 | type: definition |
| 7 | --- |
| 8 | The length of a path is its number of edges. A fractional flow has path |
| 9 | length at most if every path carrying positive flow has at most |
| 10 | edges. For an undirected network, is the largest total capacity |
| 11 | incident to a single vertex. |
| 12 | |
| 13 | # Formalization notes |
| 14 | |
| 15 | Path lengths are integers, compared with a real bound. Only the support |
| 16 | of the fractional flow matters. Incident capacity sums the capacity matrix |
| 17 | along one row, counting each edge incident to the vertex once. |
| 18 | -/ |
| 19 | |
| 20 | open scoped BigOperators NNReal |
| 21 | |
| 22 | namespace Lax455465.ShortPathFlow |
| 23 | |
| 24 | open Lax455465.ProductNetwork Lax455465.ConcurrentFlow |
| 25 | |
| 26 | /-- Every path carrying flow has at most `L` edges. -/ |
| 27 | def HasPathLengthAtMost {n : ℕ} (F : PathFlow n) (L : ℝ) : Prop := |
| 28 | ∀ P ∈ F.support, ((P.length - 1 : ℕ) : ℝ) ≤ L |
| 29 | |
| 30 | /-- The largest total capacity incident to one vertex. -/ |
| 31 | noncomputable def maxIncidentCapacity {n : ℕ} (N : Network n) : ℝ≥0 := |
| 32 | sSup {r | ∃ v : Fin n, (∑ u : Fin n, N.capacity v u) = r} |
| 33 | |
| 34 | end Lax455465.ShortPathFlow |
| 35 |
Formalization notes
Path lengths are integers, compared with a real bound. Only the support of the fractional flow matters. Incident capacity sums the capacity matrix along one row, counting each edge incident to the vertex once.
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments