Glue one-sided derivatives on a closed interval
ProvedMovingSofa.ForMathlib.hasDerivWithinAt_Icc_of_oneSidedcalculus
One-sided derivatives agreeing from both sides glue to a two-sided derivative on a closed interval, including endpoints.
Preamble
import Mathlib.Analysis.Calculus.ContDiff.Deriv open Set
Formal statement
namespace MovingSofa.ForMathlib
theorem hasDerivWithinAt_Icc_of_oneSided {E : Type*}
[NormedAddCommGroup E] [NormedSpace ℝ E] {a b t : ℝ} (hab : a < b)
(ht : t ∈ Icc a b) {f : ℝ → E} {d : E}
(hr : t < b → HasDerivWithinAt f d (Ici t) t)
(hl : a < t → HasDerivWithinAt f d (Iic t) t) :
HasDerivWithinAt f d (Icc a b) t := by sorry
end MovingSofa.ForMathlibSource
ForMathlib/Analysis/Calculus/Interval.lean