Select the first actual V slot not preceding a phase. A failed search is included. No successful label or reporting itinerary is supplied.
noncomputable def
MindFormal.A897RecallCompletion.phaseSlot
{N : ℕ}
{g f : ℝ → Fin N → ℝ}
{H pause : ℝ}
(S : NativeSchedule g f H pause)
(s : ℝ)
:
Equations
Instances For
theorem
MindFormal.A897RecallCompletion.phaseSlot_release
{N : ℕ}
{g f : ℝ → Fin N → ℝ}
{H pause : ℝ}
(S : NativeSchedule g f H pause)
{s : ℝ}
(hs : 0 ≤ s)
:
The remaining V pause is inherited from the last actual answer. It is at most one pause after phase onset even on failure branches.
noncomputable def
MindFormal.A897RecallCompletion.phaseStop
{N : ℕ}
{g f : ℝ → Fin N → ℝ}
{H pause : ℝ}
(S : NativeSchedule g f H pause)
(s : ℝ)
:
Equations
- MindFormal.A897RecallCompletion.phaseStop S s = match (S.search (MindFormal.A897RecallCompletion.phaseSlot S s)).event with | none => H | some p => p.1
Instances For
theorem
MindFormal.A897RecallCompletion.phaseSlot_before_event
{N : ℕ}
{g f : ℝ → Fin N → ℝ}
{H pause : ℝ}
(S : NativeSchedule g f H pause)
{s t : ℝ}
{k : ℕ}
{i : Fin N}
(hst : s ≤ t)
(he : (S.search k).event = some (t, i))
:
Any later actual event forces the selected first slot to be an actual event too, at no later time. Terminal failures are not skipped.
theorem
MindFormal.A897RecallCompletion.phaseSlot_event_of_qualified
{N : ℕ}
{g f : ℝ → Fin N → ℝ}
{H pause : ℝ}
(S : NativeSchedule g f H pause)
{s : ℝ}
(i : Fin N)
(hrel : S.release (phaseSlot S s) ≤ H)
(hqualified : (S.search (phaseSlot S s)).event = none → 0 ≤ g H i)
(rivals : ∀ t ∈ Set.Icc s (phaseStop S s), ∀ (j : Fin N), j ≠ i → g t j < 0)
:
A high endpoint cannot be deferred. Only guards before the actual first event or phase end are needed to identify its label.