§3.3, p. 16 — the magnet rule stays in the inner diamond and preserves the walking radius
ProvedStallEconomy.Magnet.rule_validmagnet-rulep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1rendezvous-problemstall-economy
Fix integers with . If the stall starts at and the customer is at , the magnet-rule rendezvous remains in . If , the customer travels exactly grid units:
In the paper's edge coordinates the Manhattan distance is times this maximum, so the second equality is the customer's walking distance when .
Formalization Note The theorem includes : the only grid point is the stall and customer location, and the outside-small-diamond clause is empty.
Preamble
import Mathlib import Definitions.Def_StallEconomy_Magnet_Setting
Formal statement
namespace StallEconomy.Magnet
theorem rule_valid (k h : ℕ) (hkh : 2 * h ≤ k)
(zo zc : ℤ × ℤ) (hzo : zo ∈ inner k h) (hzc : zc ∈ grid k) :
magnet k h zo zc ∈ inner k h ∧
(zc ∉ smallDiamond h zo →
max |zc.1 - (magnet k h zo zc).1|
|zc.2 - (magnet k h zo zc).2| = (h : ℤ)) := by sorry
end StallEconomy.Magnet
Source
Cao, Qi, Stall Economy: The Value of Mobility in Retail on Wheels, SSRN 3711896 (manuscript), pp. 13, 16, §3.3 paragraph after Definition 2; p. 45, grid distance
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.