MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch07.ReadComparisons

12.28 paragraph 6: keeping the measured quantity. The residue of rectangular presentations is a finite sum of exponentially aged terms; no such sum is a power of age, and taking logarithms does not change that; a Gamma population mean of strengths is a difference of two powers; averaging after the normalization is not normalizing the average; a log-logistic threshold gives the logistic read; the practice latency and the savings ratio are explicit. Nothing here is tagged.

(RC8.12): the residue of rectangular presentations #

12.28 (RC8.12): the indicator of a rectangle [a,b) is interval integrable.

theorem MindFormal.rect_kernel {lam a b t : ℝ} (hlam : lam ≠ 0) (ha : 0 ≤ a) (hab : a ≤ b) (hbt : b ≤ t) :
(lam * ∫ (w : ℝ) in 0..t, Real.exp (-lam * (t - w)) * if a ≤ w ∧ w < b then 1 else 0) = Real.exp (-lam * (t - b)) - Real.exp (-lam * (t - a))

12.28 (RC8.12): one rectangle [a,b) seen from t ≥ b through D4's kernel: λ∫_0^t e^{−λ(t−w)}1[a ≤ w<b]dw=e^{−λ(t−b)}−e^{−λ(t−a)}.

theorem MindFormal.rect_trace {m : ℕ} {lam t : ℝ} (hlam : lam ≠ 0) (ht : 0 ≤ t) (xs Ls ts : Fin m → ℝ) (hstart : ∀ (h : Fin m), 0 ≤ ts h - Ls h) (hL : ∀ (h : Fin m), 0 ≤ Ls h) (hend : ∀ (h : Fin m), ts h ≤ t) (r : ℝ → ℝ) (hr : ContinuousOn r (Set.Icc 0 t)) (hr0 : r 0 = 0) (heq : ∀ s ∈ Set.Icc 0 t, r s = r 0 + ∫ (w : ℝ) in 0..s, lam * ((∑ h : Fin m, xs h * if ts h - Ls h ≤ w ∧ w < ts h then 1 else 0) - r w)) :
r t = ∑ h : Fin m, xs h * (1 - Real.exp (-lam * Ls h)) * Real.exp (-lam * (t - ts h))

12.28 (RC8.12): a trace starting at zero and solving D4 along a sum of rectangular presentations of heights x_h, lengths L_h ≥ 0 and ending times t_h ≤ t (starting at or after 0) is Σ_hx_h(1−e^{−λL_h})e^{−λ(t−t_h)}.

Exponential ages are not power ages #

theorem MindFormal.tendsto_shift_rpow_mul_exp {a p lam : ℝ} (hlam : 0 < lam) :
Filter.Tendsto (fun (t : ℝ) => (t - a) ^ p * Real.exp (-lam * t)) Filter.atTop (nhds 0)

12.28: a power of age times an exponential of the same age tends to zero.

theorem MindFormal.exp_sum_ne_power_sum {ι : Type u_1} {κ : Type u_2} [Fintype ι] [Fintype κ] (c lam : ι → ℝ) (hlam : ∀ (i : ι), 0 < lam i) (Γ d tt : κ → ℝ) (hΓ : ∀ (k : κ), 0 < Γ k) (k0 : κ) (t0 : ℝ) :
¬∀ (t : ℝ), t0 ≤ t → ∑ i : ι, c i * Real.exp (-lam i * t) = ∑ k : κ, Γ k * (t - tt k) ^ (-d k)

12.28 (RC8.12): no finite sum of exponentially aged terms equals a sum of positive powers of age over all large ages: the first decays exponentially, the second algebraically.

The Gamma population mean of a rectangle's residue #

theorem MindFormal.gamma_rect_mean {k a s L x : ℝ} (hk : 0 < k) (ha : 0 < a) (hs : 0 ≤ s) (hL : 0 ≤ L) :
∫ (lam : ℝ) in Set.Ioi 0, x * (1 - Real.exp (-lam * L)) * Real.exp (-lam * s) * gammaDensity k a lam = x * ((a / (a + s)) ^ k - (a / (a + (s + L))) ^ k)

12.28: with a Gamma distribution (shape k, rate a) of trace rates, a rectangle of height x and length L ended an age s ago leaves the mean residue x[(a/(a+s))^k−(a/(a+s+L))^k].

Averaging after the normalization #

theorem MindFormal.two_point_jensen {S1 S2 p G : ℝ} (h1 : 0 < S1) (h2 : 0 < S2) (h12 : S1 ≠ S2) (hp0 : 0 < p) (hp1 : p < 1) (hG : 0 < G) :
p * Real.log S1 + (1 - p) * Real.log S2 < Real.log (p * S1 + (1 - p) * S2) ∧ p * (S1 / (S1 + G)) + (1 - p) * (S2 / (S2 + G)) < (p * S1 + (1 - p) * S2) / (p * S1 + (1 - p) * S2 + G)

12.28: for a nondegenerate two-point distribution of support, E log S < log E S and E[S/(S+𝒢₀)] < E S/(E S+𝒢₀): averaging recall after the normalization is not the normalization of the averaged strength.

The logistic read #

theorem MindFormal.loglogistic_read {S Θ0 k : ℝ} (hS : 0 < S) (hΘ : 0 < Θ0) :
S ^ k / (S ^ k + Θ0 ^ k) = 1 / (1 + Real.exp (-k * (Real.log S - Real.log Θ0)))

12.28: a log-logistic support threshold gives the logistic read of log support: S^k/(S^k+Θ₀^k)=1/(1+e^{−k(log S−log Θ₀)}).

