arrival_routing_inflow_map
def
For finite types V and S, a routing outflow function r : V → ℝ → Sum V S → ℝ, and departure counts z : V → ℝ, arrival_routing_inflow_map r z is the internal inflow vector in V → ℝ mapping each u : V to the sum over all v : V of r v (z v) (Sum.inl u).
Statement
noncomputable def arrival_routing_inflow_map {V S : Type*} [Fintype V] (r : V → ℝ → Sum V S → ℝ) (z : V → ℝ) : V → ℝ
- Defined in
- scout/2611-33785-a-polynomial-time-algorithm-for-arrival.md:182
- Verified
- 27 Nov 2026
- Axioms
- none listed
- Used by 1
- arrival_exact_departure_counts_eq_ceil_discountedIn a periodic routing network with finite internal vertex type V with decidable equality, absorbing terminal type S, origin o : V,…
Read back from the Lean
For types V and S where V is a finite type ([Fintype V]), a routing function r : V → ℝ → Sum V S → ℝ, and a function z : V → ℝ, arrival_routing_inflow_map is the function from V to ℝ defined by mapping each u : V to the sum over all v : V of r v (z v) (Sum.inl u).
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- Exact internal routing inflow map summing projected local outflows across all internal vertices. -/ noncomputable def arrival_routing_inflow_map {V S : Type*} [Fintype V] (r : V → ℝ → Sum V S → ℝ) (z : V → ℝ) : V → ℝ := fun u => ∑ v : V, r v (z v) (Sum.inl u)