MindFormal v1.0.0One Mind

MindFormal.Tools.ScalarExit.Derivatives

theorem MindFormal.ScalarExit.compact_integral_derivative (f df : ℝ → ℝ → ℝ) (hc : Continuous (Function.uncurry f)) (hdc : Continuous (Function.uncurry df)) (hd : ∀ (p z : ℝ), HasDerivAt (fun (q : ℝ) => f q z) (df p z) p) (a b p : ℝ) :
HasDerivAt (fun (q : ℝ) => ∫ (z : ℝ) in a..b, f q z) (∫ (z : ℝ) in a..b, df p z) p

Differentiation on a finite interval with a continuous parameter derivative. The domination bound is obtained from compactness, not supplied by a consumer.

noncomputable def MindFormal.ScalarExit.moment (k : ℕ) (K d L : ℝ) :

OC1.9: the unnormalized first-moment integral.

Equations
Instances For
    noncomputable def MindFormal.ScalarExit.mean (k : ℕ) (K d L : ℝ) :

    OC1.9's tilted moments retain the entire finite support.

    Equations
    Instances For
      theorem MindFormal.ScalarExit.mass_derivative_d (K d L : ℝ) :
      HasDerivAt (fun (q : ℝ) => mass K q L) (2 * K * moment 1 K d L) d
      theorem MindFormal.ScalarExit.mass_derivative_K (K d L : ℝ) :
      HasDerivAt (fun (q : ℝ) => mass q d L) (moment 2 K d L + 2 * d * moment 1 K d L) K
      theorem MindFormal.ScalarExit.mass_derivative_L (K d L : ℝ) :
      HasDerivAt (mass K d) (Real.exp (K * (L ^ 2 + 2 * d * L))) L
      theorem MindFormal.ScalarExit.moment_one_pos (K d : ℝ) {L : ℝ} (hL : 0 < L) :
      0 < moment 1 K d L
      theorem MindFormal.ScalarExit.accuracy_derivative_d (K d : ℝ) {L : ℝ} (hL : 0 < L) :
      HasDerivAt (fun (q : ℝ) => accuracy K q L) (2 * K * (moment 1 K d L * mass K (-d) L + mass K d L * moment 1 K (-d) L) / (mass K d L + mass K (-d) L) ^ 2) d

      The exact derivative of the symmetric scale ratio with respect to advantage.

      theorem MindFormal.ScalarExit.accuracy_derivative_d_pos {K L : ℝ} (hK : 0 < K) (hL : 0 < L) (d : ℝ) :
      0 < deriv (fun (q : ℝ) => accuracy K q L) d

      Strictness in OC1.9 comes from positive first moments, not an assumed accuracy order.

      theorem MindFormal.ScalarExit.small_advantage_gap {K L q : ℝ} (hL : 0 < L) (hq : 1 / 2 < q) :
      ∃ δ > 0, ∀ d ∈ Set.Ioo 0 δ, 0 < q - accuracy K d L

      A strictly nonchance retained scale gives a nonempty positive-advantage interval of excess over the exact scalar probability.