MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch17.NumericalCode

noncomputable def MindFormal.NumericalCode.weight (q₀ q₁ : ℝ) :
Equations
Instances For
    noncomputable def MindFormal.NumericalCode.center (q₀ q₁ old goal : ℝ) :
    Equations
    Instances For
      theorem MindFormal.NumericalCode.complete_square {q₀ q₁ : ℝ} (hq : q₀ + q₁ ≠ 0) (old goal z : ℝ) :
      q₀ * (z - old) ^ 2 + q₁ * (z - goal) ^ 2 = (q₀ + q₁) * (z - center q₀ q₁ old goal) ^ 2 + q₀ * q₁ / (q₀ + q₁) * (old - goal) ^ 2

      Completing the square preserves the whole intercept, for arbitrary finite codes.

      theorem MindFormal.NumericalCode.integrated_quadratic (ν H a₀ b₀ old goal z : ℝ) (a b : ℝ → ℝ) (ha : IntervalIntegrable a MeasureTheory.volume 0 H) (hb : IntervalIntegrable b MeasureTheory.volume 0 H) :
      expConv ν (a₀ - b₀ * (z - old) ^ 2) (fun (t : ℝ) => a t - b t * (z - goal) ^ 2) H = expConv ν a₀ a H - (Real.exp (-ν * H) * b₀ * (z - old) ^ 2 + (ν * ∫ (t : ℝ) in 0..H, Real.exp (-ν * (H - t)) * b t) * (z - goal) ^ 2)

      I's convolution gives G6, rather than a new numerical update equation.

      theorem MindFormal.NumericalCode.weighted_shift {q₀ q₁ : ℝ} (h₀ : 0 < q₀) (h₁ : 0 ≤ q₁) (old goal : ℝ) :
      0 ≤ weight q₀ q₁ ∧ weight q₀ q₁ < 1 ∧ center q₀ q₁ old goal - old = weight q₀ q₁ * (goal - old) ∧ |center q₀ q₁ old goal - old| ≤ |goal - old|

      G6's weights lie in the unit interval and the response lies on the segment.

      theorem MindFormal.NumericalCode.grid_bound {N : ℕ} (number score : Fin N → ℝ) (chosen nearest : Fin N) (a q c err : ℝ) (hq : 0 < q) (he : 0 ≤ err) (enclosure : ∀ (j : Fin N), |score j - (a - q * (number j - c) ^ 2)| ≤ err) (maximal : score nearest ≤ score chosen) :
      |number chosen - c| ≤ √((number nearest - c) ^ 2 + 2 * err / q) ∧ q * ((number chosen - c) ^ 2 - (number nearest - c) ^ 2) ≤ 2 * err

      G7 on any maximizing finite read, retaining both errors, with no unique-grid-gap premise.

      theorem MindFormal.NumericalCode.unique_grid {N : ℕ} (number score : Fin N → ℝ) (chosen nearest : Fin N) (a q c err : ℝ) (hq : 0 < q) (he : 0 ≤ err) (enclosure : ∀ (j : Fin N), |score j - (a - q * (number j - c) ^ 2)| ≤ err) (maximal : score nearest ≤ score chosen) (gap : ∀ (j : Fin N), j ≠ nearest → 2 * err < q * ((number j - c) ^ 2 - (number nearest - c) ^ 2)) :
      chosen = nearest
      noncomputable def MindFormal.NumericalCode.delayedCurvature (ν H h cue d : ℝ) :

      G8's equal-duration curvature, with fixed opportunity and entering curvature.

      Equations
      Instances For
        theorem MindFormal.NumericalCode.delayed_derivative {ν H h cue q₀ d old goal : ℝ} (hν : 0 < ν) (hh : 0 < h) (hc : 0 < cue) (h₀ : 0 < q₀) :
        have γ := weight q₀ (delayedCurvature ν H h cue d); HasDerivAt (fun (d : ℝ) => weight q₀ (delayedCurvature ν H h cue d)) (ν * γ * (1 - γ)) d ∧ 0 < ν * γ * (1 - γ) ∧ HasDerivAt (fun (d : ℝ) => center q₀ (delayedCurvature ν H h cue d) old goal) (ν * γ * (1 - γ) * (goal - old)) d