MindFormal v1.0.0One Mind

MindFormal.Run.A910SearchReturns.ScanCalendar

Native calendars when some candidate always qualifies: the k-th search fires exactly at its release k·pause (within the horizon), whatever wins it, and a label that strictly out-scores every other qualified candidate at a release is the label recorded there.

theorem MindFormal.A910SearchReturns.search_at_release {N : ℕ} {guard score : ℝ → Fin N → ℝ} {H release : ℝ} (S : NativeSearch guard score release H) (hR : release ≤ H) (w : Fin N) (hq : 0 ≤ guard release w) :
∃ (i : Fin N), S.event = some (release, i)

A search whose release is qualified fires at its release.

theorem MindFormal.A910SearchReturns.search_label {N : ℕ} {guard score : ℝ → Fin N → ℝ} {H release : ℝ} (S : NativeSearch guard score release H) {t : ℝ} {i w : Fin N} (he : S.event = some (t, i)) (hq : 0 ≤ guard t w) (hd : ∀ (j : Fin N), j ≠ w → 0 ≤ guard t j → score t j < score t w) :
i = w

A strictly dominant qualified label at the event time is the recorded label.

theorem MindFormal.A910SearchReturns.always_calendar {N : ℕ} {guard score : ℝ → Fin N → ℝ} {H pause : ℝ} (S : NativeSchedule guard score H pause) (hq : ∀ t ∈ Set.Icc 0 H, ∃ (w : Fin N), 0 ≤ guard t w) (k : ℕ) :
↑k * pause ≤ H → ∃ (i : Fin N), (S.search k).event = some (↑k * pause, i)

If at every time some label qualifies, the k-th search fires at k·pause.

theorem MindFormal.A910SearchReturns.always_calendar_label {N : ℕ} {guard score : ℝ → Fin N → ℝ} {H pause : ℝ} (S : NativeSchedule guard score H pause) (hq : ∀ t ∈ Set.Icc 0 H, ∃ (w : Fin N), 0 ≤ guard t w) (k : ℕ) (hk : ↑k * pause ≤ H) (w : Fin N) (hw : 0 ≤ guard (↑k * pause) w) (hd : ∀ (j : Fin N), j ≠ w → 0 ≤ guard (↑k * pause) j → score (↑k * pause) j < score (↑k * pause) w) :
(S.search k).event = some (↑k * pause, w)

Under the same hypothesis, the k-th recorded label is the strictly dominant one.

theorem MindFormal.A910SearchReturns.calendar_none {N : ℕ} {guard score : ℝ → Fin N → ℝ} {H pause : ℝ} (S : NativeSchedule guard score H pause) (k : ℕ) (hk : H < ↑k * pause) :

Beyond the horizon no search fires.