Lemma 1, p. 5 — with E[N] = c fixed, the least-variance law on {⌊c⌋, ⌈c⌉} maximizes 1 − E[(1 − p)^N]
ProvedPerimeterPatrol.Visible.lemma_1Let and . Let be the number of patrollers an attack meets, a nonnegative integer-valued random variable, each patroller detecting independently with probability , so the detection probability is .
- For every law on with mean ,
- The least-variance law with mean attains this bound: deterministically if is an integer, and otherwise , . It is a probability law with mean , and its detection probability equals the right-hand side above.
So the maximum of the detection probability over all laws with mean is the right-hand side, the value (2) with . This is the extremal fact behind Theorem 2: the defender's best possible guarantee is limited by the mean number of patrollers per attack, and the optimal schedule is the one that makes every attack meet the least-variance number.
Formalization Note. The page's "the distribution that maximizes … is the one that has the least variance" is formalized as: the least-variance law is a maximizer. Uniqueness is not claimed, because it fails at : with , both and give detection probability . The mean is assumed finite and equal to (HasSum).
import Mathlib import Definitions.Def_PerimeterPatrol_Visible_Model
namespace PerimeterPatrol.Visible theorem lemma_1 (p c : ℝ) (hp0 : 0 < p) (hp1 : p ≤ 1) (hc : 0 < c) : (∀ w : ℕ → ℝ, (∀ n, 0 ≤ w n) → HasSum w 1 → HasSum (fun n : ℕ => (n : ℝ) * w n) c → ∑' n : ℕ, (1 - (1 - p) ^ n) * w n ≤ valueC c p) ∧ ((∀ n, 0 ≤ twoPoint c n) ∧ HasSum (twoPoint c) 1 ∧ HasSum (fun n : ℕ => (n : ℝ) * twoPoint c n) c ∧ ∑' n : ℕ, (1 - (1 - p) ^ n) * twoPoint c n = valueC c p) := by sorry end PerimeterPatrol.Visible
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.