MindFormal v1.0.0One Mind

MindFormal.Equations.NativeShift

def MindFormal.NativeSearch.shift {N : ℕ} {g f : ℝ → Fin N → ℝ} {r H : ℝ} (S : NativeSearch g f r H) (c : ℝ) :
NativeSearch (fun (t : ℝ) => g (c + t)) (fun (t : ℝ) => f (c + t)) (r - c) (H - c)

Translate a native search into elapsed time, preserving its complete first-event rule, score ranking and fixed priority.

Equations
  • S.shift c = { continuous_guard := ⋯, event := Option.map (fun (p : ℝ × Fin N) => (p.1 - c, p.2)) S.event, attained := ⋯, earliest := ⋯, maximal := ⋯, priority := ⋯, deferred := ⋯ }
Instances For
    theorem MindFormal.NativeSearch.shift_event {N : ℕ} {g f : ℝ → Fin N → ℝ} {r H : ℝ} (S : NativeSearch g f r H) (c t : ℝ) (i : Fin N) :
    (S.shift c).event = some (t - c, i) ↔ S.event = some (t, i)

    Translation has exactly the translated timed mark.

    def MindFormal.NativeSearch.after {N : ℕ} {g f : ℝ → Fin N → ℝ} {r H : ℝ} (S : NativeSearch g f r H) (c : ℝ) (before : ∀ t ∈ Set.Ico r c, ∀ (i : Fin N), g t i < 0) :
    NativeSearch g f (max r c) H

    An already searched interval can be discarded. The before-cut hold is derived from the actual censored search in resume; no winner is supplied.

    Equations
    • S.after c before = { continuous_guard := ⋯, event := S.event, attained := ⋯, earliest := ⋯, maximal := ⋯, priority := ⋯, deferred := ⋯ }
    Instances For
      def MindFormal.NativeSearch.resume {N : ℕ} {g f : ℝ → Fin N → ℝ} {r H : ℝ} (S : NativeSearch g f r H) (c : ℝ) (hc : c ≤ H) (empty : (restrictNativeSearch hc S).event = none) :
      NativeSearch (fun (t : ℝ) => g (c + t)) (fun (t : ℝ) => f (c + t)) (max r c - c) (H - c)

      Resume the next search after a closed-prefix deferral. Deferral at c rules out an event at the cut itself, so a retained endpoint is not duplicated. The effective release is max(r-c,0), derived from the original clock.

      Equations
      Instances For
        theorem MindFormal.NativeSearch.resume_event {N : ℕ} {g f : ℝ → Fin N → ℝ} {r H : ℝ} (S : NativeSearch g f r H) (c : ℝ) (hc : c ≤ H) (empty : (restrictNativeSearch hc S).event = none) (t : ℝ) (i : Fin N) :
        (S.resume c hc empty).event = some (t - c, i) ↔ S.event = some (t, i)

        Every resumed hit is the original hit with the cut subtracted.

        theorem MindFormal.NativeSearch.remaining_release (r c : ℝ) :
        max r c - c = max (r - c) 0

        The translated release is the nonnegative remaining refractory time.

        theorem MindFormal.NativeSearch.resume_zero_unqualified {N : ℕ} {g f : ℝ → Fin N → ℝ} {r H : ℝ} (S : NativeSearch g f r H) (c : ℝ) (hc : c ≤ H) (empty : (restrictNativeSearch hc S).event = none) (hr : r ≤ c) (i : Fin N) :
        g (c + 0) i < 0

        A closed-prefix deferral makes the resumed search strictly unqualified at elapsed zero whenever it has already been released.

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

        A closed native prefix keeps the original releases and censors each search. A cut-time event is retained, and positive pauses keep all later events outside a prefix that already deferred.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For