theorem MindFormal.support_threshold_iff {Γ0 G0 g Θ S : ℝ} (hΓ0 : 0 < Γ0) (hG0 : 0 < G0) (hΘ : 0 < Θ) (hS : 0 < S) (hT : g < S / (S + G0)) :
max (Γ0 * (Θ / (Θ + G0) - g)) 0 ≤ Γ0 * (S / (S + G0) - g) ↔ Θ ≤ S

12.28: in the corner the support threshold is crossed exactly when the support reaches it: Γ₀[Θ/(Θ+𝒢₀)−g]₊ ≤ Γ₀[S/(S+𝒢₀)−g] iff Θ ≤ S, for S/(S+𝒢₀)>g.

Savings #

theorem MindFormal.savings_time {Ω Winf Wcrit W0 : ℝ} (hΩ : 0 < Ω) (hcrit : Wcrit < Winf) (h0 : W0 ≤ Wcrit) :
have H := Ω⁻¹ * Real.log ((Winf - W0) / (Winf - Wcrit)); 0 ≤ H ∧ Winf + (W0 - Winf) * Real.exp (-Ω * H) = Wcrit ∧ ∀ (t : ℝ), 0 ≤ t → t < H → Winf + (W0 - Winf) * Real.exp (-Ω * t) < Wcrit

12.28: the steady exponential row reaches a criterion W_crit<W∞ from W₀ ≤ W_crit after Ω⁻¹log[(W∞−W₀)/(W∞−W_crit)]; first learning from zero takes Ω⁻¹log[W∞/(W∞−W_crit)], relearning from a retained W_ret takes Ω⁻¹log[(W∞−W_ret)/(W∞−W_crit)], and the savings ratio is −log(1−W_ret/W∞)/log[W∞/(W∞−W_crit)].

theorem MindFormal.savings_ratio {Ω Winf Wcrit Wret : ℝ} (hΩ : 0 < Ω) (hcrit : Wcrit < Winf) (hc0 : 0 < Wcrit) :
have Hfirst := Ω⁻¹ * Real.log ((Winf - 0) / (Winf - Wcrit)); have Hrelearn := Ω⁻¹ * Real.log ((Winf - Wret) / (Winf - Wcrit)); Wret < Winf → (Hfirst - Hrelearn) / Hfirst = -Real.log (1 - Wret / Winf) / Real.log (Winf / (Winf - Wcrit))

12.28: the savings ratio (H_first−H_relearn)/H_first=−log(1−W_ret/W∞)/log[W∞/(W∞−W_crit)].

Practice time #

theorem MindFormal.latency_formula {ν T α : ℝ} (hν : 0 < ν) (hα : 0 < α) :
(α < T → 0 < ν⁻¹ * Real.log (T / (T - α)) ∧ T * (1 - Real.exp (-ν * (ν⁻¹ * Real.log (T / (T - α))))) = α ∧ ∀ (t : ℝ), 0 ≤ t → t < ν⁻¹ * Real.log (T / (T - α)) → T * (1 - Real.exp (-ν * t)) < α) ∧ (T ≤ α → ∀ (t : ℝ), 0 ≤ t → T * (1 - Real.exp (-ν * t)) < α)

12.28: from rest with a held target 𝒯>α>0 the reference activity 𝒯(1−e^{−νt}) first reaches α at H_hit=ν⁻¹log[𝒯/(𝒯−α)]; with 𝒯 ≤ α it never does.

theorem MindFormal.latency_excess {ν α g G0 Sinf ΔS : ℝ} (hν : 0 < ν) (hα : 0 < α) (hG0 : 0 < G0) (hS : 0 < Sinf) (hT : α < Sinf / (Sinf + G0) - g) :
have Tf := fun (ε : ℝ) => (Sinf - ΔS * ε) / (Sinf - ΔS * ε + G0) - g; have lat := fun (ε : ℝ) => ν⁻¹ * (Real.log (Tf ε) - Real.log (Tf ε - α)); ∃ ε0 > 0, ∃ (C : ℝ), ∀ ε ∈ Set.Icc 0 ε0, |lat ε - lat 0 - α * G0 * ΔS / (ν * Tf 0 * (Tf 0 - α) * (Sinf + G0) ^ 2) * ε| ≤ C * ε ^ 2

12.28: the latency excess on a single learning rate. With the support S(ε)=S∞−ΔSε (ε=e^{−ΩLN}), a fixed other load 𝒢₀ and 𝒯(ε)=S(ε)/(S(ε)+𝒢₀)−g, 𝒯(0)>α, the latency H(ε)=ν⁻¹[log𝒯(ε)−log(𝒯(ε)−α)] satisfies |H(ε)−H(0)−cε| ≤ Cε² for small ε ≥ 0, with the nonzero leading coefficient c=α𝒢₀ΔS/(ν𝒯(0)(𝒯(0)−α)(S∞+𝒢₀)²).

theorem MindFormal.log_exp_sum_ne_log_power_sum {ι : Type u_1} {κ : Type u_2} [Fintype ι] [Fintype κ] (c lam : ι → ℝ) (hlam : ∀ (i : ι), 0 < lam i) (Γ d tt : κ → ℝ) (hΓ : ∀ (k : κ), 0 < Γ k) (k0 : κ) (t0 : ℝ) (hpos : ∀ (t : ℝ), t0 ≤ t → 0 < ∑ i : ι, c i * Real.exp (-lam i * t)) :
¬∀ (t : ℝ), t0 ≤ t → Real.log (∑ i : ι, c i * Real.exp (-lam i * t)) = Real.log (∑ k : κ, Γ k * (t - tt k) ^ (-d k))

12.28 (RC8.12): taking logarithms does not cure the inequality: a positive finite exponential sum's logarithm is not the logarithm of a positive power sum over all large ages.