MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch08.SurpriseRace

13.15's comparisons as functions (VH2): the onset sign window of a learned cue (the positive root of e^z=1+χz and its lower Lambert-W branch), the held-read first crossing and its order, the two-point delivery response and the moment counterexamples. They name no object of the equations. Nothing here is tagged.

The onset window #

theorem MindFormal.onset_root {χ : ℝ} (hχ : 1 < χ) :
∃ (zs : ℝ), Real.log χ < zs ∧ Real.exp zs = 1 + χ * zs ∧ ∀ (z : ℝ), 0 < z → (Real.exp z < 1 + χ * z ↔ z < zs)

13.15 (S3): for χ>1, g(z)=e^z−1−χz has exactly one positive root z* (beyond log χ), is negative on (0,z*) and positive beyond it: g decreases on [0,log χ] from g(0)=0 and increases after.

theorem MindFormal.onset_lambert {χ zs : ℝ} (hχ : 1 < χ) (hzs : Real.log χ < zs) (hroot : Real.exp zs = 1 + χ * zs) :
-zs - 1 / χ ≤ -1 ∧ (-zs - 1 / χ) * Real.exp (-zs - 1 / χ) = -Real.exp (-1 / χ) / χ

13.15 (S3): the positive root z* (beyond log χ) of e^z=1+χz gives w=−z*−1/χ on the lower Lambert-W branch: w ≤ −1 and we^w=−e^{−1/χ}/χ, so t_turn=z*/ν=(−W₋₁(−e^{−1/χ}/χ)−1/χ)/ν.

The held-read crossing #

theorem MindFormal.held_read_crossing {ν T x0 θ : ℝ} (hν : 0 < ν) (hx0 : x0 < θ) :
have x := fun (t : ℝ) => T + (x0 - T) * Real.exp (-ν * t); (θ < T → have A := (T - θ) / (T - x0); 0 < A ∧ A < 1 ∧ x (-(1 / ν) * Real.log A) = θ ∧ 0 < -(1 / ν) * Real.log A ∧ ∀ (t : ℝ), 0 ≤ t → t < -(1 / ν) * Real.log A → x t < θ) ∧ (T ≤ θ → ∀ (t : ℝ), 0 ≤ t → x t < θ)

13.15 (S4): x(t)=𝒯+(x₀−𝒯)e^{−νt} with x₀<ϑ<𝒯 reaches ϑ first at t=−ν^{−1}log𝒜, 𝒜=(𝒯−ϑ)/(𝒯−x₀), and stays below it before; with 𝒯 ≤ ϑ (and x₀<ϑ) it never reaches ϑ.

theorem MindFormal.crossing_order {ν Ai Aj : ℝ} (hν : 0 < ν) (hi : 0 < Ai) (hj : 0 < Aj) :
-(1 / ν) * Real.log Ai < -(1 / ν) * Real.log Aj ↔ Aj < Ai

13.15 (S4): for two crossing candidates, t_i<t_j exactly when 𝒜_i>𝒜_j (𝒜 ∈ (0,1)).

theorem MindFormal.crossing_threshold_iff {ν T x0 θ t : ℝ} (hT : x0 < T) :
θ ≤ T + (x0 - T) * Real.exp (-ν * t) ↔ Real.exp (-ν * t) ≤ (T - θ) / (T - x0)

13.15 (S4): from x₀<𝒯, x(t)=𝒯+(x₀−𝒯)e^{−νt} has reached ϑ at t exactly when e^{−νt} ≤ 𝒜.

theorem MindFormal.first_crossing_winner {m : ℕ} {ν : ℝ} (hν : 0 < ν) (x0 θ T : Fin m → ℝ) (hbelow : ∀ (i : Fin m), x0 i < θ i) (i0 : Fin m) (hi0 : θ i0 < T i0) (hmax : ∀ (i : Fin m), θ i < T i → (T i - θ i) / (T i - x0 i) ≤ (T i0 - θ i0) / (T i0 - x0 i0)) :
have x := fun (i : Fin m) (t : ℝ) => T i + (x0 i - T i) * Real.exp (-ν * t); have ts := -(1 / ν) * Real.log ((T i0 - θ i0) / (T i0 - x0 i0)); 0 < ts ∧ (∀ (i : Fin m), θ i ≤ x i ts ↔ θ i < T i ∧ (T i - θ i) / (T i - x0 i) = (T i0 - θ i0) / (T i0 - x0 i0)) ∧ (∀ (i : Fin m), θ i < T i → (T i - θ i) / (T i - x0 i) = (T i0 - θ i0) / (T i0 - x0 i0) → x i ts = θ i) ∧ ∀ (t : ℝ), 0 ≤ t → t < ts → ∀ (i : Fin m), x i t < θ i

