MindFormal v1.0.0One Mind

MindFormal.Run.ResidualSearchShift

theorem MindFormal.RetainedClock.native_next_none {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) :

The computed first absent slot is a genuinely deferred native search.

The entering release decoded from an actual prefix is nonnegative, including an empty prefix. Unused post-deferral release slots are not used.

noncomputable def MindFormal.RetainedClock.firstFuture {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) (hc : c ≤ H) :
NativeSearch (fun (t : ℝ) => g (c + t)) (fun (t : ℝ) => f (c + t)) (max (S.release (nextIndex (nativeActionHistory (S.closedPrefix c hc)))) c - c) (H - c)

The first future search is constructed from the full native schedule and its closed prefix. Its index, elapsed release and cut exclusion are derived; neither a future winner nor a clock compatibility premise is data.

Equations
Instances For
    theorem MindFormal.RetainedClock.firstFuture_event {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) (hc : c ≤ H) (t : ℝ) (i : Fin N) :

    The first future marked event is exactly the corresponding original event with c subtracted, with no duplicated event at the cut.

    theorem MindFormal.RetainedClock.firstFuture_release {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) (hc : c ≤ H) :

    The elapsed release is exactly L13's stored duration decoder on the actual closed prefix. This bridges the translated search to the current state's clock coordinate without storing absolute time or the prefix.

    theorem MindFormal.RetainedClock.future_events {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) (hc0 : 0 ≤ c) (hc : c ≤ H) (hg : ∀ (i : Fin N), ContinuousOn (fun (t : ℝ) => g t i) (Set.Icc 0 H)) (F : NativeSchedule (residualGuard (remainingRelease c ρ 0 (nativeActionHistory (S.closedPrefix c hc))) fun (t : ℝ) => g (c + t)) (fun (t : ℝ) => f (c + t)) (H - c) ρ) (k : ℕ) :
    (F.search k).event = Option.map (fun (p : ℝ × Fin N) => (p.1 - c, p.2)) (S.search (nextIndex (nativeActionHistory (S.closedPrefix c hc)) + k)).event

    All future slots of a native clock are the original slots after the closed prefix, with elapsed times. The comparison schedule uses exactly the retained release gate, so the proof includes refractory compatibility, deferral and priority. This identifies clocks on the same shifted guard and score paths; it does not yet identify the physical continuation paths.

    theorem MindFormal.RetainedClock.closed_event {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) (hc : c ≤ H) (k : ℕ) (t : ℝ) (i : Fin N) :
    ((S.closedPrefix c hc).search k).event = some (t, i) ↔ (S.search k).event = some (t, i) ∧ t ≤ c

    Every present event in a closed prefix occurs at or before its cut, and every original event there is retained, including a cut-time event.

    theorem MindFormal.RetainedClock.future_index {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) (hc : c ≤ H) {k : ℕ} {t : ℝ} {i : Fin N} (he : (S.search k).event = some (t, i)) (ht : c < t) :

    A hit after the closed cut cannot lie in a retained prefix slot.

    theorem MindFormal.RetainedClock.future_strict {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) (hc : c ≤ H) (k : ℕ) {t : ℝ} {i : Fin N} (he : (S.search (nextIndex (nativeActionHistory (S.closedPrefix c hc)) + k)).event = some (t, i)) :
    c < t

    No elapsed future slot duplicates an event belonging to the closed cut.

    theorem MindFormal.RetainedClock.future_pulse {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) (hc0 : 0 ≤ c) (hc : c ≤ H) (hg : ∀ (i : Fin N), ContinuousOn (fun (t : ℝ) => g t i) (Set.Icc 0 H)) (F : NativeSchedule (residualGuard (remainingRelease c ρ 0 (nativeActionHistory (S.closedPrefix c hc))) fun (t : ℝ) => g (c + t)) (fun (t : ℝ) => f (c + t)) (H - c) ρ) (t : ℝ) (ht : 0 ≤ t) (i : Fin N) :

    The original focus coefficient is exactly the carried old pulse plus the computed future pulses, with half-open expiry and the closed-cut event convention. This holds at every nonnegative elapsed time, also past H.