MindFormal v1.0.0One Mind

MindFormal.Tools.ScalarExit.Threshold

theorem MindFormal.ScalarExit.accuracy_derivative_L (K d : ℝ) {L : ℝ} (hL : 0 < L) :
HasDerivAt (accuracy K d) ((Real.exp (K * (L ^ 2 + 2 * d * L)) * mass K (-d) L - mass K d L * Real.exp (K * (L ^ 2 - 2 * d * L))) / (mass K d L + mass K (-d) L) ^ 2) L

OC1.10's endpoint derivative, before cancellation into normalized moments.

theorem MindFormal.ScalarExit.endpoint_ratio_strict {K d L : ℝ} (hK : 0 < K) (hd : 0 < d) (hL : 0 < L) :
mass K d L * Real.exp (K * (L ^ 2 - 2 * d * L)) < Real.exp (K * (L ^ 2 + 2 * d * L)) * mass K (-d) L

The endpoint likelihood ratio strictly exceeds its weighted average.

theorem MindFormal.ScalarExit.accuracy_derivative_L_pos {K d L : ℝ} (hK : 0 < K) (hd : 0 < d) (hL : 0 < L) :
0 < deriv (accuracy K d) L
theorem MindFormal.ScalarExit.gap_derivative_bar (K d S a : ℝ) (hL : 0 < 2 * a - S) (F : ℝ → ℝ) (hF : DifferentiableAt ℝ F (2 * a - S)) :
HasDerivAt (fun (b : ℝ) => F (2 * b - S) - accuracy K d (2 * b - S)) (2 * (deriv F (2 * a - S) - deriv (accuracy K d) (2 * a - S))) a

The threshold changes confidence and accuracy through the same lead, with opposite signs in their difference.

theorem MindFormal.ScalarExit.gap_difference (K d a b : ℝ) (F : ℝ → ℝ) :
F b - accuracy K d b - (F a - accuracy K d a) = F b - F a - (accuracy K d b - accuracy K d a)

At a scale corner the finite difference retains the two competing terms.

theorem MindFormal.ScalarExit.gap_derivative_noise {ν υ d L : ℝ} (hν : 0 < ν) (hυ : 0 < υ) (hd : 0 < d) (hL : 0 < L) (q : ℝ) :
0 < deriv (fun (v : ℝ) => q - accuracy (ν / (4 * v ^ 2)) d L) υ

Differentiating K=nu/(4 upsilon^2) gives the strict positive-noise sign.