theorem
MindFormal.NumericalCode.convolution_error
{ν H x y dx : ℝ}
(hν : 0 < ν)
(hH : 0 ≤ H)
(target reference error : ℝ → ℝ)
(ht : IntervalIntegrable target MeasureTheory.volume 0 H)
(hr : IntervalIntegrable reference MeasureTheory.volume 0 H)
(he : IntervalIntegrable error MeasureTheory.volume 0 H)
(hx : |x - y| ≤ dx)
(herror : ∀ t ∈ Set.Icc 0 H, |target t - reference t| ≤ error t)
:
The complete target error, before the original activity innovation is charged.
theorem
MindFormal.NumericalCode.actual_code_error
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
[Fintype T]
[Fintype Λ]
(G : PhysicalGlobalData N n T Λ)
(H : ℝ)
(hH : 0 ≤ H)
(menu : Fin N → Prop)
(number : Fin N → ℝ)
(ell : T → Fin n → ℝ)
(χ a₀ b₀ old goal common dx dv bx : ℝ)
(a b dT : ℝ → ℝ)
(hχ : 0 ≤ χ)
(hb : 0 ≤ bx)
(ha : IntervalIntegrable a MeasureTheory.volume 0 H)
(hcurv : IntervalIntegrable b MeasureTheory.volume 0 H)
(hdT : IntervalIntegrable dT MeasureTheory.volume 0 H)
(initial : ∀ (j : Fin N), menu j → |G.x 0 j - (a₀ - b₀ * (number j - old) ^ 2)| ≤ dx)
(target : ∀ t ∈ Set.Icc 0 H, ∀ (j : Fin N), menu j → |G.target j t - (a t - b t * (number j - goal) ^ 2)| ≤ dT t)
(innovation : ∀ t ∈ Set.Icc 0 H, ∀ (j : Fin N), menu j → |G.driver t.toNNReal (Sum.inr (Sum.inl j))| ≤ bx)
(value : ∀ (j : Fin N), menu j → |∑ r : T, ∑ d : Fin n, ell r d * G.v H j d r - common| ≤ dv)
(j : Fin N)
:
menu j →
|χ * G.x H j + ∑ r : T, ∑ d : Fin n, ell r d * G.v H j d r - (χ * (expConv G.data.activity.ν a₀ a H - (Real.exp (-G.data.activity.ν * H) * b₀ * (number j - old) ^ 2 + (G.data.activity.ν * ∫ (t : ℝ) in 0..H, Real.exp (-G.data.activity.ν * (H - t)) * b t) * (number j - goal) ^ 2)) + common)| ≤ χ * ((Real.exp (-G.data.activity.ν * H) * dx + G.data.activity.ν * ∫ (t : ℝ) in 0..H, Real.exp (-G.data.activity.ν * (H - t)) * dT t) + 4 * bx) + dv
G5's complete target and entering-coordinate errors give G7's score error. Only the named comparison is quadratic. The actual gain, banks, attention, returns and original state-dependent innovations keep running.
@[reducible, inline]
noncomputable abbrev
MindFormal.NumericalCode.readTime
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
[Fintype T]
[Fintype Λ]
{Ω : Type u_3}
{J : Type u_4}
[MeasurableSpace Ω]
[Fintype J]
(E : StateExperiment Ω N n T Λ J)
(ω : Ω)
(H : NNReal)
(k : ℕ)
:
A scalar read of the existing schedule, not another release or record interface.
Equations
- MindFormal.NumericalCode.readTime E ω H k = ((E.supportHistory ω).native (↑H) false).release k
Instances For
theorem
MindFormal.NumericalCode.native_grid
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
[Fintype T]
[Fintype Λ]
{Ω : Type u_3}
{J : Type u_4}
[MeasurableSpace Ω]
[Fintype J]
(E : StateExperiment Ω N n T Λ J)
(ω : Ω)
(H : NNReal)
(k : ℕ)
(number : Fin N → ℝ)
(nearest : Fin N)
(intercept q c err : ℝ)
(hq : 0 < q)
(he : 0 ≤ err)
(time_domain : readTime E ω H k ∈ Set.Icc 0 ↑H)
(output : E.mind.reads.outputs nearest = true)
(enclosure :
∀ (j : Fin N),
E.mind.reads.outputs j = true →
|((E.supportHistory ω).reads.scores false) ((E.supportHistory ω).realPath (readTime E ω H k)) j - (intercept - q * (number j - c) ^ 2)| ≤ err)
(qualification : E.mind.reads.actionBar + err < intercept - q * (number nearest - c) ^ 2)
:
∃ (chosen : Fin N),
E.mind.reads.outputs chosen = true ∧ E.supportRecord H false k ω = (readTime E ω H k, Sum.inl chosen) ∧ |number chosen - c| ≤ √((number nearest - c) ^ 2 + 2 * err / q) ∧ ((∀ (j : Fin N),
E.mind.reads.outputs j = true →
j ≠ nearest → 2 * err < q * ((number j - c) ^ 2 - (number nearest - c) ^ 2)) →
chosen = nearest)
Any qualified nearest code starts a native release. Maximality gives the whole G7 band, including thin gaps; a strict gap alone gives a unique number. The release is read from the original schedule, with no native event assumed.
theorem
MindFormal.NumericalCode.calibrated_response
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
[Fintype T]
[Fintype Λ]
{Ω : Type u_3}
{J : Type u_4}
[MeasurableSpace Ω]
[Fintype J]
(E : StateExperiment Ω N n T Λ J)
(ω : Ω)
(H : NNReal)
(k : ℕ)
(number : Fin N → ℝ)
(nearest : Fin N)
(ell : T → Fin n → ℝ)
(χ a₀ b₀ old goal common dx dv bx : ℝ)
(a b dT : ℝ → ℝ)
:
have G := E.supportHistory ω;
have R := readTime E ω H k;
have q₀ := Real.exp (-G.data.activity.ν * R) * b₀;
have q₁ := G.data.activity.ν * ∫ (t : ℝ) in 0..R, Real.exp (-G.data.activity.ν * (R - t)) * b t;
have err :=
χ * ((Real.exp (-G.data.activity.ν * R) * dx + G.data.activity.ν * ∫ (t : ℝ) in 0..R, Real.exp (-G.data.activity.ν * (R - t)) * dT t) + 4 * bx) + dv;
have intercept := χ * (expConv G.data.activity.ν a₀ a R - q₀ * q₁ / (q₀ + q₁) * (old - goal) ^ 2) + common;
R ∈ Set.Icc 0 ↑H →
E.mind.reads.outputs nearest = true →
0 < χ →
0 < b₀ →
(∀ t ∈ Set.Icc 0 R, 0 ≤ b t) →
0 ≤ dx →
0 ≤ dv →
0 ≤ bx →
(∀ t ∈ Set.Icc 0 R, 0 ≤ dT t) →
IntervalIntegrable a MeasureTheory.volume 0 R →
IntervalIntegrable b MeasureTheory.volume 0 R →
IntervalIntegrable dT MeasureTheory.volume 0 R →
(∀ (x : PhysicalState N n T Λ) (j : Fin N),
(G.reads.scores false) x j = χ * mindActivity (↑x) j + ∑ r : T, ∑ d : Fin n, ell r d * mindValue (↑x) j d r) →
(∀ (j : Fin N),
E.mind.reads.outputs j = true → |G.x 0 j - (a₀ - b₀ * (number j - old) ^ 2)| ≤ dx) →
(∀ t ∈ Set.Icc 0 R,
∀ (j : Fin N),
E.mind.reads.outputs j = true →
|G.target j t - (a t - b t * (number j - goal) ^ 2)| ≤ dT t) →
(∀ t ∈ Set.Icc 0 R,
∀ (j : Fin N),
E.mind.reads.outputs j = true → |G.driver t.toNNReal (Sum.inr (Sum.inl j))| ≤ bx) →
(∀ (j : Fin N),
E.mind.reads.outputs j = true →
|∑ r : T, ∑ d : Fin n, ell r d * G.v R j d r - common| ≤ dv) →
E.mind.reads.actionBar + err < intercept - χ * (q₀ + q₁) * (number nearest - center q₀ q₁ old goal) ^ 2 →
0 ≤ weight q₀ q₁ ∧ weight q₀ q₁ < 1 ∧ center q₀ q₁ old goal - old = weight q₀ q₁ * (goal - old) ∧ ∃ (chosen : Fin N),
E.mind.reads.outputs chosen = true ∧ E.supportRecord H false k ω = (R, Sum.inl chosen) ∧ |number chosen - center q₀ q₁ old goal| ≤ √((number nearest - center q₀ q₁ old goal) ^ 2 + 2 * err / (χ * (q₀ + q₁))) ∧ ((∀ (j : Fin N),
E.mind.reads.outputs j = true →
j ≠ nearest →
2 * err < χ * (q₀ + q₁) * ((number j - center q₀ q₁ old goal) ^ 2 - (number nearest - center q₀ q₁ old goal) ^ 2)) →
chosen = nearest)
G5 through G7 on the original own-state-noise experiment. The comparison profile is used only to enclose the actual complete targets and signed banks.