MindFormal v1.0.0One Mind

MindFormal.Equations.CreditCompletion

theorem MindFormal.complete_surprise_update {C : Type u_1} [Fintype C] [DecidableEq C] (presence presenceRate value : C → ℝ) (reward τ : ℝ) (j : C) (z : ℝ) :
reward + ∑ k : C, (presenceRate k - presence k / τ) * Function.update value j z k = reward + ∑ k : C, (presenceRate k - presence k / τ) * value k + (presenceRate j - presence j / τ) * (z - value j)

02.9: for a finite content set with decidable equality, arbitrary real presence, presence-rate and fixed value arrays, reward and horizon, replacing one value coordinate changes the complete scalar surprise by exactly that coordinate's (presenceRate-presence/horizon) coefficient times its value change. All other coordinates stay fixed. This is the full-sum identity behind the source's cross-value derivative; no sign or nonzero-horizon premise is needed for this algebra alone.

theorem MindFormal.complete_credit_derivative {C : Type u_1} [Fintype C] [DecidableEq C] (presence presenceRate value : C → ℝ) (reward τ receiverPresence η : ℝ) (j : C) (response : ℝ → ℝ) (responseDerivative : ℝ) (hk : HasDerivAt response responseDerivative (reward + ∑ k : C, (presenceRate k - presence k / τ) * value k)) :
HasDerivAt (fun (z : ℝ) => receiverPresence * η * response (reward + ∑ k : C, (presenceRate k - presence k / τ) * Function.update value j z k)) (receiverPresence * η * responseDerivative * (presenceRate j - presence j / τ)) (value j)

02.9: fix a finite content set with decidable equality, real presence, presence-rate and value arrays, reward, horizon, receiving presence and learning rate, and a differentiated scalar response slice at the complete surprise. Varying only content j's value gives the stated presencerateresponseDerivative* (presenceRate_j-presence_j/horizon) derivative. This connects the chain rule to the complete finite surprise sum; other response components remain fixed in the supplied slice, and this is not a time derivative.

theorem MindFormal.zero_surprise_credit {C : Type u_1} {E : Type u_2} (presence : C → ℝ) (η : E → ℝ) (response : (E → ℝ) → E → ℝ) (surprise : E → ℝ) (hresponse : (response fun (x : E) => 0) = fun (x : E) => 0) (hsurprise : surprise = fun (x : E) => 0) :
(valueDrift presence fun (b : E) => η b * response surprise b) = 0

02.9: for arbitrary content and value-element types, presence and learning rate arrays, a vector response satisfying k(0)=0 and a surprise vector equal to zero give the zero systematic credit matrix. This proves the source's zero- surprise clause from the response condition; it places no restriction on an innovation matrix.

theorem MindFormal.zero_activity_nonzero_credit {rate traceStart response t : ℝ} (htrace : 0 < traceStart) (hresponse : response ≠ 0) :
HasDerivAt (fun (s : ℝ) => traceStart * Real.exp (-rate * s)) (rate * (0 - traceStart * Real.exp (-rate * t))) t ∧ 0 < traceStart * Real.exp (-rate * t) ∧ traceStart * Real.exp (-rate * t) * response ≠ 0

02.9: in the identity-presence trace member, a positive initial trace and arbitrary real trace rate with zero driving activity give a positive exponential trace and nonzero systematic credit against any nonzero real response, at any real time. The displayed derivative verifies D4 for that zero-activity comparison. This exhibits why instantaneous zero activity need not remove credit; it does not assert a zero-activity noisy trajectory.