MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch02.ReferenceWindows

Chapter 2's race windows derived from the entries' own closed-form premises. On a verified frozen reference each activity is the exponential convolution of its complete target, so bounds on that target bound the activity by the held-target curve; with the output read equal to activity along the reference, those bounds give the native score window that the corridor carries to the actual native record. No score window is supplied.

noncomputable def MindFormal.FrozenReference.free {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : FrozenReference d H) :
C(↑(HorizonTime ↑H), MindState (Fin N) n T Λ)

02.15–02.20: the free input whose coordinatewise reflection at the activity floor is the verified frozen reference path.

Equations
Instances For
    noncomputable def MindFormal.FrozenReference.target {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : FrozenReference d H) (i : Fin N) (s : ℝ) :

    02.15–02.20: the complete normalized target of a content along a verified frozen reference, with the reference's own input and binary mode and its frozen writers.

    Equations
    Instances For
      theorem MindFormal.frozenReference_coordinate {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : FrozenReference d H) (τ : ↑(HorizonTime ↑H)) (j : CoordinateIndex (Fin N) n T Λ) :
      R.path τ j = (↑R.start j + ∫ (s : ℝ) in 0..↑τ, frozenForcing d ⋯ R.input R.mode R.path s j) + if mindFloor j = true then floorRegulator (pathCoordinate R.free j) τ else 0

      02.15–02.20: every coordinate of a verified frozen reference is its start plus the integral of its frozen forcing coordinate, plus the floor regulator on activity.

      theorem MindFormal.frozenReference_activity_convolution {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : FrozenReference d H) (i : Fin N) (τ : ↑(HorizonTime ↑H)) :
      R.path τ (Sum.inr (Sum.inl i)) = Real.exp (-d.activity.ν * ↑τ) * ↑R.start (Sum.inr (Sum.inl i)) + d.activity.ν * ∫ (s : ℝ) in 0..↑τ, Real.exp (-d.activity.ν * (↑τ - s)) * R.target i s

      02.15–02.20: every activity coordinate of a verified frozen reference is the exponential convolution of its complete target along that reference; the floor never acts.

      theorem MindFormal.frozenReference_target_integrable {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : FrozenReference d H) (i : Fin N) :

      02.15–02.20: the complete target along a verified frozen reference is interval integrable on the reference horizon.

      theorem MindFormal.frozenReference_activity_shift {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : FrozenReference d H) (i : Fin N) {t0 t : ℝ} (h0 : 0 ≤ t0) (ht : t0 ≤ t) (hH : t ≤ ↑H) :

      02.15–02.20: from an earlier time t0 to a later t in the horizon, a frozen reference activity is its value at t0 decayed plus the convolution of its complete target on (t0,t].

      theorem MindFormal.frozenReference_activity_bounds {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : FrozenReference d H) (i : Fin N) {t0 t c : ℝ} (h0 : 0 ≤ t0) (ht : t0 ≤ t) (hH : t ≤ ↑H) :
      ((∀ s ∈ Set.Ioc t0 t, c ≤ R.target i s) → referenceActivity d.activity.ν c ((ContinuousMap.IccExtend ⋯ R.path) t0 (Sum.inr (Sum.inl i))) (t - t0) ≤ (ContinuousMap.IccExtend ⋯ R.path) t (Sum.inr (Sum.inl i))) ∧ ((∀ s ∈ Set.Ioc t0 t, R.target i s ≤ c) → (ContinuousMap.IccExtend ⋯ R.path) t (Sum.inr (Sum.inl i)) ≤ referenceActivity d.activity.ν c ((ContinuousMap.IccExtend ⋯ R.path) t0 (Sum.inr (Sum.inl i))) (t - t0))

      02.15–02.20: a complete target bounded below by c on (t0,t] keeps the frozen reference activity at t at least the held-target curve toward c from its value at t0; bounded above by c, at most that curve.

      theorem MindFormal.frozenReference_activity_const {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : FrozenReference d H) (i : Fin N) {t c : ℝ} (ht : 0 ≤ t) (hH : t ≤ ↑H) (hc : ∀ s ∈ Set.Ioc 0 t, R.target i s = c) :

      02.20 RP16, 02.19 (F4): when a content's complete target along the verified frozen reference equals c on (0,t], its activity at t is the held-target curve toward c from its start. Both convolution bounds give the equality.

      theorem MindFormal.tube_arrival_bracket {Ω' : Type u_3} {I : Type u_4} [MeasurableSpace Ω'] (μ : MeasureTheory.Measure Ω') {actual : Ω' → I → ℝ → ℝ} {reference : I → ℝ → ℝ} {H error ε : ℝ} (tube : Tube μ actual reference H error ε) (z : Ω') (hz : z ∈ tube.good) (i : I) (ϑ : ℝ) :
      {t : ℝ | t ∈ Set.Icc 0 H ∧ ϑ ≤ actual z i t} ⊆ {t : ℝ | t ∈ Set.Icc 0 H ∧ ϑ - error ≤ reference i t} ∧ {t : ℝ | t ∈ Set.Icc 0 H ∧ ϑ + error ≤ reference i t} ⊆ {t : ℝ | t ∈ Set.Icc 0 H ∧ ϑ ≤ actual z i t} ∧ ({t : ℝ | t ∈ Set.Icc 0 H ∧ ϑ ≤ actual z i t}.Nonempty → sInf {t : ℝ | t ∈ Set.Icc 0 H ∧ ϑ - error ≤ reference i t} ≤ sInf {t : ℝ | t ∈ Set.Icc 0 H ∧ ϑ ≤ actual z i t}) ∧ ({t : ℝ | t ∈ Set.Icc 0 H ∧ ϑ + error ≤ reference i t}.Nonempty → sInf {t : ℝ | t ∈ Set.Icc 0 H ∧ ϑ ≤ actual z i t} ≤ sInf {t : ℝ | t ∈ Set.Icc 0 H ∧ ϑ + error ≤ reference i t})

      02.20 RP15: on a Tube's event, every actual hit of a level by a read in [0,H] is a hit of the lowered level by the reference, and every reference hit of the raised level is an actual hit; so the first actual hit lies between the reference's first lowered and raised hits when those sets are nonempty. Hitting times are censored to [0,H].

      noncomputable def MindFormal.firstHit (H : ℝ) (P : ℝ → Prop) :

      02.20 RP15: the first time in [0,H] at which a property holds, infinity when it never holds there: the hitting time censored to the horizon.

      Equations
      Instances For
        theorem MindFormal.firstHit_mono {H : ℝ} {P Q : ℝ → Prop} (h : ∀ t ∈ Set.Icc 0 H, P t → Q t) :

        02.20 RP15: a property that holds whenever another does (within [0,H]) is first hit no later; when the other is never hit its hitting time is infinity and the bound is trivial.

        theorem MindFormal.firstHit_bracket {H ϑ εS : ℝ} {Sa Sr : ℝ → ℝ} (herr : ∀ t ∈ Set.Icc 0 H, |Sa t - Sr t| ≤ εS) :
        ((firstHit H fun (t : ℝ) => ϑ - εS ≤ Sr t) ≤ firstHit H fun (t : ℝ) => ϑ ≤ Sa t) ∧ (firstHit H fun (t : ℝ) => ϑ ≤ Sa t) ≤ firstHit H fun (t : ℝ) => ϑ + εS ≤ Sr t

        02.20 RP15: for any read within its uniform error eps_S of its reference on [0,H], its first hit of a level lies between the reference's first hits of the level lowered and raised by eps_S, each censored to [0,H] and infinite when absent.

        noncomputable def MindFormal.LiveData.refAct {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] {J : Type u_4} [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LiveData Ω N n T Λ J 𝒩) (j : Fin N) (t : ℝ) :

        02.15–02.20: a content's activity on the live bundle's verified frozen reference, extended constantly outside the horizon; the reference has no innovation.

        Equations
        Instances For
          structure MindFormal.TargetWindow {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] {J : Type u_4} [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LiveData Ω N n T Λ J 𝒩) (i : Fin N) (p U : ℝ) :

          02.15 step 3, 02.18 (18.6), 02.19 (F4), 02.20 RP14: a native race window stated by the entries' own closed-form premises on the verified frozen reference, from phase p to U<=H: the output read equals activity along the reference for every output (the entries' local readout O=x); the winner's complete target is at least winnerTarget on (p,U] and its activity at p is at least winnerStart, and the held curve from that start toward that target reaches the action bar plus the computed score error by U; every rival output's target is at most its rivalTarget on (p,U], its activity at p at most its rivalStart, and its held curve stays below the action bar minus the error through U. No score window is a field.

          Instances For
            def MindFormal.TargetWindow.margins {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] {J : Type u_4} [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} {C : LiveData Ω N n T Λ J 𝒩} {i : Fin N} {p U : ℝ} (W : TargetWindow C i p U) :

            02.15–02.20: the reference score window derived from a target window: the convolution bounds turn the target and start bounds into the winner's crossing at U and the rivals' margin, and the read identity turns activity into score. Nothing is assumed about scores.

            Equations
            • W.margins = { phase := p, phase_nonneg := ⋯, phase_lower := ⋯, lower_nonneg := ⋯, ordered := ⋯, within := ⋯, output := ⋯, winner := ⋯, before := ⋯, rivals := ⋯ }
            Instances For
              theorem MindFormal.live_window_at {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] {J : Type u_4} [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LiveData Ω N n T Λ J 𝒩) (k : ℕ) (i : Fin N) {L U : ℝ} (m : LiveWindowMargins C i L U) {z : Ω} (hz : z ∈ C.good) (hrelease : m.phase ≤ (C.schedule z).release k ∧ (C.schedule z).release k ≤ U) :
              z ∈ C.act k i L U

              02.15 step 3, 02.19 (F8): at one realization of the corridor event, reference score margins and that realization's own release bound for slot k give the native label i at a time in [L,U]. The release bound is needed only at that realization, not on the whole event.

              noncomputable def MindFormal.LiveData.refFocus {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] {J : Type u_4} [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LiveData Ω N n T Λ J 𝒩) (k : Fin N) (t : ℝ) :

              02.20 RP14: the joint focus guard min(x−α, Y−ι) of a content on the verified frozen reference, with its awareness and attention bars.

              Equations
              Instances For
                theorem MindFormal.live_opportunity_of_subset {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] {J : Type u_4} [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LiveData Ω N n T Λ J 𝒩) (k : ℕ) (forward backward : Fin N) (hne : forward ≠ backward) (eligible : Set Ω) (he : MeasurableSet eligible) {a ε : ℝ} (hmass : C.data.μ.real eligible = a) (hfailure : C.data.μ.real (eligible ∩ C.goodᶜ) ≤ a * ε) (hg : eligible ∩ C.good ⊆ C.label k forward) :
                a * (1 - ε) ≤ C.data.μ.real (C.label k forward) ∧ C.data.μ.real (C.label k backward) ≤ 1 - a * (1 - ε)

                02.15 step 3: when the corridor part of an opportunity event of mass a forces the forward label, and the failure there is at most aε, the forward response probability is at least a(1−ε) and the backward one at most 1−a(1−ε). Only that inclusion and the masses are used.

                theorem MindFormal.frozenReference_activity_held {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : FrozenReference d H) (i : Fin N) {t0 t c : ℝ} (h0 : 0 ≤ t0) (ht : t0 ≤ t) (hH : t ≤ ↑H) (hc : ∀ s ∈ Set.Ioc t0 t, R.target i s = c) :

                02.19 (F4): from a time t0 in the horizon, when a content's complete target along the verified frozen reference equals c on (t0,t], its activity at t is the held-target curve toward c from its activity at t0. Both convolution bounds give the equality.

                theorem MindFormal.referenceActivity_mem_Icc {ν c z t : ℝ} (hν : 0 < ν) (hz : z ≤ c) (ht : 0 ≤ t) :

                02.19 (F4), 03.19: for a positive rate and start <= target, the held curve stays in [start, target] at every nonnegative elapsed time.

                theorem MindFormal.passageTime_need_mono {ν c z b1 b2 : ℝ} (hν : 0 < ν) (hz : z < b1) (hb : b1 ≤ b2) (hc : b2 < c) :
                passageTime ν c z b1 ≤ passageTime ν c z b2

                02.19 (F4): with start < b1 <= b2 < target, the held curve reaches b1 no later than b2.

                structure MindFormal.FanTargetWindow {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] {J : Type u_4} [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LiveData Ω N n T Λ J 𝒩) (k : ℕ) (i : Fin N) :

                02.19 (F4), (F7), (F8): the fan window stated by the entry's own premises: encoding onset d, a held comparison whose complete target for the probed fact is the constant target on (d,U] from activity start at d (the labeled held comparison of F4), an activity-sensitive recognition read read strictly increasing on [start, target] with read(b∓)=action bar ∓ the computed score error (F7's inverse-read thresholds), headroom start<b−<=b+<target, every competing output's reference score below the bar minus the error on [d,U] (F8's competitor check), and F8's remaining-pause bounds d+r−<=release<=d+r+ on the corridor event; U is d+max(r+, t(b+)) and lies within the horizon. No score window is a field.

                Instances For
                  noncomputable def MindFormal.FanTargetWindow.toLiveFanWindow {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] {J : Type u_4} [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} {C : LiveData Ω N n T Λ J 𝒩} {k : ℕ} {i : Fin N} (W : FanTargetWindow C k i) :

                  02.19 (F8): the fan target window gives the fan score calibration: the reference score crosses exactly at the held comparison's passage times of b− and b+, and the release bounds are the entry's pause bounds. Nothing about scores is assumed.

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    structure MindFormal.PressPersistence {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] {J : Type u_4} [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LiveData Ω N n T Λ J 𝒩) (i : Fin N) (m : ℕ) :

                    02.16 (16.5): the entry's press premises on one run, which enters the test with empty native records: a first-press fan window (first, slot 0: the held comparison of the light's press route with its aversive read, strictly increasing in activity at the frozen aversion, e.g. O=x−a_v v, with read(b∓)=bar∓error, rivals below, release zero inside its pause bounds), so the first press lies in [L,U] with L=max(r−,t(b−)) and U=max(r+,t(b+)); the press read on the reference at or above the bar plus the score error from the earliest first press plus one action pause on through the horizon ("a persistent above-threshold press read"); every rival output's reference score below the bar minus the error throughout; and count-boundary clearance displaced by the first-hit window: m pauses fit after every possible first press (mθ+U<=H) and m+1 fit after none ((m+1)θ+L>H). No count is a field.

                    Instances For
                      theorem MindFormal.live_release_step {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] {J : Type u_4} [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LiveData Ω N n T Λ J 𝒩) (i : Fin N) {z : Ω} (hz : z ∈ C.good) (k : ℕ) (r : ℝ) (hr : (C.schedule z).release k = r) (hrH : r ≤ ↑C.horizon) (hr0 : 0 ≤ r) (hqual : C.data.reads.actionBar + C.error ≤ C.score i r) (hout : C.data.reads.outputs i = true) (hriv : ∀ (j : Fin N), j ≠ i → C.data.reads.outputs j = true → C.score j r < C.data.reads.actionBar - C.error) :
                      ((C.schedule z).search k).event = some (r, i)

                      02.16 (16.5): at a good realization, if slot k's release r lies in [0,H], the press read qualifies at r with the score margin and every rival is below the bar minus the error at r, the slot's native event is the press exactly at its release.

                      theorem MindFormal.press_count {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] {J : Type u_4} [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LiveData Ω N n T Λ J 𝒩) (i : Fin N) {m : ℕ} (P : PressPersistence C i m) (z : Ω) :
                      z ∈ C.good → C.count i z = m + 1

                      02.16 (16.5): on the corridor event a persistent press read with count-boundary clearance produces exactly m+1 native presses in the horizon: the first in its window, each later one at its release, the slot after the m-th released beyond the horizon.

                      structure MindFormal.SecondResponseWindow {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] {J : Type u_4} [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (C : LiveData Ω N n T Λ J 𝒩) (i j : Fin N) :

                      02.17 (17.1): the second response's window stated by the entry's own premises: R1's first-action fan window (first, slot 0); R2's onset s and its held comparison from s (constant target, start at s, a read strictly increasing on [start, target] with read(b∓)=bar∓E); R2's reference score below the bar minus the error from R1's earliest release on until its onset (before_onset); and every other output, R1 included, below the bar minus the error from that release through U2 (rivals: the Claim's task-completion feedback); U2 lies within the horizon. No score window is a field.

                      Instances For
                        theorem MindFormal.SecondResponseWindow.on_good {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] {J : Type u_4} [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} {C : LiveData Ω N n T Λ J 𝒩} {i j : Fin N} (W : SecondResponseWindow C i j) :

                        02.17 (17.1): on the corridor event the second native action is R2 at a time in [max(s+t2(b−), r1−+θ), max(s+t2(b+), r1++θ)]: its release is R1's own action plus the pause, and its score window is derived from R2's held comparison and the rivals' bounds.