arrival_hybrid_local_rule
For types V and S, a period length dv : ℕ, a multiplicity vector mv : Sum V S → ℝ, an exact local routing rule rv : ℝ → Sum V S → ℝ, a restored period set Wv : Finset ℕ, and an input z : ℝ, arrival_hybrid_local_rule dv mv rv Wv z is the vector in Sum V S → ℝ equal to rv z if Nat.floor (z / (dv : ℝ)) ∈ Wv and (z / (dv : ℝ)) • mv otherwise.
Statement
noncomputable def arrival_hybrid_local_rule {V S : Type*} (dv : ℕ) (mv : Sum V S → ℝ) (rv : ℝ → Sum V S → ℝ) (Wv : Finset ℕ) (z : ℝ) : Sum V S → ℝ
- Defined in
- scout/2611-33785-a-polynomial-time-algorithm-for-arrival.md:175
- Verified
- 27 Nov 2026
- Axioms
- none listed
Read back from the Lean
Given types V and S, a natural number dv, a function mv : V ⊕ S → ℝ, a function rv : ℝ → (V ⊕ S → ℝ), a finite set of natural numbers Wv : Finset ℕ, and a real number z : ℝ, arrival_hybrid_local_rule defines the function from V ⊕ S to ℝ that:
- evaluates to rv z if Nat.floor (z / dv) ∈ Wv, and
- evaluates to (z / dv) • mv (the scalar multiple of mv by z / dv) 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 local outflow rule coinciding with exact rule on restored periods and linear average elsewhere. -/ noncomputable def arrival_hybrid_local_rule {V S : Type*} (dv : ℕ) (mv : Sum V S → ℝ) (rv : ℝ → Sum V S → ℝ) (Wv : Finset ℕ) (z : ℝ) : Sum V S → ℝ := if (Nat.floor (z / (dv : ℝ))) ∈ Wv then rv z else (z / (dv : ℝ)) • mv