MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch04.ValueWrites

04.32 (C1)–(C3) and 04.23 (F5): value writes on a continuing-learning reference. A value coordinate is its start plus the integral of its complete III drift; with the identity surprise response that drift is the content's presence times the rate times the complete surprise; the surprise's part forecast by a chosen set of contents is continuous along the reference.

noncomputable def MindFormal.LearningRun.refValue {Ω : 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 : Ω) (i : Fin N) (b : Fin n) (a : T) (t : ℝ) :

04.32 (C1): content i's value element b at horizon a on the reference of draw z.

Equations
Instances For
    noncomputable def MindFormal.LearningRun.refSurprise {Ω : 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 : Ω) (a : T) (b : Fin n) (t : ℝ) :

    04.32 (C1): III's complete surprise δ for element b at horizon a on the reference of draw z, with that reference's own input.

    Equations
    Instances For
      noncomputable def MindFormal.LearningRun.refForecast {Ω : 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 : Ω) (M : Finset (Fin N)) (a : T) (b : Fin n) (t : ℝ) :

      04.32 (C1): the part of the surprise forecast by the contents in M, Σ_{j∈M}(ṗ_j-p_j/τ)v_j, on the reference of draw z.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        theorem MindFormal.learningRun_value_change {Ω : 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 : Ω) (i : Fin N) (b : Fin n) (a : T) {t0 t1 : ℝ} (h0 : 0 ≤ t0) (h01 : t0 ≤ t1) (h1 : t1 ≤ ↑C.horizon) :
        C.refValue z i b a t1 - C.refValue z i b a t0 = ∫ (s : ℝ) in t0..t1, C.refDrift z s (Sum.inr (Sum.inr (Sum.inl (i, b, a))))

        04.32 (C1): on the reference a value coordinate changes by the integral of its complete III drift; values are not reflected.

        theorem MindFormal.learningRun_value_drift {Ω : 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 𝒩) (hk : ∀ (δ : Fin n → ℝ), C.data.toPhysicalNoiseData.data.response δ = δ) (z : Ω) (i : Fin N) (b : Fin n) (a : T) (t : ℝ) :

        04.32 (C1): with the identity surprise response, content i's complete III drift on the reference is its presence times the rate η_b times the complete surprise.

        theorem MindFormal.learningRun_presence_continuous {Ω : 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 : Fin N) :

        04.32 (C1): along the reference, the presence and the presence rate of every content are continuous in time: traces stay nonnegative, where the positive-part extension of the regular coefficient data agrees with the data.

        theorem MindFormal.learningRun_forecast_continuous {Ω : 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 : Ω) (M : Finset (Fin N)) (a : T) (b : Fin n) :

        04.32 (C1): the forecast part of the surprise is continuous along the reference.

        noncomputable def MindFormal.LearningRun.refRating {Ω : 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 : Ω) (ℓ : Fin n → ℝ) (i : Fin N) (a : T) (t : ℝ) :

        04.23 (F5): content i's calibrated rating R=ℓ·v_i at horizon a on the reference.

        Equations
        Instances For
          theorem MindFormal.learningRun_value_drift_response {Ω : 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 : Ω) (i : Fin N) (b : Fin n) (a : T) (t : ℝ) :

          04.23 (F5): content i's complete III drift on the reference, for any response k: its presence times the rate η_b times the response to the complete surprise.

          noncomputable def MindFormal.LearningRun.refRatingRate {Ω : 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 : Ω) (ℓ : Fin n → ℝ) (a : T) (t : ℝ) :

          04.23 (F5): the rating's write rate z=ℓ·(η⊙k(δ)) on the reference, the weighted response to the surprise, for any response k.

          Equations
          Instances For
            theorem MindFormal.learningRun_rating_change {Ω : 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 : Ω) (ℓ : Fin n → ℝ) (i : Fin N) (a : T) {t0 t1 : ℝ} (h0 : 0 ≤ t0) (h01 : t0 ≤ t1) (h1 : t1 ≤ ↑C.horizon) :
            IntervalIntegrable (fun (s : ℝ) => C.refPresence z i s * C.refRatingRate z ℓ a s) MeasureTheory.volume t0 t1 ∧ C.refRating z ℓ i a t1 - C.refRating z ℓ i a t0 = ∫ (s : ℝ) in t0..t1, C.refPresence z i s * C.refRatingRate z ℓ a s

            04.23 (F5): for any response, a rating on the reference changes by the integral of the content's presence times the rating's write rate, which is interval integrable.

            theorem MindFormal.learningRun_trace_hasDerivAt {Ω : 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 : Ω) (i : Fin N) (l : Λ) {t : ℝ} (ht0 : 0 < t) (htH : t < ↑C.horizon) :
            HasDerivAt (fun (s : ℝ) => mindTrace (C.refState z s) i l) (C.data.toPhysicalNoiseData.data.rate l * (C.refAct z i t - mindTrace (C.refState z t) i l)) t

            04.26 (R2), 04.33 (TC8): on the reference of draw z, at an interior time t∈(0,H), every trace of content i has derivative its D4 drift λ_l(x_i-r_il): the trace is its start plus the integral of a continuous drift.

            theorem MindFormal.learningRun_presence_hasDerivAt {Ω : 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 𝒩) (hc : ∀ (r : Λ → ℝ), 0 ≤ r → HasFDerivWithinAt C.data.toPhysicalNoiseData.data.presence (presenceDifferential C.data.toPhysicalNoiseData.data r) {r : Λ → ℝ | 0 ≤ r} r) (z : Ω) (i : Fin N) {t : ℝ} (ht0 : 0 < t) (htH : t < ↑C.horizon) :

            04.26 (R2), 04.33 (TC8): at an interior time, a content's presence along the reference has derivative the presence rate ṗ of D4 (the chain rule through the canonical gradient).

            theorem MindFormal.learningRun_presence_sq_integral {Ω : 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 𝒩) (hc : ∀ (r : Λ → ℝ), 0 ≤ r → HasFDerivWithinAt C.data.toPhysicalNoiseData.data.presence (presenceDifferential C.data.toPhysicalNoiseData.data r) {r : Λ → ℝ | 0 ≤ r} r) (z : Ω) (i : Fin N) {t0 t1 : ℝ} (h0 : 0 ≤ t0) (h01 : t0 ≤ t1) (h1 : t1 ≤ ↑C.horizon) :
            ∫ (s : ℝ) in t0..t1, C.refPresence z i s * assembledPresenceRate C.data.toPhysicalNoiseData.data (C.refState z s) i = (C.refPresence z i t1 ^ 2 - C.refPresence z i t0 ^ 2) / 2

            04.26 (R2), 04.33 (TC8): along the reference, ∫_{t₀}^{t₁} p ṗ = (p(t₁)²-p(t₀)²)/2 on [t₀,t₁]⊆[0,H]: presence is continuous with derivative ṗ inside.

            theorem MindFormal.learningRun_value_bound {Ω : 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} {b : Fin n} {a : T} (C : LearningRun Ω N n T Λ J 𝒩) (hk : ∀ (δ : Fin n → ℝ), C.data.toPhysicalNoiseData.data.response δ = δ) (hc : ∀ (r : Λ → ℝ), 0 ≤ r → HasFDerivWithinAt C.data.toPhysicalNoiseData.data.presence (presenceDifferential C.data.toPhysicalNoiseData.data r) {r : Λ → ℝ | 0 ≤ r} r) (hη : 0 < C.data.toPhysicalNoiseData.data.η b) (hτ : 0 < C.data.toPhysicalNoiseData.data.τ a) (z : Ω) (i : Fin N) (hpres : ∀ (s : ℝ), 0 ≤ C.refPresence z i s) {t pp Om : ℝ} (ht : 0 ≤ t) (htH : t ≤ ↑C.horizon) (noDelivery : ∀ s ∈ Set.Icc 0 t, C.data.toPhysicalNoiseData.data.reward ((C.reference z).input s) b = 0) (presenceCap : ∀ s ∈ Set.Icc 0 t, C.refPresence z i s ≤ pp) (otherBound : ∀ s ∈ Set.Icc 0 t, |C.refForecast z (Finset.univ.erase i) a b s| ≤ Om) :

            04.26 (R2)–(R3), 04.33 (TC8)–(TC9): with the identity response and no primary delivery to element b on [0,t]⊆[0,H], content i's value v=v_i(b,a) on the reference satisfies |v(t)|≤e^{η(p₊²-p(0)²)/2}|v(0)|e^{-(η/τ)∫₀^t p²}+e^{ηp₊²/2}ηp₊Ω₊t, where p≤p₊ is its presence and |Ω|≤Ω₊ bounds the other contents' forecast Σ_{j≠i}(ṗ_j-p_j/τ)v_j: III's own discount of either sign, with every other content charged.

            theorem MindFormal.learningRun_trace_change {Ω : 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 : Ω) (i : Fin N) (l : Λ) {t0 t1 : ℝ} (h0 : 0 ≤ t0) (h01 : t0 ≤ t1) (h1 : t1 ≤ ↑C.horizon) :

            04.26 (R5): on the reference a trace changes by the integral of its D4 drift; traces are not reflected.

            theorem MindFormal.learningRun_trace_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 : Ω) (i : Fin N) (l : Λ) (hlr : 0 < C.data.toPhysicalNoiseData.data.rate l) {t : ℝ} (ht : 0 ≤ t) (htH : t ≤ ↑C.horizon) :

            04.26 (R5), 04.33 (TC10): on the reference, a trace r_il obeys r(t)≥r(0)e^{-λ_l t}: its D4 drift λ_l(x_i-r) is at least -λ_l r because activity is nonnegative.

            theorem MindFormal.exposure_integral {lr C0 t : ℝ} (hlr0 : 0 < lr) :
            ∫ (s : ℝ) in 0..t, C0 ^ 2 * Real.exp (-2 * lr * s) = C0 ^ 2 * (1 - Real.exp (-2 * lr * t)) / (2 * lr)

            04.26 (R5): ∫₀^t C₀²e^{-2λs}ds=C₀²(1-e^{-2λt})/(2λ).

            theorem MindFormal.learningRun_attention_end {Ω : 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} {b : Fin n} {a : T} (C : LearningRun Ω N n T Λ J 𝒩) (hk : ∀ (δ : Fin n → ℝ), C.data.toPhysicalNoiseData.data.response δ = δ) (hc : ∀ (r : Λ → ℝ), 0 ≤ r → HasFDerivWithinAt C.data.toPhysicalNoiseData.data.presence (presenceDifferential C.data.toPhysicalNoiseData.data r) {r : Λ → ℝ | 0 ≤ r} r) (hη : 0 < C.data.toPhysicalNoiseData.data.η b) (hτ : 0 < C.data.toPhysicalNoiseData.data.τ a) (z : Ω) (i : Fin N) (l : Λ) (hpres : ∀ (s : ℝ), 0 ≤ C.refPresence z i s) (hlr : 0 < C.data.toPhysicalNoiseData.data.rate l) {ζ xp pp C0 V0 Om Q ι γ : ℝ} (hC0 : 0 ≤ C0) (noDelivery : ∀ s ∈ Set.Icc 0 ↑C.horizon, C.data.toPhysicalNoiseData.data.reward ((C.reference z).input s) b = 0) (presenceTrace : ∀ s ∈ Set.Icc 0 ↑C.horizon, C.refPresence z i s = C.refCoordinate z (Sum.inr (Sum.inr (Sum.inr (i, l)))) s) (attentionRead : ∀ s ∈ Set.Icc 0 ↑C.horizon, C.refAttention z i s = C.refAct z i s + ζ * C.refValue z i b a s) (activityCap : ∀ s ∈ Set.Icc 0 ↑C.horizon, C.refAct z i s ≤ xp) (presenceCap : ∀ s ∈ Set.Icc 0 ↑C.horizon, C.refPresence z i s ≤ pp) (presenceStart : C0 ≤ C.refPresence z i 0) (valueStart : |C.refValue z i b a 0| ≤ V0) (otherBound : ∀ s ∈ Set.Icc 0 ↑C.horizon, |C.refForecast z (Finset.univ.erase i) a b s| ≤ Om) (hQ : 0 < Q) (hQC : Q < C0 ^ 2 / (2 * C.data.toPhysicalNoiseData.data.rate l)) (exposureMargin : |ζ| * Real.exp (C.data.toPhysicalNoiseData.data.η b * (pp ^ 2 - C0 ^ 2) / 2) * V0 * Real.exp (-(C.data.toPhysicalNoiseData.data.η b / C.data.toPhysicalNoiseData.data.τ a) * Q) + xp + |ζ| * (Real.exp (C.data.toPhysicalNoiseData.data.η b * pp ^ 2 / 2) * (C.data.toPhysicalNoiseData.data.η b * pp * Om * ↑C.horizon)) ≤ ι - γ) (t : ℝ) :
            t ∈ Set.Icc (-(1 / (2 * C.data.toPhysicalNoiseData.data.rate l)) * Real.log (1 - 2 * C.data.toPhysicalNoiseData.data.rate l * Q / C0 ^ 2)) ↑C.horizon → C.refAttention z i t ≤ ι - γ

            04.26 (R4)–(R6), 04.33 (TC10): on the reference of draw z, in the scalar-value class (identity response, no delivery to b, presence the single trace r_il with rate λ>0), with attention read Y=x+ζv, activity at most x₊ and presence at most p₊ through [0,H], start presence at least C₀≥0 and start value at most V₀ in magnitude, other contents' forecast at most Ω₊, the exposure level Q>0 with |ζ|e^{η(p₊²-C₀²)/2}V₀e^{-(η/τ)Q}+x₊+|ζ|e^{ηp₊²/2}ηp₊Ω₊H≤ι-γ and Q<C₀²/(2λ): from t_end=-(1/2λ)log(1-2λQ/C₀²) through H the reference attention score is at most ι-γ.