MindFormal v1.0.0One Mind

MindFormal.Run.A699Shared.OnsetSearch

noncomputable def MindFormal.A699Shared.onsetIndex {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) :

The first search not consumed by the strict preparatory history.

Equations
Instances For
    theorem MindFormal.A699Shared.onset_search_time {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) {k : ℕ} {t : ℝ} {i : Fin N} (he : (S.search (onsetIndex S c + k)).event = some (t, i)) :
    c ≤ t
    theorem MindFormal.A699Shared.onset_before {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) (hc : c ≤ H) (t : ℝ) :
    t ∈ Set.Ico (S.release (onsetIndex S c)) c → ∀ (i : Fin N), g t i < 0

    No qualification in the unconsumed search lies strictly before the cut. At the cut itself qualification is permitted and its priority is kept.

    noncomputable def MindFormal.A699Shared.onsetSearch {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 (onsetIndex S c)) c - c) (H - c)

    Construct the elapsed first search from the actual original search. Its first-qualification, score maximum, priority, closed deadline and deferral rules are inherited by proved restriction/translation.

    Equations
    Instances For
      theorem MindFormal.A699Shared.onsetSearch_event {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) (hc : c ≤ H) :
      (onsetSearch S c hc).event = Option.map (fun (p : ℝ × Fin N) => (p.1 - c, p.2)) (S.search (onsetIndex S c)).event
      theorem MindFormal.A699Shared.onset_release {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) :

      The original release at the strict prefix's computed endpoint is exactly the release decoded from that prefix.

      theorem MindFormal.A699Shared.onset_release_nonneg {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) :
      theorem MindFormal.A699Shared.onsetSearch_release {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) :
      theorem MindFormal.A699Shared.onset_future_events {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) (hc0 : 0 ≤ c) (hc : c ≤ H) (F : NativeSchedule (residualGuard (RetainedClock.remainingRelease c ρ 0 (actionPast c (nativeActionHistory S))) 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 (onsetIndex S c + k)).event

      Every native event after strict preparation is the corresponding original event translated by the cut. The retained release is computed from the actual past. The formula includes an onset event, all later refractory searches, priority, deadline events and no-act termination.

      theorem MindFormal.A699Shared.onset_future_history {N : ℕ} {g f : ℝ → Fin N → ℝ} {H ρ : ℝ} (S : NativeSchedule g f H ρ) (c : ℝ) (hc0 : 0 ≤ c) (hc : c ≤ H) (F : NativeSchedule (residualGuard (RetainedClock.remainingRelease c ρ 0 (actionPast c (nativeActionHistory S))) fun (t : ℝ) => g (c + t)) (fun (t : ℝ) => f (c + t)) (H - c) ρ) :

      The constructed native future is precisely the zero-inclusive history split, so its measurable append recovers the actual original history without duplicating or omitting any endpoint mark.