arrival_hybrid_routing_inflow_map
For finite types V and S, period lengths d : V → ℕ, multiplicity vectors m : V → Sum V S → ℝ, local routing rules r : V → ℝ → Sum V S → ℝ, restored period sets W : V → Finset ℕ, and departure counts z : V → ℝ, arrival_hybrid_routing_inflow_map d m r W z is the internal inflow vector in V → ℝ mapping each u : V to the sum over all v : V of (if Nat.floor (z v / (d v : ℝ)) ∈ W v then r v (z v) else (z v / (d v : ℝ)) • m v) (Sum.inl u).
Statement
noncomputable def arrival_hybrid_routing_inflow_map {V S : Type*} [Fintype V] (d : V → ℕ) (m : V → Sum V S → ℝ) (r : V → ℝ → Sum V S → ℝ) (W : V → Finset ℕ) (z : V → ℝ) : V → ℝ
- Defined in
- scout/2611-33785-a-polynomial-time-algorithm-for-arrival.md:182
- Verified
- 27 Nov 2026
- Axioms
- none listed
Read back from the Lean
Given types V and S with V finite ([Fintype V]), and functions d : V → ℕ, m : V → (V ⊕ S) → ℝ, r : V → ℝ → (V ⊕ S) → ℝ, W : V → Finset ℕ, and z : V → ℝ, arrival_hybrid_routing_inflow_map d m r W z is defined as the function from V to ℝ sending each u : V to the sum over all v : V of:
- r v (z v) (Sum.inl u), if Nat.floor (z v / (d v : ℝ)) ∈ W v;
- (z v / (d v : ℝ)) * m v (Sum.inl u), otherwise.
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
/-- Hybrid internal routing inflow map summing projected hybrid local outflows across all internal vertices. -/ noncomputable def arrival_hybrid_routing_inflow_map {V S : Type*} [Fintype V] (d : V → ℕ) (m : V → Sum V S → ℝ) (r : V → ℝ → Sum V S → ℝ) (W : V → Finset ℕ) (z : V → ℝ) : V → ℝ := fun u => ∑ v : V, (if Nat.floor (z v / (d v : ℝ)) ∈ W v then r v (z v) else (z v / (d v : ℝ)) • m v) (Sum.inl u)