MindFormal v1.0.0One Mind

MindFormal.Tools.A1067NativeFlowKernel.Hits

Closed-guard hits and the priority selector on continuous paths (P3-12 §1.2–§1.3, P3-61 C.3). On continuous paths p : [0, H] → V with a continuous guard g : V → ℝ, the first time at or after a release b with g (p t) ≥ 0, with sentinel H + 1 when there is none, is lower semicontinuous in the path and the release, and so of Baire class one: grazing hits, hits at 0 and at H are retained. Evaluation at a time clamped to [0, H] is continuous. The indicator that the guard is reached on [0, H] is the indicator of a closed set, so of class one. For finitely many labels with continuous guards and scores, the native priority selector (an eligible label with the largest score, the first in the fixed order among equal scores) has class-one weights: each weight is a product of indicators of open and closed comparisons, and at a state with an eligible label the weights are the one-hot vector of the selected label.

def MindFormal.A1067NativeFlowKernel.hitSet {V : Type u_1} [NormedAddCommGroup V] {H : ℝ} (g : V → ℝ) (p : C(↑(HorizonTime H), V)) (b : ℝ) :

The hits of the guard at or after the release.

Equations
Instances For
    noncomputable def MindFormal.A1067NativeFlowKernel.hitTime {V : Type u_1} [NormedAddCommGroup V] (g : V → ℝ) (H : ℝ) (q : C(↑(HorizonTime H), V) × ℝ) :

    The first hit of the closed guard at or after the release, sentinel H + 1.

    Equations
    Instances For
      theorem MindFormal.A1067NativeFlowKernel.hitSet_subset {V : Type u_1} [NormedAddCommGroup V] {H : ℝ} (g : V → ℝ) (p : C(↑(HorizonTime H), V)) (b : ℝ) :
      hitSet g p b ⊆ Set.Icc 0 H
      theorem MindFormal.A1067NativeFlowKernel.isClosed_hitSet {V : Type u_1} [NormedAddCommGroup V] {H : ℝ} {g : V → ℝ} (hg : Continuous g) (p : C(↑(HorizonTime H), V)) (b : ℝ) :
      theorem MindFormal.A1067NativeFlowKernel.sInf_mem_hitSet {V : Type u_1} [NormedAddCommGroup V] {H : ℝ} {g : V → ℝ} (hg : Continuous g) {p : C(↑(HorizonTime H), V)} {b : ℝ} (hne : (hitSet g p b).Nonempty) :
      sInf (hitSet g p b) ∈ hitSet g p b
      theorem MindFormal.A1067NativeFlowKernel.hitTime_nonneg {V : Type u_1} [NormedAddCommGroup V] {H : ℝ} (g : V → ℝ) (hH : 0 ≤ H) (q : C(↑(HorizonTime H), V) × ℝ) :
      0 ≤ hitTime g H q
      theorem MindFormal.A1067NativeFlowKernel.hitTime_le {V : Type u_1} [NormedAddCommGroup V] {H : ℝ} (g : V → ℝ) (q : C(↑(HorizonTime H), V) × ℝ) :
      hitTime g H q ≤ H + 1
      theorem MindFormal.A1067NativeFlowKernel.hitTime_le_iff {V : Type u_1} [NormedAddCommGroup V] {H : ℝ} {g : V → ℝ} (hg : Continuous g) {q : C(↑(HorizonTime H), V) × ℝ} {c : ℝ} (hc : c < H + 1) :
      hitTime g H q ≤ c ↔ ∃ t ∈ hitSet g q.1 q.2, t ≤ c

      Below the sentinel, a hit by c is a hit in the closed time interval up to c.

      The first hit is lower semicontinuous in the path and the release.

      theorem MindFormal.A1067NativeFlowKernel.baireClass_hitTime {V : Type u_1} [NormedAddCommGroup V] {H : ℝ} {g : V → ℝ} (hg : Continuous g) (hH : 0 ≤ H) :

      The first hit is of Baire class one.

      noncomputable def MindFormal.A1067NativeFlowKernel.evalAt {V : Type u_1} [NormedAddCommGroup V] {H : ℝ} (hH : 0 ≤ H) (p : C(↑(HorizonTime H), V)) (t : ℝ) :
      V

      Evaluation at a time clamped to [0, H].

      Equations
      Instances For
        theorem MindFormal.A1067NativeFlowKernel.continuous_evalAt {V : Type u_1} [NormedAddCommGroup V] {H : ℝ} (hH : 0 ≤ H) :
        Continuous fun (w : C(↑(HorizonTime H), V) × ℝ) => evalAt hH w.1 w.2
        theorem MindFormal.A1067NativeFlowKernel.evalAt_of_mem {V : Type u_1} [NormedAddCommGroup V] {H : ℝ} (hH : 0 ≤ H) (p : C(↑(HorizonTime H), V)) {t : ℝ} (ht : t ∈ Set.Icc 0 H) :
        evalAt hH p t = p ⟨t, ht⟩

        The paths on which the guard is reached somewhere on [0, H].

        Equations
        Instances For
          theorem MindFormal.A1067NativeFlowKernel.baireClass_reached {V : Type u_1} [NormedAddCommGroup V] {H : ℝ} {g : V → ℝ} (hg : Continuous g) :
          BaireClass 1 ((reachedSet g H).indicator fun (x : C(↑(HorizonTime H), V)) => 1)

          The indicator that the guard is reached by H is of Baire class one.

          theorem MindFormal.A1067NativeFlowKernel.hitTime_le_H_iff {V : Type u_1} [NormedAddCommGroup V] {H : ℝ} {g : V → ℝ} (hg : Continuous g) (p : C(↑(HorizonTime H), V)) :
          hitTime g H (p, 0) ≤ H ↔ p ∈ reachedSet g H

          The priority selector #

          noncomputable def MindFormal.A1067NativeFlowKernel.priorityWeight {V : Type u_1} {N : ℕ} (G S : V → Fin N → ℝ) (v : V) (i : Fin N) :

          The native priority weight of label i: i is eligible, every eligible earlier label has a strictly smaller score, and every eligible later label a score at most i's.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            def MindFormal.A1067NativeFlowKernel.PrioritySelected {V : Type u_1} {N : ℕ} (G S : V → Fin N → ℝ) (v : V) (i : Fin N) :

            The selected label: eligible, with the largest eligible score, first among equal scores.

            Equations
            Instances For
              theorem MindFormal.A1067NativeFlowKernel.prioritySelected_iff {V : Type u_1} [NormedAddCommGroup V] {N : ℕ} (G S : V → Fin N → ℝ) (v : V) (i : Fin N) :
              PrioritySelected G S v i ↔ 0 ≤ G v i ∧ (∀ j < i, G v j < 0 ∨ S v j < S v i) ∧ ∀ (j : Fin N), i < j → G v j < 0 ∨ S v j ≤ S v i
              theorem MindFormal.A1067NativeFlowKernel.priorityWeight_eq {V : Type u_1} [NormedAddCommGroup V] {N : ℕ} (G S : V → Fin N → ℝ) (v : V) (i : Fin N) :
              theorem MindFormal.A1067NativeFlowKernel.prioritySelected_unique {V : Type u_1} [NormedAddCommGroup V] {N : ℕ} {G S : V → Fin N → ℝ} {v : V} {i j : Fin N} (hi : PrioritySelected G S v i) (hj : PrioritySelected G S v j) :
              i = j

              The selected label is unique.

              theorem MindFormal.A1067NativeFlowKernel.exists_prioritySelected {V : Type u_1} [NormedAddCommGroup V] {N : ℕ} (G S : V → Fin N → ℝ) {v : V} (h : ∃ (i : Fin N), 0 ≤ G v i) :
              ∃ (i : Fin N), PrioritySelected G S v i

              A state with an eligible label has a selected label.

              theorem MindFormal.A1067NativeFlowKernel.baireClass_ite_closed {V : Type u_1} [NormedAddCommGroup V] {P : V → Prop} [DecidablePred P] (hP : IsClosed {v : V | P v}) :
              BaireClass 1 fun (v : V) => if P v then 1 else 0
              theorem MindFormal.A1067NativeFlowKernel.baireClass_ite_open {V : Type u_1} [NormedAddCommGroup V] {P : V → Prop} [DecidablePred P] (hP : IsOpen {v : V | P v}) :
              BaireClass 1 fun (v : V) => if P v then 1 else 0
              theorem MindFormal.A1067NativeFlowKernel.baireClass_priorityWeight {V : Type u_1} [NormedAddCommGroup V] {N : ℕ} {G S : V → Fin N → ℝ} (hG : Continuous G) (hS : Continuous S) (i : Fin N) :
              BaireClass 1 fun (v : V) => priorityWeight G S v i

              The priority weights are of Baire class one.