MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch02.PressTest

02.16 (16.5) on one run holding the preceding interval and the light: the presses of the preceding interval certified by the baseline route's own V margins, the light's presses after its remaining native pause, or none when no press read reaches threshold during the light, each interval's count read from the actual native records, and the suppression ratio's conditional mean.

theorem MindFormal.live_no_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 : LiveData Ω N n T Λ J 𝒩) {z : Ω} (hz : z ∈ C.good) (i : Fin N) {a b : ℝ} (ha : 0 ≤ a) (hb : b ≤ ↑C.horizon) (below : C.data.reads.outputs i = true → ∀ t ∈ Set.Icc a b, C.score i t < C.data.reads.actionBar - C.error) (k : ℕ) :
z ∉ C.act k i a b

02.16 (16.5), V: on the corridor event, a reference score below the action bar minus the computed score error throughout [a,b]⊆[0,H] excludes every actual act of that output in [a,b], in every native slot.

theorem MindFormal.live_event_time_ge {Ω : 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 : LiveData Ω 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

02.12, IV/V: the actual act of native slot k comes at least k action pauses after the start, since every earlier slot acted and each release follows its act by one pause.

theorem MindFormal.live_event_slot_lt {Ω : 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 : LiveData Ω N n T Λ J 𝒩) (z : Ω) {k : ℕ} {t : ℝ} {i : Fin N} (he : ((C.schedule z).search k).event = some (t, i)) :

02.12: an act of native slot k lies within the horizon, so k is among the first 1+⌊H/θ⌋ slots.

noncomputable def MindFormal.LiveData.pressesIn {Ω : 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 : LiveData Ω N n T Λ J 𝒩) (base press : Fin N) (W : Set ℝ) (z : Ω) :

02.16 (16.5): the number of actual native presses, acts labeled base or press, with times in W.

Equations
Instances For
    noncomputable def MindFormal.LiveData.suppressionRatio {Ω : 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 : LiveData Ω N n T Λ J 𝒩) (base press : Fin N) (d a D : ℝ) (z : Ω) :

    02.16 (16.5): the suppression ratio: presses during the light [a,a+D] over presses during the light and the preceding interval [d,a). Used only after conditioning on a positive total.

    Equations
    Instances For
      def MindFormal.pressDefined {Ω : 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 : LiveData Ω N n T Λ J 𝒩) (base press : Fin N) (d a D : ℝ) :
      Set Ω

      02.16 (16.5): the trials whose ratio is defined: some press in the light or the preceding interval.

      Equations
      Instances For
        structure MindFormal.PressBaseline {Ω : 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 : LiveData Ω N n T Λ J 𝒩) (base : Fin N) (k0 : ℕ) (a : ℝ) (m : ℕ) :

        02.16 (16.5): the preceding interval's m+1 presses, certified by the baseline route's own V margins: a first-press fan window for base at native slot k0 from the interval's onset d (its held comparison and read, its rivals and its remaining pause at d), that remaining pause below one action pause, so the act before slot k0 falls before d; the base read at or above the bar plus the score error from the earliest first press plus one pause through the latest (m+1)-th press; every other output below the bar minus the error from d through that time; the latest (m+1)-th press before the light onset a, and the earliest next release at or after a.

        Instances For
          structure MindFormal.PressLight {Ω : 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 : LiveData Ω N n T Λ J 𝒩) (press : Fin N) (k : ℕ) (a D : ℝ) (m : ℕ) :

          02.16 (16.5): the light's m+1 presses: a first-press fan window for press at native slot k from the light onset a (the press route's held comparison with its aversive read, e.g. O=x−a_v v, its rivals and the remaining native pause r at onset inside its bounds); the press read at or above the bar plus the score error from the earliest first press plus one pause through the latest (m+1)-th press; every other output, the baseline route included, below the bar minus the error from a through that time; the latest (m+1)-th press within the light and the earliest next release after it.

          Instances For
            inductive MindFormal.PressLightCount {Ω : 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 : LiveData Ω N n T Λ J 𝒩) (base press : Fin N) (k : ℕ) (a D : ℝ) :
            ℕ → Type

            02.16 (16.5): the light's press count n and its certificate: n=0 when neither press route's read reaches the bar minus the score error during the light, or n=m+1 by the light's press window.

            Instances For
              structure MindFormal.PressTest {Ω : 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 : LiveData Ω N n T Λ J 𝒩) :

              02.16 (16.5): one press test on one run: the baseline and light press routes, the preceding interval's first native slot k0 and its presses, the light onset a and duration D≥0 within the horizon, the light's press count with its certificate at the next slot; the defined trials measurable and of positive mass; the ratio integrable on them.

              Instances For
                theorem MindFormal.live_press_run {Ω : 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 : LiveData Ω N n T Λ J 𝒩) {z : Ω} (hz : z ∈ C.good) {k : ℕ} {i : Fin N} (F : FanTargetWindow C k i) {m : ℕ} {lo : ℝ} (hlo : lo ≤ F.d) (persist : ∀ t ∈ Set.Icc (F.toLiveFanWindow.lower + C.data.pause false) (F.toLiveFanWindow.upper + ↑m * C.data.pause false), C.data.reads.actionBar + C.error ≤ C.score i t) (rivals : ∀ (j : Fin N), j ≠ i → C.data.reads.outputs j = true → ∀ t ∈ Set.Icc lo (F.toLiveFanWindow.upper + ↑m * C.data.pause false), C.score j t < C.data.reads.actionBar - C.error) (hH : F.toLiveFanWindow.upper + ↑m * C.data.pause false ≤ ↑C.horizon) :
                ∃ t1 ∈ Set.Icc F.toLiveFanWindow.lower F.toLiveFanWindow.upper, ∀ j ≤ m, ((C.schedule z).search (k + j)).event = some (t1 + ↑j * C.data.pause false, i)

                02.16 (16.5): from a fan window's first press, a read at or above the bar plus the error from its earliest time plus one pause through the (m+1)-th release and rivals below there, the slot's next m acts are the same output, one action pause apart.

                theorem MindFormal.pressTest_baseline {Ω : 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 : LiveData Ω N n T Λ J 𝒩) (P : PressTest C) {z : Ω} (hz : z ∈ C.good) :
                C.pressesIn P.base P.press (Set.Ico P.baseline.first.d P.a) z = P.baseCount + 1 ∧ ∀ (k : ℕ) (t : ℝ) (i : Fin N), P.k0 + P.baseCount < k → ((C.schedule z).search k).event = some (t, i) → P.a ≤ t

                02.16 (16.5): on the corridor event the preceding interval holds exactly baseCount+1 presses, all before the light, and every act of a later slot comes at or after the light onset; no act of an earlier slot falls in the interval.

                theorem MindFormal.pressTest_light {Ω : 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 : LiveData Ω N n T Λ J 𝒩) (P : PressTest C) {z : Ω} (hz : z ∈ C.good) :
                C.pressesIn P.base P.press (Set.Icc P.a (P.a + P.D)) z = P.lightCount

                02.16 (16.5): on the corridor event the light holds exactly lightCount presses: none when no press read reaches the bar minus the error during the light, else the light window's presses at the slots after the preceding interval's.

                theorem MindFormal.result_02_16_clause_3_general {Ω : 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 : NoiseFrozen Ω N n T Λ J 𝒩) (P : PressTest C.run) :
                have ratio := ↑P.lightCount / (↑P.lightCount + ↑(P.baseCount + 1)); (∀ z ∈ C.run.good, C.run.pressesIn P.base P.press (Set.Icc P.a (P.a + P.D)) z = P.lightCount ∧ C.run.pressesIn P.base P.press (Set.Ico P.baseline.first.d P.a) z = P.baseCount + 1) ∧ ratio - C.run.control.failure ≤ ∫ (z : Ω), C.run.suppressionRatio P.base P.press P.baseline.first.d P.a P.D z ∂C.run.data.μ[|pressDefined C.run P.base P.press P.baseline.first.d P.a P.D] ∧ ∫ (z : Ω), C.run.suppressionRatio P.base P.press P.baseline.first.d P.a P.D z ∂C.run.data.μ[|pressDefined C.run P.base P.press P.baseline.first.d P.a P.D] ≤ ratio + C.run.control.failure

                For any case of noise. At the constant case this theorem is result_02_16_clause_3.

                theorem MindFormal.result_02_16_clause_3_order_general {Ω : 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} (CC CS : NoiseFrozen Ω N n T Λ J 𝒩) (compound : PressTest CC.run) (single : PressTest CS.run) (compoundFailure : CC.run.control.failure < 1) (singleFailure : CS.run.control.failure < 1) (sourceRatioMargin : CS.run.control.failure / (1 - CS.run.control.failure) + CC.run.control.failure / (1 - CC.run.control.failure) < ↑compound.lightCount / (↑compound.lightCount + ↑(compound.baseCount + 1)) - ↑single.lightCount / (↑single.lightCount + ↑(single.baseCount + 1))) :
                ∫ (z : Ω), CS.run.suppressionRatio single.base single.press single.baseline.first.d single.a single.D z ∂CS.run.data.μ[|pressDefined CS.run single.base single.press single.baseline.first.d single.a single.D] < ∫ (z : Ω), CC.run.suppressionRatio compound.base compound.press compound.baseline.first.d compound.a compound.D z ∂CC.run.data.μ[|pressDefined CC.run compound.base compound.press compound.baseline.first.d compound.a compound.D]

                For any case of noise. At the constant case this theorem is result_02_16_clause_3_order.