MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch04.ReportCounts

Chapter 4's report counts on a verified continuing-learning reference (04.21 (S2)–(S4)): the native count of an output's acts in a window; its lower bound when the report read returns to the bar within a set time after every act; its upper bound when the read stays below the bar for a set time after every act; and the mean step (C8) for each bound.

noncomputable def MindFormal.LearningRun.reportCount {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) (b : Fin N) (L U : ℝ) (z : Ω) :

04.21 (S3): the native count of output b's acts with time in [L,U], over the run's first 1+⌊H/θ⌋ action slots; no later slot can act by the horizon.

Equations
Instances For
    theorem MindFormal.learningRun_act_measurable {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) (k : ℕ) (i : Fin N) (L U : ℝ) :
    MeasurableSet (C.act k i L U)

    04.22 (T1): the event that native slot k is label i at a time in [L,U] is measurable: the slot record is measurable from primitive data.

    theorem MindFormal.learningRun_record_inl {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) (k : ℕ) (z : Ω) (t : ℝ) (i : Fin N) :
    C.record k z = (t, Sum.inl i) ↔ ((C.schedule z).search k).event = some (t, i)

    04.21 (S3): a slot's record shows label i at t exactly when its native event is i at t.

    theorem MindFormal.nativeSchedule_slot_time {M : ℕ} {guard score : ℝ → Fin M → ℝ} {H pause : ℝ} (s : NativeSchedule guard score H pause) (k : ℕ) (t : ℝ) (i : Fin M) :
    (s.search k).event = some (t, i) → ↑k * pause ≤ t

    04.21 (S3), 04.24 (P7a): in any native schedule, slot k's event, if any, is at or after k pauses.

    theorem MindFormal.learningRun_slot_time {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) (z : Ω) (k : ℕ) (t : ℝ) (i : Fin N) :
    ((C.schedule z).search k).event = some (t, i) → ↑k * C.data.pause false ≤ t

    04.21 (S3): slot k's native act, if any, is at or after k pauses.

    theorem MindFormal.learningRun_slot_spacing {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) (z : Ω) {j : ℕ} {t : ℝ} {i : Fin N} (hj : ((C.schedule z).search j).event = some (t, i)) (k : ℕ) :
    j < k → ∀ (s : ℝ) (l : Fin N), ((C.schedule z).search k).event = some (s, l) → t + C.data.pause false ≤ s

    04.21 (S3): an act in a later slot comes at least one pause after an earlier act.

    theorem MindFormal.learningRun_slot_index {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) (z : Ω) {k : ℕ} {t : ℝ} {i : Fin N} (he : ((C.schedule z).search k).event = some (t, i)) :

    04.21 (S3): a slot that acts is among the run's first 1+⌊H/θ⌋.

    theorem MindFormal.learningRun_event_score {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) {z : Ω} (hz : z ∈ C.good) {k : ℕ} {t : ℝ} {j : Fin N} (he : ((C.schedule z).search k).event = some (t, j)) :

    04.21 (S3): on the corridor event, a native act of label j at t is an output whose reference score is at least the action bar minus the score error there.

    theorem MindFormal.learningRun_guard_of_score {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) {z : Ω} (hz : z ∈ C.good) {i : Fin N} {t : ℝ} (ht0 : 0 ≤ t) (htH : t ≤ ↑C.horizon) (hout : C.data.reads.outputs i = true) (hq : C.data.reads.actionBar + C.error ≤ C.score z i t) :

    04.21 (S3): on the corridor event, an output whose reference score is at the action bar plus the score error at t∈[0,H] qualifies there in the actual run.

    theorem MindFormal.learningRun_first_act {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) {z : Ω} (hz : z ∈ C.good) (b : Fin N) {L r u : ℝ} (hL : 0 ≤ L) (hr : 0 ≤ r) (hLu : L + r ≤ u) (huH : u ≤ ↑C.horizon) (hout : C.data.reads.outputs b = true) (pending : ∀ t ∈ Set.Ico (L + r - C.data.pause false) L, 0 ≤ t → ∀ (j : Fin N), C.data.reads.outputs j = true → C.score z j t < C.data.reads.actionBar - C.error) (hq : C.data.reads.actionBar + C.error ≤ C.score z b u) (rivals : ∀ (j : Fin N), j ≠ b → C.data.reads.outputs j = true → ∀ t ∈ Set.Icc L u, C.score z j t < C.data.reads.actionBar - C.error) :
    ∃ (k : ℕ) (t : ℝ), ((C.schedule z).search k).event = some (t, b) ∧ t ∈ Set.Icc L u ∧ ∀ j < k, ∀ (s : ℝ) (i : Fin N), ((C.schedule z).search j).event = some (s, i) → s < L

    04.21 (S3): on the corridor event, the first act in a window. If every output's reference score is below the action bar minus the score error on [L+r-θ,L) after time zero, 0≤r (no act in the last θ-r before L, so the slot pending at L is released by L+r), output b's is at the bar plus the error at u≤H with u≥L+r, L≥0, and every other output's is below the bar minus the error on [L,u], then some slot k is an act of b in [L,u], and every earlier slot's act is before L.

    theorem MindFormal.learningRun_next_act {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) {z : Ω} (hz : z ∈ C.good) (b : Fin N) {k : ℕ} {τ d : ℝ} (he : ((C.schedule z).search k).event = some (τ, b)) (hd : C.data.pause false ≤ d) (hH : τ + d ≤ ↑C.horizon) (hout : C.data.reads.outputs b = true) (hq : C.data.reads.actionBar + C.error ≤ C.score z b (τ + d)) (rivals : ∀ (j : Fin N), j ≠ b → C.data.reads.outputs j = true → ∀ t ∈ Set.Icc τ (τ + d), C.score z j t < C.data.reads.actionBar - C.error) :
    ∃ (t : ℝ), ((C.schedule z).search (k + 1)).event = some (t, b) ∧ t ∈ Set.Icc (τ + C.data.pause false) (τ + d)

    04.21 (S3): on the corridor event, after an act of b at τ, if b's reference score is at the bar plus the error at τ+d≤H with d≥θ and every other output's is below the bar minus the error on [τ,τ+d], the next slot is an act of b in [τ+θ,τ+d].

    theorem MindFormal.slot_indicator_sum {Ω : Type u_1} (A : ℕ → Set Ω) (K : ℕ) (z : Ω) [DecidablePred fun (k : ℕ) => z ∈ A k] :
    ∑ k ∈ Finset.range K, (A k).indicator (fun (x : Ω) => 1) z = ↑{k ∈ Finset.range K | z ∈ A k}.card

    04.21 (S3): a sum of indicators over slots is the number of slots whose set contains z.

    def MindFormal.LearningRun.renewedBetween {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) (w : Fin N) (z : Ω) (s t : ℝ) :

    04.21 (S2): in the actual run of draw z the thought w left awareness and re-entered it strictly between times s and t: its actual activity is below the awareness bar at some time and above it at a later one, both in (s,t).

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def MindFormal.LearningRun.renewedAct {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) (k : ℕ) (o w : Fin N) (L U : ℝ) :
      Set Ω

      04.21 (S2)–(S3): native slot k is a renewed report of thought w by output o in [L,U]: an act of o at a time in [L,U] such that after every earlier act of o the thought left awareness and re-entered it before this act. A refractory emission within one continuous experience is not one.

      Equations
      Instances For
        noncomputable def MindFormal.LearningRun.renewedCount {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) (o w : Fin N) (L U : ℝ) (z : Ω) :

        04.21 (S3): the native count of renewed reports of thought w by output o in [L,U], over the run's first 1+⌊H/θ⌋ action slots.

        Equations
        Instances For
          theorem MindFormal.learningRun_renewedBetween_measurable {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) (w : Fin N) {S Tm : Ω → ℝ} (hS : Measurable S) (hT : Measurable Tm) :
          MeasurableSet {z : Ω | C.renewedBetween w z (S z) (Tm z)}

          04.21 (S2): the exit-and-re-entry event between two measurable times is measurable: the actual path is continuous and the conditions strict, so rational times suffice.

          theorem MindFormal.learningRun_renewedAct_measurable {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) (k : ℕ) (o w : Fin N) (L U : ℝ) :

          04.21 (S3): the event that slot k is a renewed report is measurable.

          theorem MindFormal.learningRun_renewedCount_integrable {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) (o w : Fin N) (L U : ℝ) :
          theorem MindFormal.learningRun_renewedCount_le {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) (o w : Fin N) (L U : ℝ) (z : Ω) :
          C.renewedCount o w L U z ≤ C.reportCount o L U z

          04.21 (S3): renewed reports are among the report acts, so their count is at most the report count.

          structure MindFormal.ReportRenewal {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) (z : Ω) (o w : Fin N) (τ : ℝ) :

          04.21 (S2): the thought's exit and renewed entry after time τ on the reference of draw z, with the report held off until the entry: the thought's activity is below the awareness bar by more than the state error at an exit time after τ, above it by more than the error at a later entry time ≤ H, and the report output's read is below the action bar minus the score error on (τ, entry].

          Instances For
            theorem MindFormal.ReportRenewal.renews {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} {C : LearningRun Ω N n T Λ J 𝒩} {z : Ω} {o w : Fin N} {τ : ℝ} (R : ReportRenewal C z o w τ) (hz : z ∈ C.good) (hτ : 0 ≤ τ) {s t : ℝ} (hs : s ≤ τ) (he : ∃ (k : ℕ), ((C.schedule z).search k).event = some (t, o)) (ht : τ < t) :
            C.renewedBetween w z s t

            04.21 (S2): on the corridor event, a renewal after τ≥0 makes any act of o after τ a renewed report relative to every act at or before τ.

            theorem MindFormal.learningRun_renewed_lower {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) {z : Ω} (hz : z ∈ C.good) (o w : Fin N) {L U r t0 d : ℝ} (hL : 0 ≤ L) (hU : U ≤ ↑C.horizon) (hr : 0 ≤ r) (hrt : r ≤ t0) (hd : C.data.pause false ≤ d) (hout : C.data.reads.outputs o = true) (pending : ∀ t ∈ Set.Ico (L + r - C.data.pause false) L, 0 ≤ t → ∀ (j : Fin N), C.data.reads.outputs j = true → C.score z j t < C.data.reads.actionBar - C.error) (first : L + t0 ≤ U → C.data.reads.actionBar + C.error ≤ C.score z o (L + t0)) (priorRenewal : (k : ℕ) → (τ : ℝ) → C.record k z = (τ, Sum.inl o) → τ < L → ReportRenewal C z o w τ) (rivals : ∀ (j : Fin N), j ≠ o → C.data.reads.outputs j = true → ∀ t ∈ Set.Icc L U, C.score z j t < C.data.reads.actionBar - C.error) (cycle : ∀ (k : ℕ) (τ : ℝ), C.record k z = (τ, Sum.inl o) → τ ∈ Set.Icc L U → τ + d ≤ U → C.data.reads.actionBar + C.error ≤ C.score z o (τ + d)) (cycleRenewal : (k : ℕ) → (τ : ℝ) → C.record k z = (τ, Sum.inl o) → τ ∈ Set.Icc L U → τ + d ≤ U → ReportRenewal C z o w τ) :
            ↑(1 + ⌊(U - L - t0) / d⌋).toNat ≤ C.renewedCount o w L U z

            04.21 (S2)–(S3): the lower count of renewed reports. On the corridor event, with every other output below the bar minus the error on [L,U]⊆[0,H] and no act in the last θ-r before L (0≤r≤t₀): if o's reference score is at the bar plus the error at L+t₀ and, after each act of o at τ∈[L,U] with τ+d≤U, at τ+d, d≥θ; and if after every act of o, before the window or in it with τ+d≤U, the thought w leaves awareness and re-enters it with the report held off until the re-entry (the reset of (S2)), then o makes at least [1+⌊(U-L-t₀)/d⌋]_+ renewed reports of w in [L,U]. The first needs no renewal inside the window: a thought renewed before it, or never reported, counts.

            theorem MindFormal.learningRun_count_upper {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) (z : Ω) (b : Fin N) {L U t0 d : ℝ} (first : ∀ (k : ℕ) (t : ℝ), ((C.schedule z).search k).event = some (t, b) → t ∈ Set.Icc L U → L + t0 ≤ t) (spaced : ∀ (j k : ℕ) (t s : ℝ), j < k → ((C.schedule z).search j).event = some (t, b) → ((C.schedule z).search k).event = some (s, b) → t ∈ Set.Icc L U → s ∈ Set.Icc L U → t + d ≤ s) :
            C.reportCount b L U z ≤ ↑(1 + ⌊(U - L - t0) / max (C.data.pause false) d⌋).toNat

            04.21 (S3): the upper count. If every act of b in [L,U] is at or after L+t₀ and no act of b in [L,U] follows another within d, b acts at most [1+⌊(U-L-t₀)/max{θ,d}⌋]_+ times in [L,U]: successive acts are at least max{θ,d} apart.

            theorem MindFormal.learningRun_count_le_slots {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) (z : Ω) (b : Fin N) (L U : ℝ) :
            C.reportCount b L U z ≤ ↑(1 + ⌊(U - L) / C.data.pause false⌋).toNat

            04.21 (S4): the slot bound B. In any draw b acts at most [1+⌊(U-L)/θ⌋]_+ times in [L,U]: successive acts are at least one pause apart.

            theorem MindFormal.learningRun_count_upper_quiet {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) {z : Ω} (hz : z ∈ C.good) (b : Fin N) {L U t0 d : ℝ} (hU : U ≤ ↑C.horizon) (first : ∀ t ∈ Set.Ico L (L + t0), t ≤ ↑C.horizon → C.score z b t < C.data.reads.actionBar - C.error) (cycle : ∀ (k : ℕ) (τ : ℝ), C.record k z = (τ, Sum.inl b) → τ ∈ Set.Icc L U → ∀ t ∈ Set.Ioo τ (τ + d), t ≤ ↑C.horizon → C.score z b t < C.data.reads.actionBar - C.error) :
            C.reportCount b L U z ≤ ↑(1 + ⌊(U - L - t0) / max (C.data.pause false) d⌋).toNat

            04.21 (S3): the upper count from the reference. On the corridor event, if b's reference score is below the bar minus the error on [L,L+t₀) and, after each act of b at τ∈[L,U], on (τ,τ+d) up to H, then b acts at most [1+⌊(U-L-t₀)/max{θ,d}⌋]_+ times in [L,U]⊆[0,H].

            theorem MindFormal.learningRun_count_mean_lower {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) {f : Ω → ℝ} (hf : MeasureTheory.Integrable f C.data.μ) (hf0 : ∀ (z : Ω), 0 ≤ f z) {nl : ℝ} (hn : 0 ≤ nl) (h : ∀ z ∈ C.good, nl ≤ f z) :
            nl * (1 - C.control.failure) ≤ ∫ (z : Ω), f z ∂C.data.μ

            04.21 (S4), 04.17a (C8): a nonnegative integrable count at least n≥0 on the corridor event has mean at least n(1-ε), with ε the corridor failure.

            theorem MindFormal.learningRun_count_mean_upper {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) {f : Ω → ℝ} (hf : MeasureTheory.Integrable f C.data.μ) {nu B : ℝ} (hnB : nu ≤ B) (h : ∀ z ∈ C.good, f z ≤ nu) (hB : ∀ (z : Ω), f z ≤ B) :
            ∫ (z : Ω), f z ∂C.data.μ ≤ nu + (B - nu) * C.control.failure

            04.21 (S4), 04.17a (C8): an integrable count at most n on the corridor event and at most B≥n in every draw has mean at most n+(B-n)ε, with ε the corridor failure.

            structure MindFormal.ReportHeld {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) (z : Ω) (b : Fin N) (s e : ℝ) :

            04.21 (S2)–(S3): the report read held below the bar on [s,s+e) on the reference of draw z: the report activity at s is at most x₊, its target at most U on (s,s+e), and while the activity is under the held curve from x₊ toward U the report read is below the action bar minus the score error.

            Instances For
              theorem MindFormal.ReportHeld.below {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} {C : LearningRun Ω N n T Λ J 𝒩} {z : Ω} {b : Fin N} {s e : ℝ} (W : ReportHeld C z b s e) (t : ℝ) :
              t ∈ Set.Ico s (s + e) → t ≤ ↑C.horizon → C.score z b t < C.data.reads.actionBar - C.error
              structure MindFormal.ReportReturnUpper {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) (z : Ω) (b : Fin N) (τ d : ℝ) :

              04.21 (S2)–(S3): the upper report cycle after a report at τ on the reference of draw z: no qualifying report during the reset (τ,τ+ℓ), ℓ≥0, then the report read held below the bar on [τ+ℓ,τ+d).

              Instances For
                theorem MindFormal.ReportReturnUpper.below {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} {C : LearningRun Ω N n T Λ J 𝒩} {z : Ω} {b : Fin N} {τ d : ℝ} (W : ReportReturnUpper C z b τ d) (t : ℝ) :
                t ∈ Set.Ioo τ (τ + d) → t ≤ ↑C.horizon → C.score z b t < C.data.reads.actionBar - C.error
                structure MindFormal.ReportReturnLower {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LearningRun Ω N n T Λ J 𝒩) (z : Ω) (b : Fin N) (τ d : ℝ) :

                04.21 (S2)–(S3): the lower report cycle after a report at τ (or from the start of a window at τ) on the reference of draw z: at the end τ+ℓ of a reset, 0≤ℓ≤d, the report activity is at least x₋; its target is at least L on (τ+ℓ,τ+d]; the held curve from x₋ toward L reaches need by τ+d; and from need the report read is at the action bar plus the score error.

                Instances For
                  theorem MindFormal.ReportReturnLower.qualifies {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} {C : LearningRun Ω N n T Λ J 𝒩} {z : Ω} {b : Fin N} {τ d : ℝ} (W : ReportReturnLower C z b τ d) (hτ : 0 ≤ τ) (hH : τ + d ≤ ↑C.horizon) :
                  C.data.reads.actionBar + C.error ≤ C.score z b (τ + d)
                  theorem MindFormal.learningRun_count_separation {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (A A' : LearningRun Ω N n T Λ J 𝒩) (o w : Fin N) {L U r t0 d L' U' t0' d' : ℝ} (hL : 0 ≤ L) (hU : U ≤ ↑A.horizon) (hr : 0 ≤ r) (hrt : r ≤ t0) (hd : A.data.pause false ≤ d) (hU' : U' ≤ ↑A'.horizon) (hLU' : L' ≤ U') (ht0' : 0 ≤ t0') (output : A.data.reads.outputs o = true) (pending : ∀ z ∈ A.good, ∀ t ∈ Set.Ico (L + r - A.data.pause false) L, 0 ≤ t → ∀ (j : Fin N), A.data.reads.outputs j = true → A.score z j t < A.data.reads.actionBar - A.error) (first : (z : Ω) → z ∈ A.good → L + t0 ≤ U → ReportReturnLower A z o L t0) (priorRenewal : (z : Ω) → z ∈ A.good → (k : ℕ) → (τ : ℝ) → A.record k z = (τ, Sum.inl o) → τ < L → ReportRenewal A z o w τ) (cycle : (z : Ω) → z ∈ A.good → (k : ℕ) → (τ : ℝ) → A.record k z = (τ, Sum.inl o) → τ ∈ Set.Icc L U → τ + d ≤ U → ReportReturnLower A z o τ d) (cycleRenewal : (z : Ω) → z ∈ A.good → (k : ℕ) → (τ : ℝ) → A.record k z = (τ, Sum.inl o) → τ ∈ Set.Icc L U → τ + d ≤ U → ReportRenewal A z o w τ) (rivals : ∀ z ∈ A.good, ∀ (j : Fin N), j ≠ o → A.data.reads.outputs j = true → ∀ t ∈ Set.Icc L U, A.score z j t < A.data.reads.actionBar - A.error) (first' : (z : Ω) → z ∈ A'.good → ReportHeld A' z o L' t0') (cycle' : (z : Ω) → z ∈ A'.good → (k : ℕ) → (τ : ℝ) → A'.record k z = (τ, Sum.inl o) → τ ∈ Set.Icc L' U' → ReportReturnUpper A' z o τ d') :
                  have nA := ↑(1 + ⌊(U - L - t0) / d⌋).toNat; have nA' := ↑(1 + ⌊(U' - L' - t0') / max (A'.data.pause false) d'⌋).toNat; have B := ↑(1 + ⌊(U' - L') / A'.data.pause false⌋).toNat; nA - nA' - nA * A.control.failure - (B - nA') * A'.control.failure ≤ ∫ (z : Ω), A.renewedCount o w L U z ∂A.data.μ - ∫ (z : Ω), A'.renewedCount o w L' U' z ∂A'.data.μ

                  04.21 (S3)–(S4), 04.17a (C8): the mean separation of renewed-report counts in two applications. In A, on its corridor event, report output o's read returns to the bar within t₀ of L and within d≥θ of each act of o in [L,U]⊆[0,H] (the lower cycles), with the thought w leaving awareness and re-entering it after each act of o, before the window or in it, before the next report (the renewals of (S2)), no act in the last θ-r before L (0≤r≤t₀) and every other output below the bar on [L,U]; in A', o's read stays below the bar for t₀'≥0 from L' and for d' after each act of o in [L',U']⊆[0,H'] (the upper cycles). Then E N_A - E N_A' ≥ (n-n') - nε - (B-n')ε', N the renewed-report counts of w, n=[1+⌊(U-L-t₀)/d⌋]+, n'=[1+⌊(U'-L'-t₀')/max{θ',d'}⌋]+, B=[1+⌊(U'-L')/θ'⌋]_+ and ε, ε' the two corridor failures.