MindFormal v1.0.0One Mind

MindFormal.Tools.StepConvolution

PG1.7: the integrated error of a finite step display and the D4 contraction. The jump at the initial presentation is included, from the zero prehistory.

theorem MindFormal.Page.expConv_integral_abs_sub {ν H : ℝ} (hν : 0 < ν) (hH : 0 ≤ H) {f g : ℝ → ℝ} (hf : IntervalIntegrable f MeasureTheory.volume 0 H) (hg : IntervalIntegrable g MeasureTheory.volume 0 H) :
∫ (t : ℝ) in 0..H, |expConv ν 0 f t - expConv ν 0 g t| ≤ ∫ (t : ℝ) in 0..H, |f t - g t|

PG1.7: the exponential filter from zero contracts the integral of absolute differences. The only hypotheses are a positive rate, nonnegative horizon and integrability of the two signals on that horizon.

noncomputable def MindFormal.Page.stepJump (a v t : ℝ) :

A finite display's single jump, with its value at the switching instant taken on the preceding side. This endpoint convention does not affect integrals.

Equations
Instances For

    A jump signal is integrable on every finite interval; no time regularity of the actual world's returned stream is required by this comparison signal.

    Multiplication by one bounded step preserves integrability on a finite interval. Only the factor's integrability is assumed.

    theorem MindFormal.Page.integral_stepJump_mul {a t v : ℝ} (ha : 0 ≤ a) (ht : 0 ≤ t) {f : ℝ → ℝ} (hf : IntervalIntegrable f MeasureTheory.volume 0 t) :
    ∫ (w : ℝ) in 0..t, f w * stepJump a v w = if a < t then (∫ (w : ℝ) in a..t, f w) * v else 0

    Integration over the part after a cut, with arbitrary integrable factor. This is the elementary step-signal identity, including cuts beyond the horizon.

    theorem MindFormal.Page.expConv_stepJump {ν a t v : ℝ} (hν : 0 < ν) (ha : 0 ≤ a) (ht : 0 ≤ t) :
    expConv ν 0 (stepJump a v) t = if a < t then v * (1 - Real.exp (-ν * (t - a))) else 0

    The exponential relaxation of one step, from the zero prehistory, is the step height times one minus the surviving exponential after its nonnegative cut.

    theorem MindFormal.Page.stepJump_lag {ν a H v : ℝ} (hν : 0 < ν) (ha : 0 ≤ a) (hH : 0 ≤ H) :
    ∫ (t : ℝ) in 0..H, |expConv ν 0 (stepJump a v) t - stepJump a v t| ≤ if a < H then |v| / ν else 0

    PG1.7: one jump contributes at most its absolute height divided by the relaxation rate to the integrated lag; a jump not yet shown contributes zero.

    theorem MindFormal.Page.expConv_steps {K : Type u_1} [Fintype K] (ν : ℝ) (cut jump : K → ℝ) (t : ℝ) :
    expConv ν 0 (fun (s : ℝ) => ∑ k : K, stepJump (cut k) (jump k) s) t = ∑ k : K, expConv ν 0 (stepJump (cut k) (jump k)) t

    PG1.7: finite sums of jumps commute with relaxation from zero. The cuts and heights are primitive display data, and may include the initial jump at zero.

    theorem MindFormal.Page.finite_step_lag {K : Type u_1} [Fintype K] {ν H : ℝ} (hν : 0 < ν) (hH : 0 ≤ H) (cut jump : K → ℝ) (hc : ∀ (k : K), 0 ≤ cut k) :
    ∫ (t : ℝ) in 0..H, |expConv ν 0 (fun (s : ℝ) => ∑ k : K, stepJump (cut k) (jump k) s) t - ∑ k : K, stepJump (cut k) (jump k) t| ≤ (∑ k : K, if cut k < H then |jump k| else 0) / ν

    PG1.7 on each prefix: the integrated lag of a finite step target is at most the sum of absolute jumps already presented divided by ν. The first presentation is a jump from zero, so the entering relaxation is paid explicitly.

    noncomputable def MindFormal.Page.stepSignal {K : Type u_1} [Fintype K] {N : ℕ} (cut : K → ℝ) (jump : K → Fin N → ℝ) (t : ℝ) (i : Fin N) :

    A finite vector display, specified by its cuts and actual jump vectors. The jump from the zero prehistory at the first presentation is included.

    Equations
    Instances For
      noncomputable def MindFormal.Page.jumpVariation {K : Type u_1} [Fintype K] {N : ℕ} (cut : K → ℝ) (jump : K → Fin N → ℝ) (t : ℝ) :

      The prefix sum of maximum-norm jumps, exactly V_X in PG1.7. Endpoint values of a display have no effect on its integrated discrepancies.

      Equations
      Instances For
        theorem MindFormal.Page.jumpVariation_mono {K : Type u_1} [Fintype K] {N : ℕ} (cut : K → ℝ) (jump : K → Fin N → ℝ) :
        (∀ (t : ℝ), 0 ≤ jumpVariation cut jump t) ∧ Monotone (jumpVariation cut jump)

        PG1.7: the variation bill is nonnegative and increases with the prefix.

        theorem MindFormal.Page.stepSignal_integrable {K : Type u_1} [Fintype K] {N : ℕ} (cut : K → ℝ) (jump : K → Fin N → ℝ) (i : Fin N) (a b : ℝ) :
        IntervalIntegrable (fun (t : ℝ) => stepSignal cut jump t i) MeasureTheory.volume a b

        Each coordinate of the finite display is integrable on every interval.

        theorem MindFormal.Page.stepSignal_mul_integrable {K : Type u_1} [Fintype K] {N : ℕ} (cut : K → ℝ) (jump : K → Fin N → ℝ) (i : Fin N) {t : ℝ} {f : ℝ → ℝ} (hf : IntervalIntegrable f MeasureTheory.volume 0 t) :
        IntervalIntegrable (fun (s : ℝ) => f s * stepSignal cut jump s i) MeasureTheory.volume 0 t

        A finite display times an integrable factor is integrable. This gives the actual moving-gain dose without a regularity assumption on that gain's input.

        theorem MindFormal.Page.stepSignal_lag {K : Type u_1} [Fintype K] {N : ℕ} {ν H : ℝ} (hν : 0 < ν) (hH : 0 ≤ H) (cut : K → ℝ) (jump : K → Fin N → ℝ) (hc : ∀ (k : K), 0 ≤ cut k) (i : Fin N) :
        ∫ (t : ℝ) in 0..H, |expConv ν 0 (fun (s : ℝ) => stepSignal cut jump s i) t - stepSignal cut jump t i| ≤ jumpVariation cut jump H / ν

        PG1.7: each coordinate's integrated relaxation error is bounded by the same maximum-norm prefix variation, with no future jump charged on that prefix.