MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch07.RecallSeparation

RC2's separation on the actual run and the conditional comparison's recall test: the target's complete support, load and target at an actual noisy state; the actual activity as its entering value decayed, the convolution of its complete target, and the filtered increments of its own innovation and of the floor's push; the probe margin's order in share, entering activity and duration; the constant-support comparison's recall test and its thresholds. Nothing here is tagged.

The actual run's support, load and target #

noncomputable def MindFormal.runUseful {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (i : Fin N) (s : ℝ) :

RC2: content i's complete transformed support on the actual run G at time s, with the run's own input, native focus pulse and state.

Equations
Instances For
    noncomputable def MindFormal.runRest {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (i : Fin N) (s : ℝ) :

    RC2: the rest of content i's pool on the actual run G at time s: the floor and every other content's complete transformed input.

    Equations
    Instances For
      noncomputable def MindFormal.runTarget {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (i : Fin N) (s : ℝ) :

      RC2: content i's complete target on the actual run G at time s.

      Equations
      Instances For
        theorem MindFormal.runUseful_nonneg {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (i : Fin N) (s : ℝ) :
        0 ≤ runUseful G i s
        theorem MindFormal.runRest_pos {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (i : Fin N) (s : ℝ) :
        0 < runRest G i s
        theorem MindFormal.runTarget_share {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (i : Fin N) (s : ℝ) :
        runTarget G i s = max (runUseful G i s / (runUseful G i s + runRest G i s) - G.data.activity.g) 0

        RC2: the actual complete target is the clipped share of the support in the pool.

        The actual activity from any time on #

        theorem MindFormal.run_activity_from {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (d : Fin N) {t0 s : ℝ} (h0 : 0 ≤ t0) (hs : t0 ≤ s) :
        mindActivity (G.state s) d = (Real.exp (-G.data.activity.ν * (s - t0)) * mindActivity (G.state t0) d + G.data.activity.ν * ∫ (u : ℝ) in t0..s, Real.exp (-G.data.activity.ν * (s - u)) * runTarget G d u) + (G.driver s.toNNReal (Sum.inr (Sum.inl d)) - G.driver t0.toNNReal (Sum.inr (Sum.inl d)) - G.data.activity.ν * ∫ (u : ℝ) in t0..s, Real.exp (-G.data.activity.ν * (s - u)) * (G.driver u.toNNReal (Sum.inr (Sum.inl d)) - G.driver t0.toNNReal (Sum.inr (Sum.inl d)))) + (G.realPush s d - G.realPush t0 d - G.data.activity.ν * ∫ (u : ℝ) in t0..s, Real.exp (-G.data.activity.ν * (s - u)) * (G.realPush u d - G.realPush t0 d))

        RC2 (the entering-activity term on the actual run): from any time t0 ≥ 0 to a later s, the actual activity of content d is its value at t0 decayed by e^{-ν(s-t0)}, plus ν times the exponential convolution of its complete actual target over (t0,s], plus the exponentially filtered increment M(s)-ν∫e^{-ν(s-u)}M(u)du of its own innovation since t0, plus the same filter of the floor's push since t0.

        noncomputable def MindFormal.expFilter (ν : ℝ) (F : ℝ → ℝ) (p τ : ℝ) :

        RC2: the exponential filter of a path F's increment from p over an elapsed time τ, (F(p+τ)-F(p))-ν∫_0^τe^{-ν(τ-u)}(F(p+u)-F(p))du.

        Equations
        Instances For
          theorem MindFormal.shift_convolution (ν p τ : ℝ) (F : ℝ → ℝ) :
          ∫ (u : ℝ) in p..p + τ, Real.exp (-ν * (p + τ - u)) * F u = ∫ (u : ℝ) in 0..τ, Real.exp (-ν * (τ - u)) * F (p + u)

          RC2: a convolution over (p,p+τ] read from the probe onset p.

          theorem MindFormal.run_activity_shift {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (d : Fin N) {p τ : ℝ} (hp : 0 ≤ p) (hτ : 0 ≤ τ) :
          mindActivity (G.state (p + τ)) d = (Real.exp (-G.data.activity.ν * τ) * mindActivity (G.state p) d + G.data.activity.ν * ∫ (u : ℝ) in 0..τ, Real.exp (-G.data.activity.ν * (τ - u)) * runTarget G d (p + u)) + expFilter G.data.activity.ν (fun (u : ℝ) => G.driver u.toNNReal (Sum.inr (Sum.inl d))) p τ + expFilter G.data.activity.ν (fun (u : ℝ) => G.realPush u d) p τ

          RC2 (the entering-activity term on the actual run, from the probe onset): at elapsed time τ ≥ 0 after an onset p ≥ 0 the actual activity is e^{-ντ}x(p)+ν∫_0^τe^{-ν(τ-u)}𝒯(p+u)du plus the exponential filters of its own innovation's and of the floor push's increments since p.

          RC2.1 and RC2.2 at actual noisy states #

          theorem MindFormal.run_share_separation {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (P1 P2 : PhysicalGlobalData N n T Λ) (hg : P2.data.activity.g = P1.data.activity.g) (i : Fin N) (t1 t2 : ℝ) :
          have g := P1.data.activity.g; have X1 := runUseful P1 i t1; have X2 := runUseful P2 i t2; have G1 := runRest P1 i t1; have G2 := runRest P2 i t2; have Δ := X2 / (X2 + G2) - X1 / (X1 + G1); have num := G1 * (X2 - X1) - X1 * (G2 - G1); Δ = num / ((X1 + G1) * (X2 + G2)) ∧ (0 < Δ ↔ 0 < num) ∧ (Δ = 0 ↔ num = 0) ∧ (Δ < 0 ↔ num < 0) ∧ (X1 / (X1 + G1) ≤ X2 / (X2 + G2) → runTarget P1 i t1 ≤ runTarget P2 i t2) ∧ (X1 / (X1 + G1) ≤ g → X2 / (X2 + G2) ≤ g → runTarget P1 i t1 = 0 ∧ runTarget P2 i t2 = 0)

          RC2 (RC2.1) at actual states: for two actual runs P1, P2 with one gate g (two conditions of one mind) and any times t1, t2, with X the target's complete support and G the floor plus every competitor's transformed input, the share difference is (G¹ΔX-X¹ΔG)/((X¹+G¹)(X²+G²)), X¹=0 included; its sign is that numerator's; a weakly larger share gives a weakly larger actual target; two shares at most g give two zero targets.

          theorem MindFormal.run_raw_input_split {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (P1 P2 : PhysicalGlobalData N n T Λ) (hd : P2.data = P1.data) (i c : Fin N) (t1 t2 : ℝ) :
          have d := P1.data; have s1 := P1.state t1; have s2 := P2.state t2; have e1 := fun (j : Fin N) => d.drive (P1.input t1 j) (P1.pulse t1 j) (mindValue s1 j); have e2 := fun (j : Fin N) => d.drive (P2.input t2 j) (P2.pulse t2 j) (mindValue s2 j); have r1 := fun (j : Fin N) => d.residue (mindTrace s1 j); have r2 := fun (j : Fin N) => d.residue (mindTrace s2 j); have I1 := rawInput e1 r1 (mindRelation s1) (mindActivity s1) i; have I2 := rawInput e2 r2 (mindRelation s2) (mindActivity s2) i; have link := mindActivity s1 c * (mindRelation s2 i c - mindRelation s1 i c); have rest := mindRelation s2 i c * (mindActivity s2 c - mindActivity s1 c) + (e2 i - e1 i) + (r2 i - r1 i) + ∑ j ∈ Finset.univ.erase c, (mindActivity s1 j * (mindRelation s2 i j - mindRelation s1 i j) + mindRelation s2 i j * (mindActivity s2 j - mindActivity s1 j)); I2 - I1 = link + rest ∧ runUseful P1 i t1 = d.transform.ψ I1 ∧ runUseful P2 i t2 = d.transform.ψ I2 ∧ ∃ (q : ℝ), 0 ≤ q ∧ runUseful P2 i t2 - runUseful P1 i t1 = q * link + q * rest ∧ (I1 = I2 → runUseful P2 i t2 - runUseful P1 i t1 = 0)

          RC2 (RC2.2) at actual states: for two actual runs P1, P2 of one drift and any times t1, t2, the raw-input change of target i is x¹_cΔW_ic (the tested link from cue c) plus the rest W²_icΔx_c+Δe_i+Δ𝓡_i+Σ_{j≠c}(x¹_jΔW_ij+W²_ijΔx_j), each run's support is ψ of its raw input, and the support change is q times the tested-link term plus q times the rest for a divided difference q ≥ 0 of ψ, zero when the raw inputs coincide.

          theorem MindFormal.run_activity_difference {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (P1 P2 : PhysicalGlobalData N n T Λ) (hd : P2.data = P1.data) (i : Fin N) {p1 p2 τ : ℝ} (hp1 : 0 ≤ p1) (hp2 : 0 ≤ p2) (hτ : 0 ≤ τ) :
          have ν := P1.data.activity.ν; mindActivity (P2.state (p2 + τ)) i - mindActivity (P1.state (p1 + τ)) i = Real.exp (-ν * τ) * (mindActivity (P2.state p2) i - mindActivity (P1.state p1) i) + ν * ((∫ (u : ℝ) in 0..τ, Real.exp (-ν * (τ - u)) * runTarget P2 i (p2 + u)) - ∫ (u : ℝ) in 0..τ, Real.exp (-ν * (τ - u)) * runTarget P1 i (p1 + u)) + (expFilter ν (fun (u : ℝ) => P2.driver u.toNNReal (Sum.inr (Sum.inl i))) p2 τ - expFilter ν (fun (u : ℝ) => P1.driver u.toNNReal (Sum.inr (Sum.inl i))) p1 τ) + (expFilter ν (fun (u : ℝ) => P2.realPush u i) p2 τ - expFilter ν (fun (u : ℝ) => P1.realPush u i) p1 τ)

          RC2 (the entering-activity term) at actual states: for two actual runs P1, P2 of one drift, probe onsets p1, p2 ≥ 0 and an elapsed time τ ≥ 0, the actual activities of content i differ by e^{-ντ} times the entering difference, ν times the difference of the complete targets' convolutions, and the differences of the innovations' and of the floor pushes' filtered increments.

          The probe's recall test: thresholds and order #

          noncomputable def MindFormal.probeNeed (ν α x ℓ : ℝ) :

          RC2 (RC2.5): the held target an entering activity x needs to reach α within a probe of duration ℓ, (α-e^{-νℓ}x)/(1-e^{-νℓ}).

          Equations
          Instances For
            theorem MindFormal.probeNeed_eq {ν α x ℓ : ℝ} (hν : 0 < ν) (hℓ : 0 < ℓ) :
            probeNeed ν α x ℓ = α + (α - x) / (Real.exp (ν * ℓ) - 1)

            RC2: the need exceeds α by e^{-νℓ}(α-x)/(1-e^{-νℓ}).

            theorem MindFormal.probeNeed_order {ν α x : ℝ} (hν : 0 < ν) (hxα : x < α) :
            (∀ (ℓ : ℝ), 0 < ℓ → α < probeNeed ν α x ℓ) ∧ (∀ (ℓ1 ℓ2 : ℝ), 0 < ℓ1 → ℓ1 < ℓ2 → probeNeed ν α x ℓ2 < probeNeed ν α x ℓ1) ∧ ∀ (ℓ x' : ℝ), 0 < ℓ → x' < x → probeNeed ν α x ℓ < probeNeed ν α x' ℓ

            RC2: with an entering activity below α the need is positive, strictly decreasing in the probe's duration and in the entering activity.

            theorem MindFormal.probe_thresholds {ν α x ℓ X G g : ℝ} (hν : 0 < ν) (hℓ : 0 < ℓ) (hx : 0 ≤ x) (hxα : x < α) (hX : 0 ≤ X) (hG : 0 < G) (hg : 0 < g) :
            have need := probeNeed ν α x ℓ; have c := X / (X + G) - g; (need ≤ c ↔ G ≤ X * (1 - g - need) / (g + need)) ∧ (need ≤ c ↔ g + need < 1 ∧ G * (g + need) / (1 - g - need) ≤ X) ∧ (need ≤ c ↔ α < c ∧ ν⁻¹ * Real.log ((c - x) / (c - α)) ≤ ℓ) ∧ (need ≤ c ↔ α - (c - α) * (Real.exp (ν * ℓ) - 1) ≤ x)

            RC2 (RC2.5 and paragraph 1's causes): with entering activity 0 ≤ x < α, a probe of duration ℓ > 0, support X ≥ 0, load G > 0 and gate g > 0, the held-target test need ≤ X/(X+G)-g holds exactly when the load is at most X(1-g-need)/(g+need); exactly when g+need < 1 and the support is at least G(g+need)/(1-g-need); exactly when c=X/(X+G)-g exceeds α and the duration is at least ν⁻¹log((c-x)/(c-α)); and exactly when the entering activity is at least α-(c-α)(e^{νℓ}-1).

            theorem MindFormal.LearningReference.constant_probe {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R : LearningReference d H) (i : Fin N) {p ℓ X G α : ℝ} (hp : 0 ≤ p) (hℓ : 0 < ℓ) (hpℓ : p + ℓ ≤ ↑H) (hconst : ∀ s ∈ Set.Ioc p (p + ℓ), R.useful i s = X ∧ R.rest i s = G) (hentry : mindActivity ((ContinuousMap.IccExtend ⋯ R.path) p) i < α) :
            (∃ τ ∈ Set.Icc 0 ℓ, α ≤ mindActivity ((ContinuousMap.IccExtend ⋯ R.path) (p + τ)) i) ↔ probeNeed d.activity.ν α (mindActivity ((ContinuousMap.IccExtend ⋯ R.path) p) i) ℓ ≤ X / (X + G) - d.activity.g

            RC2 (RC2.5, paragraph 3): on a probe [p,p+ℓ] of a verified continuing reference on which the complete support X and load G are constant, entering below α, the reference reaches α in the probe exactly when the need is at most X/(X+G)-g.

            theorem MindFormal.LearningReference.probeMargin_mono {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {d : MindDriftData (Fin N) n T Λ} {H : NNReal} (R1 R2 : LearningReference d H) (i : Fin N) {α p1 p2 ℓ1 ℓ2 : ℝ} (hp1 : 0 ≤ p1) (hp2 : 0 ≤ p2) (hℓ2 : 0 ≤ ℓ2) (h12 : ℓ2 ≤ ℓ1) (hH1 : p1 + ℓ1 ≤ ↑H) (hH2 : p2 + ℓ2 ≤ ↑H) (hentry : mindActivity ((ContinuousMap.IccExtend ⋯ R2.path) p2) i ≤ mindActivity ((ContinuousMap.IccExtend ⋯ R1.path) p1) i) (hshare : ∀ u ∈ Set.Icc 0 ℓ2, R2.useful i (p2 + u) / (R2.useful i (p2 + u) + R2.rest i (p2 + u)) ≤ R1.useful i (p1 + u) / (R1.useful i (p1 + u) + R1.rest i (p1 + u))) :
            R2.probeMargin i α p2 ℓ2 ≤ R1.probeMargin i α p1 ℓ1

            RC2 (paragraph 1's third cause): for two verified continuing references of one drift and two probes [p1,p1+ℓ1], [p2,p2+ℓ2] with ℓ2 ≤ ℓ1, if the second probe's entering activity is at most the first's and its share X/(X+G) at every elapsed time is at most the first's, its probe margin is at most the first's: a lower entering activity or a shorter probe never helps the same support.