13.15: in the held read with every candidate initially below its activity requirement (x₀_i<ϑ_i), let i₀ have the largest crossing quantity 𝒜 among those that can cross (ϑ_i<𝒯_i). At t*=−ν^{−1}log𝒜_{i₀}, a candidate has reached its requirement exactly when it can cross and its 𝒜 equals the maximum, and then exactly at it (its score is ω); before t* none has.

Moments and the two-point response #

theorem MindFormal.two_point_responses :
1 / 4 * (4 - 1) + (1 - 1 / 4) * -1 = 0 ∧ 1 / 4 * ((4 - 1) ^ 3 / (1 + (4 - 1) ^ 2)) + (1 - 1 / 4) * ((-1) ^ 3 / (1 + (-1) ^ 2)) = 3 / 10 ∧ 1 / 4 * max (-1) (min (4 - 1) 1) + (1 - 1 / 4) * max (-1) (min (-1) 1) = -1 / 2 ∧ ∀ (ϖ R : ℝ), 0 ≤ ϖ → ϖ ≤ 1 → 0 ≤ R → ϖ * |R - ϖ * R| + (1 - ϖ) * |(-(ϖ * R))| = 2 * ϖ * (1 - ϖ) * R

13.15 (S5): at ϖ=1/4, R=4, Q=1, the responses z, z³/(1+z²) and max(−1,min(z,1)) have the two-point expected responses ϖk(R−Q)+(1−ϖ)k(−Q) equal to 0, 3/10 and −1/2; and at the mean prediction Q=ϖR the expected absolute surprise is 2ϖ(1−ϖ)R.

theorem MindFormal.admitted_responses :
(Monotone fun (z : ℝ) => z ^ 3 / (1 + z ^ 2)) ∧ (∀ (z : ℝ), |z ^ 3 / (1 + z ^ 2)| ≤ |z|) ∧ (Monotone fun (z : ℝ) => max (-1) (min z 1)) ∧ (LipschitzWith 1 fun (z : ℝ) => max (-1) (min z 1)) ∧ ∀ (z : ℝ), |max (-1) (min z 1)| ≤ |z|

13.15 (S5): the three responses are nondecreasing, 1- or 2-Lipschitz-free of growth beyond linear: z³/(1+z²) is nondecreasing with |k(z)| ≤ |z|, and the clip is nondecreasing and 1-Lipschitz with |k(z)| ≤ |z|.

theorem MindFormal.moment_counterexamples :
(1 / 2 * 1 + 1 / 2 * -1 = 0 ∧ 1 / 2 * 1 ^ 2 + 1 / 2 * (-1) ^ 2 = 1 ∧ 1 / 2 * (1 / (1 + 1)) + 1 / 2 * (1 / (1 + 1)) = 1 / 2) ∧ (1 / 800 * 20 + 1 / 800 * -20 + 399 / 400 * 0 = 0 ∧ 1 / 800 * 20 ^ 2 + 1 / 800 * (-20) ^ 2 + 399 / 400 * 0 ^ 2 = 1 ∧ 1 / 800 * (20 / (1 + 20)) + 1 / 800 * (20 / (1 + 20)) + 399 / 400 * 0 = 1 / 420) ∧ 1 / 400 * 20 + 1 / 400 * -20 + 398 / 400 * 0 = 0 ∧ 1 / 400 * 20 ^ 2 + 1 / 400 * (-20) ^ 2 + 398 / 400 * 0 ^ 2 = 2 ∧ 1 / 400 * (20 / (1 + 20)) + 1 / 400 * (20 / (1 + 20)) + 398 / 400 * 0 = 1 / 210

13.15: mean and variance do not identify the expected bounded magnitude drive E|v|/(1+|v|): ±1 with chances 1/2 (mean 0, variance 1) gives 1/2; ±20 with chances 1/800 each and 0 otherwise (mean 0, variance 1) gives 1/420; ±20 with chances 1/400 each (mean 0, variance 2) gives 1/210, so more variance does not order it either.