MindFormal v1.0.0One Mind

MindFormal.Run.GivenHistoryRecords.Native

Literal finite-window native searches of a supplied history. The added guard carries the entering release; it never resets an ongoing clock.

noncomputable def MindFormal.GivenHistoryRecords.nativePath {Ω : Type u_1} {A : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] [Fintype A] {N n : A → ℕ} {V : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (V a)] [(a : A) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} (r : GroupsWorld.ObservedContinuation μ ℱ A N n V Λ J) (H : NNReal) (a : A) (ω : Ω) (t : ℝ) :
PhysicalState (N a) (n a) (V a) (Λ a)
Equations
Instances For
    noncomputable def MindFormal.GivenHistoryRecords.score {Ω : Type u_1} {A : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] [Fintype A] {N n : A → ℕ} {V : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (V a)] [(a : A) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} (r : GroupsWorld.ObservedContinuation μ ℱ A N n V Λ J) (H : NNReal) (a : A) (ω : Ω) (t : ℝ) (i : Fin (N a)) :
    Equations
    Instances For
      noncomputable def MindFormal.GivenHistoryRecords.guard {Ω : Type u_1} {A : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] [Fintype A] {N n : A → ℕ} {V : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (V a)] [(a : A) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} (r : GroupsWorld.ObservedContinuation μ ℱ A N n V Λ J) (H : NNReal) (a : A) (ω : Ω) (t : ℝ) (i : Fin (N a)) :
      Equations
      Instances For
        noncomputable def MindFormal.GivenHistoryRecords.schedule {Ω : Type u_1} {A : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] [Fintype A] {N n : A → ℕ} {V : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (V a)] [(a : A) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} (r : GroupsWorld.ObservedContinuation μ ℱ A N n V Λ J) (H : NNReal) (a : A) (ω : Ω) :
        NativeSchedule (residualGuard (r.release a ω false) fun (t : ℝ) => ((r.member a).reads.guards false) ((ContinuousMap.IccExtend ⋯ (retractPath (processPath ⋯ H ω))) t)) (fun (t : ℝ) => ((r.member a).reads.scores false) ((ContinuousMap.IccExtend ⋯ (retractPath (processPath ⋯ H ω))) t)) (↑H) ((r.member a).pause false)
        Equations
        Instances For
          noncomputable def MindFormal.GivenHistoryRecords.release {Ω : Type u_1} {A : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] [Fintype A] {N n : A → ℕ} {V : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (V a)] [(a : A) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} (r : GroupsWorld.ObservedContinuation μ ℱ A N n V Λ J) (H : NNReal) (a : A) (ω : Ω) (k : ℕ) :
          Equations
          Instances For
            noncomputable def MindFormal.GivenHistoryRecords.search {Ω : Type u_1} {A : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] [Fintype A] {N n : A → ℕ} {V : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (V a)] [(a : A) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} (r : GroupsWorld.ObservedContinuation μ ℱ A N n V Λ J) (H : NNReal) (a : A) (ω : Ω) (k : ℕ) :
            NativeSearch (guard r H a ω) (score r H a ω) (release r H a ω k) ↑H
            Equations
            Instances For
              theorem MindFormal.GivenHistoryRecords.guard_eq {Ω : Type u_1} {A : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] [Fintype A] {N n : A → ℕ} {V : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (V a)] [(a : A) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} (r : GroupsWorld.ObservedContinuation μ ℱ A N n V Λ J) (H : NNReal) (a : A) (ω : Ω) (t : ℝ) (j : Fin (N a)) :
              guard r H a ω t j = if (r.member a).reads.outputs j = true then score r H a ω t j - (r.member a).reads.actionBar else -1
              theorem MindFormal.GivenHistoryRecords.initial_release {Ω : Type u_1} {A : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] [Fintype A] {N n : A → ℕ} {V : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (V a)] [(a : A) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} (r : GroupsWorld.ObservedContinuation μ ℱ A N n V Λ J) (H : NNReal) (a : A) (ω : Ω) :
              release r H a ω 0 = ↑(r.release a ω false)
              theorem MindFormal.GivenHistoryRecords.next_release {Ω : Type u_1} {A : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] [Fintype A] {N n : A → ℕ} {V : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (V a)] [(a : A) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} (r : GroupsWorld.ObservedContinuation μ ℱ A N n V Λ J) (H : NNReal) (a : A) (ω : Ω) {k : ℕ} {t : ℝ} {i : Fin (N a)} (he : (search r H a ω k).event = some (t, i)) :
              release r H a ω (k + 1) = t + (r.member a).pause false
              theorem MindFormal.GivenHistoryRecords.record_slot {Ω : Type u_1} {A : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] [Fintype A] {N n : A → ℕ} {V : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (V a)] [(a : A) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} (r : GroupsWorld.ObservedContinuation μ ℱ A N n V Λ J) (H : NNReal) (a : A) (ω : Ω) (k : ℕ) :
              ↑↑(r.records H ω a false) k = match (search r H a ω k).event with | none => emptyActionSlot (Fin (N a)) | some p => (p.1, Sum.inl p.2)
              theorem MindFormal.GivenHistoryRecords.windows {Ω : Type u_1} {A : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] [Fintype A] {N n : A → ℕ} {V : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (V a)] [(a : A) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} (r : GroupsWorld.ObservedContinuation μ ℱ A N n V Λ J) (H : NNReal) (a : A) (ω : Ω) {K : ℕ} (label : Fin K → Fin (N a)) (center radius phase : Fin K → ℝ) (_hr : ∀ (q : Fin K), 0 ≤ radius q) (hH : ∀ (q : Fin K), center q + radius q ≤ ↑H) (hout : ∀ (q : Fin K), (r.member a).reads.outputs (label q) = true) (before : ∀ (q : Fin K) (t : ℝ), phase q ≤ t → t < center q - radius q → ∀ (j : Fin (N a)), (r.member a).reads.outputs j = true → score r H a ω t j < (r.member a).reads.actionBar) (winner : ∀ (q : Fin K), (r.member a).reads.actionBar ≤ score r H a ω (center q + radius q) (label q)) (rivals : ∀ (q : Fin K), ∀ t ∈ Set.Icc (center q - radius q) (center q + radius q), ∀ (j : Fin (N a)), j ≠ label q → (r.member a).reads.outputs j = true → (r.member a).reads.actionBar ≤ score r H a ω t j → score r H a ω t j ≤ score r H a ω t (label q) ∧ (score r H a ω t j = score r H a ω t (label q) → label q ≤ j)) (initial : ∀ (h : 0 < K), phase ⟨0, h⟩ ≤ ↑(r.release a ω false) ∧ ↑(r.release a ω false) ≤ center ⟨0, h⟩ + radius ⟨0, h⟩) (next : ∀ (q : Fin K) (h : ↑q + 1 < K), phase ⟨↑q + 1, h⟩ ≤ center q - radius q + (r.member a).pause false ∧ center q + radius q + (r.member a).pause false ≤ center ⟨↑q + 1, h⟩ + radius ⟨↑q + 1, h⟩) (q : Fin K) :
              ∃ (t : ℝ), (search r H a ω ↑q).event = some (t, label q) ∧ ↑↑(r.records H ω a false) ↑q = (t, Sum.inl (label q)) ∧ |t - center q| ≤ radius q

              Complete score windows imply the actual native winners and times. The first certificate bounds the actual entering release on both sides.

              theorem MindFormal.GivenHistoryRecords.absent {Ω : Type u_1} {A : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] [Fintype A] {N n : A → ℕ} {V : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (V a)] [(a : A) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} (r : GroupsWorld.ObservedContinuation μ ℱ A N n V Λ J) (H : NNReal) (a : A) (ω : Ω) (i : Fin (N a)) (upper : ∀ t ∈ Set.Icc 0 ↑H, score r H a ω t i < (r.member a).reads.actionBar) (k : ℕ) (t : ℝ) :
              (search r H a ω k).event ≠ some (t, i)