Derivative at a first return is nonnegative
ProvedMovingSofa.ForMathlib.nonneg_of_first_returncalculus
At a first return from below, the derivative is nonnegative via left slopes.
Preamble
import Mathlib.Analysis.Calculus.Deriv.Slope import Mathlib.Topology.Order.Compact import Mathlib.Topology.Order.IntermediateValue
Formal statement
namespace MovingSofa.ForMathlib
theorem nonneg_of_first_return {g : ℝ → ℝ} {a t c d : ℝ} (hat : a < t)
(hd : HasDerivAt g d t) (hgt : g t = c) (hleft : ∀ u ∈ Set.Ico a t, g u < c) :
0 ≤ d := by sorry
end MovingSofa.ForMathlibSource