theorem
MindFormal.A699Shared.last_slot_occupied
{N : ℕ}
{h : FiniteActionHistory (Fin N)}
(hn : RetainedClock.nextIndex h ≠ 0)
:
∃ (i : Fin N), (↑h (RetainedClock.nextIndex h - 1)).2 = Sum.inl i
theorem
MindFormal.A699Shared.historyPulse_last
{N : ℕ}
{h : FiniteActionHistory (Fin N)}
{ρ H : ℝ}
(hh : ChronologicalHistory h)
(hbefore : ∀ (k : ℕ) (i : Fin N), (↑h k).2 = Sum.inl i → (↑h k).1 ≤ H)
(hsep : ∀ (k l : ℕ) (i j : Fin N), k < l → (↑h k).2 = Sum.inl i → (↑h l).2 = Sum.inl j → (↑h k).1 + ρ ≤ (↑h l).1)
(t : ℝ)
(ht : H ≤ t)
(i : Fin N)
:
historyPulse ρ h t i = if RetainedClock.nextIndex h ≠ 0 ∧ (↑h (RetainedClock.nextIndex h - 1)).2 = Sum.inl i ∧ t < (↑h (RetainedClock.nextIndex h - 1)).1 + ρ then
1
else 0
Only the last selection can remain live after a separated history. The prefix may be strict at its endpoint; no artificial closed-endpoint search or qualifying mark is inserted.
theorem
MindFormal.A699Shared.remainingPulse_of_separated
{N : ℕ}
{h : FiniteActionHistory (Fin N)}
{ρ H : ℝ}
(hh : ChronologicalHistory h)
(hbefore : ∀ (k : ℕ) (i : Fin N), (↑h k).2 = Sum.inl i → (↑h k).1 ≤ H)
(hsep : ∀ (k l : ℕ) (i j : Fin N), k < l → (↑h k).2 = Sum.inl i → (↑h l).2 = Sum.inl j → (↑h k).1 + ρ ≤ (↑h l).1)
(enter : Fin N → NNReal)
(t : ℝ)
(ht : 0 ≤ t)
(i : Fin N)
:
residualPulse enter ρ h (H + t) i = if t < ↑(RetainedClock.remainingPulse H ρ enter h i) then 1 else 0
theorem
MindFormal.A699Shared.strict_remainingPulse
{N : ℕ}
{ρ H : ℝ}
{g f : ℝ → Fin N → ℝ}
(S : NativeSchedule g f H ρ)
(c : ℝ)
(enter : Fin N → NNReal)
(t : ℝ)
(ht : 0 ≤ t)
(i : Fin N)
:
residualPulse enter ρ (actionPast c (nativeActionHistory S)) (c + t) i = if t < ↑(RetainedClock.remainingPulse c ρ enter (actionPast c (nativeActionHistory S)) i) then 1 else 0
The strict preparatory record decodes the exact future duration of every inherited pulse, including a pulse expiring at onset.
theorem
MindFormal.A699Shared.native_onset_mode
{N : ℕ}
{ρ H : ℝ}
{g f : ℝ → Fin N → ℝ}
(S : NativeSchedule g f H ρ)
(c : ℝ)
(hc0 : 0 ≤ c)
(hc : c ≤ H)
(enter : Fin N → NNReal)
(F :
NativeSchedule
(residualGuard (RetainedClock.remainingRelease c ρ 0 (actionPast c (nativeActionHistory S))) fun (t : ℝ) =>
g (c + t))
(fun (t : ℝ) => f (c + t)) (H - c) ρ)
(t : ℝ)
(ht : 0 ≤ t)
(i : Fin N)
:
residualPulse enter ρ (nativeActionHistory S) (c + t) i = residualPulse (RetainedClock.remainingPulse c ρ enter (actionPast c (nativeActionHistory S))) ρ
(nativeActionHistory F) t i
The elapsed native mode consists of the computed remaining pulse and the proved onset-inclusive future schedule. It is exactly the original mode at every nonnegative elapsed time, including endpoints.