MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch02.ListLearningBounds

Full-writer estimates for the rectangular study comparison in 02.15. The comparison pulse is an integrable function, never an activity path.

noncomputable def MindFormal.studyPulse (A a d t : ℝ) :

A rectangular comparison, including its zero prehistory. The choice of endpoints is immaterial to its time integrals.

Equations
Instances For
    theorem MindFormal.studyPulse_steps {A a d : ℝ} (hd : 0 ≤ d) :
    studyPulse A a d = fun (t : ℝ) => ∑ b : Bool, Page.stepJump (if b = true then a + d else a) (if b = true then -A else A) t

    The rectangular comparison is the sum of its two edges.

    The pulse comparison is integrable against every finite time interval.

    theorem MindFormal.studyPulse_filter_lag {ν H A a d : ℝ} (hν : 0 < ν) (hH : 0 ≤ H) (hA : 0 ≤ A) (ha : 0 ≤ a) (hd : 0 ≤ d) :
    ∫ (t : ℝ) in 0..H, |expConv ν 0 (studyPulse A a d) t - studyPulse A a d t| ≤ 2 * A / ν

    Each edge costs at most A/ν, uniformly in the enclosing study horizon.

    theorem MindFormal.expConv_uniform_error {ν H e δ : ℝ} (hν : 0 < ν) (hH : 0 ≤ H) {x y : ℝ} {f g : ℝ → ℝ} (hf : IntervalIntegrable f MeasureTheory.volume 0 H) (hg : IntervalIntegrable g MeasureTheory.volume 0 H) (hxy : |x - y| ≤ e) (hfg : ∀ t ∈ Set.Icc 0 H, |f t - g t| ≤ δ) :
    |expConv ν x f H - expConv ν y g H| ≤ e + δ

    A uniform target discrepancy contributes at most that discrepancy through the stable I filter; initial error is paid separately.

    theorem MindFormal.study_activity_l1 {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (i : Fin N) {H A a d e0 dT bx : ℝ} (hH : 0 ≤ H) (hA : 0 ≤ A) (ha : 0 ≤ a) (hd : 0 ≤ d) (hstart : |mindActivity (G.state 0) i| ≤ e0) (htarget : ∀ t ∈ Set.Icc 0 H, |G.target i t - studyPulse A a d t| ≤ dT) (hξ : ∀ t ∈ Set.Icc 0 H, |G.driver t.toNNReal (Sum.inr (Sum.inl i))| ≤ bx) :
    ∫ (t : ℝ) in 0..H, |mindActivity (G.state t) i - studyPulse A a d t| ≤ 2 * A / G.data.activity.ν + H * (dT + 4 * bx) + H * e0

    The actual reflected activity has the full study L¹ error from (15.2). Only the entry's prescribed-target, start and innovation bounds enter.

    theorem MindFormal.actual_trace_expConv {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (i : Fin N) (l : Λ) {t : ℝ} (ht : 0 ≤ t) :
    mindTrace (G.state t) i l = expConv (G.data.rate l) (mindTrace (G.state 0) i l) (fun (s : ℝ) => mindActivity (G.state s) i) t

    D4 of the actual global run is the stable filter of its actual activity. The identity holds for the own-noise run without a noise assumption on I–III.

    theorem MindFormal.study_trace_error {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (i : Fin N) (l : Λ) {t er0 L : ℝ} (ht : 0 ≤ t) (hl : 0 < G.data.rate l) (z : ℝ → ℝ) (hz : IntervalIntegrable z MeasureTheory.volume 0 t) (hr0 : |mindTrace (G.state 0) i l| ≤ er0) (hL : ∫ (s : ℝ) in 0..t, |mindActivity (G.state s) i - z s| ≤ L) :
    |mindTrace (G.state t) i l - pulseTrace (G.data.rate l) z t| ≤ er0 + G.data.rate l * L

    D4's uniform trace error from the actual activity L¹ error.

    theorem MindFormal.studyPulse_integral {A a d H : ℝ} (ha : 0 ≤ a) (hd : 0 ≤ d) (hend : a + d ≤ H) :
    ∫ (t : ℝ) in 0..H, studyPulse A a d t = A * d

    The area of a rectangular study pulse, including its residual zero tail.

    theorem MindFormal.studyPulse_bounds {A : ℝ} (hA : 0 ≤ A) (a d t : ℝ) :
    0 ≤ studyPulse A a d t ∧ studyPulse A a d t ≤ A

    Pointwise domain of the rectangular comparison.

    theorem MindFormal.integral_product_error {H R er L Z ac : ℝ} (hH : 0 ≤ H) (hac : 0 ≤ ac) {x r q z : ℝ → ℝ} (hx : ContinuousOn x (Set.Icc 0 H)) (hr : ContinuousOn r (Set.Icc 0 H)) (hq : ContinuousOn q (Set.Icc 0 H)) (hz : IntervalIntegrable z MeasureTheory.volume 0 H) (hz0 : ∀ t ∈ Set.Icc 0 H, 0 ≤ z t) (hR : ∀ t ∈ Set.Icc 0 H, |r t| ≤ R) (her : ∀ t ∈ Set.Icc 0 H, |r t - q t| ≤ er) (hL : ∫ (t : ℝ) in 0..H, |x t - z t| ≤ L) (hZ : ∫ (t : ℝ) in 0..H, z t = Z) :
    |(∫ (t : ℝ) in 0..H, ac * x t * r t) - ∫ (t : ℝ) in 0..H, ac * z t * q t| ≤ ac * (R * L + Z * er)

    The product error used in (15.2). One error is integrated against the actual bounded trace, the other against the nonnegative comparison activity.

    theorem MindFormal.studyPulse_trace {ν A a d t : ℝ} (hν : 0 < ν) (ha : 0 ≤ a) (hd : 0 ≤ d) (ht : 0 ≤ t) :
    pulseTrace ν (studyPulse A a d) t = (if a < t then A * (1 - Real.exp (-ν * (t - a))) else 0) - if a + d < t then A * (1 - Real.exp (-ν * (t - a - d))) else 0

    D4's response to one comparison rectangle, obtained by the two step responses.

    theorem MindFormal.integral_studyPulse_mul {A a d H : ℝ} (ha : 0 ≤ a) (hd : 0 ≤ d) (hend : a + d ≤ H) (f : ℝ → ℝ) :
    ∫ (t : ℝ) in 0..H, studyPulse A a d t * f t = A * ∫ (t : ℝ) in a..a + d, f t

    Restricting a product by a study rectangle restricts its integral.

    theorem MindFormal.studyPulse_product_gap {ν ac A a d H : ℝ} (hν : 0 < ν) (ha : 0 ≤ a) (hd : 0 ≤ d) (hend : a + 2 * d ≤ H) :
    (∫ (t : ℝ) in 0..H, ac * studyPulse A (a + d) d t * pulseTrace ν (studyPulse A a d) t) - ∫ (t : ℝ) in 0..H, ac * studyPulse A a d t * pulseTrace ν (studyPulse A (a + d) d) t = ac * A ^ 2 / ν * (1 - Real.exp (-ν * d)) ^ 2

    Both rectangular products, at arbitrary nonnegative position in the list. The earlier trace, rather than an ideal activity path, produces the forward write.

    theorem MindFormal.pair_writer_drift_lower {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (i j : Fin N) (l : Λ) (t : ℝ) {m ac wp p E : ℝ} (hm : 0 ≤ m) (hβ : 0 ≤ G.data.β) (_hβ1 : G.data.β ≤ 1) (hgain : actualGain G t = m) (hpi : actualPresence G i t = ac * mindTrace (G.state t) i l) (hpj : actualPresence G j t = ac * mindTrace (G.state t) j l) (hWi : |mindRelation (G.state t) j i| ≤ wp) (hWj : |mindRelation (G.state t) i j| ≤ wp) (hPi : |actualPresence G i t| ≤ p) (hPj : |actualPresence G j t| ≤ p) (hEi : |actualError G i t| ≤ E) (hEj : |actualError G j t| ≤ E) (hxi : 0 ≤ mindActivity (G.state t) i) (hxj : 0 ≤ mindActivity (G.state t) j) :
    m * G.data.β * (ac * mindActivity (G.state t) j * mindTrace (G.state t) i l - ac * mindActivity (G.state t) i * mindTrace (G.state t) j l) - m * G.data.β * wp * (mindActivity (G.state t) i + mindActivity (G.state t) j) - 2 * m * (1 - G.data.β) * p * E ≤ assembledDrift G.data (G.input t) (G.pulse t) (G.state t) (Sum.inl (j, i)) - assembledDrift G.data (G.input t) (G.pulse t) (G.state t) (Sum.inl (i, j))

    Pointwise subtraction of the two complete II writers.

    theorem MindFormal.pair_writer_integrated_lower {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (i j : Fin N) {H m wp p E b D0 P J Q : ℝ} (hH : 0 ≤ H) (hm : 0 ≤ m) (hβ : 0 ≤ G.data.β) (_hβ1 : G.data.β ≤ 1) (hwp : 0 ≤ wp) (hstart : -D0 ≤ mindRelation (G.state 0) j i - mindRelation (G.state 0) i j) (hξ : ∀ c ∈ {Sum.inl (j, i), Sum.inl (i, j)}, |G.driver H.toNNReal c| ≤ b) (hprod : IntervalIntegrable (fun (t : ℝ) => actualPresence G i t * mindActivity (G.state t) j - actualPresence G j t * mindActivity (G.state t) i) MeasureTheory.volume 0 H) (hproduct : J - 2 * Q ≤ ∫ (t : ℝ) in 0..H, actualPresence G i t * mindActivity (G.state t) j - actualPresence G j t * mindActivity (G.state t) i) (harea : ∫ (t : ℝ) in 0..H, mindActivity (G.state t) i + mindActivity (G.state t) j ≤ 2 * P) (hdrift : ∀ t ∈ Set.Icc 0 H, m * G.data.β * (actualPresence G i t * mindActivity (G.state t) j - actualPresence G j t * mindActivity (G.state t) i) - m * G.data.β * wp * (mindActivity (G.state t) i + mindActivity (G.state t) j) - 2 * m * (1 - G.data.β) * p * E ≤ assembledDrift G.data (G.input t) (G.pulse t) (G.state t) (Sum.inl (j, i)) - assembledDrift G.data (G.input t) (G.pulse t) (G.state t) (Sum.inl (i, j))) :
    m * G.data.β * J - D0 - 2 * m * G.data.β * Q - 2 * m * G.data.β * wp * P - 2 * m * (1 - G.data.β) * p * E * H - 2 * b ≤ mindRelation (G.state H) j i - mindRelation (G.state H) i j

    Complete study and recall write bounds. hproduct and the activity-area bounds are intermediate deterministic estimates, not premises of the tagged result.

    theorem MindFormal.relation_gap_retained {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (G : PhysicalGlobalData N n T Λ) (i j : Fin N) {H t F b D : ℝ} (hH : 0 ≤ H) (ht : H ≤ t) (hD : D ≤ mindRelation (G.state H) j i - mindRelation (G.state H) i j) (hdrift : ∀ s ∈ Set.Icc H t, ∀ c ∈ {Sum.inl (j, i), Sum.inl (i, j)}, |assembledDrift G.data (G.input s) (G.pulse s) (G.state s) c| ≤ F) (hξ : ∀ s ∈ {H, t}, ∀ c ∈ {Sum.inl (j, i), Sum.inl (i, j)}, |G.driver s.toNNReal c| ≤ b) :
    D - 2 * (t - H) * F - 4 * b ≤ mindRelation (G.state t) j i - mindRelation (G.state t) i j

    Moving a relation after study charges its complete drift and two endpoint innovations.