MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch05.RetellingRehearsal

theorem MindFormal.Retelling.writer_abs_bound {β p x e w pc xc ec wc : ℝ} (hβ : 0 ≤ β) (hβ1 : β ≤ 1) (hp : 0 ≤ p) (hx : 0 ≤ x) (hp' : p ≤ pc) (hx' : x ≤ xc) (he : |e| ≤ ec) (hw : |w| ≤ wc) :
|writerFactor β p x e w| ≤ (1 - β) * pc * ec + β * xc * (pc + wc)
theorem MindFormal.Retelling.extra_rehearsal {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (ω : Ω) (d b c : Fin N) {a t pc xc ec wc m noise : ℝ} (ha : 0 ≤ a) (hat : a ≤ t) (hcap : ∀ s ∈ Set.Icc a t, (E.supportHistory ω).p s c ≤ pc ∧ (E.supportHistory ω).x s d ≤ xc ∧ (E.supportHistory ω).x s b ≤ xc ∧ |actualError (E.supportHistory ω) d s| ≤ ec ∧ |actualError (E.supportHistory ω) b s| ≤ ec ∧ |(E.supportHistory ω).W s d c| ≤ wc ∧ |(E.supportHistory ω).W s b c| ≤ wc ∧ (E.supportHistory ω).gain s ≤ m) (hn : |detailNoise (E.supportHistory ω) d b c t - detailNoise (E.supportHistory ω) d b c a| ≤ noise) :
|detail (E.supportHistory ω) d b c t - detail (E.supportHistory ω) d b c a| ≤ (t - a) * m * (2 * (1 - E.mind.β) * pc * ec + 2 * E.mind.β * xc * (pc + wc)) + noise

F2.7 prices only the direct change during this actual interval. All cue/detail/error/link and gain caps concern the complete internal run.

theorem MindFormal.Retelling.sum_interval_changes {I : Type u_5} (S : Finset I) (change bill : I → ℝ) (h : ∀ i ∈ S, |change i| ≤ bill i) :
|∑ i ∈ S, change i| ≤ ∑ i ∈ S, bill i

Disjoint rehearsal intervals pay each original innovation increment separately. This is the sum of direct interval changes, not a bound on later indirect changes throughout the rest of the mind.

theorem MindFormal.Retelling.extra_rehearsal_sum {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {I : Type u_5} (S : Finset I) (E : StateExperiment Ω N n T Λ J) (ω : Ω) (d b c : Fin N) (a t pc xc ec wc m noise : I → ℝ) (ha : ∀ k ∈ S, 0 ≤ a k) (hat : ∀ k ∈ S, a k ≤ t k) (hcap : ∀ k ∈ S, ∀ s ∈ Set.Icc (a k) (t k), (E.supportHistory ω).p s c ≤ pc k ∧ (E.supportHistory ω).x s d ≤ xc k ∧ (E.supportHistory ω).x s b ≤ xc k ∧ |actualError (E.supportHistory ω) d s| ≤ ec k ∧ |actualError (E.supportHistory ω) b s| ≤ ec k ∧ |(E.supportHistory ω).W s d c| ≤ wc k ∧ |(E.supportHistory ω).W s b c| ≤ wc k ∧ (E.supportHistory ω).gain s ≤ m k) (hn : ∀ k ∈ S, |detailNoise (E.supportHistory ω) d b c (t k) - detailNoise (E.supportHistory ω) d b c (a k)| ≤ noise k) :
|∑ k ∈ S, (detail (E.supportHistory ω) d b c (t k) - detail (E.supportHistory ω) d b c (a k))| ≤ ∑ k ∈ S, ((t k - a k) * m k * (2 * (1 - E.mind.β) * pc k * ec k + 2 * E.mind.β * xc k * (pc k + wc k)) + noise k)

The native finite sum version of F2.7. Each actual interval carries its own original innovation-increment allowance. The conclusion is only the sum of direct interval changes, also when the intervals are disjoint.