Right derivative at a half-line minimum is nonnegative
ProvedMovingSofa.ForMathlib.hasDerivWithinAt_Ici_nonnegcalculus
A right derivative at a minimum over is (Fermat, one-sided). Reduction to the tangent-cone helper.
Preamble
import Mathlib.Analysis.Calculus.LocalExtr.Basic import Mathlib.Tactic.Linarith
Formal statement
namespace MovingSofa.ForMathlib
theorem hasDerivWithinAt_Ici_nonneg {f : ℝ → ℝ} {f' a : ℝ}
(h : IsLocalMinOn f (Set.Ici a) a) (hf : HasDerivWithinAt f f' (Set.Ici a) a) : 0 ≤ f' := by sorry
end MovingSofa.ForMathlibSource