MindFormal v1.0.0One Mind

MindFormal.Run.A1067NativeFlowKernel.Sched

Random attention schedules (P3-61 C.2, the restart property). A random schedule has k focus times in [0, H], each a stopping time, and labels known at their times. Its attention mode is predictable: each pulse (t_j, t_j + ρ] with label ℓ is the predictable set between two stopping times. Rounding the times up to the dyadic grid of mesh 2⁻ⁿ (and capping at H) gives random schedules with finitely many values, at distance at most 2⁻ⁿ in every time.

Parameters from their parts #

def MindFormal.A1067NativeFlowKernel.mkPar {N n p q k : ℕ} (s : St N n p q) (z : ℝ) (t : Fin k → ℝ) :
Par N n p q k

The flow parameter with a given start, stimulus and focus times.

Equations
Instances For
    @[simp]
    theorem MindFormal.A1067NativeFlowKernel.parS_mkPar {N n p q k : ℕ} (s : St N n p q) (z : ℝ) (t : Fin k → ℝ) :
    parS (mkPar s z t) = s
    @[simp]
    theorem MindFormal.A1067NativeFlowKernel.parZ_mkPar {N n p q k : ℕ} (s : St N n p q) (z : ℝ) (t : Fin k → ℝ) :
    parZ (mkPar s z t) = z
    @[simp]
    theorem MindFormal.A1067NativeFlowKernel.parT_mkPar {N n p q k : ℕ} (s : St N n p q) (z : ℝ) (t : Fin k → ℝ) :
    parT (mkPar s z t) = t
    theorem MindFormal.A1067NativeFlowKernel.mkPar_parts {N n p q k : ℕ} (θ : Par N n p q k) :
    mkPar (parS θ) (parZ θ) (parT θ) = θ
    theorem MindFormal.A1067NativeFlowKernel.dist_mkPar_le {N n p q k : ℕ} (s s' : St N n p q) (z z' : ℝ) (t t' : Fin k → ℝ) :
    dist (mkPar s z t) (mkPar s' z' t') ≤ ↑(Fintype.card (ParIdx N n p q k)) * max (dist s s') (max (dist z z') (dist t t'))

    The parameter is Lipschitz in its parts.

    theorem MindFormal.A1067NativeFlowKernel.continuous_mkPar {N n p q k : ℕ} :
    Continuous fun (x : St N n p q × ℝ × (Fin k → ℝ)) => mkPar x.1 x.2.1 x.2.2

    Random schedules #

    structure MindFormal.A1067NativeFlowKernel.RSched {Ω : Type u_1} [mΩ : MeasurableSpace Ω] (ℱ : MeasureTheory.Filtration NNReal mΩ) (H : NNReal) (k N : ℕ) :
    Type u_1

    A random schedule of k foci on [0, H]: stopping times and labels known at their times.

    Instances For
      def MindFormal.A1067NativeFlowKernel.RSched.times {N k : ℕ} {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {H : NNReal} (S : RSched ℱ H k N) (ω : Ω) :
      Fin k → ℝ

      The real focus times of a random schedule at a sample.

      Equations
      Instances For
        theorem MindFormal.A1067NativeFlowKernel.isStoppingTime_add_const {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {τ : Ω → WithTop NNReal} (hτ : MeasureTheory.IsStoppingTime ℱ τ) (ρ : NNReal) :
        MeasureTheory.IsStoppingTime ℱ fun (ω : Ω) => τ ω + ↑ρ

        A stopping time plus a constant is a stopping time.

        def MindFormal.A1067NativeFlowKernel.RSched.labelTime {N k : ℕ} {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {H : NNReal} (S : RSched ℱ H k N) (j : Fin k) (i : Fin N) (ω : Ω) :

        The time of focus j when its label is i, and never otherwise.

        Equations
        Instances For
          noncomputable def MindFormal.A1067NativeFlowKernel.RSched.mode {N k : ℕ} {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {H : NNReal} (ρ : NNReal) (S : RSched ℱ H k N) (z : NNReal × Ω) :
          Fin N → ℝ

          The attention mode of a random schedule.

          Equations
          Instances For
            theorem MindFormal.A1067NativeFlowKernel.RSched.mode_eq_one_iff {N k : ℕ} {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {H ρ : NNReal} (S : RSched ℱ H k N) (z : NNReal × Ω) (i : Fin N) :
            mode ρ S z i = 1 ↔ ∃ (j : Fin k), S.label z.2 j = i ∧ S.time j z.2 < z.1 ∧ z.1 ≤ S.time j z.2 + ρ
            theorem MindFormal.A1067NativeFlowKernel.RSched.mem_pulseSet {N k : ℕ} {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {H : NNReal} (ρ : NNReal) (S : RSched ℱ H k N) (j : Fin k) (i : Fin N) (z : NNReal × Ω) :
            z ∈ (ItoFiltration.stopSet fun (ω : Ω) => S.labelTime j i ω + ↑ρ) \ ItoFiltration.stopSet (S.labelTime j i) ↔ S.label z.2 j = i ∧ S.time j z.2 < z.1 ∧ z.1 ≤ S.time j z.2 + ρ
            theorem MindFormal.A1067NativeFlowKernel.RSched.measurable_mode {N k : ℕ} {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {H : NNReal} (ρ : NNReal) (S : RSched ℱ H k N) :

            The mode of a random schedule is predictable.

            Dyadic rounding #

            noncomputable def MindFormal.A1067NativeFlowKernel.dyUp (H : NNReal) (n : ℕ) (t : NNReal) :

            Rounding up to the dyadic grid of mesh 2⁻ⁿ, capped at H.

            Equations
            Instances For
              theorem MindFormal.A1067NativeFlowKernel.le_dyUp {H : NNReal} (n : ℕ) {t : NNReal} (ht : t ≤ H) :
              t ≤ dyUp H n t
              theorem MindFormal.A1067NativeFlowKernel.dyUp_le_add (H : NNReal) (n : ℕ) (t : NNReal) :
              ↑(dyUp H n t) ≤ ↑t + (2 ^ n)⁻¹
              theorem MindFormal.A1067NativeFlowKernel.dyUp_mem (H : NNReal) (n : ℕ) (t : NNReal) :
              dyUp H n t ∈ insert H ((fun (j : ℕ) => ↑j / 2 ^ n) '' Set.Iic ⌈↑H * 2 ^ n⌉₊)

              The values of the rounding form a finite set.

              theorem MindFormal.A1067NativeFlowKernel.dyUp_le_iff {H : NNReal} (n : ℕ) {t s : NNReal} (hs : s < H) :
              dyUp H n t ≤ s ↔ t ≤ ↑⌊↑s * 2 ^ n⌋₊ / 2 ^ n

              dyUp H n t ≤ s is decided by t at the grid point below s.

              noncomputable def MindFormal.A1067NativeFlowKernel.RSched.round {N k : ℕ} {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {H : NNReal} (S : RSched ℱ H k N) (n : ℕ) :
              RSched ℱ H k N

              A random schedule rounded up to the dyadic grid.

              Equations
              Instances For
                theorem MindFormal.A1067NativeFlowKernel.RSched.round_time {N k : ℕ} {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {H : NNReal} (S : RSched ℱ H k N) (n : ℕ) (j : Fin k) (ω : Ω) :
                (S.round n).time j ω = dyUp H n (S.time j ω)
                theorem MindFormal.A1067NativeFlowKernel.RSched.round_label {N k : ℕ} {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {ℱ : MeasureTheory.Filtration NNReal mΩ} {H : NNReal} (S : RSched ℱ H k N) (n : ℕ) :
                (S.round n).label = S.label