MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch17.ForecastFilters

theorem MindFormal.ForecastNative.first_filter {ν : ℝ} (hν : 0 < ν) (h t : ℝ) :
expConv ν 0 (fun (x : ℝ) => h) t = h * (1 - Real.exp (-ν * t))
theorem MindFormal.ForecastNative.second_filter {ν : ℝ} (hν : 0 < ν) (χ hL hR H : ℝ) :
expConv ν 0 (fun (t : ℝ) => χ * (hL - hR) * (1 - Real.exp (-ν * t))) H = χ * (hL - hR) * (1 - (1 + ν * H) * Real.exp (-ν * H))
theorem MindFormal.ForecastNative.two_stage_difference {ν : ℝ} (hν : 0 < ν) (χ hL hR H : ℝ) (background : ℝ → ℝ) (hb : IntervalIntegrable background MeasureTheory.volume 0 H) :
expConv ν 0 (fun (t : ℝ) => background t + χ * expConv ν 0 (fun (x : ℝ) => hL) t) H - expConv ν 0 (fun (t : ℝ) => background t + χ * expConv ν 0 (fun (x : ℝ) => hR) t) H = χ * (hL - hR) * (1 - (1 + ν * H) * Real.exp (-ν * H))
theorem MindFormal.ForecastNative.bracket_positive {ν H : ℝ} (hν : 0 < ν) (hH : 0 < H) :
0 < 1 - (1 + ν * H) * Real.exp (-ν * H)
theorem MindFormal.ForecastNative.bracket_derivative (ν H : ℝ) :
HasDerivAt (fun (t : ℝ) => 1 - (1 + ν * t) * Real.exp (-ν * t)) (ν ^ 2 * H * Real.exp (-ν * H)) H
theorem MindFormal.ForecastNative.forecast_comparison {ν H χ hL hR : ℝ} (hν : 0 < ν) (hH : 0 < H) (background : ℝ → ℝ) (hb : IntervalIntegrable background MeasureTheory.volume 0 H) :
expConv ν 0 (fun (t : ℝ) => background t + χ * expConv ν 0 (fun (x : ℝ) => hL) t) H - expConv ν 0 (fun (t : ℝ) => background t + χ * expConv ν 0 (fun (x : ℝ) => hR) t) H = χ * (hL - hR) * (1 - (1 + ν * H) * Real.exp (-ν * H)) ∧ 0 < 1 - (1 + ν * H) * Real.exp (-ν * H) ∧ HasDerivAt (fun (t : ℝ) => 1 - (1 + ν * t) * Real.exp (-ν * t)) (ν ^ 2 * H * Real.exp (-ν * H)) H ∧ 0 < ν ^ 2 * H * Real.exp (-ν * H) ∧ (0 < χ → hR < hL → 0 < χ * (hL - hR) * (1 - (1 + ν * H) * Real.exp (-ν * H)))