MindFormal v1.0.0One Mind

MindFormal.Tools.A695LearningValue.PowerIntegral

theorem MindFormal.A695LearningValue.integral_power_error (f g : ℝ → ℝ) (n : ℕ) (C : ℝ) {t : ℝ} (ht : 0 ≤ t) (hf : IntervalIntegrable f MeasureTheory.volume 0 t) (hg : IntervalIntegrable g MeasureTheory.volume 0 t) (hb : ∀ s ∈ Set.Icc 0 t, |f s - g s| ≤ C * s ^ n) :
|(∫ (s : ℝ) in 0..t, f s) - ∫ (s : ℝ) in 0..t, g s| ≤ C * t ^ (n + 1) / (↑n + 1)

Integrating an actual power remainder raises its degree by one.

theorem MindFormal.A695LearningValue.isBigO_power_of_bound (f : ℝ → ℝ) (n : ℕ) (C h : ℝ) (hh : 0 < h) (hb : ∀ t ∈ Set.Icc 0 h, |f t| ≤ C * t ^ n) :
f =O[nhdsWithin 0 (Set.Ici 0)] fun (t : ℝ) => t ^ n

A one-sided explicit remainder is the usual one-sided big-O statement.