theorem
MindFormal.scalar_dissipative_upper_signed
{H δ : ℝ}
(hH : 0 ≤ H)
(x y w v : C(↑(HorizonTime H), ℝ))
(f g : ℝ → ℝ)
(hx : ScalarDynamics hH x w f)
(hg : IntervalIntegrable g MeasureTheory.volume 0 H)
(hy0 : ∀ (t : ↑(HorizonTime H)), 0 ≤ y t)
(hy :
∃ (k : C(↑(HorizonTime H), ℝ)),
Monotone ⇑k ∧ ∀ (t : ↑(HorizonTime H)), y t = (y ⟨0, ⋯⟩ + ∫ (s : ℝ) in 0..↑t, g s) + (v t - v ⟨0, ⋯⟩) + k t)
(T : ↑(HorizonTime H))
(hstart : x ⟨0, ⋯⟩ - y ⟨0, ⋯⟩ ≤ δ)
(hdriver : ∀ s ≤ T, -δ ≤ w s - w ⟨0, ⋯⟩ - (v s - v ⟨0, ⋯⟩))
(horder : ∀ s ≤ T, y s ≤ x s → f ↑s ≤ g ↑s)
:
The one-sided form of scalar upper comparison retains the signed innovation error at the right endpoint. It can be reused after a cut without charging the earlier error a second time.