MindFormal v1.0.0One Mind

MindFormal.Tools.ActivityConvolution

Three facts with no mind in them, for the activity corridor of 02.20 (RP5)–(RP9): a one-sided barrier for a path whose increments are at most an integral plus a bounded path's increment; the exponential convolution m(t) = e^{−νt}x₀ + ν∫₀ᵗ e^{−ν(t−w)}T(w)dw of an integrable target, which satisfies m(t) − m(a) = ∫ₐᵗ ν(T − m); and Grönwall's bound for a continuous nonnegative function bounded by a constant plus a multiple of its own integral.

theorem MindFormal.barrier_upper_le {t0 t1 b : ℝ} (h01 : t0 ≤ t1) (w D B M : ℝ → ℝ) (hw : ContinuousOn w (Set.Icc t0 t1)) (hD : IntervalIntegrable D MeasureTheory.volume t0 t1) (hB : IntervalIntegrable B MeasureTheory.volume t0 t1) (hB0 : ∀ s ∈ Set.Icc t0 t1, 0 ≤ B s) (hM : ∀ s ∈ Set.Icc t0 t1, |M s| ≤ b) (hinc : ∀ a ∈ Set.Icc t0 t1, (∀ s ∈ Set.Ioc a t1, 0 < w s) → w t1 - w a ≤ (∫ (s : ℝ) in a..t1, D s) + (M t1 - M a)) (hpos : ∀ s ∈ Set.Icc t0 t1, 0 < w s → D s ≤ B s) (hw0 : w t0 ≤ 0) :
w t1 ≤ (∫ (s : ℝ) in t0..t1, B s) + 2 * b

A continuous path w on [t0,t1] that starts nonpositive, whose increment from any a to t1 is at most the integral of D plus the increment of a path M bounded by b, and with D ≤ B wherever w > 0 (B ≥ 0 integrable), ends at most ∫B + 2b.

noncomputable def MindFormal.expConv (ν x₀ : ℝ) (T : ℝ → ℝ) (t : ℝ) :

The exponential convolution of a target T from x₀ at rate ν: e^{−νt}x₀ + ν∫₀ᵗ e^{−ν(t−w)}T(w)dw, written as e^{−νt}(x₀ + ν∫₀ᵗ e^{νw}T(w)dw).

