MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch08.ApproachAndLiking

VI5: full moving targets bound approach, while a different value read retains liking. All native slots are excluded by qualification, without preventing the other actions from returning inputs.

def MindFormal.ApproachAndLiking.liking {N n : ℕ} {T : Type u_2} {Λ : Type u_3} (s : MindState (Fin N) n T Λ) (i : Fin N) (a : T) (ell : Fin n → ℝ) :

A calibrated hedonic projection at its declared horizon.

Equations
Instances For
    theorem MindFormal.ApproachAndLiking.liking_error {Ω : 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) (a : T) (ell : Fin n → ℝ) {t : ℝ} (ht : t ∈ Set.Icc 0 ↑C.horizon) :
    |liking ((C.data.toPhysicalNoiseData.globalData z).state t) i a ell - liking (C.refState z t) i a ell| ≤ (∑ b : Fin n, |ell b|) * C.control.error
    theorem MindFormal.ApproachAndLiking.approach_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 : Ω) (i : Fin N) (a : T) (ell : Fin n → ℝ) {gamma Tcap Lcap : ℝ} (hg : 0 ≤ gamma) (h_target : ∀ t ∈ Set.Ioc 0 ↑C.horizon, (C.reference z).target i t ≤ Tcap) (h_liking : ∀ t ∈ Set.Icc 0 ↑C.horizon, liking (C.refState z t) i a ell ≤ Lcap) (t : ℝ) :
    t ∈ Set.Icc 0 ↑C.horizon → C.refAct z i t + gamma * liking (C.refState z t) i a ell ≤ max (C.refAct z i 0) Tcap + gamma * Lcap

    VI5.2 upper line: bounded full target and bounded continuing value projection imply a uniform bound on the approach reference score.

    theorem MindFormal.ApproachAndLiking.approach_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) (a : T) (ell : Fin n → ℝ) {gamma Tmin Lmin : ℝ} (hg : 0 ≤ gamma) (h_target : ∀ t ∈ Set.Ioc 0 ↑C.horizon, Tmin ≤ (C.reference z).target i t) (h_liking : ∀ t ∈ Set.Icc 0 ↑C.horizon, Lmin ≤ liking (C.refState z t) i a ell) (t : ℝ) :
    t ∈ Set.Icc 0 ↑C.horizon → referenceActivity C.data.toPhysicalNoiseData.data.activity.ν Tmin (C.refAct z i 0) t + gamma * Lmin ≤ C.refAct z i t + gamma * liking (C.refState z t) i a ell

    VI5.2 lower line: the normal arm's complete target and value bounds give the lower score curve, without holding either of those functions fixed.

    theorem MindFormal.ApproachAndLiking.score_error {Ω : 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) (a : T) (ell : Fin n → ℝ) {gamma : ℝ} (hg : 0 ≤ gamma) {t : ℝ} (ht : t ∈ Set.Icc 0 ↑C.horizon) :
    |mindActivity ((C.data.toPhysicalNoiseData.globalData z).state t) i + gamma * liking ((C.data.toPhysicalNoiseData.globalData z).state t) i a ell - (C.refAct z i t + gamma * liking (C.refState z t) i a ell)| ≤ (1 + gamma * ∑ b : Fin n, |ell b|) * C.control.error

    The calibrated activity-plus-value score has error (1+gamma*||ell||1)E.

    theorem MindFormal.ApproachAndLiking.excluded {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (C : StateLearning Ω N n T Λ J) (hC : C.Contained) (hu : C.control.εu = 0) (i : Fin N) (a : T) (ell : Fin n → ℝ) {gamma Tcap Lcap : ℝ} (hg : 0 ≤ gamma) (h_read : ∀ (r : NativeReadState n T), C.run.data.reads.output r = (↑r).1 + gamma * ∑ b : Fin n, ell b * (↑r).2 b a) (h_target : ∀ z ∈ C.run.good, ∀ t ∈ Set.Ioc 0 ↑C.horizon, (C.reference z).target i t ≤ Tcap) (h_liking : ∀ z ∈ C.run.good, ∀ t ∈ Set.Icc 0 ↑C.horizon, liking (C.run.refState z t) i a ell ≤ Lcap) (margin : ∀ z ∈ C.run.good, max (C.run.refAct z i 0) Tcap + gamma * Lcap + (1 + gamma * ∑ b : Fin n, |ell b|) * C.run.control.error < C.run.data.reads.actionBar) :
    MeasurableSet C.run.good ∧ 1 - C.run.control.failure ≤ C.run.data.μ.real C.run.good ∧ (∀ᵐ (z : Ω) ∂C.run.data.μ, z ∈ C.run.good → C.experiment.OnOwnNoise z C.horizon) ∧ ∀ z ∈ C.run.good, ∀ (k : ℕ) (t : ℝ), ((C.run.schedule z).search k).event ≠ some (t, i)

    Every actual action search must qualify at its attained time. Thus the uniform reference target/read margin excludes eating in every slot.

    theorem MindFormal.ApproachAndLiking.preserved {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (D C : StateLearning Ω N n T Λ J) (s : Fin N) (a : T) (ell : Fin n → ℝ) (window : Ω → Set ℝ) (withinD : ∀ (z : Ω), window z ⊆ Set.Icc 0 ↑D.horizon) (withinC : ∀ (z : Ω), window z ⊆ Set.Icc 0 ↑C.horizon) {cutoff tolerance : ℝ} (positiveD : ∀ z ∈ D.run.good ∩ C.run.good, ∀ t ∈ window z, cutoff + (∑ b : Fin n, |ell b|) * D.run.control.error < liking (D.run.refState z t) s a ell) (positiveC : ∀ z ∈ D.run.good ∩ C.run.good, ∀ t ∈ window z, cutoff + (∑ b : Fin n, |ell b|) * C.run.control.error < liking (C.run.refState z t) s a ell) (close : ∀ z ∈ D.run.good ∩ C.run.good, ∀ t ∈ window z, |liking (D.run.refState z t) s a ell - liking (C.run.refState z t) s a ell| + (∑ b : Fin n, |ell b|) * D.run.control.error + (∑ b : Fin n, |ell b|) * C.run.control.error < tolerance) (z : Ω) :
    z ∈ D.run.good ∩ C.run.good → ∀ t ∈ window z, cutoff < liking ((D.run.data.toPhysicalNoiseData.globalData z).state t) s a ell ∧ cutoff < liking ((C.run.data.toPhysicalNoiseData.globalData z).state t) s a ell ∧ |liking ((D.run.data.toPhysicalNoiseData.globalData z).state t) s a ell - liking ((C.run.data.toPhysicalNoiseData.globalData z).state t) s a ell| < tolerance

    VI5.4: two separate moving-bank errors pay once each. This is the same observation window, and positivity is established in both histories.