MindFormal v1.0.0One Mind

MindFormal.Tools.ScalarExit.LogDerivatives

theorem MindFormal.ScalarExit.log_ratio_derivative_d (K d : ℝ) {L : ℝ} (hL : 0 < L) :
HasDerivAt (fun (q : ℝ) => Real.log (mass K q L / mass K (-q) L)) (2 * K * (mean 1 K d L + mean 1 K (-d) L)) d

OC1.9's first exact normalized moment formula.

theorem MindFormal.ScalarExit.log_ratio_derivative_K (K d : ℝ) {L : ℝ} (hL : 0 < L) :
HasDerivAt (fun (q : ℝ) => Real.log (mass q d L / mass q (-d) L)) (mean 2 K d L - mean 2 K (-d) L + 2 * d * (mean 1 K d L + mean 1 K (-d) L)) K

OC1.9's second exact normalized moment formula.

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

Normalization gives the printed endpoint formula in OC1.10.

theorem MindFormal.ScalarExit.matched_advantage_gap {K L d₁ d₂ : ℝ} (hK : 0 < K) (hL : 0 < L) (hd : d₁ < d₂) (q : ℝ) :
accuracy K d₁ L < accuracy K d₂ L ∧ q - accuracy K d₂ L < q - accuracy K d₁ L

The matched-family comparison follows from the computed scale ratio.