Equations
Instances For
    theorem MindFormal.expConv_eq (ν x₀ : ℝ) (T : ℝ → ℝ) (t : ℝ) :
    expConv ν x₀ T t = Real.exp (-ν * t) * x₀ + ν * ∫ (w : ℝ) in 0..t, Real.exp (-ν * (t - w)) * T w
    theorem MindFormal.expConv_zero (ν x₀ : ℝ) (T : ℝ → ℝ) :
    expConv ν x₀ T 0 = x₀
    theorem MindFormal.expConv_bounds {ν x₀ M t : ℝ} {T : ℝ → ℝ} (hν : 0 < ν) (ht : 0 ≤ t) (hx₀ : 0 ≤ x₀) (hT : IntervalIntegrable T MeasureTheory.volume 0 t) (hT0 : ∀ w ∈ Set.Icc 0 t, 0 ≤ T w) (hTM : ∀ w ∈ Set.Icc 0 t, T w ≤ M) :
    0 ≤ expConv ν x₀ T t ∧ expConv ν x₀ T t ≤ max x₀ M

    The convolution of a target in [0,M] from x₀ ≥ 0 at rate ν > 0 stays in [0, max(x₀, M)].

    theorem MindFormal.expConv_mono {ν x₀ x₀' t : ℝ} {T T' : ℝ → ℝ} (hν : 0 < ν) (ht : 0 ≤ t) (hx : x₀ ≤ x₀') (hT : IntervalIntegrable T MeasureTheory.volume 0 t) (hT' : IntervalIntegrable T' MeasureTheory.volume 0 t) (hle : ∀ w ∈ Set.Icc 0 t, T w ≤ T' w) :
    expConv ν x₀ T t ≤ expConv ν x₀' T' t

    The convolution is monotone in its start and, on [0,t], in its target.

    theorem MindFormal.expKernel_integral {ν : ℝ} (hν : 0 < ν) (t : ℝ) :
    ν * ∫ (w : ℝ) in 0..t, Real.exp (-ν * (t - w)) = 1 - Real.exp (-ν * t)

    ν∫₀ᵗ e^{−ν(t−w)} dw = 1 − e^{−νt}.

    theorem MindFormal.expConv_sub_le {ν x₀ xb₀ t d₀ : ℝ} {T Tb : ℝ → ℝ} (hν : 0 < ν) (ht : 0 ≤ t) (hT : IntervalIntegrable T MeasureTheory.volume 0 t) (hTb : IntervalIntegrable Tb MeasureTheory.volume 0 t) (hd : |x₀ - xb₀| ≤ d₀) :
    |expConv ν x₀ T t - expConv ν xb₀ Tb t| ≤ d₀ + ν * ∫ (w : ℝ) in 0..t, Real.exp (-ν * (t - w)) * |T w - Tb w|

    Two convolutions from x₀ and x̄₀ with |x₀ − x̄₀| ≤ d₀ differ by at most d₀ plus the convolution of the targets' absolute difference.

    theorem MindFormal.expConv_weighted_le {ν t H Ca Cb C0 Cφ Δa Δb : ℝ} {f a b φ : ℝ → ℝ} (hν : 0 < ν) (ht : 0 ≤ t) (htH : t ≤ H) (hCa : 0 ≤ Ca) (hCb : 0 ≤ Cb) (hC0 : 0 ≤ C0) (hCφ : 0 ≤ Cφ) (hfi : IntervalIntegrable f MeasureTheory.volume 0 t) (hai : IntervalIntegrable a MeasureTheory.volume 0 t) (hbi : IntervalIntegrable b MeasureTheory.volume 0 t) (hφi : IntervalIntegrable φ MeasureTheory.volume 0 t) (hφ0 : ∀ w ∈ Set.Icc 0 t, 0 ≤ φ w) (hf : ∀ w ∈ Set.Icc 0 t, |f w| ≤ Ca * a w + Cb * b w + C0 + Cφ * φ w) (hΔa : ν * ∫ (w : ℝ) in 0..t, Real.exp (-ν * (t - w)) * a w ≤ Δa) (hΔb : ν * ∫ (w : ℝ) in 0..t, Real.exp (-ν * (t - w)) * b w ≤ Δb) :
    ν * ∫ (w : ℝ) in 0..t, Real.exp (-ν * (t - w)) * |f w| ≤ Ca * Δa + Cb * Δb + C0 * (1 - Real.exp (-ν * H)) + ν * Cφ * ∫ (w : ℝ) in 0..t, φ w

    THE WEIGHTED BOUND. If |f| ≤ C_a·a + C_b·b + C₀ + C_φ·φ on [0,t] (all nonnegative, a, b, φ ≥ 0, everything integrable), the convolutions ν∫e^{−ν(t−w)}a and ν∫e^{−ν(t−w)}b are at most Δ_a, Δ_b, and t ≤ H, then ν∫₀ᵗe^{−ν(t−w)}|f| ≤ C_aΔ_a + C_bΔ_b + C₀(1 − e^{−νH}) + νC_φ∫₀ᵗφ.

    theorem MindFormal.ac_const_of (c : ℝ) {a b : ℝ} :
    AbsolutelyContinuousOnInterval (fun (x : ℝ) => c) a b

    A constant is absolutely continuous on every interval.

    theorem MindFormal.expConv_integral {ν x₀ b : ℝ} {T : ℝ → ℝ} (hb : 0 ≤ b) (hT : IntervalIntegrable T MeasureTheory.volume 0 b) :
    AbsolutelyContinuousOnInterval (expConv ν x₀ T) 0 b ∧ ∀ (a t : ℝ), 0 ≤ a → a ≤ t → t ≤ b → expConv ν x₀ T t - expConv ν x₀ T a = ∫ (w : ℝ) in a..t, ν * (T w - expConv ν x₀ T w)

    THE CONVOLUTION'S INTEGRAL EQUATION. For T integrable on [0,b], the convolution is absolutely continuous on [0,b] and changes between any two times of [0,b] by the integral of ν(T − m).

    theorem MindFormal.le_mul_exp_of_le_add_integral {φ : ℝ → ℝ} {A c b : ℝ} (hc : 0 ≤ c) (hφ : Continuous φ) (h0 : ∀ (t : ℝ), 0 ≤ φ t) (hle : ∀ t ∈ Set.Icc 0 b, φ t ≤ A + c * ∫ (s : ℝ) in 0..t, φ s) (t : ℝ) :
    t ∈ Set.Icc 0 b → φ t ≤ A * Real.exp (c * t)

    GRÖNWALL'S BOUND WITH A CONSTANT TERM. A continuous nonnegative function on [0,b] bounded by A + c∫₀ᵗ φ, with c ≥ 0, is bounded by A·e^{ct}.

    theorem MindFormal.le_affine_exp_of_le_add_integral {φ : ℝ → ℝ} {A c F H : ℝ} (hc : 0 < c) (hF : 0 ≤ F) (hφ : Continuous φ) (h0 : ∀ (t : ℝ), 0 ≤ φ t) (hle : ∀ t ∈ Set.Icc 0 H, φ t ≤ A + F * t + c * ∫ (r : ℝ) in 0..t, φ r) (t : ℝ) :
    t ∈ Set.Icc 0 H → φ t ≤ A * Real.exp (c * t) + F * (Real.exp (c * t) - 1) / c

    The affine-forcing form of the same integral Grönwall bound. The existing constant-forcing theorem is applied to φ+F/c, preserving the sharp exponential coefficient instead of replacing F·t by its horizon maximum.