MindFormal v1.0.0One Mind

MindFormal.Tools.ReceiptTiming.Weights

noncomputable def MindFormal.ReceiptTiming.scalarWeight (η τ H : ℝ) (C : ℝ → ℝ) (t : ℝ) :

W2.4's undivided weight. It is defined also when presence vanishes. Reward and cost use their own rate η and their own signed comparison read.

Equations
Instances For
    theorem MindFormal.ReceiptTiming.scalarWeight_derivative (η τ H : ℝ) (C : ℝ → ℝ) (t C' : ℝ) (hc : Continuous C) (hd : HasDerivAt C C' t) :
    HasDerivAt (scalarWeight η τ H C) (η * Real.exp (η / 2 * (C H ^ 2 - C t ^ 2) - η / τ * ∫ (s : ℝ) in t..H, C s ^ 2) * (C' - η * C t ^ 2 * C' + η / τ * C t ^ 3)) t

    The derivative is computed before any division by presence.

    theorem MindFormal.ReceiptTiming.scalarWeight_log_derivative (η τ H : ℝ) (C : ℝ → ℝ) (t C' : ℝ) (hη : 0 < η) (hC : 0 < C t) (hc : Continuous C) (hd : HasDerivAt C C' t) :
    deriv (scalarWeight η τ H C) t / scalarWeight η τ H C t = C' / C t - η * C t * C' + η / τ * C t ^ 2

    Dividing only at strictly positive presence yields W2.4. At zero presence the preceding undivided identity remains the applicable statement.