Theorem 2, proof, p. 7 — every attack window of length t holds exactly ⌊λt⌋ blue time points and exactly one red slot
ProvedPerimeterPatrol.Visible.blue_red_countLet , , , and let . Consider the blue time points (, ) and the red slots () of Theorem 2. Then the window contains
- exactly blue time points (counted by index ), and
- exactly one red slot .
This is the deterministic part of the claim that "regardless of when the attack begins, any attack period will encounter exactly blue patrollers, and 1 red patroller with probability ": the count of blue patrollers does not depend on where the attack starts, and the only randomness an attack meets is a single red slot.
Formalization Note. The page states this when is not an integer; the statement here has no such hypothesis, and in the integer case it says that every window of length holds exactly of the points , . The window is half-open, , the attack-window convention of the mission; because attacks start after time .
import Mathlib import Definitions.Def_PerimeterPatrol_Visible_Model import Definitions.Def_PerimeterPatrol_Visible_OptimalPatrol
namespace PerimeterPatrol.Visible
theorem blue_red_count (lam t a : ℝ) (hlam : 0 < lam) (ht : 0 < t) (ha : 0 ≤ a) : Nat.card {jk : ℕ × ℕ | IsBlue lam t jk ∧ a < bluePoint lam t jk ∧ bluePoint lam t jk ≤ a + t} = ⌊lam * t⌋₊ ∧ Nat.card {j : ℕ | a < (j : ℝ) * t ∧ (j : ℝ) * t ≤ a + t} = 1 := by sorry
end PerimeterPatrol.Visible
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.