Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Glue one-sided derivatives on a closed interval

Proved
MovingSofa.ForMathlib.hasDerivWithinAt_Icc_of_oneSided

by Tamas Fulop · Oct 3, 2026 · Mathlib c5ea003 (Lean v4.30.0)

calculus

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.ForMathlib
Source
ForMathlib/Analysis/Calculus/Interval.lean

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me