MindFormal v1.0.0One Mind

MindFormal.Tools.PiecewiseComparison

Explicit finite comparison paths and their complete convolution error.

noncomputable def MindFormal.comparisonWeight (ν t a b : ℝ) :

The weight of a comparison cell at time t, including a cell cut at t.

Equations
Instances For
    noncomputable def MindFormal.piecewiseComparison (ν x0 : ℝ) (a v : ℕ → ℝ) (K : ℕ) (t : ℝ) :

    An explicitly computed finite comparison, from its start and cell targets.

    Equations
    Instances For
      theorem MindFormal.comparisonWeight_nonneg {ν t a b : ℝ} (hν : 0 ≤ ν) (hab : a ≤ b) :

      A comparison cell has nonnegative weight for nonnegative rate and ordered ends.

      theorem MindFormal.expKernel_cell {ν : ℝ} (hν : 0 < ν) (t a b : ℝ) :
      ν * ∫ (s : ℝ) in a..b, Real.exp (-ν * (t - s)) = Real.exp (-ν * (t - b)) - Real.exp (-ν * (t - a))

      Exact mass of the exponential kernel on an arbitrary cell.

      theorem MindFormal.expKernel_cell_error {ν t a b v d : ℝ} (hν : 0 < ν) (hab : a ≤ b) {f : ℝ → ℝ} (hf : IntervalIntegrable f MeasureTheory.volume a b) (he : ∀ s ∈ Set.Ioo a b, |f s - v| ≤ d) :
      |(ν * ∫ (s : ℝ) in a..b, Real.exp (-ν * (t - s)) * f s) - (Real.exp (-ν * (t - b)) - Real.exp (-ν * (t - a))) * v| ≤ (Real.exp (-ν * (t - b)) - Real.exp (-ν * (t - a))) * d

      A cell's comparison error pays its exact exponential weight.

      theorem MindFormal.piecewiseComparison_error {ν x0 xb0 d0 H t : ℝ} (hν : 0 < ν) (ht : t ∈ Set.Icc 0 H) (a : ℕ → ℝ) (K : ℕ) (ha : Monotone a) (ha0 : a 0 = 0) (haK : a K = H) (v d : ℕ → ℝ) {f : ℝ → ℝ} (hf : IntervalIntegrable f MeasureTheory.volume 0 H) (hstart : |x0 - xb0| ≤ d0) (he : ∀ k < K, ∀ s ∈ Set.Ioo (a k) (a (k + 1)), |f s - v k| ≤ d k) :
      |expConv ν x0 f t - piecewiseComparison ν xb0 a v K t| ≤ Real.exp (-ν * t) * d0 + ∑ k ∈ Finset.range K, comparisonWeight ν t (a k) (a (k + 1)) * d k

      J13 at every time: a finite partition, coefficient-wise cell allowances and an entering-state allowance give an explicit comparison and an explicit error. The convolution's target can move arbitrarily within these allowances.