MindFormal v1.0.0One Mind

MindFormal.Tools.StieltjesWithin

Integration by parts with the one-sided derivative at the beginning of a run. This avoids a false two-sided derivative requirement for the native trace at time zero.

theorem MindFormal.StieltjesParts.regularity_of_hasDerivWithinAt (T : NNReal) (w v : ℝ → ℝ) (hv : ContinuousOn v (Set.Icc 0 ↑T)) (hd : ∀ x ∈ Set.Icc 0 ↑T, HasDerivWithinAt w (v x) (Set.Ici 0) x) :
ContinuousOn (fun (t : NNReal) => w ↑t) (Set.Icc 0 T) ∧ BoundedVariationOn (fun (t : NNReal) => w ↑t) (Set.Icc 0 T)

A continuous derivative within the nonnegative time axis suffices for continuity and finite variation on every compact horizon.

theorem MindFormal.StieltjesParts.localIntegral_eq_intervalIntegral_of_hasDerivWithinAt (T : NNReal) (w v : ℝ → ℝ) (g : NNReal → ℝ) (hv : ContinuousOn v (Set.Icc 0 ↑T)) (hd : ∀ x ∈ Set.Icc 0 ↑T, HasDerivWithinAt w (v x) (Set.Ici 0) x) (hg : ContinuousOn g (Set.Icc 0 T)) :
localIntegral T (fun (t : NNReal) => w ↑t) g = ∫ (x : ℝ) in 0..↑T, g x.toNNReal * v x

The ordinary time correction remains valid when the derivative at zero is one-sided.