Equations
- MindFormal.NumericalCode.weight q₀ q₁ = q₁ / (q₀ + q₁)
Instances For
Equations
- MindFormal.NumericalCode.center q₀ q₁ old goal = (1 - MindFormal.NumericalCode.weight q₀ q₁) * old + MindFormal.NumericalCode.weight q₀ q₁ * goal
Instances For
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)
:
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 : ℝ)
:
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)
:
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))
:
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