MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch07.RateSpectra

12.28's rate spectra: the Laplace transforms that turn a population of observable decay or learning rates into a retention or acquisition curve. The Gamma spectrum gives the shifted power, the Lévy (positive stable of index 1/2) spectrum the root exponential, and their Gamma mixture the root hyperbola. Nothing here is tagged.

The Gaussian with a reciprocal term #

theorem MindFormal.integral_exp_neg_sq_sub_div {b : ℝ} (hb : 0 < b) :
∫ (w : ℝ) in Set.Ioi 0, Real.exp (-(w - b / w) ^ 2) = √Real.pi / 2

12.28 (root-exponential row): the substitution u=w−b/w (Cauchy–Schlömilch): ∫_0^∞ e^{−(w−b/w)²}dw=√π/2 for b>0.

theorem MindFormal.integral_exp_neg_sq_sub_sq_div {b : ℝ} (hb : 0 ≤ b) :
∫ (w : ℝ) in Set.Ioi 0, Real.exp (-w ^ 2 - b ^ 2 / w ^ 2) = √Real.pi / 2 * Real.exp (-2 * b)

12.28 (root-exponential row): J(b)=∫_0^∞e^{−w²−b²/w²}dw=(√π/2)e^{−2b} for b ≥ 0.

noncomputable def MindFormal.gammaDensity (k a z : ℝ) :

12.28 (shifted-power row): the Gamma density of shape k and rate a.

Equations
Instances For
    noncomputable def MindFormal.levyDensity (c z : ℝ) :

    12.28 (root-exponential row): the Lévy (positive stable, index ½) density with scale c, c z^{−3/2}e^{−c²/(4z)}/(2√π).

    Equations
    Instances For
      theorem MindFormal.gamma_laplace {k a d : ℝ} (hk : 0 < k) (ha : 0 < a) (hd : 0 ≤ d) :
      ∫ (z : ℝ) in Set.Ioi 0, Real.exp (-(z * d)) * gammaDensity k a z = (a / (a + d)) ^ k

      12.28 (shifted-power row): a Gamma spectrum of observable rates, shape k and rate a, averages e^{−zd} to (a/(a+d))^k=(1+d/a)^{−k}.

      theorem MindFormal.levy_pointwise {c d v : ℝ} (hv : 0 < v) :
      |(-2)| * v ^ (-2 - 1) * (Real.exp (-(v ^ (-2) * d)) * levyDensity c (v ^ (-2))) = c / √Real.pi * Real.exp (-(d / v ^ 2) - c ^ 2 * v ^ 2 / 4)

      12.28 (root-exponential row): the Lévy integrand after z=v^{−2}: 2v^{−3}·e^{−v^{−2}d}·levy_c(v^{−2})=(c/√π)e^{−d/v²−c²v²/4}.

      theorem MindFormal.levy_laplace {c d : ℝ} (hc : 0 < c) (hd : 0 ≤ d) :
      ∫ (z : ℝ) in Set.Ioi 0, Real.exp (-(z * d)) * levyDensity c z = Real.exp (-(c * √d))

      12.28 (root-exponential row): a Lévy spectrum of observable rates with scale c averages e^{−zd} to e^{−c√d}.

      12.28: a nonnegative-valued integrand whose integral is nonzero is integrable.

      theorem MindFormal.gamma_cohort {k a d π0 π1 : ℝ} (hk : 0 < k) (ha : 0 < a) (hd : 0 ≤ d) :
      ∫ (z : ℝ) in Set.Ioi 0, gammaDensity k a z = 1 ∧ ∫ (z : ℝ) in Set.Ioi 0, (π0 + π1 * Real.exp (-(z * d))) * gammaDensity k a z = π0 + π1 * (a / (a + d)) ^ k

      12.28 (shifted-power row): the cohort recall. Members with observable rate z read π₀+π₁e^{−zd} (RC8.9's single-rate corner); under the Gamma spectrum the cohort recall is π₀+π₁(a/(a+d))^k, the shifted power, and the density integrates to one.

      theorem MindFormal.levy_cohort {c d π0 π1 : ℝ} (hc : 0 < c) (hd : 0 ≤ d) :
      ∫ (z : ℝ) in Set.Ioi 0, levyDensity c z = 1 ∧ ∫ (z : ℝ) in Set.Ioi 0, (π0 + π1 * Real.exp (-(z * d))) * levyDensity c z = π0 + π1 * Real.exp (-(c * √d))

      12.28 (root-exponential row): under the Lévy spectrum with scale c the cohort recall is π₀+π₁e^{−c√d}, and the density integrates to one.

      theorem MindFormal.roothyp_cohort {k a d π0 π1 : ℝ} (hk : 0 < k) (ha : 0 < a) (hd : 0 ≤ d) :
      ∫ (c : ℝ) in Set.Ioi 0, gammaDensity k a c * ∫ (z : ℝ) in Set.Ioi 0, (π0 + π1 * Real.exp (-(z * d))) * levyDensity c z = π0 + π1 * (a / (a + √d)) ^ k

      12.28 (root-hyperbolic row): a cohort whose Lévy scale c is itself Gamma distributed (shape k, rate a) has recall π₀+π₁(a/(a+√d))^k=π₀+π₁(1+Γ_hyp√d)^{−k}, Γ_hyp=1/a; k=1 is the root hyperbola.

      theorem MindFormal.gamma_acquisition {k a π0 π1 : ℝ} (hk : 0 < k) (ha : 0 < a) (N : ℕ) :
      ∫ (z : ℝ) in Set.Ioi 0, (π0 + π1 * (1 - Real.exp (-(z * ↑N)))) * gammaDensity k a z = π0 + π1 * (1 - (a / (a + ↑N)) ^ k)

      12.28 (power acquisition deficit): with the learning rate z per exposure Gamma distributed, the cohort recall after N exposures, π₀+π₁(1−e^{−zN}) per member (RC8.10), averages to π₀+π₁[1−(a/(a+N))^k].